| 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; |
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 3 | $nav__top-level-color: $base-01--01; |
| 4 | $nav__second-level-color: $base-02--06; | ||||
| 5 | $nav__second-level-text-color: $base-02--01; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 6 | |
| Michael Davis | 44621a8 | 2017-07-31 18:18:32 -0500 | [diff] [blame] | 7 | //Navigation icons |
| 8 | @mixin navIcons { | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 9 | color: $primary-light; |
| 10 | fill: $primary-light; | ||||
| Michael Davis | 44621a8 | 2017-07-31 18:18:32 -0500 | [diff] [blame] | 11 | max-height: 40px; |
| 12 | stroke-width: .5; | ||||
| 13 | display: block; | ||||
| Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 14 | margin: .5em auto; |
| Michael Davis | 44621a8 | 2017-07-31 18:18:32 -0500 | [diff] [blame] | 15 | .st0 { |
| 16 | fill: none; | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 17 | stroke: $primary-light; |
| Michael Davis | 44621a8 | 2017-07-31 18:18:32 -0500 | [diff] [blame] | 18 | stroke-width: 2; |
| 19 | stroke-miterlimit: 10; | ||||
| 20 | } | ||||
| 21 | .st1 { | ||||
| 22 | fill: none; | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 23 | stroke: $primary-light; |
| Michael Davis | 44621a8 | 2017-07-31 18:18:32 -0500 | [diff] [blame] | 24 | stroke-width: 4; |
| 25 | stroke-miterlimit: 10; | ||||
| 26 | } | ||||
| 27 | } | ||||
| 28 | |||||
| Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 29 | .nav__wrapper { |
| 30 | height: 100%; | ||||
| 31 | position: fixed; | ||||
| 32 | top: 0; | ||||
| 33 | z-index: 100; | ||||
| 34 | } | ||||
| 35 | |||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 36 | // Top level navigation |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 37 | #nav__top-level { |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 38 | background: $nav__top-level-color; |
| Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 39 | position: absolute; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 40 | left: 0; |
| 41 | top: 0; | ||||
| 42 | bottom: 0; | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 43 | list-style-type: none; |
| 44 | margin: 0; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 45 | padding: 0; |
| 46 | width: $nav__toplvlWidth; | ||||
| Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 47 | overflow-y: auto; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 48 | li { |
| 49 | margin: 0; | ||||
| 50 | } | ||||
| Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 51 | > li > a, |
| 52 | > li > button { | ||||
| 53 | height: 120px; | ||||
| 54 | } | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 55 | //svg icons |
| 56 | .nav-icon { | ||||
| 57 | @include navIcons; | ||||
| Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 58 | width: 100%; |
| 59 | svg { | ||||
| 60 | width: 36px; | ||||
| 61 | height: auto; | ||||
| 62 | } | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 63 | } |
| Yoshie Muranaka | f1aadb9 | 2019-07-01 11:14:21 -0500 | [diff] [blame] | 64 | .nav-icon__control { |
| 65 | margin-bottom: 1em; | ||||
| 66 | svg { | ||||
| 67 | width: 30px; | ||||
| 68 | } | ||||
| 69 | } | ||||
| Iftekharul Islam | db28a38 | 2017-11-02 13:16:17 -0500 | [diff] [blame] | 70 | .button, button, a { |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 71 | background: transparent; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 72 | border: 0; |
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 73 | color: $primary-light; |
| 74 | fill: $primary-light; | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 75 | width: 100%; |
| Iftekharul Islam | db28a38 | 2017-11-02 13:16:17 -0500 | [diff] [blame] | 76 | padding: 1em; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 77 | display: block; |
| 78 | text-align: center; | ||||
| 79 | margin-bottom: 0; | ||||
| 80 | white-space: normal; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 81 | border-radius: 0; |
| Michael Davis | 71ec745 | 2017-04-24 16:28:57 -0500 | [diff] [blame] | 82 | text-decoration: none; |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 83 | border-top: 1px solid transparent; |
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 84 | border-bottom: 1px solid $border-color-02; |
| Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 85 | font-weight: normal; |
| 86 | font-size: .9em; | ||||
| 87 | line-height: 1.2; | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 88 | &:hover { |
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 89 | background: $primary-light; |
| 90 | fill: $primary-dark; | ||||
| 91 | color: $primary-action; | ||||
| Iftekharul Islam | db28a38 | 2017-11-02 13:16:17 -0500 | [diff] [blame] | 92 | padding: 1em; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 93 | border-radius: 0; |
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 94 | border-bottom: 1px solid $border-color-01; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 95 | .nav__icon-help__outer { |
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 96 | stroke: $primary-dark; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 97 | } |
| 98 | .nav__icon-help__inner { | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 99 | fill: $primary-action; |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 100 | } |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 101 | .nav-icon { |
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 102 | fill: $primary-action; |
| 103 | color: $primary-action; | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 104 | .st0 { |
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 105 | stroke: $primary-action; |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 106 | } |
| 107 | .st1 { | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 108 | fill: $primary-action; |
| 109 | color: $primary-action; | ||||
| 110 | stroke: $primary-action; | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 111 | } |
| 112 | } | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 113 | } |
| 114 | } | ||||
| 115 | .opened { | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 116 | background: $nav__second-level-color; |
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 117 | fill: $primary-dark; |
| 118 | color: darken($primary-action, 10%); | ||||
| 119 | border-bottom: 1px solid $border-color-01; | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 120 | .nav-icon { |
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 121 | fill: $primary-action; |
| 122 | color: $primary-action; | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 123 | .st0 { |
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 124 | stroke: $primary-action; |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 125 | } |
| 126 | .st1 { | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 127 | fill: $primary-action; |
| 128 | color: $primary-action; | ||||
| 129 | stroke: $primary-action; | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 130 | } |
| 131 | } | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 132 | } |
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 133 | |
| Yoshie Muranaka | 21f8cb9 | 2019-05-22 10:02:52 -0500 | [diff] [blame] | 134 | // Second Level Navigation |
| 135 | .nav__second-level { | ||||
| 136 | position: fixed; | ||||
| 137 | background: $nav__second-level-color; | ||||
| 138 | top: 0; | ||||
| 139 | bottom: 0; | ||||
| 140 | left: -245px; | ||||
| 141 | width: $nav__seclvlWidth; | ||||
| 142 | z-index: -1; | ||||
| 143 | padding: 0; | ||||
| 144 | margin: 0; | ||||
| 145 | list-style-type: none; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 146 | display: block; |
| Yoshie Muranaka | 21f8cb9 | 2019-05-22 10:02:52 -0500 | [diff] [blame] | 147 | @include fastTransition-all; |
| 148 | &.opened { | ||||
| 149 | left: $nav__toplvlWidth; | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 150 | box-shadow: 7px 0 28px -10px $base-02--02; |
| Yoshie Muranaka | 21f8cb9 | 2019-05-22 10:02:52 -0500 | [diff] [blame] | 151 | @include fastTransition-all; |
| Ryan Arnell | cc619bd | 2018-10-17 13:32:40 -0500 | [diff] [blame] | 152 | } |
| Yoshie Muranaka | 21f8cb9 | 2019-05-22 10:02:52 -0500 | [diff] [blame] | 153 | a { |
| 154 | padding: 1.2em 1em 1.2em 1em; | ||||
| 155 | display: block; | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 156 | color: $primary-dark; |
| Yoshie Muranaka | 21f8cb9 | 2019-05-22 10:02:52 -0500 | [diff] [blame] | 157 | text-decoration: none; |
| 158 | position: relative; | ||||
| 159 | font-weight: 400; | ||||
| 160 | text-align: left; | ||||
| 161 | border-bottom: 1px solid transparent; | ||||
| 162 | &:hover { | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 163 | background: $primary-light; |
| Yoshie Muranaka | 21f8cb9 | 2019-05-22 10:02:52 -0500 | [diff] [blame] | 164 | } |
| 165 | } | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 166 | |
| Yoshie Muranaka | 21f8cb9 | 2019-05-22 10:02:52 -0500 | [diff] [blame] | 167 | li { |
| 168 | a:after{ | ||||
| 169 | content: '\203A'; | ||||
| 170 | position: absolute; | ||||
| 171 | font-size: 2em; | ||||
| 172 | font-weight: 700; | ||||
| 173 | top: 50%; | ||||
| 174 | right: .6em; | ||||
| 175 | transform: translateY(-59%); | ||||
| 176 | color: $nav__second-level-text-color; | ||||
| 177 | opacity: 0; | ||||
| 178 | } | ||||
| 179 | &.active { | ||||
| 180 | a {font-weight: 700;} | ||||
| 181 | } | ||||
| 182 | &.active, | ||||
| 183 | &:focus, | ||||
| 184 | &:hover { | ||||
| 185 | a {color: $nav__second-level-text-color;} | ||||
| 186 | a:after { | ||||
| 187 | opacity: 1; | ||||
| 188 | right: .3em; | ||||
| 189 | @include fastTransition-all; | ||||
| 190 | } | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 191 | } |
| 192 | } | ||||
| Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 193 | } |
| Iftekharul Islam | db28a38 | 2017-11-02 13:16:17 -0500 | [diff] [blame] | 194 | } |