Skip to content

Commit

Permalink
Create Masthead component (#439)
Browse files Browse the repository at this point in the history
* Create a masthead component with multiple variants.
  • Loading branch information
yvonnetangsu authored and sherakama committed Jun 17, 2019
1 parent 41b8ebd commit 5b7712d
Show file tree
Hide file tree
Showing 19 changed files with 689 additions and 65 deletions.
191 changes: 180 additions & 11 deletions core/dist/css/decanter.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion core/src/scss/components/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
'main-nav/index',
'quote/index',
'site-search/index',
'skiplinks/index';
'skiplinks/index',
'masthead/index';
13 changes: 13 additions & 0 deletions core/src/scss/components/masthead/_masthead--center.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@charset "UTF-8";

// Masthead with center-aligned Main Nav

.su-masthead--center {
.su-main-nav {
@include grid-media-min("lg") {
> ul {
justify-content: center;
}
}
}
}
20 changes: 20 additions & 0 deletions core/src/scss/components/masthead/_masthead--dark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@charset "UTF-8";

// Masthead with dark color theme

.su-masthead--dark {
background-color: color(bg--reverse);

.su-lockup__wordmark,
.su-lockup__line1,
.su-lockup__line2,
.su-lockup__line3,
.su-lockup__line4,
.su-lockup__line5 {
color: color(link--reverse);
}

.su-lockup__cell2 {
border-color: color(link--reverse);
}
}
13 changes: 13 additions & 0 deletions core/src/scss/components/masthead/_masthead--right.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@charset "UTF-8";

// Masthead with right-aligned Main Nav

.su-masthead--right {
.su-main-nav {
@include grid-media-min("lg") {
> ul {
justify-content: flex-end;
}
}
}
}
Loading

0 comments on commit 5b7712d

Please # to comment.