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