Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 1 | <template> |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 2 | <div> |
| 3 | <div class="nav-container" :class="{ open: isNavigationOpen }"> |
Derick Montague | 6859203 | 2020-04-04 14:02:34 -0500 | [diff] [blame] | 4 | <nav ref="nav" :aria-label="$t('appNavigation.primaryNavigation')"> |
Yoshie Muranaka | 7d04435 | 2020-07-24 10:45:14 -0700 | [diff] [blame^] | 5 | <b-nav vertical class="mb-4"> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 6 | <b-nav-item to="/" data-test-id="nav-container-overview"> |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 7 | <icon-overview /> |
| 8 | {{ $t('appNavigation.overview') }} |
| 9 | </b-nav-item> |
Derick Montague | 42c1989 | 2020-01-17 16:10:34 -0600 | [diff] [blame] | 10 | |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 11 | <li class="nav-item"> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 12 | <b-button |
| 13 | v-b-toggle.health-menu |
| 14 | variant="link" |
| 15 | data-test-id="nav-button-health" |
| 16 | > |
Yoshie Muranaka | 9fc3f90 | 2020-03-04 10:36:57 -0800 | [diff] [blame] | 17 | <icon-health /> |
| 18 | {{ $t('appNavigation.health') }} |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 19 | <icon-expand class="icon-expand" /> |
| 20 | </b-button> |
| 21 | <b-collapse id="health-menu" tag="ul" class="nav-item__nav"> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 22 | <b-nav-item |
| 23 | to="/health/event-logs" |
| 24 | data-test-id="nav-container-event-logs" |
| 25 | > |
Yoshie Muranaka | 6f10234 | 2020-05-05 09:45:39 -0700 | [diff] [blame] | 26 | {{ $t('appNavigation.eventLogs') }} |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 27 | </b-nav-item> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 28 | <b-nav-item |
| 29 | to="/health/hardware-status" |
| 30 | data-test-id="nav-container-hardware-status" |
| 31 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 32 | {{ $t('appNavigation.hardwareStatus') }} |
| 33 | </b-nav-item> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 34 | <b-nav-item |
| 35 | to="/health/sensors" |
| 36 | data-test-id="nav-container-sensors" |
| 37 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 38 | {{ $t('appNavigation.sensors') }} |
| 39 | </b-nav-item> |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 40 | </b-collapse> |
| 41 | </li> |
Derick Montague | 42c1989 | 2020-01-17 16:10:34 -0600 | [diff] [blame] | 42 | |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 43 | <li class="nav-item"> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 44 | <b-button |
| 45 | v-b-toggle.control-menu |
| 46 | variant="link" |
| 47 | data-test-id="nav-button-control" |
| 48 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 49 | <icon-control /> |
| 50 | {{ $t('appNavigation.control') }} |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 51 | <icon-expand class="icon-expand" /> |
| 52 | </b-button> |
| 53 | <b-collapse id="control-menu" tag="ul" class="nav-item__nav"> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 54 | <b-nav-item to="/control/kvm" data-test-id="nav-container-kvm"> |
Mateusz Gapski | 632de22 | 2020-07-09 09:21:33 +0200 | [diff] [blame] | 55 | {{ $t('appNavigation.kvm') }} |
| 56 | </b-nav-item> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 57 | <b-nav-item |
| 58 | to="/control/manage-power-usage" |
Derick Montague | 6534e58 | 2020-07-24 09:17:44 -0500 | [diff] [blame] | 59 | data-test-id="nav-container-managePowerUsage" |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 60 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 61 | {{ $t('appNavigation.managePowerUsage') }} |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 62 | </b-nav-item> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 63 | <b-nav-item |
| 64 | to="/control/reboot-bmc" |
Derick Montague | 6534e58 | 2020-07-24 09:17:44 -0500 | [diff] [blame] | 65 | data-test-id="nav-container-rebootBmc" |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 66 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 67 | {{ $t('appNavigation.rebootBmc') }} |
| 68 | </b-nav-item> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 69 | <b-nav-item |
| 70 | to="/control/serial-over-lan" |
| 71 | data-test-id="nav-container-sol" |
| 72 | > |
Sukanya Pandey | 96f69ca | 2020-05-20 15:32:57 +0530 | [diff] [blame] | 73 | {{ $t('appNavigation.serialOverLan') }} |
| 74 | </b-nav-item> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 75 | <b-nav-item |
| 76 | to="/control/server-led" |
Derick Montague | 6534e58 | 2020-07-24 09:17:44 -0500 | [diff] [blame] | 77 | data-test-id="nav-container-serverLed" |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 78 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 79 | {{ $t('appNavigation.serverLed') }} |
| 80 | </b-nav-item> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 81 | <b-nav-item |
| 82 | to="/control/server-power-operations" |
Derick Montague | 6534e58 | 2020-07-24 09:17:44 -0500 | [diff] [blame] | 83 | data-test-id="nav-container-serverPowerOperations" |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 84 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 85 | {{ $t('appNavigation.serverPowerOperations') }} |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 86 | </b-nav-item> |
| 87 | </b-collapse> |
| 88 | </li> |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 89 | |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 90 | <li class="nav-item"> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 91 | <b-button |
| 92 | v-b-toggle.configuration-menu |
| 93 | variant="link" |
| 94 | data-test-id="nav-button-configuration" |
| 95 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 96 | <icon-configuration /> |
| 97 | {{ $t('appNavigation.configuration') }} |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 98 | <icon-expand class="icon-expand" /> |
| 99 | </b-button> |
| 100 | <b-collapse id="configuration-menu" tag="ul" class="nav-item__nav"> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 101 | <b-nav-item |
| 102 | to="/configuration/date-time-settings" |
Derick Montague | 6534e58 | 2020-07-24 09:17:44 -0500 | [diff] [blame] | 103 | data-test-id="nav-container-dateTimeSettings" |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 104 | > |
Dixsie Wolmers | 739e459 | 2020-06-05 07:00:06 -0500 | [diff] [blame] | 105 | {{ $t('appNavigation.dateTimeSettings') }} |
| 106 | </b-nav-item> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 107 | <b-nav-item |
| 108 | href="javascript:void(0)" |
| 109 | data-test-id="nav-container-firmware" |
| 110 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 111 | {{ $t('appNavigation.firmware') }} |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 112 | </b-nav-item> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 113 | <b-nav-item |
| 114 | to="/configuration/network-settings" |
Derick Montague | 6534e58 | 2020-07-24 09:17:44 -0500 | [diff] [blame] | 115 | data-test-id="nav-container-networkSettings" |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 116 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 117 | {{ $t('appNavigation.networkSettings') }} |
| 118 | </b-nav-item> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 119 | <b-nav-item |
| 120 | href="javascript:void(0)" |
| 121 | data-test-id="nav-container-snmp" |
| 122 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 123 | {{ $t('appNavigation.snmpSettings') }} |
| 124 | </b-nav-item> |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 125 | </b-collapse> |
| 126 | </li> |
Derick Montague | 42c1989 | 2020-01-17 16:10:34 -0600 | [diff] [blame] | 127 | |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 128 | <li class="nav-item"> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 129 | <b-button |
| 130 | v-b-toggle.access-control-menu |
| 131 | variant="link" |
Derick Montague | 6534e58 | 2020-07-24 09:17:44 -0500 | [diff] [blame] | 132 | data-test-id="nav-button-accessControl" |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 133 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 134 | <icon-access-control /> |
| 135 | {{ $t('appNavigation.accessControl') }} |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 136 | <icon-expand class="icon-expand" /> |
| 137 | </b-button> |
| 138 | <b-collapse id="access-control-menu" tag="ul" class="nav-item__nav"> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 139 | <b-nav-item |
| 140 | to="/access-control/ldap" |
| 141 | data-test-id="nav-container-ldap" |
| 142 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 143 | {{ $t('appNavigation.ldap') }} |
| 144 | </b-nav-item> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 145 | <b-nav-item |
| 146 | to="/access-control/local-user-management" |
Derick Montague | 6534e58 | 2020-07-24 09:17:44 -0500 | [diff] [blame] | 147 | data-test-id="nav-container-localUserManagement" |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 148 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 149 | {{ $t('appNavigation.localUserManagement') }} |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 150 | </b-nav-item> |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 151 | <b-nav-item |
| 152 | to="/access-control/ssl-certificates" |
Derick Montague | 6534e58 | 2020-07-24 09:17:44 -0500 | [diff] [blame] | 153 | data-test-id="nav-container-sslCertificates" |
Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 154 | > |
Yoshie Muranaka | e0b76c3 | 2020-02-28 14:18:20 -0800 | [diff] [blame] | 155 | {{ $t('appNavigation.sslCertificates') }} |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 156 | </b-nav-item> |
| 157 | </b-collapse> |
| 158 | </li> |
| 159 | </b-nav> |
| 160 | </nav> |
| 161 | </div> |
| 162 | <transition name="fade"> |
| 163 | <div |
| 164 | v-if="isNavigationOpen" |
Derick Montague | ad2ceb6 | 2020-04-24 18:11:04 -0500 | [diff] [blame] | 165 | id="nav-overlay" |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 166 | class="nav-overlay" |
| 167 | @click="toggleIsOpen" |
| 168 | ></div> |
| 169 | </transition> |
| 170 | </div> |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 171 | </template> |
| 172 | |
| 173 | <script> |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 174 | import IconAnalytics from '@carbon/icons-vue/es/analytics/16'; |
| 175 | import IconDataCheck from '@carbon/icons-vue/es/data--check/16'; |
| 176 | import IconSettingsAdjust from '@carbon/icons-vue/es/settings--adjust/16'; |
| 177 | import IconSettings from '@carbon/icons-vue/es/settings/16'; |
| 178 | import IconPassword from '@carbon/icons-vue/es/password/16'; |
| 179 | import IconChevronUp from '@carbon/icons-vue/es/chevron--up/16'; |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 180 | |
| 181 | export default { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 182 | name: 'AppNavigation', |
Derick Montague | 42c1989 | 2020-01-17 16:10:34 -0600 | [diff] [blame] | 183 | components: { |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 184 | iconOverview: IconAnalytics, |
| 185 | iconHealth: IconDataCheck, |
| 186 | iconControl: IconSettingsAdjust, |
| 187 | iconConfiguration: IconSettings, |
| 188 | iconAccessControl: IconPassword, |
| 189 | iconExpand: IconChevronUp |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 190 | }, |
| 191 | data() { |
| 192 | return { |
| 193 | isNavigationOpen: false |
| 194 | }; |
| 195 | }, |
| 196 | watch: { |
| 197 | $route: function() { |
| 198 | this.isNavigationOpen = false; |
| 199 | }, |
| 200 | isNavigationOpen: function(isNavigationOpen) { |
| 201 | this.$root.$emit('change:isNavigationOpen', isNavigationOpen); |
| 202 | } |
| 203 | }, |
| 204 | mounted() { |
| 205 | this.$root.$on('toggle:navigation', () => this.toggleIsOpen()); |
| 206 | }, |
| 207 | methods: { |
| 208 | toggleIsOpen() { |
| 209 | this.isNavigationOpen = !this.isNavigationOpen; |
| 210 | } |
Derick Montague | 42c1989 | 2020-01-17 16:10:34 -0600 | [diff] [blame] | 211 | } |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 212 | }; |
| 213 | </script> |
Derick Montague | 42c1989 | 2020-01-17 16:10:34 -0600 | [diff] [blame] | 214 | |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 215 | <style scoped lang="scss"> |
| 216 | svg { |
Derick Montague | 66f903f | 2020-02-28 11:22:31 -0600 | [diff] [blame] | 217 | fill: currentColor; |
| 218 | height: 1.2rem; |
| 219 | width: 1.2rem; |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 220 | margin-left: 0 !important; //!important overriding button specificity |
| 221 | vertical-align: text-bottom; |
| 222 | &:not(.icon-expand) { |
| 223 | margin-right: $spacer; |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | .nav { |
SurenNeware | 057232b | 2020-06-08 20:53:26 +0530 | [diff] [blame] | 228 | padding-top: $spacer / 4; |
| 229 | @include media-breakpoint-up($responsive-layout-bp) { |
| 230 | padding-top: $spacer; |
| 231 | } |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 232 | } |
| 233 | |
| 234 | .nav-item__nav { |
Derick Montague | 42c1989 | 2020-01-17 16:10:34 -0600 | [diff] [blame] | 235 | list-style: none; |
| 236 | padding-left: 0; |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 237 | margin-left: 0; |
| 238 | |
Yoshie Muranaka | 85358ed | 2020-05-18 10:05:36 -0700 | [diff] [blame] | 239 | .nav-item { |
| 240 | outline: none; |
| 241 | } |
| 242 | |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 243 | .nav-link { |
| 244 | padding-left: $spacer * 4; |
Yoshie Muranaka | 85358ed | 2020-05-18 10:05:36 -0700 | [diff] [blame] | 245 | outline: none; |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 246 | |
| 247 | &:not(.nav-link--current) { |
| 248 | font-weight: normal; |
| 249 | } |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | .btn-link { |
| 254 | width: 100%; |
| 255 | text-align: left; |
| 256 | text-decoration: none !important; |
| 257 | border-radius: 0; |
| 258 | |
| 259 | &.collapsed { |
| 260 | .icon-expand { |
| 261 | transform: rotate(180deg); |
| 262 | } |
| 263 | } |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 264 | } |
| 265 | |
| 266 | .icon-expand { |
| 267 | float: right; |
| 268 | margin-top: $spacer / 4; |
| 269 | } |
| 270 | |
| 271 | .btn-link, |
| 272 | .nav-link { |
| 273 | position: relative; |
| 274 | font-weight: $headings-font-weight; |
| 275 | padding-left: $spacer; // defining consistent padding for links and buttons |
| 276 | padding-right: $spacer; |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 277 | color: theme-color('secondary'); |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 278 | |
| 279 | &:hover { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 280 | background-color: gray('300'); |
| 281 | color: theme-color('dark'); |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 282 | } |
Yoshie Muranaka | 9f5cea8 | 2020-02-04 09:30:00 -0800 | [diff] [blame] | 283 | |
| 284 | &:focus { |
| 285 | box-shadow: $btn-focus-box-shadow; |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 286 | color: theme-color('dark'); |
Yoshie Muranaka | 9f5cea8 | 2020-02-04 09:30:00 -0800 | [diff] [blame] | 287 | } |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 288 | } |
| 289 | |
Derick Montague | 66f903f | 2020-02-28 11:22:31 -0600 | [diff] [blame] | 290 | .nav-link--current, |
| 291 | .nav-link--current:hover, |
| 292 | .nav-link--current:focus { |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 293 | font-weight: $headings-font-weight; |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 294 | background-color: theme-color('secondary'); |
| 295 | color: theme-color('light'); |
Derick Montague | 66f903f | 2020-02-28 11:22:31 -0600 | [diff] [blame] | 296 | cursor: default; |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 297 | |
| 298 | &::before { |
| 299 | content: ''; |
| 300 | position: absolute; |
| 301 | top: 0; |
| 302 | bottom: 0; |
| 303 | left: 0; |
| 304 | width: 4px; |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 305 | background-color: theme-color('primary'); |
Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 306 | } |
Derick Montague | 42c1989 | 2020-01-17 16:10:34 -0600 | [diff] [blame] | 307 | } |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 308 | |
| 309 | .nav-container { |
| 310 | position: fixed; |
| 311 | width: $navigation-width; |
| 312 | top: $header-height; |
| 313 | bottom: 0; |
| 314 | left: 0; |
| 315 | z-index: $zindex-fixed; |
| 316 | overflow-y: auto; |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 317 | background-color: gray('200'); |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 318 | transform: translateX(-$navigation-width); |
| 319 | transition: transform $exit-easing--productive $duration--moderate-02; |
SurenNeware | 057232b | 2020-06-08 20:53:26 +0530 | [diff] [blame] | 320 | @include media-breakpoint-down(md) { |
| 321 | z-index: $zindex-fixed + 2; |
| 322 | } |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 323 | |
Derick Montague | 74466b8 | 2020-06-28 10:17:32 -0500 | [diff] [blame] | 324 | &.open, |
| 325 | &:focus-within { |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 326 | transform: translateX(0); |
| 327 | transition-timing-function: $entrance-easing--productive; |
| 328 | } |
| 329 | |
| 330 | @include media-breakpoint-up($responsive-layout-bp) { |
| 331 | transition-duration: $duration--fast-01; |
| 332 | transform: translateX(0); |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | .nav-overlay { |
| 337 | position: fixed; |
| 338 | top: $header-height; |
| 339 | bottom: 0; |
| 340 | left: 0; |
| 341 | right: 0; |
SurenNeware | 057232b | 2020-06-08 20:53:26 +0530 | [diff] [blame] | 342 | z-index: $zindex-fixed + 1; |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 343 | background-color: $black; |
| 344 | opacity: 0.5; |
| 345 | |
| 346 | &.fade-enter-active { |
| 347 | transition: opacity $duration--moderate-02 $entrance-easing--productive; |
| 348 | } |
| 349 | |
| 350 | &.fade-leave-active { |
| 351 | transition: opacity $duration--fast-02 $exit-easing--productive; |
| 352 | } |
| 353 | |
| 354 | &.fade-enter, |
| 355 | &.fade-leave-to { |
| 356 | opacity: 0; |
| 357 | } |
| 358 | |
| 359 | @include media-breakpoint-up($responsive-layout-bp) { |
| 360 | display: none; |
| 361 | } |
| 362 | } |
Derick Montague | 42c1989 | 2020-01-17 16:10:34 -0600 | [diff] [blame] | 363 | </style> |