-
Notifications
You must be signed in to change notification settings - Fork 84
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
Showing
26 changed files
with
686 additions
and
138 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
(function ( $ ) { | ||
$.neveNavigation = { | ||
'init': function () { | ||
this.repositionDropdowns(); | ||
this.handleResponsiveNav(); | ||
}, | ||
'repositionDropdowns': function () { | ||
var windowWidth = window.innerWidth; | ||
//Do nothing on mobile. | ||
if ( windowWidth <= 768 ) { | ||
return false; | ||
} | ||
//Do nothing without dropdowns. | ||
var dropdowns = $( '.sub-menu .sub-menu' ); | ||
if ( dropdowns.length === 0 ) { | ||
return false; | ||
} | ||
//Loop dropdowns and move them if needed. | ||
$.each( dropdowns, function ( key, dropdown ) { | ||
var submenu = $( dropdown ); | ||
var bounding = submenu.offset().left; | ||
if ( /webkit.*mobile/i.test( navigator.userAgent ) ) { | ||
bounding -= window.scrollX; | ||
} | ||
var dropdownWidth = submenu.outerWidth(); | ||
if ( bounding + dropdownWidth >= windowWidth ) { | ||
$( dropdown ).css( { 'right': '100%', 'left': 'auto' } ); | ||
} | ||
} ); | ||
return false; | ||
}, | ||
'handleResponsiveNav': function () { | ||
$( '.navbar-toggle' ).on( 'click touchstart', function () { | ||
|
||
} ); | ||
|
||
} | ||
}; | ||
|
||
}( jQuery )); |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* Handles the order for all the scripts. | ||
* @param $ | ||
*/ | ||
var neveScripts = function ( $ ) { | ||
$.neveNavigation.init(); | ||
}; | ||
|
||
neveScripts( jQuery ); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
footer { | ||
background-color: #fff; | ||
border-top: $muted-border; | ||
} | ||
|
||
.nv-footer-content, .nv-footer-widgets { | ||
padding: $spacing-normal 0; | ||
padding: $spacing 0; | ||
} | ||
|
||
.nv-footer-widgets + .nv-footer-content { | ||
padding-top: 0; | ||
} | ||
|
||
.nv-footer-content .footer-menu { | ||
display: flex; | ||
flex-wrap: wrap; | ||
li { | ||
margin-right: $spacing-small; | ||
} | ||
@include horizontal-list($spacing-sm); | ||
} |
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,3 +1,3 @@ | ||
.navbar { | ||
background-color: #fff; | ||
} | ||
@import "navigation/nav-brand"; | ||
@import "navigation/nav-toggle"; | ||
@import "navigation/nav-menu"; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.site-logo{ | ||
max-width: 200px; | ||
img { | ||
max-height: 50px; | ||
float: left; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,119 @@ | ||
.nv-navbar { | ||
background-color: $navbar_background_color; | ||
} | ||
|
||
.nv-nav-header { | ||
display: flex; | ||
padding: $spacing-xs 0; | ||
} | ||
|
||
#nv-primary-navigation { | ||
max-height: 0; | ||
overflow: scroll; | ||
} | ||
|
||
.site-logo, .navbar-toggle-wrapper { | ||
flex: 1; | ||
} | ||
|
||
.navbar-toggle-wrapper { | ||
justify-content: flex-end; | ||
display: flex; | ||
} | ||
|
||
@mixin nav-menu--laptop() { | ||
.nv-navbar { | ||
padding: $spacing-sm 0; | ||
border-bottom: $muted-border; | ||
} | ||
|
||
.nv-nav-wrap { | ||
flex-direction: row; | ||
align-items: center; | ||
} | ||
.nv-nav-header { | ||
display: inherit; | ||
padding: 0; | ||
} | ||
|
||
#nv-primary-navigation { | ||
max-height: inherit; | ||
overflow: inherit; | ||
@include horizontal-list($spacing-sm); | ||
justify-content: flex-end; | ||
> li { | ||
padding: $spacing-sm 0; | ||
cursor: pointer; | ||
} | ||
li:hover > a { | ||
color: $link_hover_color; | ||
} | ||
li { | ||
position: relative; | ||
} | ||
} | ||
|
||
.sub-menu { | ||
z-index: 10; | ||
visibility: hidden; | ||
opacity: 0; | ||
transition: $transition_default; | ||
background-color: $navbar_background_color; | ||
position: absolute; | ||
border-top: 3px solid $link_color; | ||
.sub-menu { | ||
left: 100%; | ||
right: auto; | ||
top: -3px; | ||
} | ||
li { | ||
border: $muted-border; | ||
border-top: none; | ||
a { | ||
white-space: nowrap; | ||
display: block; | ||
padding: 10px; | ||
width: auto; | ||
min-width: 180px; | ||
} | ||
} | ||
.menu-item-has-children { | ||
> a:after { | ||
@include caret(-1px); | ||
border-color: $link_color; | ||
transform: rotate(135deg); | ||
transition: $transition_default; | ||
} | ||
&:hover > a:after { | ||
border-color: $link-hover_color; | ||
transform: rotate(45deg); | ||
} | ||
} | ||
} | ||
|
||
.menu-item-has-children { | ||
&:hover > .sub-menu { | ||
display: block; | ||
visibility: visible; | ||
opacity: 1; | ||
} | ||
} | ||
|
||
#nv-primary-navigation > .menu-item-has-children { | ||
> a:after { | ||
@include caret(-2px); | ||
border-color: $link_color; | ||
transform: rotate(135deg); | ||
transition: $transition_default; | ||
} | ||
&:hover > a:after { | ||
transform: rotate(-45deg); | ||
top: 0; | ||
border-color: $link_hover_color; | ||
} | ||
> .sub-menu { | ||
left: auto; | ||
right: 0; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@mixin nav-toggle--laptop() { | ||
.navbar-toggle { | ||
display: none; | ||
} | ||
} | ||
|
||
.icon-bar { | ||
transition: 250ms; | ||
position: relative; | ||
display: block; | ||
background: $theme_color; | ||
border-radius: 2px; | ||
width: 15px; | ||
height: 2px; | ||
&:nth-child(2) { | ||
margin: 3px 0; | ||
} | ||
} | ||
|
||
.navbar-toggle { | ||
border: none; | ||
background: none; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@media (min-width: #{$tablet-sm}) { | ||
@include grid-container--tablet-sm(); | ||
@include grid--tablet-sm(); | ||
} | ||
|
||
@media (min-width: #{$tablet}) { | ||
@include grid-container--tablet(); | ||
@include grid--tablet(); | ||
|
||
} | ||
|
||
@media (min-width: #{$laptop}) { | ||
@include grid-container--laptop(); | ||
@include grid--laptop(); | ||
@include nav-toggle--laptop(); | ||
@include nav-menu--laptop(); | ||
} | ||
|
||
@media (min-width: #{$desktop}) { | ||
@include grid-container--desktop(); | ||
@include grid--desktop(); | ||
} |
Oops, something went wrong.