This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2168dfc
commit 78dea93
Showing
11 changed files
with
97 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,70 @@ | ||
// ========== Primary Navigation ========== // | ||
|
||
.nav-primary { | ||
background: $navigation__nav-primary--mobile-background; | ||
font-size: $navigation__nav-primary--mobile-font-size; | ||
font-weight: $navigation__nav-primary--mobile-font-weight; | ||
@include media($navigation__breakpoint) { | ||
color: $navigation__nav-primary--desktop-color; | ||
background: $navigation__nav-primary--desktop-background; | ||
font-size: $navigation__nav-primary--desktop-font-size; | ||
font-weight: $navigation__nav-primary--desktop-font-weight; | ||
} | ||
|
||
.genesis-nav-menu { | ||
justify-content: $navigation__nav-primary--justify-content; | ||
max-width: $navigation__nav-primary--max-width; | ||
} | ||
|
||
.menu-item a { | ||
color: $navigation__nav-primary--mobile-color; | ||
padding: $navigation__nav-primary-menu-item--mobile-padding; | ||
@include media($navigation__breakpoint) { | ||
color: $navigation__nav-primary--desktop-color; | ||
padding: $navigation__nav-primary-menu-item--desktop-padding; | ||
background: white; | ||
@include media($navigation__breakpoint) {} | ||
|
||
|
||
|
||
// ========== Top Level Menu ========== // | ||
|
||
.genesis-nav-menu { | ||
justify-content: center; | ||
max-width: 1280px; | ||
} | ||
|
||
&:focus, | ||
&:hover, | ||
.current-menu-item > a | ||
.sub-menu .current-menu-item > a:focus, | ||
.sub-menu .current-menu-item > a:hover { | ||
color: $navigation__nav-primary-menu-item--mobile-color-hover; | ||
background: $navigation__nav-primary-menu-item--mobile-background-hover; | ||
@include media($navigation__breakpoint) { | ||
color: $navigation__nav-primary-menu-item--desktop-color-hover; | ||
background: $navigation__nav-primary-menu-item--desktop-background-hover; | ||
// Menu Items. | ||
.genesis-nav-menu > .menu-item { | ||
|
||
& > a { | ||
color: $color--text-dark; | ||
font-size: 18px; | ||
font-weight: bold; | ||
padding: 15px; | ||
@include media($navigation__breakpoint) {} | ||
} | ||
} | ||
} | ||
|
||
.sub-menu { | ||
background: $navigation__nav-primary-sub-menu--mobile-background; | ||
width: $navigation__nav-primary-sub-menu--width; | ||
@include media($navigation__breakpoint) { | ||
background: $navigation__nav-primary-sub-menu--desktop-background; | ||
|
||
|
||
// ========== Sub Level Menu ========== // | ||
|
||
.sub-menu { | ||
background: white; | ||
@include media($navigation__breakpoint) {} | ||
} | ||
a { | ||
color: $navigation__nav-primary-sub-menu-item--mobile-color; | ||
font-size: $navigation__nav-primary-sub-menu--mobile-font-size; | ||
font-weight: $navigation__nav-primary-sub-menu--mobile-font-weight; | ||
@include media($navigation__breakpoint) { | ||
color: $navigation__nav-primary-sub-menu-item--desktop-color; | ||
font-size: $navigation__nav-primary-sub-menu--desktop-font-size; | ||
font-weight: $navigation__nav-primary-sub-menu--desktop-font-weight; | ||
} | ||
&:hover, &:focus { | ||
color: $navigation__nav-primary-sub-menu-item--mobile-color-hover; | ||
@include media($navigation__breakpoint) { | ||
color: $navigation__nav-primary-sub-menu-item--desktop-color-hover; | ||
background: $navigation__nav-primary-sub-menu-item--desktop-background-hover; | ||
} | ||
|
||
// Menu Items. | ||
.sub-menu > .menu-item { | ||
|
||
& > a { | ||
color: $color--text-dark; | ||
font-size: 16px; | ||
font-weight: normal; | ||
padding: 15px; | ||
@include media($navigation__breakpoint) {} | ||
} | ||
} | ||
} | ||
|
||
.sub-menu-toggle { | ||
color: $navigation__nav-primary--mobile-color; | ||
background: $navigation__nav-primary--mobile-background; | ||
.sub-menu .menu-item-has-children & { | ||
color: $navigation__nav-primary-sub-menu-item--mobile-color; | ||
background: $navigation__nav-primary-sub-menu--mobile-background; | ||
|
||
|
||
|
||
// ========== Menu Item Effects ========== // | ||
|
||
// Currently viewing. | ||
.genesis-nav-menu .current-menu-item > a, | ||
.sub-menu .current-menu-item > a { | ||
|
||
&:hover, | ||
&:focus {} | ||
} | ||
|
||
// Hover and focus. (Must use mixin to properly apply styles. This allows for the sfHover styles to only be applied on desktop screens.) | ||
@mixin menu-item-hover-effects { | ||
color: $color--link-dark-hover; | ||
background: $color--quaternary; | ||
} | ||
} | ||
} | ||
|
||
#genesis-mobile-nav-primary.menu-toggle { | ||
color: $navigation__nav-primary--mobile-color; | ||
background: $navigation__nav-primary--mobile-background; | ||
.menu-item a:hover, | ||
.menu-item a:focus {@include menu-item-hover-effects;} | ||
@include media($navigation__breakpoint) {.menu-item.sfHover > a {@include menu-item-hover-effects;}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ | |
@import 'colors'; | ||
@import 'layout'; | ||
@import 'breakpoints'; | ||
@import 'navigation'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters