85 lines
1.6 KiB
SCSS
85 lines
1.6 KiB
SCSS
/**
|
|
* Site header
|
|
*/
|
|
.site-header {
|
|
border-top: 5px solid $grey-color-dark;
|
|
border-bottom: 1px solid $grey-color-light;
|
|
min-height: 56px;
|
|
|
|
// Positioning context for the mobile navigation icon
|
|
position: relative;
|
|
}
|
|
|
|
.site-title {
|
|
font-size: 26px;
|
|
line-height: 56px;
|
|
letter-spacing: -1px;
|
|
margin-bottom: 0;
|
|
float: left;
|
|
|
|
> a {
|
|
font-weight: 300;
|
|
color: $grey-color-dark;
|
|
}
|
|
}
|
|
|
|
.site-nav {
|
|
float: right;
|
|
line-height: 56px;
|
|
|
|
.menu-icon {
|
|
display: none;
|
|
}
|
|
|
|
.page-link {
|
|
color: $text-color;
|
|
line-height: $base-line-height;
|
|
|
|
// Gaps between nav items, but not on the first one
|
|
&:not(:first-child) {
|
|
margin-left: 20px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 600px) {
|
|
position: absolute;
|
|
top: 9px;
|
|
right: 30px;
|
|
background-color: $background-color;
|
|
border: 1px solid $grey-color-light;
|
|
border-radius: 5px;
|
|
text-align: right;
|
|
|
|
.menu-icon {
|
|
display: block;
|
|
float: right;
|
|
width: 36px;
|
|
height: 36px;
|
|
line-height: 0;
|
|
padding-top: 10px;
|
|
text-align: center;
|
|
|
|
> svg {
|
|
fill: $grey-color-dark;
|
|
width: 18px;
|
|
height: 15px;
|
|
}
|
|
}
|
|
|
|
.trigger {
|
|
clear: both;
|
|
display: none;
|
|
}
|
|
|
|
&:hover .trigger {
|
|
display: block;
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
.page-link {
|
|
display: block;
|
|
padding: 5px 10px;
|
|
}
|
|
}
|
|
}
|