@explorer-1/vue 0.2.104 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/package.json +2 -2
  3. package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.vue +1 -5
  4. package/src/components/BaseAudio/BaseAudio.vue +1 -48
  5. package/src/components/BaseCarousel/BaseCarousel.vue +1 -42
  6. package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.vue +1 -1
  7. package/src/components/BaseLightboxCloseButton/BaseLightboxCloseButton.vue +1 -6
  8. package/src/components/BaseLightboxOpenButton/BaseLightboxOpenButton.vue +1 -8
  9. package/src/components/BaseModal/BaseModal.vue +1 -1
  10. package/src/components/BaseSwimlane/BaseSwimlane.vue +2 -40
  11. package/src/components/BaseTimer/BaseTimer.vue +1 -20
  12. package/src/components/BaseUnitToggle/BaseUnitToggle.vue +1 -28
  13. package/src/components/BaseVideo/BaseVideo.vue +1 -8
  14. package/src/components/BlockAccordion/BlockAccordion.vue +1 -7
  15. package/src/components/BlockAnchor/BlockAnchor.vue +1 -14
  16. package/src/components/BlockAudio/BlockAudio.vue +1 -10
  17. package/src/components/BlockCircleImageCard/BlockCircleImageCard.vue +0 -18
  18. package/src/components/BlockCsrTable/BlockCsrTable.vue +2 -43
  19. package/src/components/BlockCsrTable/CsrTestLimitsTable.vue +1 -15
  20. package/src/components/BlockDialog/BlockDialog.vue +1 -26
  21. package/src/components/BlockGist/BlockGist.vue +2 -25
  22. package/src/components/BlockHeading/BlockHeading.vue +1 -8
  23. package/src/components/BlockLinkCard/BlockLinkCard.vue +1 -29
  24. package/src/components/BlockLinkCard/BlockLinkCardCollectionLg.vue +1 -10
  25. package/src/components/BlockLinkCardList/BlockLinkCardList.vue +1 -7
  26. package/src/components/BlockLinkTile/BlockLinkTile.vue +1 -5
  27. package/src/components/BlockNewsletterSignup/BlockNewsletterSignup.vue +2 -12
  28. package/src/components/BlockStreamfield/BlockStreamfield.vue +1 -28
  29. package/src/components/FormNewsletterSignup/FormNewsletterSignup.vue +2 -4
  30. package/src/components/HeroLarge/HeroLarge.vue +1 -1
  31. package/src/components/HomepageCarousel/HomepageCarousel.vue +1 -38
  32. package/src/components/HomepageCarouselItem/HomepageCarouselItem.vue +1 -32
  33. package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.vue +1 -73
  34. package/src/components/HomepageMissionsCarousel/HomepageMissionsCarouselItem.vue +1 -57
  35. package/src/components/HomepageStats/HomepageStats.vue +1 -30
  36. package/src/components/Icons/IconSlideshow.vue +1 -5
  37. package/src/components/ImageDetailContextImage/ImageDetailContextImage.vue +2 -39
  38. package/src/components/LoadingTransition/LoadingTransition.vue +2 -17
  39. package/src/components/LogoCaltech/LogoCaltech.vue +1 -4
  40. package/src/components/LogoTribrand/LogoTribrand.vue +1 -23
  41. package/src/components/MetaPanel/MetaPanel.vue +1 -5
  42. package/src/components/MetaPanelAccordion/MetaPanelAccordion.vue +1 -21
  43. package/src/components/MetaPanelItems/MetaPanelItems.vue +1 -17
  44. package/src/components/MetadataEduResource/MetadataEduResource.vue +1 -34
  45. package/src/components/MetadataEvent/MetadataEvent.vue +1 -34
  46. package/src/components/MissionDetailAbout/MissionDetailAbout.vue +1 -74
  47. package/src/components/MissionDetailHero/MissionDetailHero.vue +2 -46
  48. package/src/components/MissionDetailHighlights/MissionDetailHighlights.vue +1 -12
  49. package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarousel.vue +1 -16
  50. package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarouselItem.vue +2 -8
  51. package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.vue +1 -7
  52. package/src/components/MissionDetailStats/MissionDetailStats.vue +1 -29
  53. package/src/components/MissionDetailStats/MissionDetailStatsMicro.vue +1 -16
  54. package/src/components/MissionDetailStats/MissionDetailStatsMini.vue +1 -27
  55. package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.vue +2 -23
  56. package/src/components/MixinFancybox/MixinFancybox.vue +1 -96
  57. package/src/components/MixinFancybox/MixinFancyboxOpenButton.vue +1 -8
  58. package/src/components/NavDesktop/NavDesktop.vue +1 -57
  59. package/src/components/NavDesktop/NavDesktopDropdown.vue +1 -89
  60. package/src/components/NavDesktopEdu/NavDesktopEdu.vue +1 -13
  61. package/src/components/NavJumpMenu/NavJumpMenu.vue +1 -19
  62. package/src/components/NavJumpMenu/NavJumpMenuContent.vue +1 -15
  63. package/src/components/NavLinkList/NavLinkList.vue +6 -7
  64. package/src/components/NavLogoLinks/NavLogoLinks.vue +1 -12
  65. package/src/components/NavMobile/NavMobile.vue +1 -37
  66. package/src/components/NavMobile/NavMobileDropdown.vue +1 -29
  67. package/src/components/NavMobile/NavMobileLink.vue +1 -11
  68. package/src/components/NavMobile/NavMobileSecondaryDropdown.vue +1 -19
  69. package/src/components/NavSearchForm/NavSearchForm.vue +1 -39
  70. package/src/components/NavSecondary/NavSecondary.vue +1 -56
  71. package/src/components/NavSecondary/NavSecondaryDropdown.vue +1 -69
  72. package/src/components/NavSecondary/NavSecondaryDropdownContent.vue +1 -21
  73. package/src/components/NavSecondary/NavSecondaryLink.vue +1 -16
  74. package/src/components/NavSocial/NavSocial.vue +2 -15
  75. package/src/components/PodcastEpisodeCard/PodcastEpisodeCard.vue +1 -8
  76. package/src/components/RoboticsDetailStats/RoboticsDetailStats.vue +1 -5
  77. package/src/components/RoboticsDetailStats/RoboticsDetailStatsMini.vue +1 -5
  78. package/src/components/SearchFilterGroupAccordionItem/SearchFilterGroupAccordionItem.vue +1 -5
  79. package/src/components/SearchInput/SearchInput.vue +3 -8
  80. package/src/components/SearchPagination/SearchPagination.vue +1 -9
  81. package/src/components/ShareButtons/ShareButtons.vue +2 -9
  82. package/src/components/ShareButtonsEdu/ShareButtonsEdu.vue +1 -19
  83. package/src/components/SwimlaneCTA/SwimlaneCTA.vue +1 -34
  84. package/src/components/TheFooter/TheFooter.vue +1 -19
  85. package/src/components/TheFooter/TheFooterSignUp.vue +1 -5
  86. package/src/components/ThumbnailCarousel/ThumbnailCarousel.vue +1 -25
  87. package/src/components/TimelineDialog/TimelineDialog.vue +1 -20
  88. package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.vue +2 -17
  89. package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.vue +1 -5
  90. package/src/components/YearTicker/YearTicker.vue +1 -83
  91. package/src/templates/PageAudioDetail/PageAudioDetail.vue +1 -67
  92. package/src/templates/PageEventDetail/PageEventDetail.vue +1 -30
  93. package/src/templates/PageImageDetail/PageImageDetail.vue +1 -35
  94. package/src/templates/PageVideoDetail/PageVideoDetail.vue +1 -23
  95. package/src/templates/edu/PageEduEventDetail/PageEduEventDetail.vue +1 -29
  96. package/src/templates/edu/PageEduExplainerArticle/PageEduExplainerArticle.vue +1 -11
  97. package/src/templates/edu/PageEduGalleryDetail/PageEduGalleryDetail.vue +1 -25
  98. package/src/templates/edu/PageEduHome/PageEduHome.vue +1 -24
  99. package/src/templates/edu/PageEduLesson/PageEduLessonSection.vue +1 -65
  100. package/src/templates/edu/PageEduMultimediaDetail/PageEduMultimediaDetail.vue +1 -14
  101. package/src/templates/edu/PageEduStudentProject/PageEduStudentProject.vue +1 -12
  102. package/src/templates/edu/PageEduStudentProject/PageEduStudentProjectSection.vue +1 -59
  103. package/src/templates/www/PageCuratedGallery/PageCuratedGallery.vue +1 -86
  104. package/src/templates/www/PageInfographicDetail/PageInfographicDetail.vue +1 -17
  105. package/src/templates/www/PageMaintenanceMode/PageMaintenanceMode.vue +1 -27
  106. package/src/templates/www/PagePodcastSeason/PagePodcastSeason.vue +3 -6
  107. package/src/templates/www/PageTimeline/PageTimeline.vue +1 -100
