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