224 lines
5.3 KiB
SCSS
224 lines
5.3 KiB
SCSS
#header {
|
|
$transition-time: 0.4s;
|
|
position: fixed;
|
|
width: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
font-family: $heading-font-family;
|
|
z-index: 2000;
|
|
|
|
&.small {
|
|
transition: $transition-time;
|
|
|
|
.navbar-logo {
|
|
flex: 0 1 0;
|
|
min-width: 100px;
|
|
|
|
img {
|
|
max-height: 25px;
|
|
transition: $transition-time * 1.5;
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
@media only screen and (min-width: $media-query) {
|
|
.navbar-logo {
|
|
img {
|
|
transition: $transition-time * 1.5;
|
|
max-height: 40px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.large {
|
|
transition: $transition-time;
|
|
|
|
.navbar-logo {
|
|
flex: 0 1 0;
|
|
min-width: 100px;
|
|
|
|
img {
|
|
max-height: 50px;
|
|
width: auto;
|
|
transition: $transition-time * 1.5;
|
|
}
|
|
}
|
|
|
|
@media only screen and (min-width: $media-query) {
|
|
.navbar-logo {
|
|
img {
|
|
max-height: 100px;
|
|
transition: $transition-time * 1.5;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.hidden {
|
|
transition: $transition-time;
|
|
top: -200px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.3rem;
|
|
display: inline;
|
|
margin: $gutter-width;
|
|
padding: 0;
|
|
}
|
|
|
|
.container {
|
|
border-radius: 0 0 $border-radius $border-radius;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.navbar {
|
|
@extend .flex;
|
|
@extend .column;
|
|
justify-content: space-between;
|
|
align-items: stretch;
|
|
padding: 0 $gutter-width;
|
|
flex: 1 0 0;
|
|
min-width: 0;
|
|
|
|
@media only screen and (min-width: $media-query) {
|
|
max-width: none;
|
|
}
|
|
|
|
input[type=checkbox] {
|
|
display: none;
|
|
|
|
& + label {
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-top: $gutter-width;
|
|
max-width: 35px;
|
|
max-height: 35px;
|
|
min-width: 35px;
|
|
min-height: 35px;
|
|
|
|
.toggler {
|
|
position: relative;
|
|
display: block;
|
|
cursor: pointer;
|
|
width: 35px;
|
|
height: 30px;
|
|
background-color: transparent;
|
|
|
|
.line {
|
|
height: 4px;
|
|
width: 35px;
|
|
background: black;
|
|
border-radius: 2px;
|
|
transition: 0.4s;
|
|
transform-origin: center;
|
|
position: absolute;
|
|
}
|
|
|
|
.line:nth-child(1) {
|
|
top: 0px;
|
|
}
|
|
|
|
.line:nth-child(2) {
|
|
top: 10px;
|
|
transition: 0.1s;
|
|
}
|
|
|
|
.line:nth-child(3) {
|
|
top: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
input[type=checkbox]:checked+.hamburger .line:nth-child(1) {
|
|
transform: translateY(10px) rotate(-45deg);
|
|
}
|
|
|
|
input[type=checkbox]:checked+.hamburger .line:nth-child(2) {
|
|
opacity: 0;
|
|
}
|
|
|
|
input[type=checkbox]:checked+.hamburger .line:nth-child(3) {
|
|
transform: translateY(-10px) rotate(45deg);
|
|
}
|
|
|
|
ul {
|
|
display: none;
|
|
}
|
|
|
|
input[type=checkbox]:checked ~ .navbar-container nav ul {
|
|
@include menu-list(column);
|
|
|
|
li {
|
|
text-align: right;
|
|
flex: 0 0 0;
|
|
margin: $gutter-width 0;
|
|
font-size: 1.1rem;
|
|
font-weight: bold;
|
|
|
|
a {
|
|
&:active,
|
|
&:hover {
|
|
color: darken($primary-color, 15%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.navbar-container {
|
|
margin-top: auto;
|
|
min-width: 0;
|
|
|
|
nav {
|
|
@extend .flex;
|
|
@extend .column;
|
|
align-items: flex-end;
|
|
height: 100%;
|
|
|
|
|
|
@media only screen and (min-width: $media-query) {
|
|
& {
|
|
justify-content: flex-end;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
ul {
|
|
@include menu-list(row);
|
|
|
|
align-items: flex-end;
|
|
height: 100%;
|
|
|
|
li {
|
|
font-size: 1.1rem;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media only screen and (min-width: $media-query) {
|
|
input[type=checkbox] {
|
|
display: none;
|
|
|
|
& + label {
|
|
display: none;
|
|
|
|
.line {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
ul:last-child {
|
|
li {
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|