luna-one 3.1.586 → 3.1.587

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. package/README.md +2315 -2315
  2. package/dist/application/assets/images/carat-down.svg +3 -3
  3. package/dist/application/assets/images/carat-up.svg +3 -3
  4. package/dist/application/assets/images/close-blue.svg +4 -4
  5. package/dist/application/assets/images/close.svg +3 -3
  6. package/dist/application/assets/images/ellipses.svg +6 -6
  7. package/dist/application/assets/images/facebook.svg +13 -13
  8. package/dist/application/assets/images/instagram.svg +19 -19
  9. package/dist/application/assets/images/linkedin.svg +15 -15
  10. package/dist/application/assets/images/twitter.svg +17 -17
  11. package/dist/application/assets/images/youtube.svg +14 -14
  12. package/dist/application/components/Loading/Loading.scss +10 -10
  13. package/dist/global-styles/content/typography.scss +140 -140
  14. package/dist/global-styles/fonts/benton.scss +113 -113
  15. package/dist/global-styles/global-terra.scss +10 -10
  16. package/dist/global-styles/global-vars.scss +599 -599
  17. package/dist/global-styles/layout/_css-grid.scss +20 -20
  18. package/dist/global-styles/layout/_media-queries.scss +35 -35
  19. package/dist/global-styles/layout/_normalize.scss +340 -340
  20. package/dist/global-styles/layout/_reset.scss +13 -13
  21. package/dist/global-styles/mixins/_box-shadow.scss +6 -6
  22. package/dist/global-styles/mixins/_mixins.scss +5 -5
  23. package/dist/global-styles/mixins/_organism-padding-hack.scss +7 -7
  24. package/dist/global-styles/mixins/_typography.scss +102 -102
  25. package/dist/global-styles/mixins/_yiq.scss +50 -50
  26. package/dist/global-styles/mixins/_z-index.scss +3 -3
  27. package/dist/global-styles/terra.scss +15 -15
  28. package/dist/global-styles/utilities/_box-shadow.scss +8 -8
  29. package/dist/global-styles/utilities/_display.scss +48 -48
  30. package/dist/global-styles/utilities/_font-family.scss +15 -15
  31. package/dist/global-styles/utilities/_parallax.scss +23 -23
  32. package/dist/global-styles/utilities/_text-align.scss +24 -24
  33. package/dist/luna/components/2x2/2x2.scss +915 -915
  34. package/dist/luna/components/AdminCategoryData/AdminCategoryData.scss +81 -81
  35. package/dist/luna/components/AdminProductData/AdminProductData.scss +75 -75
  36. package/dist/luna/components/BlockListItems/BlockListItems.scss +285 -285
  37. package/dist/luna/components/BrowserSupportBanner/BrowserSupportBanner.scss +6 -6
  38. package/dist/luna/components/CTAButtons/CTAButtons.scss +19 -19
  39. package/dist/luna/components/ComparisonTable/ComparisonTable.scss +331 -331
  40. package/dist/luna/components/CtaWithHeader/CtaWithHeader.scss +324 -324
  41. package/dist/luna/components/DataPoint/DataPoint.scss +170 -170
  42. package/dist/luna/components/EventCard/EventCard.scss +134 -134
  43. package/dist/luna/components/FilterSection/FilterSection.js +85 -0
  44. package/dist/luna/components/FilterSection/FilterSection.scss +141 -0
  45. package/dist/luna/components/FilterSection/FilterSectionMethods.js +71 -0
  46. package/dist/luna/components/HTMLEmbed/HTMLEmbed.scss +51 -51
  47. package/dist/luna/components/Header/Header.scss +36 -36
  48. package/dist/luna/components/ImageGallery/ImageGallery.scss +442 -442
  49. package/dist/luna/components/InPageJumpNav/InPageJumpNav.scss +122 -122
  50. package/dist/luna/components/JobPosting/JobPosting.scss +171 -171
  51. package/dist/luna/components/LinkList/LinkList.scss +59 -59
  52. package/dist/luna/components/LoadingSpinner/LoadingSpinner.scss +34 -34
  53. package/dist/luna/components/Login/Login.scss +180 -180
  54. package/dist/luna/components/MegaMenu/MegaMenu.scss +570 -570
  55. package/dist/luna/components/MiniFeatDropdown/MiniFeatDropdown.scss +107 -107
  56. package/dist/luna/components/MobileLogin/MobileLogin.scss +38 -38
  57. package/dist/luna/components/MobileMegaMenu/MobileMegaMenu.scss +289 -289
  58. package/dist/luna/components/MobileMenu/MobileMenu.scss +70 -70
  59. package/dist/luna/components/MobileNav/MobileNav.scss +286 -286
  60. package/dist/luna/components/NavBarTop/NavBarTop.scss +403 -403
  61. package/dist/luna/components/NavSearch/NavSearch.scss +130 -130
  62. package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntries.scss +339 -339
  63. package/dist/luna/components/OverlayNotice/OverlayNotice.scss +247 -247
  64. package/dist/luna/components/Pagination/Pagination.scss +27 -27
  65. package/dist/luna/components/ProductSummary/ProductSummary.scss +273 -273
  66. package/dist/luna/components/ProseLayout/ProseLayout.scss +384 -384
  67. package/dist/luna/components/RegionCard/RegionCard.scss +86 -86
  68. package/dist/luna/components/ScrollInPlace/ScrollInPlace.scss +219 -219
  69. package/dist/luna/components/SketchUpPricingCard/SketchUpPricingCard.scss +142 -142
  70. package/dist/luna/components/SlideOutFeat/SlideOutFeat.scss +124 -124
  71. package/dist/luna/components/StoreFrontCard/StoreFrontCard.scss +434 -434
  72. package/dist/luna/components/SupportCard/SupportCard.scss +134 -134
  73. package/dist/luna/components/Tabs/Tabs.scss +871 -871
  74. package/dist/luna/components/TimeBasedList/TimeBasedList.scss +394 -394
  75. package/dist/luna/components/TrainerCard/TrainerCard.scss +51 -51
  76. package/dist/luna/components/TrialForm/TrialComponents/TrialSpecifics.scss +44 -44
  77. package/dist/luna/components/TrialForm/TrialComponents/TrialSummary.scss +57 -57
  78. package/dist/luna/components/TrialForm/TrialFormStart/TrialFormStart.scss +28 -28
  79. package/dist/luna/components/TrialForm/images/check.svg +3 -3
  80. package/dist/luna/components/TrialForm/images/form-border-bottom-dark.svg +4 -4
  81. package/dist/luna/components/TrialForm/images/form-border-bottom-light.svg +4 -4
  82. package/dist/luna/components/TrialForm/images/form-border-top-dark.svg +4 -4
  83. package/dist/luna/components/TrialForm/images/form-border-top-light.svg +4 -4
  84. package/dist/luna/components/UnboundedCard/UnboundedCard.scss +108 -108
  85. package/dist/luna/components/UnboundedCard/playIcon.svg +17 -17
  86. package/dist/luna/components/VariableContentCard/VariableContentCard.scss +253 -253
  87. package/dist/luna/components/Video/Video.scss +209 -209
  88. package/dist/luna/components/VidyardModal/VidyardModal.scss +34 -34
  89. package/dist/luna/components/WaffleMenu/WaffleMenu.scss +73 -73
  90. package/dist/luna/featurettes/Accordion/Accordion.scss +154 -154
  91. package/dist/luna/featurettes/CustomFeat/CustomFeat.scss +17 -17
  92. package/dist/luna/featurettes/Feat1/Feat1.scss +110 -110
  93. package/dist/luna/featurettes/Feat2A/Feat2A.scss +132 -132
  94. package/dist/luna/featurettes/Feat2B/Feat2B.scss +231 -231
  95. package/dist/luna/featurettes/Feat3/Feat3.scss +49 -49
  96. package/dist/luna/featurettes/Feat4/Feat4.scss +86 -86
  97. package/dist/luna/featurettes/Feat5/Feat5.scss +235 -235
  98. package/dist/luna/featurettes/Feat7/Feat7.scss +49 -49
  99. package/dist/luna/featurettes/Feat8/Feat8.scss +103 -103
  100. package/dist/luna/featurettes/IconTextList/IconTextList.scss +124 -124
  101. package/dist/luna/featurettes/ProductsPackage/ProductsPackage.scss +194 -194
  102. package/dist/luna/featurettes/PullQuote/PullQuote.scss +400 -400
  103. package/dist/luna/featurettes/PullQuote/ico-quote-white.svg +3 -3
  104. package/dist/luna/featurettes/PullQuote/ico-quote.svg +3 -3
  105. package/dist/luna/heroes/FilterHero/FilterHero.scss +80 -80
  106. package/dist/luna/heroes/FullBackgroundHero/FullBackgroundHero.scss +722 -722
  107. package/dist/luna/heroes/Hero1/Hero1.scss +223 -223
  108. package/dist/luna/heroes/Hero2/Hero2.scss +165 -165
  109. package/dist/luna/heroes/Hero3/Hero3.scss +250 -250
  110. package/dist/luna/heroes/Hero4/Hero4.scss +112 -112
  111. package/dist/luna/heroes/Hero6/Hero6.scss +127 -127
  112. package/dist/luna/heroes/Hero7/Hero7.scss +193 -193
  113. package/dist/luna/heroes/SuperHero/SuperHero.scss +804 -804
  114. package/dist/luna/images/arrow-diagonal-black.svg +13 -13
  115. package/dist/luna/images/arrow-diagonal-blue.svg +13 -13
  116. package/dist/luna/images/arrow-diagonal-white.svg +13 -13
  117. package/dist/luna/images/bulletpoint.svg +3 -3
  118. package/dist/luna/images/callout-icon.svg +3 -3
  119. package/dist/luna/images/check-blue.svg +4 -4
  120. package/dist/luna/images/circle-arrow-right-black.svg +3 -3
  121. package/dist/luna/images/circle-arrow-right-white.svg +3 -3
  122. package/dist/luna/images/circle-arrow.svg +3 -3
  123. package/dist/luna/images/close-button.svg +42 -42
  124. package/dist/luna/images/close-dark-navy.svg +3 -3
  125. package/dist/luna/images/close-icon.svg +3 -3
  126. package/dist/luna/images/collapse-close-blue.svg +5 -5
  127. package/dist/luna/images/collapse-close-gold.svg +5 -5
  128. package/dist/luna/images/collapse-open-blue.svg +4 -4
  129. package/dist/luna/images/collapse-open-gold.svg +4 -4
  130. package/dist/luna/images/cross-medium-blue.svg +4 -4
  131. package/dist/luna/images/cross-medium-white.svg +5 -5
  132. package/dist/luna/images/down-caret-dark-blue.svg +4 -4
  133. package/dist/luna/images/down-caret-dark-gray.svg +4 -4
  134. package/dist/luna/images/down-caret-light-gray.svg +4 -4
  135. package/dist/luna/images/downArrow.svg +36 -36
  136. package/dist/luna/images/external-arrow-blue.svg +11 -11
  137. package/dist/luna/images/external-arrow-white-theme.svg +12 -12
  138. package/dist/luna/images/external-arrow.svg +12 -12
  139. package/dist/luna/images/form-border-top-light.svg +4 -4
  140. package/dist/luna/images/frame-intersection.svg +3 -3
  141. package/dist/luna/images/gallery-image-corner-border.svg +3 -3
  142. package/dist/luna/images/green-tick.svg +3 -3
  143. package/dist/luna/images/internal-arrow-blue.svg +15 -15
  144. package/dist/luna/images/internal-arrow-white-theme.svg +15 -15
  145. package/dist/luna/images/internal-arrow.svg +15 -15
  146. package/dist/luna/images/logo-icon.svg +17 -17
  147. package/dist/luna/images/pdf-doc.svg +9 -9
  148. package/dist/luna/images/play.svg +17 -17
  149. package/dist/luna/images/right-caret-dark-blue.svg +3 -3
  150. package/dist/luna/images/right-caret-light-gray.svg +4 -4
  151. package/dist/luna/images/right-caret-light-yellow-stroke.svg +9 -9
  152. package/dist/luna/images/right-caret-light-yellow.svg +4 -4
  153. package/dist/luna/images/right-caret-medium-gray.svg +4 -4
  154. package/dist/luna/images/search.svg +9 -9
  155. package/dist/luna/images/skipicon.svg +154 -154
  156. package/dist/luna/images/text-doc.svg +9 -9
  157. package/dist/luna/images/text-lines.svg +22 -22
  158. package/dist/luna/images/tooltip-close-icon.svg +3 -3
  159. package/dist/luna/images/tooltip-icon.svg +3 -3
  160. package/dist/luna/images/up-arrow.svg +36 -36
  161. package/dist/luna/images/up-right-arrow.svg +9 -9
  162. package/dist/luna/images/user-profile.svg +37 -37
  163. package/dist/luna/images/user.svg +4 -4
  164. package/dist/luna/images/waffle.svg +11 -11
  165. package/dist/luna/images/worldwide.svg +19 -19
  166. package/dist/luna/list-feats/ListFeat/ListFeat.scss +112 -112
  167. package/dist/luna/list-feats/ListFeat1/ListFeat1.scss +94 -94
  168. package/dist/luna/list-feats/ListFeat2/ListFeat2.scss +19 -19
  169. package/dist/luna/list-feats/ListFeat4/ListFeat4.scss +32 -32
  170. package/dist/luna/list-feats/ListFeat5/ListFeat5.scss +26 -26
  171. package/dist/luna/list-feats/ListFeat6/ListFeat6.scss +34 -34
  172. package/dist/luna/list-feats/ListFeat7/ListFeat7.scss +13 -13
  173. package/dist/luna/list-feats/ListFeatCustom/ListFeatCustom.scss +7 -7
  174. package/dist/luna/other-organisms/Carousel/Carousel.scss +155 -155
  175. package/dist/luna/other-organisms/Flyout/Flyout.scss +367 -367
  176. package/dist/luna/other-organisms/Footer/Footer.scss +484 -484
  177. package/dist/luna/other-organisms/LanguageSelector/LanguageSelector.scss +318 -318
  178. package/dist/luna/other-organisms/MarketoForm/MarketoForm.scss +56 -56
  179. package/dist/luna/other-organisms/NavBar/NavBar.scss +628 -628
  180. package/dist/luna/other-organisms/SubNav/SubNav.scss +274 -274
  181. package/dist/luna/utils/hooks/useClickListener.js +22 -0
  182. package/package.json +91 -91
