This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dns2019/src/css/header.scss
T

101 lines
1.6 KiB
SCSS

.site-header {
padding: 1rem;
background: $color-black;
color: $color-white;
display: flex;
justify-content: center;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 10;
.logo {
width: 6rem;
height: 6rem;
margin: 0 3rem;
}
}
.site-nav {
flex: 1;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
&:last-of-type {
justify-content: flex-start;
}
a {
text-decoration: none;
display: inline-block;
margin-right: 1.6rem;
&:last-child {
margin-right: 0;
}
color: $color-white;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.08em;
font-size: $font-s;
transition: box-shadow 0.2s ease-in-out;
&:hover {
box-shadow: 0 1px 0 0 $color-white;
}
}
&_toggle {
position: fixed;
top: 0;
right: 2rem;
font-size: 3rem;
transform: translateX(3em);
transition: transform .3s ease-in-out;
&:hover {
cursor: pointer;
color: $color-orange;
}
}
}
@media (max-width: $media-s) {
.site-header {
display: flex;
flex-direction: column;
.logo {
order: 1;
margin: 0;
}
}
.site-nav {
display: none;
text-align: center;
margin-top: 3rem;
a {
display: block;
margin: 1.2rem 0;
font-size: 1rem;
&:hover {
box-shadow: none;
}
}
&_toggle {
transform: translateX(0);
}
order: 2;
&:last-of-type {
order: 3;
}
}
.site-nav-visible {
height: 100% !important;
.site-nav {
display: block;
}
}
}