217 lines
3.6 KiB
SCSS
217 lines
3.6 KiB
SCSS
header {
|
|
padding-top: 3rem;
|
|
text-align: center;
|
|
|
|
@include md {
|
|
padding-top: 4rem;
|
|
}
|
|
|
|
.logo {
|
|
width: 95%;
|
|
|
|
@include md {
|
|
width: 70%;
|
|
}
|
|
|
|
@include lg {
|
|
width: 50%;
|
|
}
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.8rem;
|
|
margin: 1.5rem 3rem 0.5rem;
|
|
|
|
@include sm {
|
|
font-size: 2rem;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
@include md {
|
|
font-size: 2.5rem;
|
|
margin-top: 2rem;
|
|
max-width: 80%;
|
|
}
|
|
|
|
@include lg {
|
|
max-width: 60%;
|
|
}
|
|
}
|
|
|
|
.categories {
|
|
display: inline-block;
|
|
position: relative;
|
|
|
|
&__toggle {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0 8px;
|
|
position: relative;
|
|
text-align: right;
|
|
text-decoration: none;
|
|
|
|
&:before {
|
|
border-top: 1px dashed $link-color;
|
|
bottom: -5px;
|
|
content: '';
|
|
height: 2px;
|
|
left: 0;
|
|
position: absolute;
|
|
width: 100%;
|
|
}
|
|
|
|
svg {
|
|
margin-left: 5px;
|
|
position: relative;
|
|
top: 4px;
|
|
|
|
@include md {
|
|
top: 7px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__menu {
|
|
left: 0;
|
|
list-style: none;
|
|
margin: 0;
|
|
opacity: 0;
|
|
padding: 0;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
transform: translateY(5%) scaleY(0);
|
|
transform-origin: top;
|
|
transition: all 0.2s ease-in-out;
|
|
width: 140px;
|
|
z-index: 20;
|
|
|
|
@include md {
|
|
width: 180px;
|
|
}
|
|
|
|
> li {
|
|
a {
|
|
background-color: $link-color;
|
|
color: #fff;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 5px 8px;
|
|
text-align: left;
|
|
text-decoration: none;
|
|
|
|
svg {
|
|
margin-top: 2px;
|
|
|
|
@include md {
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.overlay {
|
|
background-color: #000;
|
|
bottom: 0;
|
|
height: 0;
|
|
left: 0;
|
|
opacity: 0;
|
|
pointer-events: all;
|
|
position: fixed;
|
|
right: 0;
|
|
top: 0;
|
|
transition: all 0.2s ease-in;
|
|
z-index: 10;
|
|
}
|
|
|
|
.menu {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
list-style: none;
|
|
margin: 2rem auto 0;
|
|
padding: 0;
|
|
width: 50%;
|
|
|
|
@include md-only {
|
|
display: none;
|
|
}
|
|
|
|
> li {
|
|
text-align: center;
|
|
width: 100%;
|
|
|
|
.title {
|
|
color: lighten($link-color, 10%);
|
|
font-size: 2rem;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.keyboard {
|
|
color: lighten($link-color, 15%);
|
|
display: block;
|
|
margin-top: 0.2rem;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
}
|
|
|
|
.switch {
|
|
background-color: lighten($link-color, 10%);
|
|
border-radius: 5px;
|
|
display: inline-flex;
|
|
margin-left: 1rem;
|
|
|
|
> a {
|
|
color: #fff;
|
|
display: flex;
|
|
font-size: 2rem;
|
|
line-height: 1;
|
|
padding: 0.2rem 1.3rem;
|
|
text-decoration: none !important;
|
|
|
|
&:last-of-type {
|
|
border-left: 1px solid $bg-color;
|
|
}
|
|
|
|
&.disabled {
|
|
color: lighten($link-color, 20%);
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.tag-cloud {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-flow: wrap;
|
|
justify-content: space-around;
|
|
margin-top: 2rem;
|
|
|
|
a {
|
|
background-color: $link-color;
|
|
border-radius: 5px;
|
|
color: #fff;
|
|
display: inline-block;
|
|
margin: 1rem;
|
|
padding: 0.5rem 1rem;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
&.show-menu {
|
|
.categories__menu {
|
|
display: block;
|
|
opacity: 1;
|
|
transform: translateY(0) scaleY(1);
|
|
}
|
|
|
|
.overlay {
|
|
height: auto;
|
|
opacity: 0.4;
|
|
}
|
|
}
|
|
}
|