luna-one 3.1.464 → 3.1.465

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.
@@ -3,26 +3,37 @@
3
3
  .ter-bounded-cards {
4
4
  display: grid;
5
5
  grid-template-columns: repeat(4, 1fr);
6
- grid-gap: 48px;
6
+ grid-gap: 36px;
7
+ padding: 0px calc((100% - 1280px) / 2);
8
+ margin: 0 auto;
7
9
 
8
- @media screen and (max-width: $breakpoint-md) {
10
+ @media screen and (max-width: 1000px) {
9
11
  grid-template-columns: repeat(3, 1fr);
10
- grid-gap: 24px;
11
12
  }
12
13
 
13
- @media screen and (max-width: $breakpoint-sm) {
14
+ @media screen and (max-width: 900px) {
14
15
  grid-template-columns: repeat(2, 1fr);
15
16
  }
16
17
 
17
18
  @media screen and (max-width: $breakpoint-xs) {
18
19
  grid-template-columns: repeat(1, 1fr);
19
- grid-gap: 20px;
20
20
  }
21
21
 
22
- .ter-card {
23
- max-width: 320px;
24
- width: 100%;
25
- margin: 0 auto;
22
+ .ter-bounded-card {
23
+ flex: 1 1 0;
24
+ max-width: 252px;
25
+ min-width: 252px;
26
+ box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.19);
27
+
28
+ @media screen and (max-width: $breakpoint-md) {
29
+ min-width: 200px;
30
+ max-width: 100%;
31
+ }
32
+
33
+ @media screen and (max-width: $breakpoint-sm) {
34
+ min-width: auto;
35
+ max-width: 100%;
36
+ }
26
37
  }
27
38
  }
28
39
 
@@ -22,7 +22,8 @@
22
22
  }
23
23
  }
24
24
 
