mirror of https://github.com/Damillora/Shian.git
126 lines
2.1 KiB
SCSS
126 lines
2.1 KiB
SCSS
.site-header {
|
|
position: fixed;
|
|
z-index: 10;
|
|
height: 3rem;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
@include transition;
|
|
&.enabled {
|
|
height: 100%;
|
|
}
|
|
@include screen(md) {
|
|
height: 4rem;
|
|
}
|
|
|
|
&__background {
|
|
z-index: -1;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
position: absolute;
|
|
@include transition;
|
|
|
|
opacity: 0%;
|
|
top: -23vh;
|
|
}
|
|
&.enabled &__background {
|
|
opacity: 100%;
|
|
top: 0;
|
|
}
|
|
&__overlay {
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
&__inner {
|
|
z-index: 1;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
@include transition;
|
|
}
|
|
|
|
&.enabled &__inner {
|
|
background: rgba(0, 0, 0, 0.5);
|
|
}
|
|
&.detached &__inner {
|
|
background: rgba(0, 0, 0, 0.5);
|
|
}
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
@include transition;
|
|
|
|
@include screen(md) {
|
|
height: 4rem;
|
|
flex-direction: row;
|
|
}
|
|
&__top {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-grow: 1;
|
|
height: 3rem;
|
|
@include screen(md) {
|
|
height: 4rem;
|
|
}
|
|
}
|
|
|
|
&__title {
|
|
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;
|
|
height: 100%;
|
|
flex-grow: 1;
|
|
@include transition;
|
|
&:hover {
|
|
background-color: $theme-blue;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
&__nav-button {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
height: 100%;
|
|
position: relative;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
@include transition;
|
|
@include screen(md) {
|
|
display: none;
|
|
}
|
|
&:hover {
|
|
background-color: $theme-blue;
|
|
}
|
|
}
|
|
&__nav-button-text {
|
|
color: $white;
|
|
margin-right: 0.5rem;
|
|
display: none;
|
|
@include screen(md) {
|
|
display: block;
|
|
}
|
|
}
|
|
&__icon {
|
|
width: 3rem;
|
|
color: $white;
|
|
display: inline-block;
|
|
@include px(0.5rem);
|
|
vertical-align: middle;
|
|
// @include py(0.25rem);
|
|
// @include screen(md) {
|
|
// @include py(0.75rem);
|
|
// }
|
|
}
|
|
}
|