hacks-guide-minimal-mistake.../_sass/minimal-mistakes/_masthead.scss

77 lines
1.3 KiB
SCSS
Raw Normal View History

2016-03-10 19:06:59 +01:00
/* ==========================================================================
MASTHEAD
========================================================================== */
.masthead {
position: relative;
2016-04-04 03:23:24 +02:00
border-bottom: 1px solid $border-color;
-webkit-animation: intro 0.3s both;
animation: intro 0.3s both;
-webkit-animation-delay: 0.15s;
animation-delay: 0.15s;
z-index: 20;
2016-03-21 21:36:24 +01:00
2016-04-04 03:23:24 +02:00
&__inner-wrap {
@include container;
@include clearfix;
display: -webkit-box;
display: flex;
-webkit-box-pack: justify;
justify-content: space-between;
padding: 1em 1em 1em;
2016-04-04 03:23:24 +02:00
font-family: $sans-serif-narrow;
2016-03-21 21:36:24 +01:00
2016-04-04 03:23:24 +02:00
@include breakpoint($x-large) {
max-width: $x-large;
}
2016-03-10 19:06:59 +01:00
2016-04-04 03:23:24 +02:00
nav {
z-index: 10;
}
2016-03-21 21:36:24 +01:00
2016-04-04 03:23:24 +02:00
a {
text-decoration: none;
}
2016-03-10 19:06:59 +01:00
}
}
.site-title {
display: -webkit-box;
display: flex;
padding: 0.5rem 0;
2017-02-14 18:42:50 +01:00
align-self: stretch;
-webkit-box-align: center;
align-items: center;
font-weight: bold;
z-index: 20;
}
2016-03-10 19:06:59 +01:00
.masthead__menu {
width: 100%;
.site-nav {
margin-left: 0;
@include breakpoint($small) {
float: right;
}
}
2016-03-21 21:36:24 +01:00
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;
white-space: nowrap;
2016-04-04 03:23:24 +02:00
&--lg {
2016-06-06 21:15:20 +02:00
padding-right: 2em;
font-weight: 700;
2016-04-04 03:23:24 +02:00
}
}