feat(shian): allow menu on both sides of header

This commit is contained in:
Damillora 2021-04-15 13:09:45 +07:00
parent 7735874650
commit 80b7edc301
2 changed files with 77 additions and 51 deletions

View File

@ -2,13 +2,15 @@
.site-header {
position: fixed;
z-index: 10;
height: 4rem;
width: 100vw;
height: 3rem;
width: 100%;
overflow: hidden;
@include transition;
&.enabled {
height: 100vh;
width: 100vw;
}
@include screen(md) {
height: 4rem;
}
&__background {
@ -51,6 +53,7 @@
&__top {
display: flex;
flex-direction: row;
height: 100%;
}
&__title {
@ -60,7 +63,10 @@
display: flex;
flex-direction: row;
align-items: center;
@include py(0.5rem);
@include screen(md) {
@include py(1rem);
}
color: $white;
font-size: $text-lg;
padding-left: 1rem;
@ -72,23 +78,41 @@
}
&__nav-button {
width: 4rem;
height: 4rem;
display: flex;
flex-direction: row;
align-items: center;
height: 100%;
position: relative;
cursor: pointer;
padding: 0.5rem;
@include screen(md) {
@include py(1rem);
}
text-align: center;
white-space: nowrap;
@include transition;
&:hover {
background-color: $theme-blue;
}
p {
color: $white;
margin-right: 0.5rem;
display: none;
@include screen(md) {
display: block;
}
}
}
&__icon {
width: 3rem;
height: 3rem;
height: 100%;
color: $white;
display: inline-block;
@include px(0.50rem);
@include py(0.75rem);
vertical-align: middle;
// @include py(0.25rem);
// @include screen(md) {
// @include py(0.75rem);
// }
}
}

View File

@ -3,7 +3,6 @@
display: block;
@include transition;
overflow: hidden;
&.enabled {
max-height: 100vh;
}
@ -15,6 +14,9 @@
align-items: center;
cursor: pointer;
@include transition;
@include screen(md) {
height: 4rem;
}
&:hover {
background-color: $theme-blue;
@ -33,7 +35,7 @@
height: 3rem;
color: $white;
text-align: center;
@include px(0.50rem);
@include px(0.5rem);
@include py(0.75rem);
}
p {