110 lines
2.5 KiB
SCSS
110 lines
2.5 KiB
SCSS
|
/* header bar */
|
||
|
.site-header {background: #ddd; filter: drop-shadow(0px -1px 2px rgba(0,0,0,0.2))}
|
||
|
.site-header a {text-decoration: none; color: inherit;}
|
||
|
.site-title {font-weight: 700; font-size: 22px; line-height: 2em;}
|
||
|
.site-header .container {display: flex; flex-flow: row wrap;}
|
||
|
.site-nav {flex-basis: 100%; display: flex; flex-flow: column;}
|
||
|
.site-nav a {display: block; padding: 1em 0;}
|
||
|
|
||
|
/* css menu */
|
||
|
.site-nav {
|
||
|
display: none;
|
||
|
@media (min-width: 600px) {
|
||
|
display: flex;
|
||
|
flex-basis: unset;
|
||
|
flex-flow: row;
|
||
|
ul {
|
||
|
display: flex;
|
||
|
}
|
||
|
a {
|
||
|
margin-left: 1em;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.site-header {
|
||
|
position: fixed; bottom: 0; width: 100%;
|
||
|
@media (min-width: 600px) {
|
||
|
position: sticky;
|
||
|
bottom: unset;
|
||
|
top: 0;
|
||
|
z-index: 2;
|
||
|
a {height: 44px;}
|
||
|
a:hover {border-bottom: 2px solid #00a3ff;}
|
||
|
.container {justify-content: space-between; flex-flow: row wrap; height: 64px; align-items: center;}
|
||
|
}
|
||
|
}
|
||
|
body {
|
||
|
margin-bottom: 44px;
|
||
|
@media (min-width: 600px) {margin-bottom: unset;}
|
||
|
}
|
||
|
.hamburger-label::before {content:"Menu"; position: absolute; left: -3em; }
|
||
|
#hamburger:checked ~ .site-nav {
|
||
|
display: flex;
|
||
|
}
|
||
|
#hamburger {
|
||
|
transition: all 0.5s;
|
||
|
box-sizing: border-box;
|
||
|
display: none;
|
||
|
}
|
||
|
.hamburger-label {
|
||
|
transition: all 0.5s;
|
||
|
box-sizing: border-box;
|
||
|
cursor: pointer;
|
||
|
position: absolute;
|
||
|
z-index: 99;
|
||
|
height: 100%;
|
||
|
width: 100%;
|
||
|
top: 16px;
|
||
|
right: 15px;
|
||
|
height: 22px;
|
||
|
width: 22px;
|
||
|
}
|
||
|
.spinner {
|
||
|
transition: all 0.5s;
|
||
|
box-sizing: border-box;
|
||
|
position: absolute;
|
||
|
height: 3px;
|
||
|
width: 100%;
|
||
|
background-color: black;
|
||
|
}
|
||
|
.horizontal {
|
||
|
transition: all 0.5s;
|
||
|
box-sizing: border-box;
|
||
|
position: relative;
|
||
|
float: left;
|
||
|
margin-top: 3px;
|
||
|
}
|
||
|
.diagonal.part-1 {
|
||
|
position: relative;
|
||
|
transition: all 0.5s;
|
||
|
box-sizing: border-box;
|
||
|
float: left;
|
||
|
}
|
||
|
.diagonal.part-2 {
|
||
|
transition: all 0.5s;
|
||
|
box-sizing: border-box;
|
||
|
position: relative;
|
||
|
float: left;
|
||
|
margin-top: 3px;
|
||
|
}
|
||
|
#hamburger:checked ~ .hamburger-label > .horizontal {
|
||
|
transition: all 0.5s;
|
||
|
box-sizing: border-box;
|
||
|
opacity: 0;
|
||
|
}
|
||
|
#hamburger:checked ~ .hamburger-label > .diagonal.part-1 {
|
||
|
transition: all 0.5s;
|
||
|
box-sizing: border-box;
|
||
|
transform: rotate(135deg);
|
||
|
margin-top: 8px;
|
||
|
}
|
||
|
#hamburger:checked ~ .hamburger-label > .diagonal.part-2 {
|
||
|
transition: all 0.5s;
|
||
|
box-sizing: border-box;
|
||
|
transform: rotate(-135deg);
|
||
|
margin-top: -9px;
|
||
|
}
|
||
|
@media (min-width: 600px) {
|
||
|
#hamburger, .hamburger-label {display: none;}
|
||
|
}
|