Skip to content

Commit

Permalink
Moving select css properties away from #id-masthead and onto .b-masth…
Browse files Browse the repository at this point in the history
…ead to allow for the proper creation of modifers in the future
  • Loading branch information
troychaplin committed Jan 8, 2020
1 parent 30cdbbf commit 9e46859
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/_blocks/masthead/_masthead.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,29 @@ body {
left: 0;
right: 0;
z-index: 10000;
// Visual
// background-color: white;
border-top: 2px solid $red;
border-bottom: 1px solid $grey-kenobi;
height: 75px;
}

//
// Masthead Color Modifiers
// -----------------------------

.b-masthead {
background-color: white;
border-top: 2px solid $red;
border-bottom: 1px solid $grey-kenobi;
height: calc(#{$masthead_height} + 3px);

& .c-nav,
& > ul,
& .c-nav > ul {
height: $masthead_height;
}
}

.b-masthead,
.b-masthead .c-nav,
.b-masthead > ul,
.b-masthead .c-nav > ul {
height: $masthead_height;
display: flex;
align-items: center;

Expand Down Expand Up @@ -153,7 +160,7 @@ body {

&:hover {
color: $red;
background-color: white;
background-color: transparent;
}

@include media(">s") {
Expand Down

0 comments on commit 9e46859

Please sign in to comment.