@total_onion/onion-library 2.0.113 → 2.0.114

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.
@@ -8,15 +8,6 @@
8
8
  z-index: 10;
9
9
  position: relative;
10
10
  background-color: var(--block-background-colour);
11
- &__post-cover-link {
12
- grid-area: unset;
13
- position: absolute;
14
- inset: 0;
15
- width: 100%;
16
- height: 100%;
17
- z-index: 99;
18
- opacity: 0;
19
- }
20
11
 
21
12
  &__main-container {
22
13
  display: grid;
@@ -48,8 +39,7 @@
48
39
  'loadmore' / 1fr;
49
40
  }
50
41
 
51
- &[data-layout='2'],
52
- &[data-layout='5'] {
42
+ &[data-layout='2'] {
53
43
  grid-template:
54
44
  'filter '
55
45
  'sort'
@@ -57,8 +47,7 @@
57
47
  'grid'
58
48
  'loadmore' / 1fr;
59
49
  }
60
- &[data-layout='3'],
61
- &[data-layout='4'] {
50
+ &[data-layout='3'] {
62
51
  grid-template:
63
52
  'filter '
64
53
  'sort'
@@ -79,8 +68,7 @@
79
68
  background-color: var(--filter-background-colour-mobile);
80
69
  place-items: center;
81
70
 
82
- &[data-layout='2'],
83
- &[data-layout='5'] {
71
+ &[data-layout='2'] {
84
72
  width: 100%;
85
73
  padding-bottom: calc(var(--global-inline-spacing) / 2);
86
74
  }
@@ -89,226 +77,10 @@
89
77
  top: core-functions-v3.fluidSize(140, 'portrait');
90
78
  }
91
79
 
92
- &[data-layout='5'] {
93
- top: unset;
94
- }
95
-
96
80
  @include core-mixins-v3.device(breakpoints.$tabLandscape) {
97
81
  background-color: var(--filter-background-colour);
98
82
  top: 0;
99
83
  }
100
-
101
- &[data-layout='5'] {
102
- top: unset;
103
- .post-type-filter-grid-v3 {
104
- &__open-filter-toggle {
105
- display: none;
106
- }
107
- }
108
- }
109
- &[data-layout='3'] {
110
- .post-type-filter-grid-v3 {
111
- &__open-filter-toggle {
112
- display: none;
113
- }
114
- &__filter-top-level-categories {
115
- overflow: scroll;
116
- flex-wrap: nowrap;
117
- justify-content: center;
118
- }
119
- &__filter-container {
120
- height: auto;
121
- display: flex;
122
- flex-direction: column-reverse;
123
- }
124
- &__filter-categories {
125
- display: grid;
126
- padding-bottom: core-functions-v3.fluidSize(20, 'static');
127
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
128
- place-items: center;
129
- }
130
- }
131
- &__filter-top-level-category-container {
132
- display: flex;
133
- list-style-type: none;
134
- place-items: flex-start;
135
- margin: auto;
136
- gap: core-functions-v3.fluidSize(30, 'static');
137
- }
138
- &__filter-categories-container {
139
- display: grid;
140
- grid-template: 'main'/1fr;
141
- overflow: scroll;
142
- width: 100%;
143
- scrollbar-width: none; /* Firefox */
144
- -ms-overflow-style: none; /* IE 10+ */
145
- &::-webkit-scrollbar {
146
- background: transparent; /* Chrome/Safari/Webkit */
147
- width: 0px;
148
- display: none;
149
- }
150
- }
151
- &__filter-top-level-category {
152
- grid-area: main;
153
- margin: 0;
154
- &::after {
155
- content: unset;
156
- }
157
- }
158
- &__filter-subcategories-container {
159
- display: grid;
160
- grid-template: 'main' / 1fr;
161
- overflow: scroll;
162
- scrollbar-width: none; /* Firefox */
163
- -ms-overflow-style: none; /* IE 10+ */
164
- &::-webkit-scrollbar {
165
- background: transparent; /* Chrome/Safari/Webkit */
166
- width: 0px;
167
- display: none;
168
- }
169
- }
170
- &__filter-subcategory-list {
171
- grid-area: main;
172
- display: flex;
173
- opacity: 0;
174
- pointer-events: none;
175
- margin-bottom: 0;
176
- gap: core-functions-v3.fluidSize(30, 'static');
177
- max-height: 0;
178
- transition: unset;
179
- width: 0;
180
- max-width: 100%;
181
- justify-self: center;
182
- flex-wrap: var(--sub-filter-overflow-mobile);
183
- overflow: var(--sub-filter-overflow-mobile);
184
- justify-content: var(--sub-filter-overflow-center-mobile);
185
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
186
- flex-wrap: var(--sub-filter-overflow-tablet);
187
- overflow: var(--sub-filter-overflow-tablet);
188
- justify-content: var(
189
- --sub-filter-overflow-center-tablet
190
- );
191
- }
192
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
193
- flex-wrap: var(--sub-filter-overflow-desktop);
194
- overflow: var(--sub-filter-overflow-desktop);
195
- justify-content: var(
196
- --sub-filter-overflow-center-desktop
197
- );
198
- }
199
- scrollbar-width: none; /* Firefox */
200
- -ms-overflow-style: none; /* IE 10+ */
201
- &::-webkit-scrollbar {
202
- background: transparent; /* Chrome/Safari/Webkit */
203
- width: 0px;
204
- }
205
- &--active {
206
- opacity: 1;
207
- pointer-events: all;
208
- max-height: 1000px;
209
- &[data-layout='3'] {
210
- width: fit-content;
211
- }
212
- }
213
- }
214
- &__filter-subcategory-list-item {
215
- margin: 0;
216
- justify-content: center;
217
- &--active {
218
- opacity: 1;
219
- pointer-events: all;
220
- }
221
- }
222
- &__show-all {
223
- place-self: center;
224
- }
225
- }
226
- }
227
- &[data-layout='4'] {
228
- @media all and (max-width: breakpoints.$tabLandscape - 1) {
229
- .post-type-filter-grid-v3 {
230
- &__filter-container--open {
231
- background-color: var(
232
- --filter-background-colour-mobile
233
- );
234
- position: fixed;
235
- top: 0;
236
- left: 0;
237
- width: 100%;
238
- height: 100%;
239
- justify-content: flex-start;
240
- z-index: 9;
241
- }
242
- &__filter-categories {
243
- display: flex;
244
- flex-direction: column;
245
- justify-content: flex-start;
246
- }
247
- &__filter-update-button {
248
- position: absolute;
249
- width: 100%;
250
- bottom: 0;
251
- left: 0;
252
- z-index: 99999;
253
- }
254
- &__filter-category.active {
255
- background-color: var(
256
- --filter-background-colour-mobile
257
- );
258
- width: 100%;
259
- top: 0;
260
- left: 0;
261
- position: absolute;
262
- height: 100%;
263
- z-index: 99999;
264
- justify-content: flex-start;
265
- }
266
- }
267
- }
268
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
269
- .post-type-filter-grid-v3 {
270
- &__filter-update-button {
271
- display: none;
272
- }
273
- &__filter-container {
274
- overflow: visible;
275
- }
276
- &__filter-categories {
277
- display: flex;
278
- flex-direction: row;
279
- justify-content: center;
280
- }
281
- &__filter-categories-label {
282
- @include core-mixins-v3.device(
283
- breakpoints.$tabLandscape
284
- ) {
285
- display: none;
286
- }
287
- }
288
- &__cta {
289
- min-width: core-functions-v3.fluidSize(230, 'desktop');
290
- width: auto;
291
- &:hover {
292
- background-color: unset;
293
- color: unset;
294
- }
295
- }
296
- &__filter-subcategory-list {
297
- display: none;
298
- }
299
- &__cta.active {
300
- .post-type-filter-grid-v3__filter-subcategory-list {
301
- display: flex;
302
- position: absolute;
303
- background-color: var(--filter-background-colour);
304
- width: auto;
305
- flex-direction: column;
306
- top: core-functions-v3.fluidSize(60, 'desktop');
307
- }
308
- }
309
- }
310
- }
311
- }
312
84
  }
