{
"css_completions_scope": "source.css - meta.selector.css - meta.property-value.css, source.stylus - meta.selector.css - meta.property-value.css, source.scss - meta.selector.scss - meta.property-value.scss, source.less - meta.selector.css - meta.property-value.css",
}
gulp.task('watch', function() {
gulp.watch('sass/**/*.scss', gulp.series('style'));
});
gulp.watch(['sass/*.scss', 'sass/block/*.scss', 'sass/page/*.scss'], gulp.series('style'));
gulp.task('watch', function() {
gulp.watch('sass/**/*.scss', gulp.series('style'));
});
<div class="block"></div>
.block{
width: 300px;
height: 100px;
background: #5C72FA;
position: relative;
}
.block:before{
content: '';
position: absolute;
bottom: -20px;
left: 0;
border: 20px solid transparent;
border-left: 150px solid #5C72FA;
}
.block:after{
content: '';
position: absolute;
bottom: -20px;
right: 0;
border: 20px solid transparent;
border-right: 150px solid #5C72FA;
}
<!DOCTYPE html>
<html lang="ru-RU">
<head>
<meta charset="UTF-8">
<meta name="author" content="reskwer">
<title>Что-то на CodePen</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="sidebar">
<div class="facebook">
<h1>Facebook block</h1>
<div class="facebook-api">
<p>В этот блок программист прикрутит facebook API like</p>
</div>
</div>
<div class="photo">
<h1>Latest picture galleries</h1>
<div class="wiver one">
<h2>Navn og tekst til billede</h2>
<img src="http://placehold.it/120x76" alt="img">
</div>
<div class="wiver two">
<h2>Navn og tekst til billede</h2>
<img src="http://placehold.it/120x76" alt="img">
</div>
<a href="#" class="more">more pictures</a>
</div>
<div class="video">
<h1>Latest picture galleries</h1>
<div class="wiver one">
<h2>Navn og tekst til billede</h2>
<img src="http://placehold.it/120x76" alt="img">
<div class="circle">
</div>
</div>
<div class="wiver two">
<h2>Navn og tekst til billede</h2>
<img src="http://placehold.it/120x76" alt="img">
<div class="circle">
</div>
</div>
<a href="#" class="more">more pictures</a>
</div>
</div>
</body>
</html>
.sidebar{
width: 300px;
background: #f0f0f0;
font: 100% tahoma,verdana,arial;
padding: 0 22px;
box-sizing: border-box;
}
.facebook,.photo,.video{
width: 100%;
height: 239px;
border-bottom: 2px dotted #777;
padding-top: 16px;
}
h1{
font-size: 93%;
font-weight: bold;
font-style: italic;
}
h2{
font-size: 100%;
font-weight: normal;
letter-spacing: 1px;
}
.wiver{
width: 120px;
display: inline-block;
cursor: pointer;
}
.more{
display: block;
text-decoration: none;
background: #e8e8e8;
color: black;
font-weight: 400;
font-style: italic;
font-size: 93%;
width: 113px;
height: 20px;
text-align: left;
padding: 1px 0 1px 9px;
margin: 15px 0 14px 49%;
position: relative;
}
.more:after{
content: ">";
display: block;
width: 10px;
height: 15px;
position: absolute;
top: 3px;
right: 7px;
color: #7dc8cd;
}
.more:hover{
background: #aaa;
}
.video .wiver{
position: relative;
}
.circle{
width: 65px;
height: 65px;
border-radius: 50%;
background: rgba(255,255,255,.5);
position: absolute;
bottom: 9px;
left: 26px;
}
.circle{
width: 55px;
height: 55px;
border-radius: 50%;
background: rgba(255,255,255,.5);
position: absolute;
bottom: 14px;
left: 32px;
}
.circle:after{
display: block;
content: "";
position: absolute;
bottom: 12px;
left: 16px;
border: 15px solid transparent;
border-left: 30px solid rgba(255,255,255,.7);
}
.circle:hover{
background: rgba(255,255,255,.7);
cursor: pointer;
}
.circle:hover:after{
border-left: 30px solid rgba(255,255,255,.9);
}
<!DOCTYPE html>
<html lang="ru-RU">
<head>
<meta charset="UTF-8">
<meta name="author" content="reskwer">
<title>Что-то на CodePen</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="main">
<p>Какието данные</p>
<p>Какието данные</p>
<p>Какието данные</p>
<p>Какието данные</p>
</div>
<a href="#main" id="click">
<img src="http://placehold.it/100x50" alt="img">
</a>
<a href="#" id="back">Вернуть все</a>
</body>
</html>
#main{
width: 400px;
height: 200px;
background: #eee;
border: 1px solid black;
text-align: center;
margin: 10px 0px;
}
#main p{
display: none;
}
#main:target p{
display: block;
}
#main:target + #click{
display: none;
}
#main:target ~ #back{
display: block;
}
#back{
display: none;
margin-left: 311px;
}
<!DOCTYPE html>
<html lang="ru-RU">
<head>
<meta charset="UTF-8">
<meta name="author" content="reskwer">
<title>Что-то на CodePen</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="content">
<p>Cras dapibus, leo a euismod luctus, nibh orci tempor mi, non accumsan odio nunc sit amet magna. Curabitur gravida dolor non mi mollis, vitae vehicula ante blandit. Curabitur congue neque sapien, at vestibulum</p>
<div class="circle1"></div>
<div class="circle2"></div>
<div class="circle3"></div>
<div class="circle4"></div>
</div>
</body>
</html>
html{
height: 100%;
}
body{
background: #666;
}
.circle1{
width: 80px;
height: 80px;
border-radius: 50%;
border: 1px solid rgba(100,149,237,.5);
background: rgba(255,235,205,.5);
position: absolute;
top: 0;
left: 0;
}
.circle2{
width: 160px;
height: 160px;
border-radius: 50%;
border: 1px solid rgba(100,149,237,.5);
background: rgba(0,191,55,.5);
position: absolute;
top: 74px;
left: 164px;
}
.circle3{
width: 120px;
height: 120px;
border-radius: 50%;
border: 1px solid rgba(100,149,237,.5);
background: rgba(102,205,270,.5);
position: absolute;
top: 122px;
left: 83px;
}
.circle4{
width: 100px;
height: 100px;
border-radius: 50%;
border: 1px solid rgba(100,149,237,.5);
background: rgba(0,100,0,.5);
position: absolute;
top: 267px;
left: 148px;
}
.content{
width: 400px;
height: 400px;
position: relative;
background: linear-gradient(90deg,rgba(255, 255, 255, 0) 1.8em, rgba(135, 206, 235, .5) 2em)4em 0 repeat-y,linear-gradient(rgba(255,255,255, 0) 1.9em, rgba(0, 0, 0, .15) 2em)0 0;
background-size: 2em 2em;
background-color: ivory;
font: 16px/2 'Trebuchet MS', Verdana, sans-serif;
}
p{
margin: 2.5em 3em 1em 8em;
}
<!DOCTYPE html>
<html lang="ru-RU">
<head>
<meta charset="UTF-8">
<meta name="author" content="reskwer">
<title>Что-то на CodePen</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="content">
<div id="topbar">Высота 100px</div>
<div id="page">Высота 50% от 100%-100px</div>
<div id="sidebar">Высота 50% от 100%-100px</div>
</div>
</body>
</html>
html,body{
width: 100%;
height: 100%;
padding: 0;
margin: 0;
text-align: center;
}
.content{
width: 100%;
height: 100%;
position: relative;
}
#topbar {
width: 100%;
height: 100px;
background: #eee;
z-index: 3;
position: absolute;
top: 0;
box-sizing: border-box;
padding-top: 21px;
font-size: 200%;
}
#page{
width: 100%;
height: 50%;
background: #aaa;
margin-top: -50px;
z-index: 2;
position: absolute;
top: 100px;
box-sizing: border-box;
padding-top: 11%;;
font-size: 200%;
}
#sidebar {
width: 100%;
height: 50%;
background: #666;
z-index: 1;
position: absolute;
bottom: 0;
box-sizing: border-box;
padding-top: 11%;
font-size: 200%;
}