25
- &.left, &.right {
25
+ &.left,
26
+ &.right {
26
27
  @media screen and (min-width: $breakpoint-sm) {
27
28
  .nav-entries {
28
29
  max-width: 360px;
@@ -64,18 +65,18 @@
64
65
  .nav-entry {
65
66
  cursor: pointer;
66
67
  outline: 0;
67
-
68
+
68
69
  &.focus:focus {
69
70
  outline: 2px solid $trimble-blue;
70
71
  }
71
72
  }
72
73
 
73
74
  &.text-entries {
74
-
75
75
  &.light {
76
76
  border-color: $concrete-gray;
77
77
 
78
- &.left, &.right {
78
+ &.left,
79
+ &.right {
79
80
  .nav-entry {
80
81
  text-align: left;
81
82
  }
@@ -87,12 +88,12 @@
87
88
 
88
89
  &.active {
89
90
  border-color: $dark-navy;
90
-
91
+
91
92
  &:before {
92
93
  position: absolute;
93
94
  display: block;
94
95
  content: "";
95
- width: 0;
96
+ width: 0;
96
97
  height: 0;
97
98
  }
98
99
  .nav-text {
@@ -116,7 +117,7 @@
116
117
  }
117
118
  }
118
119
 
119
- &.dark {
120
+ &.dark {
120
121
  border-color: $concrete-gray;
121
122
 
122
123
  .nav-entry {
@@ -129,18 +130,19 @@
129
130
  border-color: $dark-navy;
130
131
  color: $white;
131
132
  background-color: $dark-navy;
132
-
133
+
133
134
  &:before {
134
135
  position: absolute;
135
136
  display: block;
136
137
  content: "";
137
- width: 0;
138
+ width: 0;
138
139
  height: 0;
139
140
  }
140
141
  }
141
142
  }
142
143
 
143
- &.top, &.bottom {
144
+ &.top,
145
+ &.bottom {
144
146
  gap: 2px;
145
147
 
146
148
  .nav-entry {
@@ -148,7 +150,8 @@
148
150
  }
149
151
  }
150
152
 
151
- &.left, &.right {
153
+ &.left,
154
+ &.right {
152
155
  border: 0;
153
156
  .nav-entry {
154
157
  text-align: left;
@@ -157,9 +160,10 @@
157
160
  }
158
161
  }
159
162
 
160
- &.top, &.bottom {
163
+ &.top,
164
+ &.bottom {
161
165
  .nav-entry {
162
- &:nth-child(n+5) {
166
+ &:nth-child(n + 5) {
163
167
  display: none;
164
168
  }
165
169
  }
@@ -261,13 +265,12 @@
261
265
  }
262
266
 
263
267
  .nav-text {
264
-
265
268
  .nav-title {
266
269
  margin: 0;
267
270
  font-size: 16px;
268
271
  line-height: 24px;
269
272
  font-family: $bold-font-family;
270
-
273
+
271
274
  @media screen and (max-width: $breakpoint-sm) {
272
275
  text-align: left;
273
276
  }
@@ -282,7 +285,6 @@
282
285
  text-align: left;
283
286
  }
284
287
  }
285
-
286
288
  }
287
289
 
288
290
  @media screen and (max-width: $breakpoint-sm) {
@@ -297,7 +299,7 @@
297
299
  position: absolute;
298
300
  display: block;
299
301
  content: "";
300
- width: 0;
302
+ width: 0;
301
303
  height: 0;
302
304
  top: calc(50% - 10px);
303
305
  left: -23px;
@@ -319,10 +321,13 @@
319
321
  border: 0 !important;
320
322
  margin: 0 !important;
321
323
 
322
- &.top, &.left, &.right, &.bottom, {
324
+ &.top,
325
+ &.left,
326
+ &.right,
327
+ &.bottom {
323
328
  order: 2;
324
329
  }
325
-
330
+
326
331
  .nav-entry {
327
332
  width: 100% !important;
328
333
  border: 0 !important;
@@ -331,7 +336,6 @@
331
336
  justify-content: flex-start !important;
332
337
  transform: translateX(0) !important;
333
338
 
334
-
335
339
  &.active {
336
340
  background-color: $dark-navy;
337
341
 
@@ -340,7 +344,6 @@
340
344
  }
341
345
  }
342
346
 
343
-
344
347
  &:not(:last-child) {
345
348
  margin-bottom: 10px !important;
346
349
  }
@@ -367,8 +370,8 @@
367
370
  }
368
371
 
369
372
  &.thumbnails {
370
-
371
- &.top, &.bottom {
373
+ &.top,
374
+ &.bottom {
372
375
  .nav-entry {
373
376
  width: 25%;
374
377
  display: flex;
@@ -377,11 +380,14 @@
377
380
  }
378
381
  }
379
382
 
380
- &.left, &.right {
383
+ &.left,
384
+ &.right {
381
385
  width: auto;
382
386
  }
383
387
 
384
- &.left, &.right, &.bottom {
388
+ &.left,
389
+ &.right,
390
+ &.bottom {
385
391
  @media screen and (max-width: $breakpoint-sm) {
386
392
  padding-bottom: 24px;
387
393
 
@@ -470,21 +476,19 @@
470
476
  }
471
477
 
472
478
  &.round {
473
-
474
- &.top, &.bottom {
475
-
479
+ &.top,
480
+ &.bottom {
476
481
  .nav-entry {
477
- &:nth-child(n+5) {
482
+ &:nth-child(n + 5) {
478
483
  display: none;
479
484
  }
480
485
  }
481
486
  }
482
487
 
483
-
484
-
485
- &.left, &.right {
488
+ &.left,
489
+ &.right {
486
490
  .nav-entry {
487
- &:nth-child(n+5) {
491
+ &:nth-child(n + 5) {
488
492
  display: none;
489
493
  }
490
494
  }
@@ -543,12 +547,11 @@
543
547
  min-width: 45px;
544
548
  }
545
549
 
546
-
547
550
  &:before {
548
551
  position: absolute;
549
552
  display: block;
550
553
  content: "";
551
- width: 0;
554
+ width: 0;
552
555
  height: 0;
553
556
  }
554
557
 
@@ -564,8 +567,8 @@
564
567
  }
565
568
 
566
569
  &.square {
567
-
568
- &.top, &.bottom {
570
+ &.top,
571
+ &.bottom {
569
572
  justify-content: center;
570
573
 
571
574
  .nav-entry {
@@ -573,13 +576,14 @@
573
576
  margin-right: 20px;
574
577
  }
575
578
 
576
- &:nth-child(n+5) {
579
+ &:nth-child(n + 5) {
577
580
  display: none;
578
581
  }
579
582
  }
580
583
  }
581
584
 
582
- &.left, &.right {
585
+ &.left,
586
+ &.right {
583
587
  @media screen and (min-width: $breakpoint-sm) {
584
588
  align-items: center;
585
589
 
@@ -609,7 +613,7 @@
609
613
  }
610
614
 
611
615
  .nav-entry {
612
- &:nth-child(n+5) {
616
+ &:nth-child(n + 5) {
613
617
  display: none;
614
618
  }
615
619
  }
@@ -628,7 +632,7 @@
628
632
  align-items: flex-start;
629
633
  }
630
634
  }
631
-
635
+
632
636
  .nav-entry {
633
637
  width: 126px;
634
638
  max-width: 126px;
@@ -643,25 +647,24 @@
643
647
  }
644
648
 
645
649
  @media screen and (max-width: $breakpoint-sm) {
646
- padding: 5px;
647
- width: 112px;
648
- height: 112px;
649
- }
650
+ padding: 5px;
651
+ width: 112px;
652
+ height: 112px;
653
+ }
650
654
 
651
- @media screen and (max-width: $breakpoint-xs) {
652
- max-width: 75px;
653
- max-height: 75px;
654
- min-width: 75px;
655
- }
655
+ @media screen and (max-width: $breakpoint-xs) {
656
+ max-width: 75px;
657
+ max-height: 75px;
658
+ min-width: 75px;
659
+ }
656
660
 
657
- @media screen and (max-width: $breakpoint-xxs) {
658
- padding: 2px;
659
- max-width: 45px;
660
- max-height: 45px;
661
- min-width: 45px;
662
- }
661
+ @media screen and (max-width: $breakpoint-xxs) {
662
+ padding: 2px;
663
+ max-width: 45px;
664
+ max-height: 45px;
665
+ min-width: 45px;
666
+ }
663
667
 
664
-
665
668
  .nav-thumbnail {
666
669
  position: relative;
667
670
  width: 100%;
@@ -673,7 +676,7 @@
673
676
  position: absolute;
674
677
  display: block;
675
678
  content: "";
676
- width: 0;
679
+ width: 0;
677
680
  height: 0;
678
681
  }
679
682
 
@@ -687,27 +690,39 @@
687
690
  }
688
691
 
689
692
  .nav-entry {
690
-
691
693
  .nav-text {
692
694
  display: none;
693
695
  }
694
696
  }
695
-
696
697
  }
697
698
  }
698
699
 
699
700
  .content-entries {
700
701
  width: 100%;
701
702
  max-width: 100%;
703
+ overflow: hidden;
702
704
 
703
- .ter-bounded-cards {
704
- justify-items: center;
705
+ .ter-block-list-items {
706
+ margin: 0 auto;
707
+ max-width: 1120px !important;
705
708
  }
706
709
 
707
710
  .ter-bounded-card {
708
- max-width: 275px;
711
+ flex: 1 1 0;
712
+ max-width: 250px;
713
+ min-width: 250px;
714
+
715
+ @media screen and (max-width: $breakpoint-md) {
716
+ min-width: 200px;
717
+ max-width: 100%;
718
+ }
719
+
720
+ @media screen and (max-width: $breakpoint-sm) {
721
+ min-width: auto;
722
+ max-width: 100%;
723
+ }
709
724
  }
710
-
725
+
711
726
  .content-entry {
712
727
  width: 100%;
713
728
  display: none;
@@ -717,31 +732,28 @@
717
732
  }
718
733
  }
719
734
  .nested-content .default-layout .default-layout__children {
720
- grid-column: 1/span 16 !important;
735
+ grid-column: 1 / span 16 !important;
736
+ padding: 0 2px 0 2px;
721
737
  }
722
738
  }
723
739
  }
724
740
 
725
-
726
741
  .nav-text-top-mobile {
727
742
  padding-bottom: 16px;
728
743
  border-bottom: 3px solid $dark-navy;
729
744
 
730
745
  &__arrow {
731
- margin: 0 30px 16px;
732
- width: 10px;
733
- border-left: 10px solid transparent !important;
734
- border-right: 10px solid transparent !important;
735
- border-top: 10px solid $dark-navy !important;
736
- }
746
+ margin: 0 30px 16px;
747
+ width: 10px;
748
+ border-left: 10px solid transparent !important;
749
+ border-right: 10px solid transparent !important;
750
+ border-top: 10px solid $dark-navy !important;
751
+ }
737
752
 
738
753
  .nav-title {
739
754
  margin: 0 24px;
740
755
  font-size: 16px;
741
756
  line-height: 24px;
742
757
  font-family: $bold-font-family;
743
- }
758
+ }
744
759
  }
745
-
746
-
747
-
@@ -149,7 +149,17 @@ var ProductsPackage = function ProductsPackage(_ref) {
149
149
  className: "mxp-products-package-container__left-section"
150
150
  }, productEyebrow && /*#__PURE__*/_react["default"].createElement("h1", {
151
151
  className: "mxp-products-package-container__left-section--eyebrow"
152
- }, productEyebrow), (0, _ProductsPackageMethods.formatCards)(cards, width, heightOfTallestCard))));
152
+ }, productEyebrow), /*#__PURE__*/_react["default"].createElement("section", {
153
+ className: "mxp-products-package-container__left-section--card-container",
154
+ style: (cards === null || cards === void 0 ? void 0 : cards.length) > 3 && width >= "600" ? {
155
+ maxHeight: heightOfTallestCard,
156
+ flexDirection: "row",
157
+ flexWrap: "wrap",
158
+ overflowY: "scroll"
159
+ } : {
160
+ maxHeight: heightOfTallestCard
161
+ }
162
+ }, (0, _ProductsPackageMethods.formatCards)(cards, width, heightOfTallestCard)))));
153
163
  };
154
164
 
155
165
  var _default = ProductsPackage;
@@ -6,7 +6,7 @@
6
6
  padding: 70px calc((100% - 1280px) / 2) 0;
7
7
  background: $concrete-gray-1;
8
8
 
9
- @media screen and (max-width: $breakpoint-sm) {
9
+ @media screen and (max-width: 1100px) {
10
10
  padding-bottom: 64px;
11
11
  padding-top: 0;
12
12
  }
@@ -20,8 +20,8 @@
20
20
  grid-column: 2 / span 14;
21
21
  display: grid;
22
22
  grid-template-columns: repeat(4, 1fr);
23
-
24
- @media screen and (max-width: $breakpoint-sm) {
23
+
24
+ @media screen and (max-width: 1100px) {
25
25
  grid-template-columns: 1fr;
26
26
  grid-template-rows: 480px 1fr;
27
27
  }
@@ -34,11 +34,11 @@
34
34
  @media screen and (max-width: 500px) {
35
35
  grid-template-rows: 550px 1fr;
36
36
  }
37
-
37
+
38
38
  &__right-section {
39
39
  height: 100%;
40
40
  grid-column: 1 / span 1;
41
- @media screen and (max-width: $breakpoint-sm) {
41
+ @media screen and (max-width: 1100px) {
42
42
  grid-row: 1 / span 1;
43
43
  grid-column: 1 / span 1;
44
44
  display: grid;
@@ -56,7 +56,7 @@
56
56
 
57
57
  &--text-area {
58
58
  max-width: 240px;
59
- @media screen and (max-width: $breakpoint-sm) {
59
+ @media screen and (max-width: 1100px) {
60
60
  max-width: 358px;
61
61
  align-self: center;
62
62
  }
@@ -98,12 +98,11 @@
98
98
  margin-right: 16px;
99
99
  margin-top: 60px;
100
100
 
101
- @media screen and (max-width: $breakpoint-sm) {
101
+ @media screen and (max-width: 1100px) {
102
102
  height: 480px;
103
103
  max-width: 420px !important;
104
104
  grid-column: 2 / span 1;
105
105
  margin: 0 0 0 20px;
106
-
107
106
  }
108
107
  @media screen and (max-width: $breakpoint-xs) {
109
108
  display: flex;
@@ -126,14 +125,14 @@
126
125
  &__left-section {
127
126
  height: 100%;
128
127
  grid-column: 2 / span 3;
129
- padding-left: 35px;
130
-
128
+ padding-left: 5px;
131
129
 
132
- @media screen and (max-width: $breakpoint-sm) {
130
+ @media screen and (max-width: 1100px) {
133
131
  grid-row: 2 / span 1;
134
132
  grid-column: 1 / span 1;
135
133
  padding-left: 0;
136
134
  }
135
+
137
136
  &--eyebrow {
138
137
  font-size: $eyebrow-font-size;
139
138
  line-height: 18px;
@@ -142,20 +141,24 @@
142
141
  @include benton-bold();
143
142
  margin-bottom: 20px;
144
143
 
145
- @media screen and (max-width: $breakpoint-sm) {
144
+ @media screen and (max-width: 1100px) {
146
145
  margin-top: 34px;
147
146
  }
148
147
 
149
148
  @media screen and (max-width: $breakpoint-xs) {
150
149
  margin: 27px auto;
151
-
152
150
  }
153
151
  }
154
-
152
+
155
153
  &--card-container {
156
154
  display: flex;
157
155
  flex-direction: row;
158
156
  scrollbar-gutter: stable;
157
+ min-width: 875px;
158
+
159
+ @media screen and (max-width: 1440px) {
160
+ min-width: auto;
161
+ }
159
162
 
160
163
  @media screen and (max-width: $breakpoint-xs) {
161
164
  flex-direction: column;
@@ -164,13 +167,20 @@
164
167
  }
165
168
 
166
169
  .ter-bounded-card {
167
- max-width: 235px !important;
170
+ flex: 1 1 0;
171
+ max-width: 252px;
172
+ min-width: 252px;
173
+ margin: 0px 40px 20px 0px;
168
174
 
169
175
  &__body {
170
176
  background-color: $white;
171
177
  }
172
178
 
173
- @media screen and (max-width: $breakpoint-sm) {
179
+ @media screen and (max-width: 1130px) {
180
+ margin: 0px 20px 10px 0px !important;
181
+ max-width: fit-content !important;
182
+ }
183
+ @media screen and (max-width: 1100px) {
174
184
  margin: 12px 24px 12px 0;
175
185
  }
176
186
 
@@ -179,8 +189,16 @@
179
189
  margin: 20px 0;
180
190
  }
181
191
 
192
+ @media screen and (max-width: $breakpoint-md) {
193
+ min-width: 200px;
194
+ max-width: 100%;
195
+ }
196
+
197
+ @media screen and (max-width: 1100px) {
198
+ max-width: 100%;
199
+ }
182
200
  }
183
201
  }
184
202
  }
185
203
  }
186
- }
204
+ }
@@ -76,11 +76,15 @@ var formatCards = function formatCards(cards, width, height) {
76
76
  };
77
77
 
78
78
  if (typeof document !== "undefined") {
79
- var prodCards = document.querySelectorAll(".ter-bounded-card");
79
+ var _document, _document$querySelect;
80
+
81
+ var ele = (_document = document) === null || _document === void 0 ? void 0 : (_document$querySelect = _document.querySelector(".mxp-products-package-container__left-section--card-container")) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.querySelectorAll(".ter-bounded-card");
82
+ var prodCards = ele ? Array.prototype.slice.call(ele) : [];
80
83
 
81
84
  if ((prodCards === null || prodCards === void 0 ? void 0 : prodCards.length) > 3 && width > "600") {
82
85
  prodCards.forEach(function (card) {
83
- card.style.margin = "0 20px 20px 0";
86
+ card.style.margin = "0 30px 15px 0";
87
+ card.style.minWidth = "250px !important";
84
88
  });
85
89
  } else if ((prodCards === null || prodCards === void 0 ? void 0 : prodCards.length) <= 3 && width > "600") {
86
90
  prodCards.forEach(function (card) {
@@ -93,17 +97,7 @@ var formatCards = function formatCards(cards, width, height) {
93
97
  }
94
98
  }
95
99
 
96
- return /*#__PURE__*/_react["default"].createElement("section", {
97
- className: "mxp-products-package-container__left-section--card-container",
98
- style: (cards === null || cards === void 0 ? void 0 : cards.length) > 3 && width >= "600" ? {
99
- maxHeight: height,
100
- flexDirection: "row",
101
- flexWrap: "wrap",
102
- overflowY: "scroll"
103
- } : {
104
- maxHeight: height
105
- }
106
- }, renderBoundedCards());
100
+ return renderBoundedCards();
107
101
  };
108
102
 
109
103
  exports.formatCards = formatCards;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "luna-one",
3
- "version": "3.1.464",
3
+ "version": "3.1.465",
4
4
  "peerDependencies": {
5
5
  "react": "^17.0.2",
6
6
  "react-dom": "^17.0.2",