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
13 changed files
with
553 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/*!------------------------------------*\ | ||
accessibility | ||
\*!------------------------------------*/ | ||
|
||
/*! | ||
* Only display content to screen readers | ||
* See: http://a11yproject.com/posts/how-to-hide-content | ||
*/ | ||
.sr-only { | ||
position: absolute; | ||
overflow: hidden; | ||
clip: rect(0, 0, 0, 0); | ||
width: 1px; | ||
height: 1px; | ||
margin: -1px; | ||
padding: 0; | ||
border: 0; | ||
} | ||
|
||
/*! | ||
* Use in conjunction with .sr-only to only display content when it's focused. | ||
* Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1 | ||
* Credit: HTML5 Boilerplate | ||
*/ | ||
.sr-only-focusable:active, | ||
.sr-only-focusable:focus { | ||
position: static; | ||
overflow: visible; | ||
clip: auto; | ||
width: auto; | ||
height: auto; | ||
margin: 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,60 @@ | ||
/*!------------------------------------*\ | ||
Base | ||
\*!------------------------------------*/ | ||
.drawer-nav { | ||
position: fixed; | ||
z-index: $drawer-nav-zIndex; | ||
top: 0; | ||
overflow: hidden; | ||
width: $drawer-width; | ||
height: 100%; | ||
color: $drawer-color; | ||
background-color: $drawer-bgColor; | ||
} | ||
|
||
.drawer-brand { | ||
font-size: $drawer-brand-fontSize; | ||
font-weight: bold; | ||
line-height: $drawer-navbar-height; | ||
display: block; | ||
padding-right: $drawer-gutter-x; | ||
padding-left: $drawer-gutter-x; | ||
text-decoration: none; | ||
color: $drawer-brand-color; | ||
} | ||
|
||
.drawer-menu { | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
} | ||
|
||
.drawer-menu-item { | ||
font-size: $drawer-fontSize; | ||
display: block; | ||
padding: $drawer-gutter-x; | ||
text-decoration: none; | ||
color: $drawer-link-color; | ||
} | ||
|
||
.drawer-menu-item:hover { | ||
text-decoration: underline; | ||
color: $drawer-hover-color; | ||
background-color: $drawer-hover-bgColor; | ||
} | ||
|
||
/*! overlay */ | ||
.drawer-overlay { | ||
position: fixed; | ||
z-index: $drawer-overlay-zIndex; | ||
top: 0; | ||
left: 0; | ||
display: none; | ||
width: 100%; | ||
height: 100%; | ||
background-color: $drawer-overlay-bgColor; | ||
} | ||
|
||
.drawer-open .drawer-overlay { | ||
display: block; | ||
} |
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,19 @@ | ||
/*!------------------------------------*\ | ||
Container | ||
\*!------------------------------------*/ | ||
.drawer-container { | ||
margin-right: auto; | ||
margin-left: auto; | ||
} | ||
|
||
@media #{$drawer-viewport-md} { | ||
.drawer-container { | ||
max-width: $drawer-container-maxWidth-md; | ||
} | ||
} | ||
|
||
@media #{$drawer-viewport-lg} { | ||
.drawer-container { | ||
max-width: $drawer-container-maxWidth-lg; | ||
} | ||
} |
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,11 @@ | ||
@import "./variables"; | ||
@import "./base"; | ||
@import "./position-top"; | ||
@import "./position-left"; | ||
@import "./position-right"; | ||
@import "./hamburger"; | ||
@import "./accessibility"; | ||
@import "./sidebar"; | ||
@import "./navbar"; | ||
@import "./dropdown"; | ||
@import "./container"; |
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,56 @@ | ||
/*!------------------------------------*\ | ||
Dropdown | ||
\*!------------------------------------*/ | ||
.drawer-dropdown-menu { | ||
display: none; | ||
box-sizing: border-box; | ||
width: 100%; | ||
margin: 0; | ||
padding: 0; | ||
background-color: $drawer-dropdown-bgColor; | ||
} | ||
|
||
.drawer-dropdown-menu > li { | ||
width: 100%; | ||
list-style: none; | ||
} | ||
|
||
.drawer-dropdown-menu-item { | ||
line-height: $drawer-navbar-height; | ||
display: block; | ||
padding: 0; | ||
padding-right: $drawer-gutter-x; | ||
padding-left: ($drawer-gutter-x * 2); | ||
text-decoration: none; | ||
color: $drawer-dropdown-color; | ||
} | ||
|
||
.drawer-dropdown-menu-item:hover { | ||
text-decoration: underline; | ||
color: $drawer-dropdown-hover-color; | ||
background-color: $drawer-dropdown-hover-bgColor; | ||
} | ||
|
||
/*! open */ | ||
.drawer-dropdown.open > .drawer-dropdown-menu { | ||
display: block; | ||
} | ||
|
||
/*! drawer-caret */ | ||
.drawer-dropdown .drawer-caret { | ||
display: inline-block; | ||
width: 0; | ||
height: 0; | ||
margin-left: 4px; | ||
transition: transform .2s ease, opacity .2s ease; | ||
transform: rotate(0deg); | ||
vertical-align: middle; | ||
border-top: 4px solid; | ||
border-right: 4px solid transparent; | ||
border-left: 4px solid transparent; | ||
} | ||
|
||
/*! open */ | ||
.drawer-dropdown.open .drawer-caret { | ||
transform: rotate(180deg); | ||
} |
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,70 @@ | ||
/*!------------------------------------*\ | ||
Hamburger | ||
\*!------------------------------------*/ | ||
.drawer-hamburger { | ||
position: fixed; | ||
z-index: $drawer-hamburger-zIndex; | ||
top: 0; | ||
display: block; | ||
box-sizing: content-box; | ||
width: $drawer-hamburger-width; | ||
padding: 0; | ||
padding-top: 18px; | ||
padding-right: $drawer-gutter-x; | ||
padding-bottom: 30px; | ||
padding-left: $drawer-gutter-x; | ||
transition: all $drawer-transitionDuration $drawer-transitionFunction; | ||
transform: translate3d(0, 0, 0); | ||
border: 0; | ||
outline: 0; | ||
background-color: $drawer-hamburger-bgColor; | ||
} | ||
|
||
.drawer-hamburger:hover { | ||
cursor: pointer; | ||
background-color: $drawer-hamburger-hover-bgColor; | ||
} | ||
|
||
.drawer-hamburger-icon { | ||
position: relative; | ||
display: block; | ||
margin-top: 10px; | ||
} | ||
|
||
.drawer-hamburger-icon, | ||
.drawer-hamburger-icon:before, | ||
.drawer-hamburger-icon:after { | ||
width: 100%; | ||
height: 2px; | ||
transition: all $drawer-transitionDuration $drawer-transitionFunction; | ||
background-color: $drawer-hamburger-color; | ||
} | ||
|
||
.drawer-hamburger-icon:before, | ||
.drawer-hamburger-icon:after { | ||
position: absolute; | ||
top: -10px; | ||
left: 0; | ||
content: ' '; | ||
} | ||
|
||
.drawer-hamburger-icon:after { | ||
top: 10px; | ||
} | ||
|
||
.drawer-open .drawer-hamburger-icon { | ||
background-color: transparent; | ||
} | ||
|
||
.drawer-open .drawer-hamburger-icon:before, | ||
.drawer-open .drawer-hamburger-icon:after { | ||
top: 0; | ||
} | ||
|
||
.drawer-open .drawer-hamburger-icon:before { | ||
transform: rotate(45deg); | ||
} | ||
|
||
.drawer-open .drawer-hamburger-icon:after { | ||
transform: rotate(-45deg); | ||
} |
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,120 @@ | ||
/*!------------------------------------*\ | ||
Navbar | ||
\*!------------------------------------*/ | ||
.drawer--navbarTopGutter { | ||
padding-top: $drawer-navbar-height; | ||
} | ||
|
||
.drawer-navbar .drawer-navbar-header { | ||
border-bottom: 1px solid $drawer-borderColor; | ||
background-color: $drawer-bgColor; | ||
} | ||
|
||
.drawer-navbar { | ||
z-index: $drawer-navbar-zIndex; | ||
top: 0; | ||
width: 100%; | ||
} | ||
|
||
/*! .drawer-navbar modifier */ | ||
.drawer-navbar--fixed { | ||
position: fixed; | ||
} | ||
|
||
.drawer-navbar-header { | ||
position: relative; | ||
z-index: $drawer-navbar-zIndex; | ||
box-sizing: border-box; | ||
width: 100%; | ||
height: $drawer-navbar-height; | ||
padding: 0 $drawer-gutter-x; | ||
text-align: center; | ||
} | ||
|
||
.drawer-navbar .drawer-brand { | ||
line-height: $drawer-navbar-height; | ||
display: inline-block; | ||
padding-top: 0; | ||
padding-bottom: 0; | ||
text-decoration: none; | ||
} | ||
|
||
.drawer-navbar .drawer-brand:hover { | ||
background-color: transparent; | ||
} | ||
|
||
.drawer-navbar .drawer-nav { | ||
padding-top: $drawer-navbar-height; | ||
} | ||
|
||
.drawer-navbar .drawer-menu { | ||
padding-bottom: ($drawer-navbar-height * 2); | ||
} | ||
|
||
@media #{$drawer-viewport-md} { | ||
.drawer-navbar { | ||
border-bottom: 1px solid $drawer-borderColor; | ||
background-color: $drawer-bgColor; | ||
height: $drawer-navbar-height; | ||
} | ||
|
||
.drawer-navbar .drawer-navbar-header { | ||
border-bottom: 0; | ||
} | ||
|
||
.drawer-navbar .drawer-menu--right { | ||
float: right; | ||
} | ||
|
||
.drawer-navbar .drawer-menu--left, | ||
.drawer-navbar .drawer-menu li { | ||
float: left; | ||
} | ||
|
||
.drawer-navbar .drawer-menu-item { | ||
line-height: $drawer-navbar-height; | ||
padding-top: 0; | ||
padding-bottom: 0; | ||
} | ||
|
||
.drawer-navbar-header { | ||
position: relative; | ||
float: left; | ||
width: auto; | ||
padding: 0; | ||
border: 0; | ||
} | ||
|
||
.drawer-navbar .drawer-brand { | ||
display: block; | ||
} | ||
|
||
.drawer-navbar .drawer-hamburger { | ||
display: none; | ||
} | ||
|
||
.drawer-navbar .drawer-nav { | ||
position: relative; | ||
left: 0; | ||
overflow: visible; | ||
width: auto; | ||
height: $drawer-navbar-height; | ||
padding-top: 0; | ||
transform: translate3d(0, 0, 0); | ||
} | ||
|
||
.drawer-navbar .drawer-menu { | ||
padding: 0; | ||
} | ||
|
||
/*! dropdown */ | ||
.drawer-navbar .drawer-dropdown-menu { | ||
position: absolute; | ||
width: $drawer-navbar-dropdown-width; | ||
border: 1px solid $drawer-borderColor; | ||
} | ||
|
||
.drawer-navbar .drawer-dropdown-menu-item { | ||
padding-left: $drawer-gutter-x; | ||
} | ||
} |
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,17 @@ | ||
/*!------------------------------------*\ | ||
Left | ||
\*!------------------------------------*/ | ||
.drawer--left .drawer-nav { | ||
left: (0 - $drawer-width); | ||
transition: left $drawer-transitionDuration $drawer-transitionFunction; | ||
} | ||
|
||
.drawer--left.drawer-open .drawer-nav, | ||
.drawer--left .drawer-hamburger, | ||
.drawer--left.drawer-open .drawer-navbar .drawer-hamburger { | ||
left: 0; | ||
} | ||
|
||
.drawer--left.drawer-open .drawer-hamburger { | ||
left: $drawer-width; | ||
} |
Oops, something went wrong.