313
85
 
314
86
  &__filter-container {
@@ -322,8 +94,7 @@
322
94
  height: auto;
323
95
  background-color: transparent;
324
96
 
325
- &[data-layout='2'],
326
- &[data-layout='5'] {
97
+ &[data-layout='2'] {
327
98
  display: flex;
328
99
  gap: core-functions-v3.fluidSize(20, 'desktop');
329
100
  grid-auto-flow: column;
@@ -334,15 +105,6 @@
334
105
  max-width: 100%;
335
106
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
336
107
  }
337
- &[data-layout='5'] {
338
- grid-auto-flow: unset;
339
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
340
- grid-auto-flow: column;
341
- }
342
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
343
- grid-auto-flow: column;
344
- }
345
- }
346
108
  }
347
109
 
348
110
  &--open {
@@ -404,8 +166,7 @@
404
166
  padding-bottom: var(--global-inline-spacing);
405
167
  width: 100%;
406
168
 
407
- &[data-layout='2'],
408
- &[data-layout='5'] {
169
+ &[data-layout='2'] {
409
170
  padding-bottom: unset;
410
171
  }
411
172
 
@@ -414,8 +175,7 @@
414
175
  position: relative;
415
176
  gap: core-functions-v3.fluidSize(20, 'portrait');
416
177
 
417
- &[data-layout='2'],
418
- &[data-layout='5'] {
178
+ &[data-layout='2'] {
419
179
  grid-auto-flow: column;
420
180
  grid-auto-columns: 1fr;
421
181
  width: max-content;
@@ -445,18 +205,6 @@
445
205
  }
446
206
 
447
207
  &__filter-subcategory-list {
448
- &[data-layout='5'] {
449
- flex-direction: column;
450
- margin: unset;
451
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
452
- flex-direction: unset;
453
- margin: auto;
454
- }
455
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
456
- flex-direction: unset;
457
- margin: auto;
458
- }
459
- }
460
208
  list-style-type: none;
461
209
  display: flex;
462
210
  flex-wrap: wrap;
@@ -497,17 +245,7 @@
497
245
  width: initial;
498
246
  }
499
247
 
500
- &[data-layout='2'],
501
- &[data-layout='5'] {
502
- margin: unset;
503
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
504
- margin: auto;
505
- }
506
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
507
- margin: auto;
508
- }
509
- }
510
- &[data-layout='5'] {
248
+ &[data-layout='2'] {
511
249
  margin: unset;
512
250
  @include core-mixins-v3.device(breakpoints.$tabPortrait) {
513
251
  margin: auto;
@@ -705,31 +443,6 @@
705
443
  }
706
444
  }
707
445
 
708
- &__overlay {
709
- inset: 0;
710
- z-index: 1;
711
- grid-row: var(--gradient-overlay-row-start, 1) /
712
- var(--gradient-overlay-row-end, -1);
713
-
714
- &--gradient-overlay-top,
715
- &--gradient-overlay-right,
716
- &--gradient-overlay-bottom,
717
- &--gradient-overlay-left {
718
- // @include core-gradient-designer.gradientDesigner();
719
- position: absolute;
720
- }
721
-
722
- &--gradient-overlay-vertical {
723
- // @include core-gradient-designer.gradientDesignerVertical();
724
- position: absolute;
725
- }
726
-
727
- &--gradient-overlay-horizontal {
728
- // @include core-gradient-designer.gradientDesignerHorizontal();
729
- position: absolute;
730
- }
731
- }
732
-
733
446
  &__post-image-container-link {
734
447
  display: grid;
735
448
  grid-template: 'main' / 1fr;
@@ -767,7 +480,6 @@
767
480
  &:not(.post-type-filter-grid-v3__post-link, .post-type-filter-grid-v3__product-buy-now, .post-type-filter-grid-v3__post-image-container-link, .post-type-filter-grid-v3__post-tags, .post-type-filter-grid-v3__shopify) {
768
481
  * {
769
482
  width: 100%;
770
- // @include core-mixins-v3.textStyle();
771
483
  }
772
484
  }
773
485
  }
@@ -847,7 +559,6 @@
847
559
  }
