123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577 |
- /*--------------------------------------------------------------*/
- /* !## Top Navigation */
- /*--------------------------------------------------------------*/
- /*
- * Top Navigation
- */
- .top-navigation {
- clear: both;
- display: table;
- float: none;
- position: relative;
- text-align: left;
- width: 100%;
- align-self: flex-end;
- z-index: 10;
- .col-width {
- width: 100%;
- }
- & > div {
- background: $color__background-body;
- float: right;
- height: auto;
- max-height: 0;
- opacity: 0;
- overflow: hidden;
- position: relative;
- width: 100%;
- -webkit-transition: max-height 0.3s ease, opacity 0.3s ease;
- -moz-transition: max-height all 0.3s ease, opacity 0.3s ease;
- transition: max-height all 0.3s ease, opacity 0.3s ease;
- & > ul {
- margin-top: $baseline;
- text-align: left;
- }
- }
- ul {
- list-style: none;
- margin: 0;
- padding: 0;
- }
- li {
- a {
- display: block;
- @include list-item();
- padding: 1em ($gutter * .5);
- }
- &.current_page_ancestor > a,
- &.current-page-parent > a,
- &.current_page_item > a,
- & > a:focus {
- text-decoration: underline;
- }
- }
- /*
- * Sub-menus
- */
- .sub-menu,
- .children {
- height: auto;
- max-height: 0;
- visibility: hidden;
- opacity: 0;
- overflow: hidden;
- position: relative;
- width: 100%;
- li > a {
- margin-left: ($gutter + 3);
- padding-left: 0;
- position: relative;
- &:after {
- content: '\2022';
- font-family: 'FontAwesome';
- font-weight: normal;
- left: -15px;
- position: absolute;
- top: 5px;
- }
- }
- &.toggled-on {
- max-height: 9999px;
- opacity: 1;
- visibility: visible;
- width: 100%;
- }
- }
- }
- /*
- * Dropdown toggle buttons
- */
- .dropdown-toggle {
- background: $color__background-body;
- border: 1px solid $color__border-transparent;
- box-shadow: 0 0 0 $color__border-transparent;
- color: $color__text-main;
- display: inline-block;
- height: 32px;
- line-height: 5px;
- margin: 0;
- padding: 3px;
- speak: none;
- z-index: 5;
- width: 32px;
- -moz-border-radius: 20px;
- -webkit-border-radius: 20px;
- -khtml-border-radius: 20px;
- border-radius: 20px;
- .meta-nav .dropdown-icon .line {
- fill: none;
- stroke-width: 1px;
- stroke: $color__text-main;
- stroke-miterlimit: 10;
- }
- .meta-nav .dropdown-icon-close {
- display: none;
- }
- &:active,
- &:focus {
- border-color: $color__border-transparent;
- }
- &:hover {
- background: $color__link;
- border-color: $color__link;
- box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
- .meta-nav .dropdown-icon .line {
- stroke: $color__background-body;
- }
- }
- &.toggled-on {
- background: $color__link;
- border-color: $color__link;
- box-shadow: 0 0 0 $color__border-transparent;
- & > div {
- max-height: 9999px;
- opacity: 1;
- z-index: 999;
- }
- .meta-nav .dropdown-icon-open {
- display: none;
- }
- .meta-nav .dropdown-icon-close {
- display: inline-block;
- }
- .meta-nav .dropdown-icon .line {
- stroke: $color__background-body;
- }
- }
- }
- /*
- * Menu Toggle
- */
- .menu-toggle {
- @include list-header();
- background: $color__background-body;
- cursor: pointer;
- display: none;
- font-weight: 500;
- line-height: 20px;
- text-align: left;
- .meta-nav {
- display: inline-block;
- height: 18px;
- width: 16px;
- vertical-align: middle;
- .menu-icon .line {
- fill: none;
- stroke: $color__text-main;
- stroke-miterlimit:10;
- }
- .menu-icon-close {
- display: none;
- }
- }
- &:hover .meta-nav {
- .menu-icon .line {
- stroke: $color__background-body;
- }
- }
- &:active .meta-nav,
- &:focus .meta-nav {
- .menu-icon .line {
- stroke: $color__background-body;
- }
- }
- &[aria-expanded="true"] .meta-nav {
- .menu-icon-open {
- display: none;
- }
- .menu-icon-close {
- display: block;
- }
- }
- }
- /*--------------------------------------------------------------*/
- /* !## Mobile and Down Navigation */
- /*--------------------------------------------------------------*/
- @include breakpoint( mobileonly ) {
- /*
- * Top Navigation
- */
- .top-navigation {
- display: block;
- padding: 0;
- text-align: right;
- @include transition( max-height, 0.3s, ease );
- @include transition( opacity, 0.3s, ease );
- &.toggled-on > div {
- background: transparent;
- max-height: 9999px;
- opacity: 1;
- width: 100%;
- z-index: 999;
- & > ul {
- margin-top: 0;
- }
- }
- /*
- * Sub-menu top borders
- *
- * Using a psuedo class for top borders in
- * menu on mobile so that we don't need
- * media queries in our color annotations.
- */
- .sub-menu,
- .children {
- border-top: none;
- position: relative;
- padding-left: ($gutter * .6);
- -webkit-transition: all 0.375s ease;
- -moz-transition: all 0.375s ease;
- transition: all 0.375s ease;
- &:before,
- &:before {
- content: "";
- border-top: 1px solid $color__border-transparent;
- height: 1px;
- left: 0;
- position: absolute;
- top: 0;
- width: 100%;
- }
- li > a:after {
- top: 15px;
- }
- }
- /*
- * Sub-menu bottom borders
- *
- * Using a psuedo class for bottom borders
- * in menu on mobile so that we don't need
- * media queries in our color annotations.
- **/
- & > div > ul {
- border-top: 1px solid $color__border-transparent;
- }
- li {
- position: relative;
- a {
- position: relative;
- z-index: 1;
- }
- &:after {
- content: "";
- bottom: 0;
- border-bottom: 1px solid $color__border-transparent;
- height: 1px;
- left: 0;
- position: absolute;
- width: 100%;
- }
- &.sub-menu,
- &.children {
- li > a:after {
- top: ($gutter * .5 + 3px);
- }
- }
- &.menu-item-has-children > a {
- padding-right: ($gutter * 1.75);
- }
- }
- ul:last-of-type > li:last-of-type:after {
- border-bottom: none;
- }
- &[style] {
- min-height: inherit !important;
- }
- }
- /*
- * Dropdown toggle buttons
- */
- .dropdown-toggle {
- position: absolute;
- right: 5px;
- top: 5px;
- &:after {
- line-height: 0.2;
- }
- }
- /*
- * Menu Toggle
- */
- .menu-toggle {
- bottom: calc( 100% + #{$mobile-baseline} );
- display: block;
- padding: ($baseline * .5) ($gutter * .5);
- position: absolute;
- right: 10px;
- }
- }
- /*--------------------------------------------------------------*/
- /* !## Phablet and Up Navigation */
- /*--------------------------------------------------------------*/
- @include breakpoint( phablet ) {
- /*
- * Top Navigation
- */
- .top-navigation {
- display: inline-block;
- font-size: 16px;
- height: inherit;
- margin: 0;
- overflow: visible;
- position: relative;
- vertical-align: middle;
- width: 30%;
- & > div {
- display: flex;
- float: none;
- flex-wrap: nowrap;
- max-height: inherit;
- position: relative;
- opacity: 1;
- overflow: visible;
- width: 100%;
- }
- div > ul {
- list-style-type: none;
- margin: 0;
- padding: 0;
- position: relative;
- text-align: left;
- z-index: 1;
- // Top-level list items
- & > li {
- display: block;
- position: relative;
- z-index: 2;
- a {
- display: inline-block;
- padding: 5px 8px;
- text-align: left;
- }
- // Top-level menu items with sub-menus
- &.menu-item-has-children {
- margin-left: -20px;
- & > a {
- margin-left: 28px;
- padding-left: 0;
- }
- }
- &.toggled-on {
- box-shadow: 2px 3px 4px rgba(0, 0, 0, 0.25);
- }
- }
- // All other ist items
- li {
- &.toggled-on {
- @include animation('bounce-reveal-y .25s cubic-bezier(0.645, 0.045, 0.355, 1)');
- background: $color__link;
- z-index: 3;
- a {
- color: #FFF;
- }
- }
- }
- & > li > .sub-menu,
- & > li > .children {
- border-top: 1px solid $color__background-body;
- }
- }
- .sub-menu,
- .children {
- background: $color__link;
- box-shadow: 2px 3px 4px rgba(0, 0, 0, 0.25);
- position: absolute;
- z-index: 10;
- li {
- position: relative;
- a {
- color: $color__background-body;
- }
- }
- & > li.toggled-on {
- border-top: 1px solid $color__background-body;
- margin-top: -1px;
- }
- .sub-menu,
- .children {
- border-bottom: 1px solid $color__background-body;
- box-shadow: 0 0 0 $color__border-transparent;
- margin-bottom: -1px;
- padding-left: ($gutter * .6);
- position: relative;
- }
- }
- }
- /*
- * Dropdown toggle buttons
- */
- .dropdown-toggle {
- border: none;
- box-shadow: none;
- float: left;
- height: 20px;
- left: 5px;
- padding: 1px;
- position: absolute;
- top: 3px;
- width: 20px;
- &:focus {
- box-shadow: none;
- }
- }
- }
- /*--------------------------------------------------------------*/
- /* !## Tablet and Up Navigation */
- /*--------------------------------------------------------------*/
- @include breakpoint( tablet ) {
- .top-navigation {
- clear: right;
- float: right;
- }
- }
|