@@ -141,20 +141,5 @@ export default defineComponent({
141
141
  })
142
142
  </script>
143
143
  <style lang="scss">
144
- @import 'swiper/swiper-bundle.css';
145
-
146
- .MissionHighlightsCarousel {
147
- .swiper {
148
- .swiper-prev {
149
- @apply mr-px;
150
- }
151
-
152
- .swiper-prev,
153
- .swiper-next {
154
- &.swiper-button-disabled {
155
- @apply opacity-75 cursor-default bg-none;
156
- }
157
- }
158
- }
159
- }
144
+ @import '@explorer-1/common/src/scss/components/MissionDetailHighlightsCarousel';
160
145
  </style>
@@ -112,12 +112,6 @@ export default defineComponent({
112
112
  }
113
113
  })
114
114
  </script>
115
- <style lang="scss" scoped>
116
- .slide-link {
117
- @apply invisible;
118
-
119
- .swiper-slide-active & {
120
- @apply visible;
121
- }
122
- }
115
+ <style lang="scss">
116
+ @import '@explorer-1/common/src/scss/components/MissionDetailHighlightsCarouselItem';
123
117
  </style>
@@ -87,11 +87,5 @@ export default defineComponent({
87
87
  </script>
88
88
 
89
89
  <style lang="scss">
90
- .MissionDetailInlineImage {
91
- .ThemeVariantDark & {
92
- > div {
93
- @apply text-white;
94
- }
95
- }
96
- }
90
+ @import '@explorer-1/common/src/scss/components/MissionDetailInlineImage';
97
91
  </style>
@@ -155,33 +155,5 @@ export default defineComponent({
155
155
  })
156
156
  </script>
157
157
  <style lang="scss">
158
- .MissionDetailStats {
159
- .adaptive-stats-grid div:nth-child(3) {
160
- @apply col-span-3;
161
- }
162
-
163
- .theme {
164
- @apply bg-gray-light text-gray-dark;
165
- }
166
-
167
- .ThemeVariantDark & .theme {
168
- @apply bg-jpl-blue-darker bg-opacity-75 text-white;
169
- }
170
-
171
- .label {
172
- @apply font-semibold mb-3 text-jpl-red-dark;
173
- }
174
-
175
- .ThemeVariantDark & .label {
176
- @apply text-jpl-blue-light;
177
- }
178
-
179
- .legend {
180
- @apply text-gray-mid-dark;
181
- }
182
-
183
- .ThemeVariantDark & .legend {
184
- @apply text-white;
185
- }
186
- }
158
+ @import '@explorer-1/common/src/scss/components/MissionDetailStats';
187
159
  </style>
@@ -33,20 +33,5 @@ export default defineComponent({
33
33
  })
34
34
  </script>
35
35
  <style lang="scss">
36
- .MissionDetailStatsMicro {
37
- .text-stats-xl {
38
- @apply text-base leading-none;
39
-
40
- @screen sm {
41
- @apply text-4xl;
42
- }
43
- }
44
-
45
- .legend {
46
- @apply text-sm;
47
- @screen sm {
48
- @apply text-base;
49
- }
50
- }
51
- }
36
+ @import '@explorer-1/common/src/scss/components/MissionDetailStatsMicro';
52
37
  </style>
@@ -79,31 +79,5 @@ export default defineComponent({
79
79
  })
80
80
  </script>
81
81
  <style lang="scss">
82
- .MissionDetailStatsMini {
83
- .theme,
84
- .theme-inner {
85
- @apply bg-jpl-blue-darker bg-opacity-75 text-white;
86
- }
87
- // different padding left for first child, which is dynamic
88
- .theme-inner {
89
- @apply pl-10 pb-10;
90
- @screen lg {
91
- @apply py-10 pl-0;
92
- }
93
-
94
- &:first-child {
95
- @apply pt-10;
96
- @screen lg {
97
- @apply pl-10;
98
- }
99
- @screen 2xl {
100
- @apply pl-0;
101
- }
102
- }
103
- }
104
-
105
- .legend {
106
- @apply text-white;
107
- }
108
- }
82
+ @import '@explorer-1/common/src/scss/components/MissionDetailStatsMini';
109
83
  </style>
@@ -69,27 +69,6 @@ export default {
69
69
  }
70
70
  }
71
71
  </script>
72
- <style lang="scss" scoped>
73
- .ThemeVariantDark {
74
- .MissionDetailStreamfield-heading,
75
- .BlockText {
76
- @apply text-white;
77
- }
78
- }
79
-
80
- .MissionDetailStreamfield {
81
- .MissionDetailInlineImage {
82
- .featured-image {
83
- max-width: 700px;
84
- width: auto;
85
- position: relative;
86
- display: block;
87
- }
88
- @media screen and (min-width: 1024px) {
89
- .BlockText p {
90
- max-width: 30ch;
91
- }
92
- }
93
- }
94
- }
72
+ <style lang="scss">
73
+ @import '@explorer-1/common/src/scss/components/MissionDetailStreamfield';
95
74
  </style>
@@ -307,100 +307,5 @@ export default defineComponent({
307
307
  </template>
308
308
 
309
309
  <style lang="scss">
310
- .MixinFancybox {
311
- @apply relative;
312
-
313
- &:active {
314
- outline: none;
315
- }
316
-
317
- .MixinFancyboxOpenButton {
318
- @apply can-hover:opacity-0 opacity-70 transition-opacity duration-300 block top-px right-px z-10;
319
- }
320
-
321
- &:hover {
322
- .MixinFancyboxOpenButton {
323
- @apply can-hover:opacity-100 duration-200;
324
- }
325
- }
326
-
327
- &:focus {
328
- .MixinFancyboxOpenButton {
329
- @apply can-hover:opacity-100;
330
- }
331
- }
332
-
333
- img {
334
- @apply min-w-full h-auto block;
335
- }
336
- }
337
-
338
- // Fancybox overrides for various themes
339
- .fancybox-theme-dark.fancybox__container {
340
- z-index: 9999;
341
-
342
- --fancybox-color: rgba(255, 255, 255, var(--tw-text-opacity));
343
- --fancybox-bg: #000000;
344
- --fancybox-accent-color: #ffffff;
345
- --fancybox-thumbs-width: 100px;
346
- --fancybox-thumbs-border-radius: 0;
347
- --fancybox-thumbs-ratio: 1 / 1;
348
- --carousel-button-bg: rgba(0, 0, 0, 0.9);
349
- --carousel-button-border-radius: 0;
350
- --carousel-button-svg-width: 30px;
351
- --carousel-button-svg-height: 30px;
352
- --carousel-button-svg-stroke-width: 3;
353
- --carousel-button-svg-filter: none;
354
-
355
- .fancybox__content {
356
- @apply z-50;
357
- }
358
-
359
- .fancybox__nav {
360
- @apply hidden;
361
-
362
- @screen sm {
363
- @apply block;
364
- }
365
- }
366
-
367
- .fancybox__caption {
368
- @apply z-40 text-left relative inline-block pt-3 lg:pt-4 w-full;
369
-
370
- h1 {
371
- text-overflow: ellipsis;
372
- }
373
-
374
- p {
375
- @apply inline;
376
- }
377
- }
378
-
379
- .fancybox__slide.has-image.has-caption.is-draggable {
380
- .fancybox__caption {
381
- @apply opacity-0 transition-opacity duration-200;
382
- }
383
- }
384
-
385
- .fancybox__slide.has-image:not(.is-draggable),
386
- .fancybox__slide.has-image.has-caption.can-zoom_in,
387
- .fancybox__slide.has-image.has-caption.is-selected:not(.is-draggable) {
388
- .fancybox__caption {
389
- @apply opacity-100 transition-opacity duration-200;
390
- }
391
- }
392
-
393
- .caption-width {
394
- background: rgba(0, 0, 0, 0.95);
395
- -webkit-transition: max-width 0.15s ease;
396
- transition: max-width 0.15s ease;
397
- width: 100%;
398
- }
399
-
400
- @screen lg {
401
- .fancybox__toolbar {
402
- padding: 25px;
403
- }
404
- }
405
- }
310
+ @import '@explorer-1/common/src/scss/components/MixinFancybox';
406
311
  </style>
@@ -24,12 +24,5 @@ export default defineComponent({
24
24
  </template>
25
25
 
26
26
  <style lang="scss">
27
- .MixinFancyboxOpenButton {
28
- // scoped styles for Fancybox Opener button
29
- @apply relative pointer-events-none cursor-pointer z-10;
30
-
31
- .BaseButton {
32
- @apply -top-px -right-px absolute focus:outline-none xl:text-xl inline-block;
33
- }
34
- }
27
+ @import '@explorer-1/common/src/scss/components/MixinFancyboxOpenButton';
35
28
  </style>
@@ -299,61 +299,5 @@ export default defineComponent({
299
299
  })
300
300
  </script>
301
301
  <style lang="scss">
302
- .NavDesktop {
303
- @apply border-b border-transparent;
304
- // styles for default vs transparent header
305
- // underline color and logo inversion styles handled within their respective components
306
- > .header-bg {
307
- @apply bg-white;
308
-
309
- .main-navigation {
310
- > * {
311
- @apply text-gray-dark;
312
- }
313
- }
314
- }
315
-
316
- &.-transparent {
317
- @apply bg-transparent;
318
-
319
- > .header-bg {
320
- @apply bg-gradient-to-b from-transparent-black-75 to-transparent bg-transparent;
321
- }
322
-
323
- .main-navigation {
324
- > * {
325
- @apply text-white;
326
-
327
- .NavDesktopDropdown > button {
328
- // mimics .text-contrast class
329
- text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
330
- }
331
- }
332
- }
333
- }
334
-
335
- &.-scrolled {
336
- @apply border-b border-gray-mid border-opacity-50 bg-white;
337
-
338
- &.-transparent {
339
- > .header-bg {
340
- @apply opacity-0 bg-white;
341
- }
342
-
343
- .main-navigation {
344
- > * {
345
- @apply text-gray-dark;
346
-
347
- .NavDesktopDropdown > button {
348
- text-shadow: none;
349
- }
350
- }
351
- }
352
- }
353
-
354
- &.-hasSecondary {
355
- @apply border-0 border-transparent;
356
- }
357
- }
358
- }
302
+ @import '@explorer-1/common/src/scss/components/NavDesktop';
359
303
  </style>
@@ -107,93 +107,5 @@ export default defineComponent({
107
107
  })
108
108
  </script>
109
109
  <style lang="scss">
110
- .NavDesktopDropdown {
111
- // pushes the dropdown below the closest parent div that has position:relative (e.g. the header)
112
- > div {
113
- &::before {
114
- content: '';
115
- @apply relative z-0 w-full h-full block;
116
- }
117
- }
118
-
119
- > button {
120
- > span {
121
- @apply border-transparent;
122
- }
123
-
124
- &.-open {
125
- > span {
126
- @apply border-primary edu:border-white;
127
-
128
- .-transparent & {
129
- @apply border-white;
130
- }
131
-
132
- .-transparent.-scrolled & {
133
- @apply border-primary edu:border-white;
134
- }
135
- }
136
- }
137
- &:hover {
138
- > span {
139
- @apply border-primary edu:border-white;
140
-
141
- .-transparent & {
142
- @apply border-white;
143
- }
144
-
145
- .-transparent.-scrolled & {
146
- @apply border-primary edu:border-white;
147
- }
148
- }
149
- }
150
- }
151
- // parent div is active
152
- &.-active {
153
- > button {
154
- > span {
155
- @apply border-primary edu:border-white font-bold;
156
-
157
- .-transparent & {
158
- @apply border-white;
159
- }
160
-
161
- .-transparent.-scrolled & {
162
- @apply border-primary edu:border-white;
163
- }
164
-
165
- &.hasSecondary {
166
- @apply border-transparent #{!important};
167
- }
168
- }
169
- }
170
- }
171
-
172
- // transitions
173
- .navfade-enter-to,
174
- .navfade-enter-active {
175
- @apply transition-all ease-out transform duration-500;
176
- }
177
-
178
- .navfade-leave-active,
179
- .navfade-leave-to {
180
- @apply transition-all ease-out transform duration-100;
181
- }
182
-
183
- .navfade-enter-active {
184
- @apply opacity-0 translate-y-2;
185
- }
186
-
187
- .navfade-enter-to {
188
- @apply opacity-100 translate-y-0;
189
- }
190
-
191
- .navfade-leave-to {
192
- @apply opacity-100; // translate-y-0
193
- }
194
-
195
- .navfade-leave-active {
196
- @apply opacity-0; // -translate-y-2
197
- }
198
- }
110
+ @import '@explorer-1/common/src/scss/components/NavDesktopDropdown';
199
111
  </style>
@@ -304,17 +304,5 @@ export default defineComponent({
304
304
  })
305
305
  </script>
306
306
  <style lang="scss">
307
- .NavDesktopEdu {
308
- @apply border-none;
309
-
310
- > .header-bg {
311
- @apply bg-gradient-to-r from-black to-primary bg-transparent to-90%;
312
- }
313
-
314
- .main-navigation {
315
- > * {
316
- @apply text-white;
317
- }
318
- }
319
- }
307
+ @import '@explorer-1/common/src/scss/components/NavDesktopEdu';
320
308
  </style>
@@ -180,23 +180,5 @@ watch(
180
180
  )
181
181
  </script>
182
182
  <style lang="scss">
183
- .NavJumpMenu {
184
- @apply invisible transition-all overflow-visible -mb-[3.7rem] z-30 fixed #{!important};
185
- &.-ready {
186
- @apply visible #{!important};
187
- }
188
- &.-at-top {
189
- @apply invisible #{!important};
190
- }
191
- .NavSecondaryLink.secondary-root {
192
- span {
193
- @apply border-primary #{!important};
194
- }
195
- &.-invert {
196
- span {
197
- @apply border-white #{!important};
198
- }
199
- }
200
- }
201
- }
183
+ @import '@explorer-1/common/src/scss/components/NavJumpMenu';
202
184
  </style>
@@ -61,19 +61,5 @@ export default defineComponent({
61
61
  })
62
62
  </script>
63
63
  <style lang="scss">
64
- .NavJumpMenuContent {
65
- a {
66
- @apply block pl-18 pr-6 lg:pl-6 text-gray-dark;
67
-
68
- > span {
69
- @apply border-b border-transparent pb-2px;
70
- }
71
-
72
- &:hover {
73
- > span {
74
- @apply border-gray-dark text-gray-dark;
75
- }
76
- }
77
- }
78
- }
64
+ @import '@explorer-1/common/src/scss/components/NavJumpMenuContent';
79
65
  </style>
@@ -1,6 +1,9 @@
1
1
  <template>
2
2
  <div v-if="data">
3
- <NavHeading :data="data" />
3
+ <NavHeading
4
+ :data="data"
5
+ class="NavLinkList"
6
+ />
4
7
  <div
5
8
  v-if="data.links"
6
9
  :class="{ 'auto-col': autoCol }"
@@ -57,10 +60,6 @@ export default defineComponent({
57
60
  }
58
61
  })
59
62
  </script>
60
- <style lang="scss" scoped>
61
- .auto-col {
62
- @screen lg {
63
- column-count: 2;
64
- }
65
- }
63
+ <style lang="scss">
64
+ @import '@explorer-1/common/src/scss/components/NavLinkList';
66
65
  </style>
@@ -41,16 +41,5 @@ export default defineComponent({
41
41
  })
42
42
  </script>
43
43
  <style lang="scss">
44
- // In Windows high contrast mode, gives the logo a "link color" background to convey it’s clickable.
45
- @media (forced-colors: active) {
46
- .NavLogoLinks img {
47
- position: relative;
48
- z-index: 1;
49
- pointer-events: none;
50
- }
51
-
52
- .NavLogoLinks a {
53
- background-color: linktext;
54
- }
55
- }
44
+ @import '@explorer-1/common/src/scss/components/NavLogoLinks';
56
45
  </style>
@@ -298,41 +298,5 @@ export default defineComponent({
298
298
  })
299
299
  </script>
300
300
  <style lang="scss">
301
- .NavMobile {
302
- @apply absolute top-0 z-50 inset-x-0;
303
- // styles for default vs transparent header
304
- // underline color and logo inversion styles handled within their respective components
305
- &.-scrolled {
306
- @media not print {
307
- @apply fixed;
308
- }
309
- }
310
- }
311
- // vue-transition classes
312
- // may scope this wider if mobile uses the same transition
313
- .headerMobileReveal-enter-to,
314
- .headerMobileReveal-enter-active {
315
- @apply transition-transform transform ease-in-out duration-200;
316
- }
317
-
318
- .headerMobileReveal-leave-active,
319
- .headerMobileReveal-leave-to {
320
- @apply transition-transform transform ease-out duration-200;
321
- }
322
-
323
- .headerMobileReveal-enter-active {
324
- @apply -translate-y-full;
325
- }
326
-
327
- .headerMobileReveal-enter-to {
328
- @apply translate-y-0;
329
- }
330
-
331
- .headerMobileReveal-leave-to {
332
- @apply translate-y-0;
333
- }
334
-
335
- .headerMobileReveal-leave-active {
336
- @apply -translate-y-full;
337
- }
301
+ @import '@explorer-1/common/src/scss/components/NavMobile';
338
302
  </style>
@@ -147,33 +147,5 @@ export default defineComponent({
147
147
  })
148
148
  </script>
149
149
  <style lang="scss">
150
- .NavDropdownMobile {
151
- // pushes the dropdown below the closest parent div that has position:relative (e.g. the header)
152
- > div {
153
- &::before {
154
- content: '';
155
- @apply relative z-0 w-full h-full block;
156
- }
157
- }
158
-
159
- > button {
160
- > span {
161
- @apply border-transparent;
162
- }
163
-
164
- &.-open {
165
- > span {
166
- @apply border-primary font-bold;
167
- }
168
- }
169
- }
170
- // parent div is active
171
- &.-active {
172
- > button {
173
- > span {
174
- @apply border-primary font-bold;
175
- }
176
- }
177
- }
178
- }
150
+ @import '@explorer-1/common/src/scss/components/NavMobileDropdown';
179
151
  </style>
@@ -55,15 +55,5 @@ export default defineComponent({
55
55
  })
56
56
  </script>
57
57
  <style lang="scss">
58
- .NavMobileLink {
59
- span {
60
- @apply border-b border-transparent;
61
- }
62
-
63
- .nuxt-link-active {
64
- span {
65
- @apply font-medium border-primary #{!important};
66
- }
67
- }
68
- }
58
+ @import '@explorer-1/common/src/scss/components/NavMobileLink';
69
59
  </style>
@@ -105,23 +105,5 @@ export default defineComponent({
105
105
  })
106
106
  </script>
107
107
  <style lang="scss">
108
- .NavMobileSecondaryDropdown {
109
- .NavDropdownToggle {
110
- span {
111
- @apply border-b border-transparent;
112
- }
113
-
114
- &.-open {
115
- span {
116
- @apply border-gray-dark font-normal;
117
- }
118
- }
119
-
120
- &.-active {
121
- span {
122
- @apply font-medium border-primary #{!important};
123
- }
124
- }
125
- }
126
- }
108
+ @import '@explorer-1/common/src/scss/components/NavMobileSecondaryDropdown';
127
109
  </style>