@@ -1,170 +1,170 @@
1
- @import "../../../global-styles/terra.scss";
2
-
3
-
4
- /* similar styling between variants */
5
-
6
- .data-point {
7
- &__header, &__description {
8
- font-size: $body-font-size;
9
- line-height: 22px;
10
- letter-spacing: 0.16px;
11
- margin: 0;
12
- padding: 0;
13
- }
14
-
15
- &__header {
16
- @include benton-bold();
17
- }
18
-
19
- &__description {
20
- @include benton-light();
21
- }
22
-
23
- &__icon {
24
- width: 47.61px !important;
25
- height: 43.8px !important;
26
- margin-bottom: 16px;
27
- display: inline-block;
28
-
29
- @media screen and (max-width: $breakpoint-md) {
30
- width: 75.61px !important;
31
- }
32
-
33
- @media screen and (max-width: $breakpoint-xs) {
34
- width: 47.61px !important;
35
- }
36
- }
37
- }
38
-
39
-
40
- /* variant 1 styling */
41
-
42
- .data-point--variant_1 {
43
- width: 560px;
44
- padding: 50px 40px 103px 40px;
45
- display: flex;
46
- flex-direction: row;
47
-
48
- @media screen and (max-width: $breakpoint-md) {
49
- width: 421px;
50
- flex-direction: column;
51
- padding: 50px 60px;
52
- }
53
-
54
- @media screen and (max-width: $breakpoint-xs) {
55
- max-width: 300px;
56
- height: fit-content !important;
57
- padding: 40px 40px 60px 40px;
58
- align-items: center;
59
- }
60
-
61
- &__item {
62
- min-width: 128px;
63
- max-width: 100%;
64
-
65
- @media screen and (max-width: $breakpoint-md) {
66
- display: flex;
67
- width: 295px;
68
-
69
- }
70
-
71
- @media screen and (max-width: $breakpoint-xs) {
72
- display: flex;
73
- flex-direction: column;
74
- }
75
-
76
- @media screen and (max-width: $breakpoint-xxs) {
77
-
78
- max-width: 201px;
79
- }
80
-
81
- &--1, &--2 {
82
- margin-left: 48px;
83
- @media screen and (max-width: $breakpoint-md){
84
- margin-left: 0;
85
- margin-top: 32px;
86
- }
87
- @media screen and (max-width: $breakpoint-xxs) {
88
- margin-top: 24px;
89
- }
90
- }
91
- }
92
-
93
- &__text-wrapper {
94
- @media screen and (max-width: $breakpoint-md) {
95
- margin-left: 16px;
96
- }
97
- @media screen and (max-width: $breakpoint-xs) {
98
- margin-left: 0;
99
- }
100
- }
101
-
102
- &__header {
103
- @media screen and (max-width: $breakpoint-sm) {
104
- display: block !important;
105
- }
106
- }
107
-
108
- .ter-icon {
109
- @media screen and (max-width: $breakpoint-xxs) {
110
- margin-bottom: 8px !important;
111
- }
112
- }
113
-
114
-
115
- }
116
-
117
-
118
- /* variant 2 styling*/
119
-
120
- .data-point--variant_2a, .data-point--variant_2b {
121
- display: flex;
122
- flex-direction: column;
123
- width: 320px;
124
- padding: 65px 40px;
125
-
126
- @media screen and (max-width: $breakpoint-xxs) {
127
- width: 275px;
128
- padding: 65px 23px;
129
- }
130
-
131
- &__text-wrapper {
132
- @media screen and (max-width: $breakpoint-xxs) {
133
- width: 230px;
134
- }
135
- }
136
-
137
- &__item {
138
- @media screen and (max-width: $breakpoint-xxs) {
139
- padding: 0 !important;
140
- width: 230px;
141
- text-align: center;
142
- }
143
- }
144
-
145
- &__item {
146
- &--1, &--2 {
147
- margin-top: 48px;
148
- }
149
- }
150
- }
151
-
152
- .data-point--variant_2b {
153
- &__item {
154
- text-align: center;
155
- }
156
- }
157
-
158
- /* variant 3 styling*/
159
-
160
- .data-point--variant_3 {
161
- max-width: 320px;
162
- min-width: 240px;
163
- &__item {
164
- width: 239px;
165
- margin: 0 auto;
166
- padding: 40px;
167
- text-align: center;
168
- }
169
- }
170
-
1
+ @import "../../../global-styles/terra.scss";
2
+
3
+
4
+ /* similar styling between variants */
5
+
6
+ .data-point {
7
+ &__header, &__description {
8
+ font-size: $body-font-size;
9
+ line-height: 22px;
10
+ letter-spacing: 0.16px;
11
+ margin: 0;
12
+ padding: 0;
13
+ }
14
+
15
+ &__header {
16
+ @include benton-bold();
17
+ }
18
+
19
+ &__description {
20
+ @include benton-light();
21
+ }
22
+
23
+ &__icon {
24
+ width: 47.61px !important;
25
+ height: 43.8px !important;
26
+ margin-bottom: 16px;
27
+ display: inline-block;
28
+
29
+ @media screen and (max-width: $breakpoint-md) {
30
+ width: 75.61px !important;
31
+ }
32
+
33
+ @media screen and (max-width: $breakpoint-xs) {
34
+ width: 47.61px !important;
35
+ }
36
+ }
37
+ }
38
+
39
+
40
+ /* variant 1 styling */
41
+
42
+ .data-point--variant_1 {
43
+ width: 560px;
44
+ padding: 50px 40px 103px 40px;
45
+ display: flex;
46
+ flex-direction: row;
47
+
48
+ @media screen and (max-width: $breakpoint-md) {
49
+ width: 421px;
50
+ flex-direction: column;
51
+ padding: 50px 60px;
52
+ }
53
+
54
+ @media screen and (max-width: $breakpoint-xs) {
55
+ max-width: 300px;
56
+ height: fit-content !important;
57
+ padding: 40px 40px 60px 40px;
58
+ align-items: center;
59
+ }
60
+
61
+ &__item {
62
+ min-width: 128px;
63
+ max-width: 100%;
64
+
65
+ @media screen and (max-width: $breakpoint-md) {
66
+ display: flex;
67
+ width: 295px;
68
+
69
+ }
70
+
71
+ @media screen and (max-width: $breakpoint-xs) {
72
+ display: flex;
73
+ flex-direction: column;
74
+ }
75
+
76
+ @media screen and (max-width: $breakpoint-xxs) {
77
+
78
+ max-width: 201px;
79
+ }
80
+
81
+ &--1, &--2 {
82
+ margin-left: 48px;
83
+ @media screen and (max-width: $breakpoint-md){
84
+ margin-left: 0;
85
+ margin-top: 32px;
86
+ }
87
+ @media screen and (max-width: $breakpoint-xxs) {
88
+ margin-top: 24px;
89
+ }
90
+ }
91
+ }
92
+
93
+ &__text-wrapper {
94
+ @media screen and (max-width: $breakpoint-md) {
95
+ margin-left: 16px;
96
+ }
97
+ @media screen and (max-width: $breakpoint-xs) {
98
+ margin-left: 0;
99
+ }
100
+ }
101
+
102
+ &__header {
103
+ @media screen and (max-width: $breakpoint-sm) {
104
+ display: block !important;
105
+ }
106
+ }
107
+
108
+ .ter-icon {
109
+ @media screen and (max-width: $breakpoint-xxs) {
110
+ margin-bottom: 8px !important;
111
+ }
112
+ }
113
+
114
+
115
+ }
116
+
117
+
118
+ /* variant 2 styling*/
119
+
120
+ .data-point--variant_2a, .data-point--variant_2b {
121
+ display: flex;
122
+ flex-direction: column;
123
+ width: 320px;
124
+ padding: 65px 40px;
125
+
126
+ @media screen and (max-width: $breakpoint-xxs) {
127
+ width: 275px;
128
+ padding: 65px 23px;
129
+ }
130
+
131
+ &__text-wrapper {
132
+ @media screen and (max-width: $breakpoint-xxs) {
133
+ width: 230px;
134
+ }
135
+ }
136
+
137
+ &__item {
138
+ @media screen and (max-width: $breakpoint-xxs) {
139
+ padding: 0 !important;
140
+ width: 230px;
141
+ text-align: center;
142
+ }
143
+ }
144
+
145
+ &__item {
146
+ &--1, &--2 {
147
+ margin-top: 48px;
148
+ }
149
+ }
150
+ }
151
+
152
+ .data-point--variant_2b {
153
+ &__item {
154
+ text-align: center;
155
+ }
156
+ }
157
+
158
+ /* variant 3 styling*/
159
+
160
+ .data-point--variant_3 {
161
+ max-width: 320px;
162
+ min-width: 240px;
163
+ &__item {
164
+ width: 239px;
165
+ margin: 0 auto;
166
+ padding: 40px;
167
+ text-align: center;
168
+ }
169
+ }
170
+
@@ -1,134 +1,134 @@
1
- @import "../../../global-styles/terra.scss";
2
-
3
- $event-card-border: 1px solid color("gray-4");
4
-
5
- .mep-event-card {
6
- min-height: 135px;
7
- border-top: $event-card-border;
8
- border-bottom: $event-card-border;
9
- margin-top: 40px;
10
-
11
- display: -ms-grid;
12
-
13
- display: grid;
14
- -ms-grid-columns: 140px 115px 1fr 40px;
15
- grid-template-columns: 140px 115px 1fr 40px;
16
- -webkit-box-align: center;
17
- -ms-flex-align: center;
18
- align-items: center;
19
-
20
- @media screen and (max-width: 900px) {
21
- display: -webkit-box;
22
- display: -ms-flexbox;
23
- display: flex;
24
- -ms-flex-wrap: wrap;
25
- flex-wrap: wrap;
26
- max-width: 256px;
27
- -webkit-box-pack: center;
28
- -ms-flex-pack: center;
29
- justify-content: center;
30
- margin: 40px auto;
31
- }
32
-
33
- &__date-section {
34
- height: calc(100% - 35px);
35
- border-right: $event-card-border;
36
-
37
- @media screen and (max-width: 900px) {
38
- height: 95px;
39
- margin-top: 20px;
40
- }
41
- }
42
-
43
- &__focus:focus {
44
- outline: 2px solid $sky-blue !important;
45
- }
46
-
47
- &__date,
48
- &__year {
49
- font-size: $eyebrow-font-size;
50
- line-height: 14px;
51
- margin: 0 20px;
52
- text-align: end;
53
-
54
- @media screen and (max-width: 900px) {
55
- padding-right: $large-body-font-size;
56
- margin: 0;
57
- }
58
- }
59
-
60
- &__date {
61
- margin-bottom: 10px;
62
- @include benton-medium();
63
- }
64
-
65
- &__image {
66
- width: 95px;
67
- height: 95px;
68
- margin-left: 20px;
69
- display: block;
70
-
71
- @media screen and (max-width: 900px) {
72
- height: 95px;
73
- margin-top: 20px;
74
- }
75
- }
76
-
77
- &__details {
78
- margin: 0 20px;
79
- margin: 17px 20px;
80
- -webkit-box-align: center;
81
- -ms-flex-align: center;
82
- align-items: center;
83
- }
84
-
85
- &__industry {
86
- font-size: $eyebrow-font-size;
87
- line-height: 14px;
88
- margin-bottom: 8px;
89
- color: #9d9da6;
90
- }
91
-
92
- &__name {
93
- font-size: $large-body-font-size;
94
- line-height: 20px;
95
- @include benton-medium();
96
- }
97
-
98
- &__description {
99
- font-size: $large-body-font-size;
100
- line-height: 19px;
101
- color: #363545;
102
- font-weight: 300;
103
- }
104
-
105
- &__location {
106
- font-size: $large-body-font-size;
107
- line-height: 19px;
108
- margin-bottom: 0;
109
- }
110
-
111
- .ter-icon {
112
- -webkit-transition: 0.3;
113
- -o-transition: 0.3;
114
- transition: 0.3;
115
-
116
- &:hover {
117
- -webkit-transform: scale(1.2);
118
- -ms-transform: scale(1.2);
119
- transform: scale(1.2);
120
- }
121
- @media screen and (max-width: 900px) {
122
- margin-bottom: 24px;
123
- -webkit-transform: translateX(100px);
124
- -ms-transform: translateX(100px);
125
- transform: translateX(100px);
126
-
127
- &:hover {
128
- -webkit-transform: scale(1) translateX(100px);
129
- -ms-transform: scale(1) translateX(100px);
130
- transform: scale(1) translateX(100px);
131
- }
132
- }
133
- }
134
- }
1
+ @import "../../../global-styles/terra.scss";
2
+
3
+ $event-card-border: 1px solid color("gray-4");
4
+
5
+ .mep-event-card {
6
+ min-height: 135px;
7
+ border-top: $event-card-border;
8
+ border-bottom: $event-card-border;
9
+ margin-top: 40px;
10
+
11
+ display: -ms-grid;
12
+
13
+ display: grid;
14
+ -ms-grid-columns: 140px 115px 1fr 40px;
15
+ grid-template-columns: 140px 115px 1fr 40px;
16
+ -webkit-box-align: center;
17
+ -ms-flex-align: center;
18
+ align-items: center;
19
+
20
+ @media screen and (max-width: 900px) {
21
+ display: -webkit-box;
22
+ display: -ms-flexbox;
23
+ display: flex;
24
+ -ms-flex-wrap: wrap;
25
+ flex-wrap: wrap;
26
+ max-width: 256px;
27
+ -webkit-box-pack: center;
28
+ -ms-flex-pack: center;
29
+ justify-content: center;
30
+ margin: 40px auto;
31
+ }
32
+
33
+ &__date-section {
34
+ height: calc(100% - 35px);
35
+ border-right: $event-card-border;
36
+
37
+ @media screen and (max-width: 900px) {
38
+ height: 95px;
39
+ margin-top: 20px;
40
+ }
41
+ }
42
+
43
+ &__focus:focus {
44
+ outline: 2px solid $sky-blue !important;
45
+ }
46
+
47
+ &__date,
48
+ &__year {
49
+ font-size: $eyebrow-font-size;
50
+ line-height: 14px;
51
+ margin: 0 20px;
52
+ text-align: end;
53
+
54
+ @media screen and (max-width: 900px) {
55
+ padding-right: $large-body-font-size;
56
+ margin: 0;
57
+ }
58
+ }
59
+
60
+ &__date {
61
+ margin-bottom: 10px;
62
+ @include benton-medium();
63
+ }
64
+
65
+ &__image {
66
+ width: 95px;
67
+ height: 95px;
68
+ margin-left: 20px;
69
+ display: block;
70
+
71
+ @media screen and (max-width: 900px) {
72
+ height: 95px;
73
+ margin-top: 20px;
74
+ }
75
+ }
76
+
77
+ &__details {
78
+ margin: 0 20px;
79
+ margin: 17px 20px;
80
+ -webkit-box-align: center;
81
+ -ms-flex-align: center;
82
+ align-items: center;
83
+ }
84
+
85
+ &__industry {
86
+ font-size: $eyebrow-font-size;
87
+ line-height: 14px;
88
+ margin-bottom: 8px;
89
+ color: #9d9da6;
90
+ }
91
+
92
+ &__name {
93
+ font-size: $large-body-font-size;
94
+ line-height: 20px;
95
+ @include benton-medium();
96
+ }
97
+
98
+ &__description {
99
+ font-size: $large-body-font-size;
100
+ line-height: 19px;
101
+ color: #363545;
102
+ font-weight: 300;
103
+ }
104
+
105
+ &__location {
106
+ font-size: $large-body-font-size;
107
+ line-height: 19px;
108
+ margin-bottom: 0;
109
+ }
110
+
111
+ .ter-icon {
112
+ -webkit-transition: 0.3;
113
+ -o-transition: 0.3;
114
+ transition: 0.3;
115
+
116
+ &:hover {
117
+ -webkit-transform: scale(1.2);
118
+ -ms-transform: scale(1.2);
119
+ transform: scale(1.2);
120
+ }
121
+ @media screen and (max-width: 900px) {
122
+ margin-bottom: 24px;
123
+ -webkit-transform: translateX(100px);
124
+ -ms-transform: translateX(100px);
125
+ transform: translateX(100px);
126
+
127
+ &:hover {
128
+ -webkit-transform: scale(1) translateX(100px);
129
+ -ms-transform: scale(1) translateX(100px);
130
+ transform: scale(1) translateX(100px);
131
+ }
132
+ }
133
+ }
134
+ }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
10
+ var _react = _interopRequireWildcard(require("react"));
11
+ require("./FilterSection.scss");
12
+ var _useMouse2 = _interopRequireDefault(require("../../utils/hooks/useMouse"));
13
+ var _lodash = require("lodash");
14
+ var _FilterSectionMethods = require("./FilterSectionMethods");
15
+ var _useClickListener = _interopRequireDefault(require("../../utils/hooks/useClickListener"));
16
+ var FilterSection = function FilterSection(_ref) {
17
+ var content = _ref.content;
18
+ var introSection = content.introSection,
19
+ allFilters = content.allFilters,
20
+ filtersTitle = content.filtersTitle,
21
+ filterOptionClickHandler = content.filterOptionClickHandler,
22
+ activeFilters = content.activeFilters,
23
+ clearAllFiltersHandler = content.clearAllFiltersHandler,
24
+ removeActiveFilterHandler = content.removeActiveFilterHandler;
25
+ var _useMouse = (0, _useMouse2["default"])(),
26
+ mouse = _useMouse.mouse;
27
+ var _useState = (0, _react.useState)(null),
28
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
29
+ openFilterDropdown = _useState2[0],
30
+ setOpenFilterDropdown = _useState2[1]; // controls which filter dropdown is open
31
+ var _useState3 = (0, _react.useState)(activeFilters),
32
+ _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
33
+ activeFilterChips = _useState4[0],
34
+ setActiveFilterChips = _useState4[1];
35
+ var filterDropdownClickHandler = function filterDropdownClickHandler(e, filter) {
36
+ var _e$target;
37
+ if (!(e !== null && e !== void 0 && (_e$target = e.target) !== null && _e$target !== void 0 && _e$target.classList.contains('ter-checkbox__label')) && openFilterDropdown === filter) {
38
+ // if clicked dropdown is already open, close it
39
+ setOpenFilterDropdown(null);
40
+ } else {
41
+ setOpenFilterDropdown(filter);
42
+ }
43
+ };
44
+ var handleCloseDropdown = function handleCloseDropdown(e) {
45
+ var classCheck = function classCheck(target) {
46
+ var _target$classList, _target$classList2, _target$classList3, _target$classList4;
47
+ if (target !== null && target !== void 0 && (_target$classList = target.classList) !== null && _target$classList !== void 0 && _target$classList.contains('ter-filter-section__filter-label') || target !== null && target !== void 0 && (_target$classList2 = target.classList) !== null && _target$classList2 !== void 0 && _target$classList2.contains('ter-filter-section__filter-placeholder') || target !== null && target !== void 0 && (_target$classList3 = target.classList) !== null && _target$classList3 !== void 0 && _target$classList3.contains('ter-filter-section__filter-list') || target !== null && target !== void 0 && (_target$classList4 = target.classList) !== null && _target$classList4 !== void 0 && _target$classList4.contains('ter-checkbox__label')) {
48
+ return true;
49
+ }
50
+ return false;
51
+ };
52
+ if (classCheck(e === null || e === void 0 ? void 0 : e.target) === false) {
53
+ setOpenFilterDropdown(null);
54
+ }
55
+ };
56
+ var query = "";
57
+ if (typeof window !== "undefined" && typeof document !== "undefined") {
58
+ var _document;
59
+ query = ((_document = document) === null || _document === void 0 ? void 0 : _document.querySelectorAll(".ter-filter-section__filter-placeholder").length) > 0;
60
+ }
61
+ (0, _useClickListener["default"])(handleCloseDropdown, query);
62
+ (0, _react.useEffect)(function () {
63
+ setActiveFilterChips(activeFilters);
64
+ }, [activeFilters]);
65
+ return /*#__PURE__*/_react["default"].createElement("section", {
66
+ className: "ter-filter-section"
67
+ }, introSection && /*#__PURE__*/_react["default"].createElement("p", null, introSection), allFilters && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
68
+ className: "ter-filter-section__title"
69
+ }, /*#__PURE__*/_react["default"].createElement("h4", null, filtersTitle)), /*#__PURE__*/_react["default"].createElement("div", {
70
+ className: "ter-filter-section__outer "
71
+ }, /*#__PURE__*/_react["default"].createElement("div", {
72
+ className: "ter-filter-section__filters"
73
+ }, (0, _FilterSectionMethods.renderFiltersSection)(allFilters, filterDropdownClickHandler, filterOptionClickHandler, openFilterDropdown, activeFilters), /*#__PURE__*/_react["default"].createElement("div", {
74
+ className: "ter-filter-section__clear"
75
+ }, activeFilters && /*#__PURE__*/_react["default"].createElement("button", {
76
+ className: "ter-filter-section__clear-button",
77
+ onClick: function onClick(e) {
78
+ return clearAllFiltersHandler(e);
79
+ }
80
+ }, "Clear all filters")))), (activeFilterChips === null || activeFilterChips === void 0 ? void 0 : activeFilterChips.length) > 0 && /*#__PURE__*/_react["default"].createElement("div", {
81
+ className: "ter-filter-section__chips"
82
+ }, (0, _FilterSectionMethods.renderActiveFilters)(activeFilterChips, removeActiveFilterHandler))));
83
+ };
84
+ var _default = FilterSection;
85
+ exports["default"] = _default;