2023-05-17 09:30:00 +02:00
|
|
|
header {
|
2023-05-20 19:59:58 +02:00
|
|
|
position: relative;
|
|
|
|
//box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.header-content {
|
2023-05-20 19:59:58 +02:00
|
|
|
align-items: center;
|
|
|
|
max-width: 1200px;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 10px 20px;
|
|
|
|
color: #212529;
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
2023-05-20 19:59:58 +02:00
|
|
|
text-decoration: none;
|
|
|
|
font-size: 25px;
|
|
|
|
color: inherit;
|
|
|
|
margin-right: 20px;
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
2023-05-20 19:59:58 +02:00
|
|
|
padding: 23px 20px;
|
|
|
|
position: absolute;
|
|
|
|
cursor: pointer;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"] {
|
2023-05-20 19:59:58 +02:00
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
label span {
|
2023-05-20 19:59:58 +02:00
|
|
|
width: 20px;
|
|
|
|
height: 3px;
|
|
|
|
display: block;
|
|
|
|
background: #4f3e3e;
|
|
|
|
position: relative;
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
label span::after, label span::before {
|
2023-05-20 19:59:58 +02:00
|
|
|
background: inherit;
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
height: inherit;
|
|
|
|
position: absolute;
|
|
|
|
width: inherit;
|
2023-05-17 20:56:54 +02:00
|
|
|
}
|
2023-05-17 09:30:00 +02:00
|
|
|
|
|
|
|
label span::before{
|
2023-05-20 19:59:58 +02:00
|
|
|
top: 8px;
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
label span::after {
|
2023-05-20 19:59:58 +02:00
|
|
|
bottom: 8px;
|
2023-05-17 20:56:54 +02:00
|
|
|
}
|
2023-05-17 09:30:00 +02:00
|
|
|
|
|
|
|
label::before {
|
2023-05-20 19:59:58 +02:00
|
|
|
position: absolute;
|
|
|
|
content: "";
|
|
|
|
width: 58px;
|
|
|
|
height: 49px;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"]:focus + label::before {
|
2023-05-20 19:59:58 +02:00
|
|
|
box-shadow: 0 0 20px black;
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
|
2023-05-17 10:44:14 +02:00
|
|
|
ul.menu {
|
2023-05-20 19:59:58 +02:00
|
|
|
background: #f2f2f2;
|
2023-05-17 10:44:14 +02:00
|
|
|
}
|
2023-05-17 09:30:00 +02:00
|
|
|
|
|
|
|
ul.menu li {
|
2023-05-20 19:59:58 +02:00
|
|
|
list-style: none;
|
|
|
|
font-size: 18px;
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ul.menu li button {
|
|
|
|
font-size: inherit;
|
2023-05-17 20:56:54 +02:00
|
|
|
font-family: inherit;
|
|
|
|
font-weight: bold;
|
2023-05-17 09:30:00 +02:00
|
|
|
border: none;
|
|
|
|
background-color: transparent;
|
|
|
|
cursor: pointer;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul.menu li a {
|
2023-05-20 19:59:58 +02:00
|
|
|
display: block;
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ul.menu li a, ul li button {
|
2023-05-20 19:59:58 +02:00
|
|
|
padding: 0.7rem 0.5rem;
|
|
|
|
text-align: left;
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.menus {
|
|
|
|
position: absolute;
|
|
|
|
top: 3.2rem;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2023-05-17 20:56:54 +02:00
|
|
|
|
2023-05-17 09:30:00 +02:00
|
|
|
/* hide dropdown on small screens */
|
|
|
|
visibility: hidden;
|
|
|
|
/* smooth transitioning */
|
|
|
|
transform: translateY(-1em);
|
|
|
|
transition: transform ease 0.2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* toggle main dropdown */
|
|
|
|
|
|
|
|
input[type="checkbox"]:checked ~ nav > ul {
|
|
|
|
visibility: visible;
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown {
|
|
|
|
padding: 2px 1.5rem;
|
|
|
|
height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
transition: height ease 0.2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
li:focus-within .dropdown {
|
2023-05-20 19:59:58 +02:00
|
|
|
// height: 135px;
|
|
|
|
height: auto;
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
|
2023-05-20 19:59:58 +02:00
|
|
|
/*
|
2023-05-17 09:30:00 +02:00
|
|
|
.arrow {
|
|
|
|
width: 0.5em;
|
|
|
|
height: 0.5em;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
border-left: 0.15em solid currentColor;
|
|
|
|
border-bottom: 0.15em solid currentColor;
|
|
|
|
transform: rotate(-45deg);
|
|
|
|
margin-left: 0.38em;
|
|
|
|
margin-top: -0.25em;
|
|
|
|
transition: transform 100ms ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
li:focus-within > button > .arrow {
|
|
|
|
transform: rotate(-225deg);
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|
2023-05-20 19:59:58 +02:00
|
|
|
*/
|
|
|
|
|
2023-05-17 09:30:00 +02:00
|
|
|
|
|
|
|
/* MEDIA QUERIES */
|
2023-05-17 10:44:14 +02:00
|
|
|
@media (max-width: 360px) {
|
|
|
|
.logo img {
|
|
|
|
visibility: collapse;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
|
|
.logo img {
|
|
|
|
max-width: 200px;
|
|
|
|
}
|
|
|
|
}
|
2023-05-17 20:56:54 +02:00
|
|
|
@media (min-width: 800px) {
|
2023-05-17 09:30:00 +02:00
|
|
|
.header-content {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.menus {
|
|
|
|
position: static;
|
|
|
|
visibility: visible;
|
|
|
|
background: #fff;
|
|
|
|
display: flex;
|
|
|
|
transform: initial;
|
|
|
|
}
|
|
|
|
label, input[type="checkbox"] {
|
|
|
|
display: none;
|
|
|
|
}
|
2023-05-17 10:44:14 +02:00
|
|
|
ul.menu {
|
|
|
|
background-color: white;
|
|
|
|
}
|
2023-05-17 09:30:00 +02:00
|
|
|
ul.menu li {
|
|
|
|
position: relative;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
ul.menu li a:hover,
|
|
|
|
ul.menu li button:hover {
|
|
|
|
background-color: #f2f2f2;
|
|
|
|
}
|
|
|
|
.dropdown {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
left: auto;
|
|
|
|
box-shadow: 0 10px 15px -3px rgba(46, 41, 51, 0.08),
|
|
|
|
0 4px 6px -2px rgba(71, 63, 79, 0.16);
|
|
|
|
z-index: 99;
|
|
|
|
min-width: 10rem;
|
|
|
|
padding: 0;
|
|
|
|
background-color: #fff;
|
|
|
|
border-radius: 0 0 0.5rem 0.5rem;
|
|
|
|
}
|
|
|
|
ul.menu li:hover .dropdown {
|
2023-05-20 19:59:58 +02:00
|
|
|
// height: 135px;
|
|
|
|
height: auto;
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
ul.menu li:hover > button > .arrow {
|
|
|
|
transform: rotate(-225deg);
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|
|
|
|
}
|