Commit 98127a69 by Iren

add button for header

parent 3dccf1a3
...@@ -119,6 +119,8 @@ header { ...@@ -119,6 +119,8 @@ header {
} }
} }
.header-img { .header-img {
display: flex;
justify-content: space-between;
position: relative; position: relative;
width: 19.6%; width: 19.6%;
margin-top: 1.8%; margin-top: 1.8%;
...@@ -129,6 +131,12 @@ header { ...@@ -129,6 +131,12 @@ header {
width: 100%; width: 100%;
height: 37%; height: 37%;
} }
@media (max-width: 576px) {
.header-img img {
width: 50%;
height: 37%;
}
}
@media (max-width: 992px) { @media (max-width: 992px) {
.header-img { .header-img {
height: 80px; height: 80px;
...@@ -144,32 +152,64 @@ header { ...@@ -144,32 +152,64 @@ header {
} }
@media (max-width: 576px) { @media (max-width: 576px) {
.header-img { .header-img {
margin-top: 15px; margin-top: 13px;
height: 92px; height: 92px;
width: 160px; width: 100%;
} }
} }
#header-img-navicon { @media (min-width: 319px) {
position: absolute;
display: none;
}
@media (max-width: 576px) {
#header-img-navicon { #header-img-navicon {
position: relative;
/* margin-left: 103px;
margin-top: -3px;*/
display: inline-block; display: inline-block;
font-size: 36px; font-size: 36px;
color: white; color: white;
left: 260px; }
top: -15px; }
@media (min-width: 576px) {
#header-img-navicon {
position: absolute;
display: none;
z-index: 0;
} }
} }
#cat { #cat {
position: relative; position: absolute;
width: 80px; width: 80px;
height: 80px; height: 80px;
background: #00ccff; left: 1px;
top: 40px;
/*@media (min-width: 320px){
display: none;
}*/
}
@media (min-width: 577px) {
#cat {
display: none;
}
}
.header-link-mobile-container {
display: flex;
}
@media (max-width: 576px) {
.header-link-mobile {
font-size: 14px;
margin-right: 20px;
}
}
@media (max-width: 480px) {
.header-link-mobile {
font-size: 10px;
margin-right: 8px;
}
}
.header-link-mobile a {
font-family: SF-UI-Display-Black;
color: white;
} }
.page-header__burger--active { .page-header__burger--active {
display: inline-block; display: none;
} }
.header-nav { .header-nav {
position: relative; position: relative;
......
...@@ -105,6 +105,8 @@ header { ...@@ -105,6 +105,8 @@ header {
} }
} }
.header-img { .header-img {
display: flex;
justify-content: space-between;
position: relative; position: relative;
width: 19.6%; width: 19.6%;
margin-top: 1.8%; margin-top: 1.8%;
...@@ -113,6 +115,10 @@ header { ...@@ -113,6 +115,10 @@ header {
z-index: 3; z-index: 3;
width: 100%; width: 100%;
height: 37%; height: 37%;
@media (max-width: 576px){
width: 50%;
height: 37%;
}
} }
@media (max-width: 992px) { @media (max-width: 992px) {
height: 80px; height: 80px;
...@@ -124,30 +130,58 @@ header { ...@@ -124,30 +130,58 @@ header {
width: 100px; width: 100px;
} }
@media (max-width: 576px) { @media (max-width: 576px) {
margin-top: 15px; margin-top: 13px;
height: 92px; height: 92px;
width: 160px; width: 100%;
} }
} }
#header-img-navicon { #header-img-navicon {
position: absolute; @media (min-width: 319px){
display: none; position: relative;
@media (max-width: 576px){ /* margin-left: 103px;
display: inline-block; margin-top: -3px;*/
display: inline-block;
font-size: 36px; font-size: 36px;
color: white; color: white;
left: 260px; }
top: -15px; @media (min-width: 576px){
position: absolute;
display: none;
z-index: 0;
} }
} }
#cat { #cat {
position: relative; position: absolute;
width: 80px; width: 80px;
height: 80px; height: 80px;
background: #00ccff; left: 1px;
top: 40px;
@media (min-width: 577px){
display: none;
}
/*@media (min-width: 320px){
display: none;
}*/
}
.header-link-mobile-container {
display: flex;
}
.header-link-mobile {
@media (max-width: 576px){
font-size: 14px;
margin-right: 20px;
}
@media (max-width: 480px) {
font-size: 10px;
margin-right: 8px;
}
a {
font-family: SF-UI-Display-Black;
color: white;
}
} }
.page-header__burger--active { .page-header__burger--active {
display: inline-block; display: none;
} }
.header-nav { .header-nav {
position: relative; position: relative;
......
...@@ -17,17 +17,32 @@ ...@@ -17,17 +17,32 @@
<div class="main-container"> <div class="main-container">
<div class="header-container"> <div class="header-container">
<div class="header-wrapp"> <div class="header-wrapp">
<!--
<div id="cat" class="page-header__burger--active">
hhh
</div>
-->
<div class="header-img"> <div class="header-img">
<button type="button" id="header-img-navicon">&#9776;</button> <div>
<!--<div id="header-img-navicon">
&#9776;
</div>-->
<img src="img/header-logo.png"> <img src="img/header-logo.png">
</div>
<div id="header-img-navicon">
&#9776;
</div>
<div id="cat" class="page-header__burger--active">
<ul class="header-link-mobile-container">
<li class="header-link-mobile">
<a href="#">Продукт</a>
</li>
<li class="header-link-mobile">
<a href="#">Цены</a>
</li>
<li class="header-link-mobile">
<a href="#">Контакты</a>
</li>
<li class="header-link-mobile">
<a href="#">Войти</a>
</li>
<li class="header-link-mobile">
<a href="#">Зарегистрироваться</a>
</li>
</ul>
</div>
</div> </div>
<div class="header-nav"> <div class="header-nav">
<div class="header-link"> <div class="header-link">
...@@ -1211,4 +1226,12 @@ ...@@ -1211,4 +1226,12 @@
}); });
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
$('#header-img-navicon').click(function(event) {
$('#cat').removeClass('page-header__burger--active');
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment