| 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"> |
| Ed Tanous | 7d6b44c | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 6 | <template v-for="navItem in navigationItems"> |
| Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 7 | <!-- Navigation items with no children --> |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 8 | <li |
| Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 9 | v-if="!navItem.children" |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 10 | :key="`nav-${navItem.index}`" |
| 11 | class="nav-item" |
| Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 12 | > |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 13 | <router-link |
| 14 | :to="navItem.route" |
| 15 | :data-test-id="`nav-item-${navItem.id}`" |
| 16 | class="nav-link" |
| 17 | > |
| 18 | <component :is="navItem.icon" /> |
| 19 | {{ navItem.label }} |
| 20 | </router-link> |
| 21 | </li> |
| Derick Montague | 42c1989 | 2020-01-17 16:10:34 -0600 | [diff] [blame] | 22 | |
| Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 23 | <!-- Navigation items with children --> |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 24 | <li v-else :key="`nav-group-${navItem.index}`" class="nav-item"> |
| Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 25 | <b-button |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 26 | :class="{ collapsed: !isItemOpen(navItem.id) }" |
| Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 27 | variant="link" |
| 28 | :data-test-id="`nav-button-${navItem.id}`" |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 29 | :aria-controls="navItem.id" |
| 30 | :aria-expanded="isItemOpen(navItem.id) ? 'true' : 'false'" |
| 31 | @click="toggleCollapse(navItem.id)" |
| Derick Montague | 2d589a7 | 2020-07-23 17:43:12 -0500 | [diff] [blame] | 32 | > |
| Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 33 | <component :is="navItem.icon" /> |
| 34 | {{ navItem.label }} |
| 35 | <icon-expand class="icon-expand" /> |
| 36 | </b-button> |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 37 | <b-collapse |
| 38 | :id="navItem.id" |
| 39 | v-model="openSections[navItem.id]" |
| 40 | tag="ul" |
| 41 | class="nav-item__nav" |
| 42 | > |
| 43 | <li |
| 44 | v-for="(subNavItem, i) in filteredNavItem(navItem.children)" |
| 45 | :key="i" |
| 46 | class="nav-item" |
| 47 | > |
| Sukanya Pandey | fba4d62 | 2020-12-29 13:31:19 +0530 | [diff] [blame] | 48 | <router-link |
| Sukanya Pandey | fba4d62 | 2020-12-29 13:31:19 +0530 | [diff] [blame] | 49 | :to="subNavItem.route" |
| 50 | :data-test-id="`nav-item-${subNavItem.id}`" |
| 51 | class="nav-link" |
| 52 | > |
| 53 | {{ subNavItem.label }} |
| 54 | </router-link> |
| 55 | </li> |
| Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 56 | </b-collapse> |
| 57 | </li> |
| 58 | </template> |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 59 | </b-nav> |
| 60 | </nav> |
| 61 | </div> |
| 62 | <transition name="fade"> |
| 63 | <div |
| 64 | v-if="isNavigationOpen" |
| Derick Montague | ad2ceb6 | 2020-04-24 18:11:04 -0500 | [diff] [blame] | 65 | id="nav-overlay" |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 66 | class="nav-overlay" |
| 67 | @click="toggleIsOpen" |
| 68 | ></div> |
| 69 | </transition> |
| 70 | </div> |
| Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 71 | </template> |
| 72 | |
| 73 | <script> |
| Yoshie Muranaka | 8263d85 | 2020-10-16 07:58:06 -0700 | [diff] [blame] | 74 | //Do not change Mixin import. |
| 75 | //Exact match alias set to support |
| 76 | //dotenv customizations. |
| Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 77 | import AppNavigationMixin from './AppNavigationMixin'; |
| Ed Tanous | 883a0d5 | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 78 | import { useI18n } from 'vue-i18n'; |
| Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 79 | |
| 80 | export default { |
| Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 81 | name: 'AppNavigation', |
| Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 82 | mixins: [AppNavigationMixin], |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 83 | data() { |
| 84 | return { |
| Ed Tanous | 883a0d5 | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 85 | $t: useI18n().t, |
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 86 | isNavigationOpen: false, |
| Damian Celico | aeb1981 | 2022-11-24 02:00:53 +0100 | [diff] [blame] | 87 | currentUserRole: null, |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 88 | openSections: {}, |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 89 | }; |
| 90 | }, |
| 91 | watch: { |
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 92 | $route: function () { |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 93 | this.isNavigationOpen = false; |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 94 | // Ensure the parent section of the current route is expanded |
| 95 | this.initializeOpenSectionsFromRoute(); |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 96 | }, |
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 97 | isNavigationOpen: function (isNavigationOpen) { |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 98 | require('@/eventBus').default.$emit( |
| 99 | 'change-is-navigation-open', |
| 100 | isNavigationOpen, |
| 101 | ); |
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 102 | }, |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 103 | }, |
| 104 | mounted() { |
| Damian Celico | aeb1981 | 2022-11-24 02:00:53 +0100 | [diff] [blame] | 105 | this.getPrivilege(); |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 106 | require('@/eventBus').default.$on('toggle-navigation', () => |
| 107 | this.toggleIsOpen(), |
| 108 | ); |
| 109 | // Expand the parent section for the current route on initial load/refresh |
| 110 | this.initializeOpenSectionsFromRoute(); |
| 111 | }, |
| 112 | beforeUnmount() { |
| 113 | require('@/eventBus').default.$off( |
| 114 | 'toggle-navigation', |
| 115 | this.handleToggleNavigation, |
| 116 | ); |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 117 | }, |
| 118 | methods: { |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 119 | isItemOpen(id) { |
| 120 | return !!this.openSections[id]; |
| 121 | }, |
| 122 | toggleCollapse(id) { |
| 123 | if (this.$set) { |
| 124 | this.$set(this.openSections, id, !this.openSections[id]); |
| 125 | } else { |
| 126 | this.openSections = { |
| 127 | ...this.openSections, |
| 128 | [id]: !this.openSections[id], |
| 129 | }; |
| 130 | } |
| 131 | }, |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 132 | toggleIsOpen() { |
| 133 | this.isNavigationOpen = !this.isNavigationOpen; |
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 134 | }, |
| Damian Celico | aeb1981 | 2022-11-24 02:00:53 +0100 | [diff] [blame] | 135 | getPrivilege() { |
| 136 | this.currentUserRole = this.$store?.getters['global/userPrivilege']; |
| 137 | }, |
| 138 | filteredNavItem(navItem) { |
| 139 | if (this.currentUserRole) { |
| 140 | return navItem.filter(({ exclusiveToRoles }) => { |
| 141 | if (!exclusiveToRoles?.length) return true; |
| 142 | return exclusiveToRoles.includes(this.currentUserRole); |
| 143 | }); |
| 144 | } else return navItem; |
| 145 | }, |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 146 | initializeOpenSectionsFromRoute() { |
| 147 | const currentPath = this.$route?.path; |
| 148 | if (!currentPath) return; |
| 149 | const sectionsToOpen = {}; |
| 150 | for (const item of this.navigationItems) { |
| 151 | if ( |
| 152 | item.children && |
| 153 | item.children.some((child) => child.route === currentPath) |
| 154 | ) { |
| 155 | sectionsToOpen[item.id] = true; |
| 156 | } |
| 157 | } |
| 158 | this.openSections = { ...this.openSections, ...sectionsToOpen }; |
| 159 | }, |
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 160 | }, |
| Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 161 | }; |
| 162 | </script> |
| Derick Montague | 42c1989 | 2020-01-17 16:10:34 -0600 | [diff] [blame] | 163 | |
| suryav9724 | 24b377d | 2025-01-24 15:06:35 +0530 | [diff] [blame] | 164 | <style scoped lang="scss"> |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 165 | svg { |
| Derick Montague | 66f903f | 2020-02-28 11:22:31 -0600 | [diff] [blame] | 166 | fill: currentColor; |
| 167 | height: 1.2rem; |
| 168 | width: 1.2rem; |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 169 | margin-inline-start: 0 !important; //!important overriding button specificity |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 170 | vertical-align: text-bottom; |
| 171 | &:not(.icon-expand) { |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 172 | margin-inline-end: $spacer; |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 173 | } |
| 174 | } |
| 175 | |
| 176 | .nav { |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 177 | padding-top: calc(#{$spacer} / 4); |
| SurenNeware | 057232b | 2020-06-08 20:53:26 +0530 | [diff] [blame] | 178 | @include media-breakpoint-up($responsive-layout-bp) { |
| 179 | padding-top: $spacer; |
| 180 | } |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 181 | } |
| 182 | |
| 183 | .nav-item__nav { |
| Derick Montague | 42c1989 | 2020-01-17 16:10:34 -0600 | [diff] [blame] | 184 | list-style: none; |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 185 | padding-inline-start: 0; |
| 186 | margin-inline-start: 0; |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 187 | |
| Yoshie Muranaka | 85358ed | 2020-05-18 10:05:36 -0700 | [diff] [blame] | 188 | .nav-item { |
| 189 | outline: none; |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 190 | list-style: none; |
| Yoshie Muranaka | 85358ed | 2020-05-18 10:05:36 -0700 | [diff] [blame] | 191 | } |
| 192 | |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 193 | .nav-link { |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 194 | padding-inline-start: $spacer * 4; |
| Yoshie Muranaka | 85358ed | 2020-05-18 10:05:36 -0700 | [diff] [blame] | 195 | outline: none; |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 196 | |
| 197 | &:not(.nav-link--current) { |
| 198 | font-weight: normal; |
| 199 | } |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | .btn-link { |
| Dixsie Wolmers | 30f11f8 | 2020-11-10 16:07:56 -0600 | [diff] [blame] | 204 | display: inline-block; |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 205 | width: 100%; |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 206 | text-align: start; |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 207 | text-decoration: none !important; |
| 208 | border-radius: 0; |
| 209 | |
| 210 | &.collapsed { |
| 211 | .icon-expand { |
| 212 | transform: rotate(180deg); |
| 213 | } |
| 214 | } |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 215 | } |
| 216 | |
| 217 | .icon-expand { |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 218 | float: inline-end; |
| 219 | margin-top: calc(#{$spacer} / 4); |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 220 | } |
| 221 | |
| 222 | .btn-link, |
| 223 | .nav-link { |
| 224 | position: relative; |
| 225 | font-weight: $headings-font-weight; |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 226 | padding-inline-start: $spacer; // defining consistent padding for links and buttons |
| 227 | padding-inline-end: $spacer; |
| Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 228 | color: theme-color('secondary'); |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 229 | |
| 230 | &:hover { |
| SurenNeware | 1f8117f | 2020-09-22 19:28:56 +0530 | [diff] [blame] | 231 | background-color: theme-color-level(dark, -10.5); |
| Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 232 | color: theme-color('dark'); |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 233 | } |
| Yoshie Muranaka | 9f5cea8 | 2020-02-04 09:30:00 -0800 | [diff] [blame] | 234 | |
| 235 | &:focus { |
| SurenNeware | 1f8117f | 2020-09-22 19:28:56 +0530 | [diff] [blame] | 236 | background-color: theme-color-level(light, 0); |
| 237 | box-shadow: inset 0 0 0 2px theme-color('primary'); |
| Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 238 | color: theme-color('dark'); |
| Derick Montague | 59569d8 | 2020-10-26 15:17:31 -0500 | [diff] [blame] | 239 | outline: 0; |
| Yoshie Muranaka | 9f5cea8 | 2020-02-04 09:30:00 -0800 | [diff] [blame] | 240 | } |
| SurenNeware | 1f8117f | 2020-09-22 19:28:56 +0530 | [diff] [blame] | 241 | |
| 242 | &:active { |
| Derick Montague | 59569d8 | 2020-10-26 15:17:31 -0500 | [diff] [blame] | 243 | background-color: theme-color('secondary'); |
| SurenNeware | 1f8117f | 2020-09-22 19:28:56 +0530 | [diff] [blame] | 244 | color: $white; |
| 245 | } |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 246 | } |
| 247 | |
| SurenNeware | 1f8117f | 2020-09-22 19:28:56 +0530 | [diff] [blame] | 248 | .nav-link--current { |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 249 | font-weight: $headings-font-weight; |
| Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 250 | background-color: theme-color('secondary'); |
| 251 | color: theme-color('light'); |
| Derick Montague | 66f903f | 2020-02-28 11:22:31 -0600 | [diff] [blame] | 252 | cursor: default; |
| SurenNeware | 1f8117f | 2020-09-22 19:28:56 +0530 | [diff] [blame] | 253 | box-shadow: none; |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 254 | |
| 255 | &::before { |
| 256 | content: ''; |
| 257 | position: absolute; |
| 258 | top: 0; |
| 259 | bottom: 0; |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 260 | inset-inline-start: 0; |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 261 | width: 4px; |
| Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 262 | background-color: theme-color('primary'); |
| Yoshie Muranaka | 71ac230 | 2019-12-26 11:43:36 -0800 | [diff] [blame] | 263 | } |
| Derick Montague | 59569d8 | 2020-10-26 15:17:31 -0500 | [diff] [blame] | 264 | |
| 265 | &:hover, |
| SurenNeware | 1f8117f | 2020-09-22 19:28:56 +0530 | [diff] [blame] | 266 | &:focus { |
| Derick Montague | 59569d8 | 2020-10-26 15:17:31 -0500 | [diff] [blame] | 267 | background-color: theme-color('secondary'); |
| 268 | color: theme-color('light'); |
| SurenNeware | 1f8117f | 2020-09-22 19:28:56 +0530 | [diff] [blame] | 269 | } |
| 270 | } |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 271 | |
| 272 | .nav-container { |
| 273 | position: fixed; |
| 274 | width: $navigation-width; |
| 275 | top: $header-height; |
| 276 | bottom: 0; |
| 277 | left: 0; |
| 278 | z-index: $zindex-fixed; |
| 279 | overflow-y: auto; |
| Derick Montague | 59569d8 | 2020-10-26 15:17:31 -0500 | [diff] [blame] | 280 | background-color: theme-color('light'); |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 281 | transform: translateX(-$navigation-width); |
| 282 | transition: transform $exit-easing--productive $duration--moderate-02; |
| jason westover | d36ac8a | 2025-11-03 20:58:59 -0600 | [diff] [blame^] | 283 | border-inline-end: 1px solid theme-color-level('light', 2.85); |
| Derick Montague | 59569d8 | 2020-10-26 15:17:31 -0500 | [diff] [blame] | 284 | |
| SurenNeware | 057232b | 2020-06-08 20:53:26 +0530 | [diff] [blame] | 285 | @include media-breakpoint-down(md) { |
| 286 | z-index: $zindex-fixed + 2; |
| 287 | } |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 288 | |
| Derick Montague | 74466b8 | 2020-06-28 10:17:32 -0500 | [diff] [blame] | 289 | &.open, |
| 290 | &:focus-within { |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 291 | transform: translateX(0); |
| 292 | transition-timing-function: $entrance-easing--productive; |
| 293 | } |
| 294 | |
| 295 | @include media-breakpoint-up($responsive-layout-bp) { |
| 296 | transition-duration: $duration--fast-01; |
| 297 | transform: translateX(0); |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | .nav-overlay { |
| 302 | position: fixed; |
| 303 | top: $header-height; |
| 304 | bottom: 0; |
| 305 | left: 0; |
| 306 | right: 0; |
| SurenNeware | 057232b | 2020-06-08 20:53:26 +0530 | [diff] [blame] | 307 | z-index: $zindex-fixed + 1; |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 308 | background-color: $black; |
| 309 | opacity: 0.5; |
| 310 | |
| 311 | &.fade-enter-active { |
| 312 | transition: opacity $duration--moderate-02 $entrance-easing--productive; |
| 313 | } |
| 314 | |
| 315 | &.fade-leave-active { |
| 316 | transition: opacity $duration--fast-02 $exit-easing--productive; |
| 317 | } |
| 318 | |
| SurenNeware | 151dd24 | 2020-11-10 20:15:05 +0530 | [diff] [blame] | 319 | &.fade-enter, // Remove this vue2 based only class when switching to vue3 |
| 320 | &.fade-enter-from, // This is vue3 based only class modified from 'fade-enter' |
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 321 | &.fade-leave-to { |
| 322 | opacity: 0; |
| 323 | } |
| 324 | |
| 325 | @include media-breakpoint-up($responsive-layout-bp) { |
| 326 | display: none; |
| 327 | } |
| 328 | } |
| Derick Montague | 42c1989 | 2020-01-17 16:10:34 -0600 | [diff] [blame] | 329 | </style> |