mirror of
https://github.com/KevinMidboe/schleppe-lab.git
synced 2025-10-29 09:40:39 +00:00
99 lines
1.7 KiB
SCSS
99 lines
1.7 KiB
SCSS
/**
|
|
* Site header
|
|
*/
|
|
.site-header {
|
|
border-bottom: 3px dashed $grey-color-light;
|
|
border-bottom: 3px dashed rgba(254, 168, 106, 0.6);
|
|
min-height: calc(var(--spacing-unit) * 1.865);
|
|
|
|
// Positioning context for the mobile navigation icon
|
|
position: relative;
|
|
}
|
|
|
|
.site-title {
|
|
@include relative-font-size(1.625);
|
|
font-weight: 300;
|
|
line-height: $base-line-height * $base-font-size * 2.25;
|
|
letter-spacing: -1px;
|
|
margin-bottom: 0;
|
|
float: left;
|
|
}
|
|
|
|
.site-nav {
|
|
float: right;
|
|
line-height: $base-line-height * $base-font-size * 2.25;
|
|
|
|
.nav-trigger {
|
|
display: none;
|
|
}
|
|
|
|
.menu-icon {
|
|
display: none;
|
|
}
|
|
|
|
.page-link {
|
|
color: $text-color;
|
|
line-height: $base-line-height;
|
|
|
|
// Gaps between nav items, but not on the last one
|
|
&:not(:last-child) {
|
|
margin-right: 20px;
|
|
}
|
|
}
|
|
|
|
@include media-query($on-palm) {
|
|
position: absolute;
|
|
top: 9px;
|
|
right: calc(var(--spacing-unit) / 2);
|
|
background-color: $background-color;
|
|
border: 1px solid $grey-color-light;
|
|
border-radius: 5px;
|
|
text-align: right;
|
|
|
|
label[for="nav-trigger"] {
|
|
display: block;
|
|
float: right;
|
|
width: 36px;
|
|
height: 36px;
|
|
z-index: 2;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.menu-icon {
|
|
display: block;
|
|
float: right;
|
|
width: 36px;
|
|
height: 26px;
|
|
line-height: 0;
|
|
padding-top: 10px;
|
|
text-align: center;
|
|
|
|
> svg {
|
|
fill: $grey-color-dark;
|
|
}
|
|
}
|
|
|
|
input ~ .trigger {
|
|
clear: both;
|
|
display: none;
|
|
}
|
|
|
|
input:checked ~ .trigger {
|
|
display: block;
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
.page-link {
|
|
display: block;
|
|
padding: 5px 10px;
|
|
|
|
&:not(:last-child) {
|
|
margin-right: 0;
|
|
}
|
|
margin-left: 20px;
|
|
}
|
|
}
|
|
}
|
|
|
|
|