848
560
  &__post-headline {
849
561
  width: 100%;
850
- // @include core-mixins-v3.textStyle();
851
562
  }
852
563
  &__post-title-icon {
853
564
  width: 1em;
@@ -945,11 +656,6 @@
945
656
  }
946
657
  }
947
658
  }
948
- &__product-c7-add-to-cart {
949
- display: flex;
950
- align-items: flex-end;
951
- z-index: 2;
952
- }
953
659
 
954
660
  &__post-tags {
955
661
  display: flex;
@@ -959,26 +665,6 @@
959
665
  z-index: 2;
960
666
  }
961
667
 
962
- &__person-email {
963
- display: flex;
964
- gap: 1em;
965
- align-items: center;
966
- }
967
- &__person-email-icon {
968
- width: 1em;
969
- }
970
- &__person-rating-star-container {
971
- display: flex;
972
- --rating-star-colour: #f8b94c;
973
- padding: core-functions-v3.fluidSize(10, 'static');
974
- }
975
- &__person-rating-star {
976
- width: core-functions-v3.fluidSize(20, 'static');
977
- }
978
- &__person-rating-star * {
979
- fill: var(--rating-star-colour);
980
- }
981
-
982
668
  &__load-more-container {
983
669
  grid-area: loadmore;
984
670
  width: 100%;
@@ -1032,10 +718,6 @@
1032
718
  }
1033
719
 
1034
720
  &__show-all {
1035
- &[data-layout='5'] {
1036
- text-align: left;
1037
- justify-content: flex-start;
1038
- }
1039
721
  z-index: 2;
1040
722
  position: relative;
1041
723
  width: auto;
@@ -1049,8 +731,7 @@
1049
731
  }
1050
732
 
1051
733
  @include core-mixins-v3.device(breakpoints.$tabLandscape) {
1052
- &[data-layout='2'],
1053
- &[data-layout='5'] {
734
+ &[data-layout='2'] {
1054
735
  grid-column: 1;
1055
736
  width: max-content;
1056
737
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "2.0.113",
3
+ "version": "2.0.114",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {