blob: f8f5a6f4136476605931644882c9feb44dae6383 [file] [log] [blame]
Iftekharul Islamcd789502017-04-19 14:37:55 -05001$nav__toplvlWidth: 125px;
Michael Davis19475752017-02-23 18:30:23 -06002$nav__seclvlWidth: 240px;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -05003$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 Davis19475752017-02-23 18:30:23 -06006
Michael Davis44621a82017-07-31 18:18:32 -05007//Navigation icons
8@mixin navIcons {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -05009 color: $primary-light;
10 fill: $primary-light;
Michael Davis44621a82017-07-31 18:18:32 -050011 max-height: 40px;
12 stroke-width: .5;
13 display: block;
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -050014 margin: .5em auto;
Michael Davis44621a82017-07-31 18:18:32 -050015 .st0 {
16 fill: none;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050017 stroke: $primary-light;
Michael Davis44621a82017-07-31 18:18:32 -050018 stroke-width: 2;
19 stroke-miterlimit: 10;
20 }
21 .st1 {
22 fill: none;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050023 stroke: $primary-light;
Michael Davis44621a82017-07-31 18:18:32 -050024 stroke-width: 4;
25 stroke-miterlimit: 10;
26 }
27}
28
Iftekharul Islam8947e702017-07-27 10:28:07 -050029.nav__wrapper {
30 height: 100%;
31 position: fixed;
32 top: 0;
33 z-index: 100;
34}
35
Michael Davis19475752017-02-23 18:30:23 -060036// Top level navigation
Michael Daviscb8bb192017-02-09 15:45:13 -060037#nav__top-level {
Michael Davis19475752017-02-23 18:30:23 -060038 background: $nav__top-level-color;
Iftekharul Islam8947e702017-07-27 10:28:07 -050039 position: absolute;
Michael Daviscb8bb192017-02-09 15:45:13 -060040 left: 0;
41 top: 0;
42 bottom: 0;
Michael Daviscb8bb192017-02-09 15:45:13 -060043 list-style-type: none;
44 margin: 0;
Michael Davis19475752017-02-23 18:30:23 -060045 padding: 0;
46 width: $nav__toplvlWidth;
Iftekharul Islam8947e702017-07-27 10:28:07 -050047 overflow-y: auto;
Michael Davis19475752017-02-23 18:30:23 -060048 li {
49 margin: 0;
50 }
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -050051 > li > a,
52 > li > button {
53 height: 120px;
54 }
Michael Davis51946552017-05-01 10:30:38 -050055 //svg icons
56 .nav-icon {
57 @include navIcons;
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -050058 width: 100%;
Dixsie Wolmers2cc89bf2019-10-07 16:08:31 -050059 height: 100%;
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -050060 svg {
61 width: 36px;
62 height: auto;
63 }
Michael Davis51946552017-05-01 10:30:38 -050064 }
Dixsie Wolmers2cc89bf2019-10-07 16:08:31 -050065 .nav-icon__control,
66 .nav-icon__key {
Yoshie Muranakaf1aadb92019-07-01 11:14:21 -050067 svg {
68 width: 30px;
69 }
70 }
Iftekharul Islamdb28a382017-11-02 13:16:17 -050071 .button, button, a {
Michael Daviscb8bb192017-02-09 15:45:13 -060072 background: transparent;
Michael Daviscb8bb192017-02-09 15:45:13 -060073 border: 0;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050074 color: $primary-light;
75 fill: $primary-light;
Michael Daviscb8bb192017-02-09 15:45:13 -060076 width: 100%;
Iftekharul Islamdb28a382017-11-02 13:16:17 -050077 padding: 1em;
Michael Daviscb8bb192017-02-09 15:45:13 -060078 display: block;
79 text-align: center;
80 margin-bottom: 0;
81 white-space: normal;
Michael Davis19475752017-02-23 18:30:23 -060082 border-radius: 0;
Michael Davis71ec7452017-04-24 16:28:57 -050083 text-decoration: none;
Michael Davis51946552017-05-01 10:30:38 -050084 border-top: 1px solid transparent;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050085 border-bottom: 1px solid $border-color-02;
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -050086 font-weight: normal;
87 font-size: .9em;
88 line-height: 1.2;
Michael Daviscb8bb192017-02-09 15:45:13 -060089 &:hover {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050090 background: $primary-light;
91 fill: $primary-dark;
92 color: $primary-action;
Iftekharul Islamdb28a382017-11-02 13:16:17 -050093 padding: 1em;
Michael Daviscb8bb192017-02-09 15:45:13 -060094 border-radius: 0;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050095 border-bottom: 1px solid $border-color-01;
Michael Daviscb8bb192017-02-09 15:45:13 -060096 .nav__icon-help__outer {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050097 stroke: $primary-dark;
Michael Daviscb8bb192017-02-09 15:45:13 -060098 }
99 .nav__icon-help__inner {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500100 fill: $primary-action;
Michael Daviscb8bb192017-02-09 15:45:13 -0600101 }
Michael Davis51946552017-05-01 10:30:38 -0500102 .nav-icon {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500103 fill: $primary-action;
104 color: $primary-action;
Michael Davis51946552017-05-01 10:30:38 -0500105 .st0 {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500106 stroke: $primary-action;
Michael Davis51946552017-05-01 10:30:38 -0500107 }
108 .st1 {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500109 fill: $primary-action;
110 color: $primary-action;
111 stroke: $primary-action;
Michael Davis51946552017-05-01 10:30:38 -0500112 }
113 }
Michael Daviscb8bb192017-02-09 15:45:13 -0600114 }
115 }
116 .opened {
Michael Davis19475752017-02-23 18:30:23 -0600117 background: $nav__second-level-color;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500118 fill: $primary-dark;
119 color: darken($primary-action, 10%);
120 border-bottom: 1px solid $border-color-01;
Michael Davis51946552017-05-01 10:30:38 -0500121 .nav-icon {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500122 fill: $primary-action;
123 color: $primary-action;
Michael Davis51946552017-05-01 10:30:38 -0500124 .st0 {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500125 stroke: $primary-action;
Michael Davis51946552017-05-01 10:30:38 -0500126 }
127 .st1 {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500128 fill: $primary-action;
129 color: $primary-action;
130 stroke: $primary-action;
Michael Davis51946552017-05-01 10:30:38 -0500131 }
132 }
Michael Daviscb8bb192017-02-09 15:45:13 -0600133 }
Michael Daviscb8bb192017-02-09 15:45:13 -0600134
Yoshie Muranaka21f8cb92019-05-22 10:02:52 -0500135 // Second Level Navigation
136 .nav__second-level {
137 position: fixed;
138 background: $nav__second-level-color;
139 top: 0;
140 bottom: 0;
141 left: -245px;
142 width: $nav__seclvlWidth;
143 z-index: -1;
144 padding: 0;
145 margin: 0;
146 list-style-type: none;
Michael Davis19475752017-02-23 18:30:23 -0600147 display: block;
Yoshie Muranakab8a377b2019-09-25 13:31:56 -0700148 transition: left $duration--slow-01 $standard-easing--productive;
Yoshie Muranaka21f8cb92019-05-22 10:02:52 -0500149 &.opened {
150 left: $nav__toplvlWidth;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500151 box-shadow: 7px 0 28px -10px $base-02--02;
Ryan Arnellcc619bd2018-10-17 13:32:40 -0500152 }
Yoshie Muranaka21f8cb92019-05-22 10:02:52 -0500153 a {
154 padding: 1.2em 1em 1.2em 1em;
155 display: block;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500156 color: $primary-dark;
Yoshie Muranaka21f8cb92019-05-22 10:02:52 -0500157 text-decoration: none;
158 position: relative;
159 font-weight: 400;
160 text-align: left;
161 border-bottom: 1px solid transparent;
162 &:hover {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500163 background: $primary-light;
Yoshie Muranaka21f8cb92019-05-22 10:02:52 -0500164 }
165 }
Michael Daviscb8bb192017-02-09 15:45:13 -0600166
Yoshie Muranaka21f8cb92019-05-22 10:02:52 -0500167 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 Davis19475752017-02-23 18:30:23 -0600191 }
192 }
Michael Daviscb8bb192017-02-09 15:45:13 -0600193 }
Iftekharul Islamdb28a382017-11-02 13:16:17 -0500194}