92 lines
1.3 KiB
SCSS
92 lines
1.3 KiB
SCSS
// FIXME: create <MenuButton> component
|
|
|
|
.menu-hide-button,
|
|
.menu-show-button {
|
|
display: none;
|
|
z-index: 31;
|
|
font-weight: bold;
|
|
font-size: 2rem;
|
|
color: $grey-400;
|
|
line-height: 1;
|
|
transition: all $transition;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
height: 1rem;
|
|
color: $grey-600;
|
|
}
|
|
}
|
|
|
|
.menu-show-button {
|
|
height: .75rem;
|
|
width: 2rem;
|
|
|
|
@media screen and (max-width: $tablet) {
|
|
display: block;
|
|
margin-left: $hamburger-menu-icon-spacing;
|
|
}
|
|
|
|
// menu line icon and animationanimation // START
|
|
&::before,
|
|
&::after {
|
|
display: block;
|
|
content: '';
|
|
border-top: 3px solid $grey-400;
|
|
border-radius: $radius;
|
|
transition: all $transition;
|
|
}
|
|
|
|
&::before {
|
|
margin-bottom: .5rem;
|
|
}
|
|
|
|
&::after {
|
|
margin-top: .5rem;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
&::before {
|
|
margin-bottom: .75rem;
|
|
}
|
|
|
|
&::after {
|
|
margin-top: .75rem;
|
|
}
|
|
}
|
|
// menu line animation // END
|
|
}
|
|
|
|
.menu-hide-button {
|
|
position: fixed;
|
|
|
|
@media screen and (max-width: $tablet) {
|
|
display: block;
|
|
top: $hamburger-menu-icon-spacing;
|
|
right: $hamburger-menu-icon-spacing;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: $text;
|
|
}
|
|
}
|
|
|
|
.navbar-brand .menu-show-button {
|
|
display: block;
|
|
}
|
|
|
|
@media screen and (max-width: $tablet) {
|
|
.navbar.is-dark .navbar-brand > .navbar-item {
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
.menu-bottom-link {
|
|
width: 100%;
|
|
color: $grey-300;
|
|
text-align: center;
|
|
display: block;
|
|
margin: 1rem 0;
|
|
font-size: .8rem;
|
|
}
|