@media (max-width: 767px) {
.header_burger {
display: block;
position: relative;
flex: 0 0 30px;
height: 20px;
}
....
.header_burger:before,
.header_burger:after {
countent: "";
background-color: black;
position: absolute;
width: 100%;
height: 3px;
left: 0;
}
*{
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Arial;
}
.wrapper{
display: table;
width: 100%;
background: #f7f7f7;
}
.wrapper::before{
content: '';
height: 100%;
vertical-align: middle;
}
.test1, .test2, .test3{
display: table-cell;
vertical-align: middle;
text-align: center;
line-height: 50px;
color: #fff;
padding: 0px 10px 0px 10px;
border-radius: 10px;
}
.test1, .test3{
width: 100px;
height: 50px;
background: orange;
}
.test2{
background: red;
height: 40px;
line-height: 40px;
}
function out() {
let input = document.querySelector('.input').value;
let result = document.querySelector('.out');
let name = {};
name.todo = input;
name.check = false;
let j = heaList.length;
heaList[j] = name;
let out = '', res = '';
for (let key in todoList) {
res += heaList[key].todo + '<br>';
res += todoList[key].todo + '<br>';
}
result.innerHTML = '<span>' + res + '</span><br>';
}
div{
width:100px;
height: 50px;
border: 2px dotted red;
border-radius: 50% 50% 0 0 / 100% 100% 0 0;
border-bottom:none;
position:relative;
color:red;
transition: 3s all ease;
transform-origin: 50% 100%;
}
div:after{
position:absolute;
content:'▼';
bottom:-10px;
right:-11px;
transform: rotate(-38deg);
}
div:before{
position:absolute;
content:'▼';
bottom:-10px;
left:-11px;
transform: rotate(38deg);
}
div:hover {
transform: rotateZ(360deg)
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.top .down {
width: 100%;
border: 2px black;
}
.top {
top: 50%;
background: #C4C4C4;
}
.top-el {
border: 2px black;
text-align: center;
}
.items {
border: 2px black;
}
.grid-item {
border: 2px black;
width: 380px;
float: left;
padding-top: 50px;
padding-left: 20px;
float: left;
}
.img {
width: 100%;
height: 200px;
background: #C4C4C4;
}
.controls {
text-align: center;
}
</style>
<title>Document</title>
</head>
<body>
<div class="top">
<h3 class="top-el">Тестовое задание ione</h3>
<h1 class="top-el">Заголовок</h1>
<h3 class="top-el">Подзаголовок</h3>
<div class="controls">
<input class="top-el" type="text" placeholder="Ваш телефон">
<button class="top-el">Push me</button>
</div>
</div>
<div class="down">
<div class="items">
<div class="grid-item">
<div class="img"></div>
<h2>Заголовок</h5>
<p>Важный текст поясняющий суть тезиса</p>
</div>
<div class="grid-item">
<div class="img"></div>
<h2>Заголовок</h5>
<p>Важный текст поясняющий суть тезиса</p>
</div>
<div class="grid-item">
<div class="img"></div>
<h2>Заголовок</h5>
<p>Важный текст поясняющий суть тезиса</p>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blocks</title>
<style>
.content,
.article,
.article__content {
display: flex;
flex-wrap: wrap;
}
.article {
width: 50%;
}
.article__content {
align-content: space-between;
justify-content: flex-end;
box-sizing: border-box;
padding: 1em;
}
.article__text {
margin: 0 0 1em;
}
.article__image {
width: 50%;
}
</style>
</head>
<body>
<div class="content">
<div class="article">
<div class="article__content">
<div class="article__text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio inventore esse aperiam, deleniti suscipit illo saepe odit deserunt vero, cumque, fuga aliquid nobis. Ab tempore minima modi dolorum consectetur quisquam.</div>
<img class="article__image" src="https://ic.pics.livejournal.com/p_syutkin/64914398/5019079/5019079_original.jpg"/>
</div>
</div>
<div class="article">
<div class="article__content">
<div class="article__text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio inventore esse aperiam, deleniti suscipit illo saepe odit deserunt vero, cumque, fuga aliquid nobis. Ab tempore minima modi dolorum consectetur quisquam.</div>
<img class="article__image" src="https://ic.pics.livejournal.com/p_syutkin/64914398/5019079/5019079_original.jpg"/>
</div>
<div class="content">
<div class="article">
<div class="article__content">
<div class="article__text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio inventore esse aperiam, deleniti suscipit illo saepe odit deserunt vero, cumque, fuga aliquid nobis. Ab tempore minima modi dolorum consectetur quisquam.</div>
<img class="article__image" src="https://ic.pics.livejournal.com/p_syutkin/64914398/5019079/5019079_original.jpg"/>
</div>
</div>
<div class="article">
<div class="article__content">
<div class="article__text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio inventore esse aperiam, deleniti suscipit illo saepe odit deserunt vero, cumque, fuga aliquid nobis. Ab tempore minima modi dolorum consectetur quisquam.</div>
<img class="article__image" src="https://ic.pics.livejournal.com/p_syutkin/64914398/5019079/5019079_original.jpg"/>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
window.onload = () => {
const observer = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.className = 'Класс синего кружка';
observer.unobserve(entry.target);
}
})
}, { threshold: 0.5 })
document.querySelectorAll('Класс серого крцжка').forEach(item => observer.observe(item));
}
.account__file {
width: 230px;
padding: 0 20px;
padding-top: 75px;
border: 2px dashed #8eb9f5;
border-radius: 15px;
}
<div class="account__file">
<svg xmlns="http://www.w3.org/2000/svg" with="100%" height="100%" class="border">
<rect x="0" y="0" rx="30" width="100%" height="100%" class="border-rect" />
</svg>
<input type="file" name="file" id="file" />
<label for="file">
<span class="account__subtitle">drag & drop</span>
<div class="account__text">
<p>Upload only png, jpg, jpeg</p>
</div>
</label>
</div>
.border {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.border-rect {
stroke: #8eb9f5;
fill: #fff;
stroke-width: 1;
stroke-dasharray: 20;
}
<div class="b-blocks">
<div class="b-blocks__item">
<div class="b-blocks__item-inner"></div>
</div>
<div class="b-blocks__item">
<div class="b-blocks__item-inner"></div>
</div>
<div class="b-blocks__item">
<div class="b-blocks__item-inner"></div>
</div>
<div class="b-blocks__item">
<div class="b-blocks__item-inner"></div>
</div>
</div>
.b-blocks {
background: #fff;
padding: 20px;
width: 800px;
&::after {
content: '';
display: table;
clear: both;
}
&__item {
float: left;
box-sizing: border-box;
width: 48%;
height: 300px;
padding: 10px;
margin: 1%;
background-color: gray;
background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.5) 35px, rgba(255,255,255,.5) 70px);
&-inner {
width: 100%;
height: 100%;
background: #fff;
}
}
}
::-webkit-scrollbar { width: 3px; height: 3px;}
::-webkit-scrollbar-button { background-color: #666; }
::-webkit-scrollbar-track { background-color: #999;}
::-webkit-scrollbar-track-piece { background-color: #ffffff;}
::-webkit-scrollbar-thumb { height: 50px; background-color: #666; border-radius: 3px;}
::-webkit-scrollbar-corner { background-color: #999;}}
::-webkit-resizer { background-color: #666;}
var slideNum = 0;
var tmp = document.location.pathname.match(/^\/(\d+)/);
if (tmp && tmp[1]) slideNum = tmp[1];
var slideNum = 0;
var tmp = document.location.search.match(/slide=(\d+)/);
if (tmp && tmp[1]) slideNum = tmp[1];