| Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 1 | $nav__toplvlWidth: 125px; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 2 | $nav__seclvlWidth: 240px; |
| 3 | |||||
| 4 | // Top level navigation | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 5 | #nav__top-level { |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 6 | background: $nav__top-level-color; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 7 | height: 100%; |
| 8 | position: fixed; | ||||
| 9 | left: 0; | ||||
| 10 | top: 0; | ||||
| 11 | bottom: 0; | ||||
| 12 | z-index: 99; | ||||
| 13 | list-style-type: none; | ||||
| 14 | margin: 0; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 15 | padding: 0; |
| 16 | width: $nav__toplvlWidth; | ||||
| 17 | li { | ||||
| 18 | margin: 0; | ||||
| 19 | } | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 20 | .button, button, a { |
| 21 | background: transparent; | ||||
| 22 | height: auto; | ||||
| 23 | border: 0; | ||||
| 24 | color: $white; | ||||
| 25 | fill: $white; | ||||
| 26 | width: 100%; | ||||
| 27 | padding: 1em; | ||||
| 28 | display: block; | ||||
| 29 | text-align: center; | ||||
| 30 | margin-bottom: 0; | ||||
| 31 | white-space: normal; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 32 | border-radius: 0; |
| Michael Davis | 71ec745 | 2017-04-24 16:28:57 -0500 | [diff] [blame^] | 33 | text-decoration: none; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 34 | .nav__icon { |
| 35 | color: $white; | ||||
| 36 | max-height: 40px; | ||||
| 37 | stroke-width: .5; | ||||
| 38 | margin-bottom: -.5em; | ||||
| 39 | } | ||||
| 40 | a { | ||||
| 41 | margin-bottom: 5px; | ||||
| 42 | } | ||||
| Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 43 | span { |
| 44 | margin: 1em 0 0 0; | ||||
| 45 | display: block; | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 46 | font-size: .9em; |
| Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 47 | font-weight: normal; |
| 48 | line-height: 1rem; | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 49 | } |
| 50 | |||||
| 51 | .nav__icon-help__outer { | ||||
| 52 | fill: transparent; | ||||
| 53 | stroke: $white; | ||||
| 54 | stroke-miterlimit: 10; | ||||
| 55 | stroke-width: 1px; | ||||
| 56 | } | ||||
| 57 | .nav__icon-help__Inner { | ||||
| 58 | fill: $white; | ||||
| 59 | } | ||||
| 60 | &:hover { | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 61 | background: $nav__second-level-color; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 62 | fill: $black; |
| 63 | color: $black; | ||||
| 64 | padding: 1em; | ||||
| 65 | border-radius: 0; | ||||
| 66 | .nav__icon-help__outer { | ||||
| 67 | stroke: $black; | ||||
| 68 | } | ||||
| 69 | .nav__icon-help__inner { | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 70 | fill: $lightbg__primary; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 71 | } |
| 72 | } | ||||
| 73 | } | ||||
| 74 | .opened { | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 75 | background: $nav__second-level-color; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 76 | fill: $black; |
| 77 | color: $black; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 78 | .nav__icon-help__outer { |
| 79 | stroke: $lightbg__primary; | ||||
| 80 | } | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 81 | } |
| 82 | } | ||||
| 83 | |||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 84 | // Second Level Navigation |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 85 | .nav__second-level { |
| 86 | position: fixed; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 87 | background: $nav__second-level-color; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 88 | top: 0; |
| 89 | bottom: 0; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 90 | left: -$nav__toplvlWidth; |
| 91 | width: $nav__seclvlWidth; | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 92 | z-index: 97; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 93 | padding: 0; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 94 | margin: 0; |
| 95 | list-style-type: none; | ||||
| Michael Davis | 71ec745 | 2017-04-24 16:28:57 -0500 | [diff] [blame^] | 96 | @include fastTransition-all; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 97 | &.opened { |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 98 | left: $nav__toplvlWidth; |
| Michael Davis | 272297b | 2017-04-24 12:11:53 -0500 | [diff] [blame] | 99 | box-shadow: 7px 0 28px -10px $darkgrey; |
| Michael Davis | 71ec745 | 2017-04-24 16:28:57 -0500 | [diff] [blame^] | 100 | @include fastTransition-all; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 101 | } |
| 102 | a { | ||||
| Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 103 | padding: 1.2em 1em 1.2em 1em; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 104 | display: block; |
| 105 | color: $black; | ||||
| 106 | text-decoration: none; | ||||
| 107 | position: relative; | ||||
| Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 108 | font-weight: 400; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 109 | } |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 110 | |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 111 | li { |
| 112 | a:after{ | ||||
| 113 | content: '\203A'; | ||||
| 114 | position: absolute; | ||||
| 115 | font-size: 2em; | ||||
| 116 | font-weight: 700; | ||||
| 117 | top: 50%; | ||||
| Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 118 | right: .6em; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 119 | transform: translateY(-59%); |
| 120 | color: #4b5d78; | ||||
| 121 | opacity: 0; | ||||
| 122 | } | ||||
| Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 123 | &.active {background: $white;} |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 124 | &.active, |
| 125 | &:focus, | ||||
| 126 | &:hover { | ||||
| Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 127 | a {color: #4b5d78;} |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 128 | a:after { |
| 129 | opacity: 1; | ||||
| Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 130 | right: .3em; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 131 | @include fastTransition-all; |
| 132 | } | ||||
| 133 | } | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 134 | } |
| Iftekharul Islam | 99d199f | 2017-03-24 15:28:25 -0500 | [diff] [blame] | 135 | } |