hacks-guide-minimal-mistake.../assets/_scss/_masthead.scss

73 lines
1.4 KiB
SCSS
Raw Normal View History

2016-03-10 19:06:59 +01:00
/* ==========================================================================
MASTHEAD
========================================================================== */
.masthead {
@include container;
@include clearfix;
padding: 2em 2em 1em;
2016-03-10 19:06:59 +01:00
font-family: $sans-serif-narrow;
font-weight: 700;
text-transform: uppercase;
2016-03-20 20:20:33 +01:00
@include breakpoint($large) {
2016-03-17 20:50:22 +01:00
padding-left: 1em;
padding-right: 1em;
}
@include breakpoint($x-large) {
max-width: $x-large;
}
2016-03-10 19:06:59 +01:00
a {
text-decoration: none;
}
}
/* Site name */
.site-name {
2016-03-20 20:20:33 +01:00
@include breakpoint($large) {
@include prefix(2 of 12);
}
@include breakpoint($x-large) {
@include prefix(2.5 of 12);
2016-03-10 19:06:59 +01:00
}
font-size: 24px;
2016-03-10 19:06:59 +01:00
}
.masthead__menu {
2016-03-20 20:20:33 +01:00
@include breakpoint($large) {
@include prefix(2 of 12);
}
@include breakpoint($x-large) {
@include prefix(2.5 of 12);
2016-03-10 19:06:59 +01:00
}
margin-bottom: 1em;
2016-03-10 19:06:59 +01:00
ul {
margin: 0;
padding: 0;
clear: both;
list-style-type: none;
}
}
.masthead__menu-item {
display: block;
list-style-type: none;
border-bottom: 1px solid $border-color;
font-size: 16px;
&:last-child {
border-bottom: 0 solid transparent;
}
@include breakpoint($small) {
display: inline;
margin-right: 25px;
white-space: nowrap;
border-bottom: 0 solid transparent;
}
a {
display: block;
padding: 10px 0;
@include breakpoint($small) {
display: inline;
padding: 0;
}
}
}