@total_onion/onion-library 1.0.30 → 1.0.32

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.
@@ -0,0 +1,384 @@
1
+ @use 'Assets/scss/modules/library-modules/core-mixins/core-mixins';
2
+ @use 'sass:math';
3
+
4
+ /* Box sizing rules */
5
+ *,
6
+ *::before,
7
+ *::after {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ //***** TYPOGRAPHY *****\\
12
+ body {
13
+ @include core-mixins.fontSecondary();
14
+ }
15
+
16
+ h1,
17
+ h2,
18
+ h3,
19
+ h4,
20
+ h5,
21
+ h6 {
22
+ margin: 0; //reset default margin
23
+ font-weight: unset; //reset default font weight
24
+ @include core-mixins.fontPrimary();
25
+ margin-top: unset;
26
+ }
27
+ .override-element-styles {
28
+ h1,
29
+ h2,
30
+ h3,
31
+ h4,
32
+ h5,
33
+ h6 {
34
+ font-size: 0;
35
+ }
36
+ }
37
+
38
+ .standard-content-box-wysiwyg-editor {
39
+ h1,
40
+ h2,
41
+ h3,
42
+ h4,
43
+ h5,
44
+ h6 {
45
+ margin-bottom: var(--heading-block-spacing);
46
+
47
+ &:last-child {
48
+ margin-bottom: 0;
49
+ }
50
+ }
51
+ p {
52
+ margin-bottom: var(--paragraph-block-spacing);
53
+
54
+ &:last-child {
55
+ margin-bottom: 0;
56
+ }
57
+ }
58
+ }
59
+
60
+ h1 {
61
+ @include core-mixins.h1();
62
+
63
+ &:has(.font-tertiary) {
64
+ line-height: calc(
65
+ var(--h1-line-height) *
66
+ var(--global-line-height-multiplier-tertiary)
67
+ );
68
+ }
69
+ }
70
+
71
+ h2 {
72
+ @include core-mixins.h2();
73
+
74
+ &:has(.font-tertiary) {
75
+ line-height: calc(
76
+ var(--h2-line-height) *
77
+ var(--global-line-height-multiplier-tertiary)
78
+ );
79
+ }
80
+ }
81
+
82
+ h3 {
83
+ @include core-mixins.h3();
84
+
85
+ &:has(.font-tertiary) {
86
+ line-height: calc(
87
+ var(--h3-line-height) *
88
+ var(--global-line-height-multiplier-tertiary)
89
+ );
90
+ }
91
+ }
92
+
93
+ h4 {
94
+ @include core-mixins.h4();
95
+
96
+ &:has(.font-tertiary) {
97
+ line-height: calc(
98
+ var(--h4-line-height) *
99
+ var(--global-line-height-multiplier-tertiary)
100
+ );
101
+ }
102
+ }
103
+
104
+ h5 {
105
+ @include core-mixins.h5();
106
+
107
+ &:has(.font-tertiary) {
108
+ line-height: calc(
109
+ var(--h5-line-height) *
110
+ var(--global-line-height-multiplier-tertiary)
111
+ );
112
+ }
113
+ }
114
+
115
+ h6 {
116
+ @include core-mixins.h6();
117
+
118
+ &:has(.font-tertiary) {
119
+ line-height: calc(
120
+ var(--h6-line-height) *
121
+ var(--global-line-height-multiplier-tertiary)
122
+ );
123
+ }
124
+ }
125
+
126
+ .sh1-sizing {
127
+ @include core-mixins.sh1();
128
+
129
+ &:has(.font-tertiary) {
130
+ line-height: calc(
131
+ var(--sh1-line-height) *
132
+ var(--global-line-height-multiplier-tertiary)
133
+ );
134
+ }
135
+ }
136
+
137
+ .sh2-sizing {
138
+ @include core-mixins.sh2();
139
+
140
+ &:has(.font-tertiary) {
141
+ line-height: calc(
142
+ var(--h2-line-height) *
143
+ var(--global-line-height-multiplier-tertiary)
144
+ );
145
+ }
146
+ }
147
+
148
+ .sh3-sizing {
149
+ @include core-mixins.sh3();
150
+
151
+ &:has(.font-tertiary) {
152
+ line-height: calc(
153
+ var(--sh3-line-height) *
154
+ var(--global-line-height-multiplier-tertiary)
155
+ );
156
+ }
157
+ }
158
+
159
+ .sh4-sizing {
160
+ @include core-mixins.sh4();
161
+
162
+ &:has(.font-tertiary) {
163
+ line-height: calc(
164
+ var(--sh4-line-height) *
165
+ var(--global-line-height-multiplier-tertiary)
166
+ );
167
+ }
168
+ }
169
+
170
+ .sh5-sizing {
171
+ @include core-mixins.sh5();
172
+
173
+ &:has(.font-tertiary) {
174
+ line-height: calc(
175
+ var(--sh5-line-height) *
176
+ var(--global-line-height-multiplier-tertiary)
177
+ );
178
+ }
179
+ }
180
+
181
+ .sh6-sizing {
182
+ @include core-mixins.sh6();
183
+
184
+ &:has(.font-tertiary) {
185
+ line-height: calc(
186
+ var(--sh6-line-height) *
187
+ var(--global-line-height-multiplier-tertiary)
188
+ );
189
+ }
190
+ }
191
+
192
+ p {
193
+ margin: 0; //reset default margin
194
+ @include core-mixins.p();
195
+ }
196
+
197
+ a:not([class*='cmpl-cta-style-']) {
198
+ text-decoration-skip-ink: auto;
199
+ color: var(--link-colour);
200
+ text-decoration: var(--link-decoration-style);
201
+ text-decoration-color: var(--link-decoration-colour);
202
+
203
+ strong,
204
+ b {
205
+ font-weight: var(--weight-bold);
206
+ }
207
+
208
+ &:hover {
209
+ cursor: pointer;
210
+ color: var(--link-colour-hover);
211
+ text-decoration: var(--link-decoration-style-hover);
212
+ text-decoration-color: var(--link-decoration-colour-hover);
213
+ }
214
+ }
215
+
216
+ button {
217
+ &:focus {
218
+ // outline: none;
219
+ // appearance: none;
220
+ }
221
+ }
222
+
223
+ blockquote {
224
+ margin: 0; //reset default margin
225
+ quotes: '“' '”' '‘' '’';
226
+ font-weight: bold;
227
+
228
+ &::before {
229
+ content: open-quote;
230
+ }
231
+
232
+ &::after {
233
+ content: close-quote;
234
+ }
235
+ }
236
+
237
+ figure,
238
+ figcaption,
239
+ dl,
240
+ dd {
241
+ margin: 0;
242
+ }
243
+
244
+ q {
245
+ &::before {
246
+ content: open-quote;
247
+ }
248
+
249
+ &::after {
250
+ content: close-quote;
251
+ }
252
+ }
253
+
254
+ ol {
255
+ list-style-type: decimal;
256
+ }
257
+ ul {
258
+ list-style-type: disc;
259
+ }
260
+ li {
261
+ @include core-mixins.p();
262
+ }
263
+ ol {
264
+ padding: 0; //reset default padding
265
+ margin: 0; //reset default margin
266
+ font-family: var(--secondary-font-family);
267
+ margin-bottom: var(--paragraph-block-spacing);
268
+ list-style-position: inside;
269
+ &:last-child {
270
+ margin-bottom: 0;
271
+ }
272
+ li {
273
+ margin-bottom: var(--list-item-block-spacing);
274
+ line-height: var(--list-item-line-height);
275
+ letter-spacing: var(--list-item-letter-spacing);
276
+ &:last-child {
277
+ margin-bottom: 0;
278
+ }
279
+ }
280
+ }
281
+
282
+ .font-primary {
283
+ @include core-mixins.fontPrimary();
284
+ }
285
+
286
+ .font-secondary {
287
+ @include core-mixins.fontSecondary();
288
+ }
289
+
290
+ .font-tertiary {
291
+ @include core-mixins.fontTertiary();
292
+ }
293
+
294
+ .font-quaternary {
295
+ @include core-mixins.fontQuaternary();
296
+ }
297
+ .h1-l-sizing,
298
+ .h-extra-large {
299
+ @include core-mixins.h1-l();
300
+ }
301
+
302
+ .h1-sizing,
303
+ .h-large {
304
+ @include core-mixins.h1();
305
+ }
306
+
307
+ .h2-sizing,
308
+ .h-medium {
309
+ @include core-mixins.h2();
310
+ }
311
+
312
+ .h3-sizing,
313
+ .h-small {
314
+ @include core-mixins.h3();
315
+ }
316
+
317
+ .h4-sizing,
318
+ .h-xsmall {
319
+ @include core-mixins.h4();
320
+ }
321
+
322
+ .h5-sizing,
323
+ .h-xxsmall {
324
+ @include core-mixins.h5();
325
+ }
326
+
327
+ .h6-sizing,
328
+ .h-xxxsmall {
329
+ @include core-mixins.h6();
330
+ }
331
+
332
+ .sh1-sizing,
333
+ .sh-extra-large {
334
+ @include core-mixins.sh1();
335
+ }
336
+
337
+ .sh2-sizing,
338
+ .sh-large {
339
+ @include core-mixins.sh2();
340
+ }
341
+
342
+ .sh3-sizing,
343
+ .sh-medium {
344
+ @include core-mixins.sh3();
345
+ }
346
+
347
+ .sh4-sizing,
348
+ .sh-small {
349
+ @include core-mixins.sh4();
350
+ }
351
+
352
+ .sh5-sizing,
353
+ .sh-xsmall {
354
+ @include core-mixins.sh5();
355
+ }
356
+
357
+ .sh6-sizing,
358
+ .sh-xxsmall {
359
+ @include core-mixins.sh6();
360
+ }
361
+
362
+ .p-sizing {
363
+ @include core-mixins.p();
364
+ }
365
+
366
+ .p-l-sizing {
367
+ @include core-mixins.p-l();
368
+ }
369
+
370
+ .p-s-sizing {
371
+ @include core-mixins.p-s();
372
+ }
373
+
374
+ .p-xs-sizing {
375
+ @include core-mixins.p-xs();
376
+ }
377
+
378
+ .p-xxs-sizing {
379
+ @include core-mixins.p-xxs();
380
+ }
381
+
382
+ .p-xxxs-sizing {
383
+ @include core-mixins.p-xxxs();
384
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {