@nuvoui/core 1.1.4 → 1.1.6
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.
- package/dist/nuvoui.min.css +1 -0
- package/package.json +2 -1
- package/src/styles/base/_base.scss +17 -0
- package/src/styles/index.scss +8 -5
- package/src/styles/layouts/_container.scss +10 -19
- package/src/styles/layouts/_flex.scss +247 -24
- package/src/styles/layouts/_grid.scss +88 -68
- package/src/styles/mixins-map.scss +224 -126
- package/src/styles/themes/_theme.scss +29 -2
- package/src/styles/utilities/_borders.scss +2 -5
- package/src/styles/utilities/_colors.scss +6 -6
- package/src/styles/utilities/_container-queries.scss +58 -0
- package/src/styles/utilities/_display.scss +59 -16
- package/src/styles/utilities/_functions.scss +27 -2
- package/src/styles/utilities/_helpers.scss +128 -0
- package/src/styles/utilities/_media-queries.scss +34 -50
- package/src/styles/utilities/_opacity.scss +1 -1
- package/src/styles/utilities/_position.scss +2 -2
- package/src/styles/utilities/_sizing.scss +23 -5
- package/src/styles/utilities/_spacing.scss +1 -1
- package/src/styles/utilities/_typography.scss +65 -17
- package/src/styles/utilities/_variables.scss +12 -20
- package/dist/nuvoui.css +0 -1
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
@use 'utilities/animations' as *;
|
|
9
9
|
@use 'utilities/borders' as *;
|
|
10
10
|
@use 'utilities/colors' as *;
|
|
11
|
+
@use 'utilities/container-queries' as *;
|
|
11
12
|
@use 'utilities/display' as *;
|
|
12
13
|
@use 'utilities/functions' as *;
|
|
14
|
+
@use 'utilities/helpers' as *;
|
|
13
15
|
@use 'utilities/media-queries' as *;
|
|
14
16
|
@use 'utilities/opacity' as *;
|
|
15
17
|
@use 'utilities/position' as *;
|
|
@@ -48,12 +50,6 @@
|
|
|
48
50
|
@include media-up($breakpoint) {
|
|
49
51
|
@if $mixin-str == 'container-base' {
|
|
50
52
|
@include container-base;
|
|
51
|
-
} @else if $mixin-str == 'container' {
|
|
52
|
-
@include container;
|
|
53
|
-
} @else if $mixin-str == 'container-flex' {
|
|
54
|
-
@include container-flex;
|
|
55
|
-
} @else if $mixin-str == 'container-grid' {
|
|
56
|
-
@include container-grid;
|
|
57
53
|
} @else if $mixin-str == 'flex' {
|
|
58
54
|
@include flex;
|
|
59
55
|
} @else if $mixin-str == 'flex-inline' {
|
|
@@ -84,16 +80,30 @@
|
|
|
84
80
|
@include around;
|
|
85
81
|
} @else if $mixin-str == 'evenly' {
|
|
86
82
|
@include evenly;
|
|
87
|
-
} @else if $mixin-str == '
|
|
88
|
-
@include
|
|
89
|
-
} @else if $mixin-str == '
|
|
90
|
-
@include
|
|
91
|
-
} @else if $mixin-str == '
|
|
92
|
-
@include
|
|
93
|
-
} @else if $mixin-str == '
|
|
94
|
-
@include
|
|
95
|
-
} @else if $mixin-str == '
|
|
96
|
-
@include
|
|
83
|
+
} @else if $mixin-str == 'x-start' {
|
|
84
|
+
@include x-start;
|
|
85
|
+
} @else if $mixin-str == 'x-end' {
|
|
86
|
+
@include x-end;
|
|
87
|
+
} @else if $mixin-str == 'x-center' {
|
|
88
|
+
@include x-center;
|
|
89
|
+
} @else if $mixin-str == 'x-stretch' {
|
|
90
|
+
@include x-stretch;
|
|
91
|
+
} @else if $mixin-str == 'x-baseline' {
|
|
92
|
+
@include x-baseline;
|
|
93
|
+
} @else if $mixin-str == 'x-content-start' {
|
|
94
|
+
@include x-content-start;
|
|
95
|
+
} @else if $mixin-str == 'x-content-end' {
|
|
96
|
+
@include x-content-end;
|
|
97
|
+
} @else if $mixin-str == 'x-content-center' {
|
|
98
|
+
@include x-content-center;
|
|
99
|
+
} @else if $mixin-str == 'x-content-between' {
|
|
100
|
+
@include x-content-between;
|
|
101
|
+
} @else if $mixin-str == 'x-content-around' {
|
|
102
|
+
@include x-content-around;
|
|
103
|
+
} @else if $mixin-str == 'x-content-evenly' {
|
|
104
|
+
@include x-content-evenly;
|
|
105
|
+
} @else if $mixin-str == 'x-content-stretch' {
|
|
106
|
+
@include x-content-stretch;
|
|
97
107
|
} @else if $mixin-str == 'self-auto' {
|
|
98
108
|
@include self-auto;
|
|
99
109
|
} @else if $mixin-str == 'self-start' {
|
|
@@ -104,6 +114,8 @@
|
|
|
104
114
|
@include self-center;
|
|
105
115
|
} @else if $mixin-str == 'self-stretch' {
|
|
106
116
|
@include self-stretch;
|
|
117
|
+
} @else if $mixin-str == 'self-baseline' {
|
|
118
|
+
@include self-baseline;
|
|
107
119
|
} @else if $mixin-str == 'shrink' {
|
|
108
120
|
@include shrink;
|
|
109
121
|
} @else if $mixin-str == 'shrink-0' {
|
|
@@ -122,26 +134,30 @@
|
|
|
122
134
|
@include grid;
|
|
123
135
|
} @else if $mixin-str == 'grid-inline' {
|
|
124
136
|
@include grid-inline;
|
|
125
|
-
} @else if $mixin-str == '
|
|
126
|
-
@include
|
|
127
|
-
} @else if $mixin-str == '
|
|
128
|
-
@include
|
|
129
|
-
} @else if $mixin-str == '
|
|
130
|
-
@include
|
|
131
|
-
} @else if $mixin-str == '
|
|
132
|
-
@include
|
|
133
|
-
} @else if $mixin-str == '
|
|
134
|
-
@include
|
|
135
|
-
} @else if $mixin-str == '
|
|
136
|
-
@include
|
|
137
|
-
} @else if $mixin-str == '
|
|
138
|
-
@include
|
|
137
|
+
} @else if $mixin-str == 'flow-in-row' {
|
|
138
|
+
@include flow-in-row;
|
|
139
|
+
} @else if $mixin-str == 'flow-in-col' {
|
|
140
|
+
@include flow-in-col;
|
|
141
|
+
} @else if $mixin-str == 'flow-dense-items' {
|
|
142
|
+
@include flow-dense-items;
|
|
143
|
+
} @else if $mixin-str == 'hide' {
|
|
144
|
+
@include hide;
|
|
145
|
+
} @else if $mixin-str == 'block' {
|
|
146
|
+
@include block;
|
|
147
|
+
} @else if $mixin-str == 'inline' {
|
|
148
|
+
@include inline;
|
|
149
|
+
} @else if $mixin-str == 'inline-block' {
|
|
150
|
+
@include inline-block;
|
|
151
|
+
} @else if $mixin-str == 'show' {
|
|
152
|
+
@include show;
|
|
139
153
|
} @else if $mixin-str == 'd-tbl' {
|
|
140
154
|
@include d-tbl;
|
|
141
155
|
} @else if $mixin-str == 'd-tbl-row' {
|
|
142
156
|
@include d-tbl-row;
|
|
143
157
|
} @else if $mixin-str == 'd-tbl-cell' {
|
|
144
158
|
@include d-tbl-cell;
|
|
159
|
+
} @else if $mixin-str == 'overflow-hidden' {
|
|
160
|
+
@include overflow-hidden;
|
|
145
161
|
} @else if $mixin-str == 'touch' {
|
|
146
162
|
@include touch;
|
|
147
163
|
} @else if $mixin-str == 'print' {
|
|
@@ -190,22 +206,6 @@
|
|
|
190
206
|
@include mr-auto;
|
|
191
207
|
} @else if $mixin-str == 'mx-auto' {
|
|
192
208
|
@include mx-auto;
|
|
193
|
-
} @else if $mixin-str == 'text-xs' {
|
|
194
|
-
@include text-xs;
|
|
195
|
-
} @else if $mixin-str == 'text-sm' {
|
|
196
|
-
@include text-sm;
|
|
197
|
-
} @else if $mixin-str == 'text-md' {
|
|
198
|
-
@include text-md;
|
|
199
|
-
} @else if $mixin-str == 'text-lg' {
|
|
200
|
-
@include text-lg;
|
|
201
|
-
} @else if $mixin-str == 'text-xl' {
|
|
202
|
-
@include text-xl;
|
|
203
|
-
} @else if $mixin-str == 'text-2xl' {
|
|
204
|
-
@include text-2xl;
|
|
205
|
-
} @else if $mixin-str == 'text-3xl' {
|
|
206
|
-
@include text-3xl;
|
|
207
|
-
} @else if $mixin-str == 'text-4xl' {
|
|
208
|
-
@include text-4xl;
|
|
209
209
|
} @else if $mixin-str == 'font-thin' {
|
|
210
210
|
@include font-thin;
|
|
211
211
|
} @else if $mixin-str == 'font-extralight' {
|
|
@@ -264,31 +264,41 @@
|
|
|
264
264
|
@include no-underline;
|
|
265
265
|
} @else if $mixin-str == 'truncate' {
|
|
266
266
|
@include truncate;
|
|
267
|
+
} @else if str.index($mixin-str, 'container(') == 1 {
|
|
268
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
269
|
+
$end: str.length($mixin-str) - 1;
|
|
270
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
271
|
+
@include container(str.unquote($value));
|
|
267
272
|
} @else if str.index($mixin-str, 'w-col(') == 1 {
|
|
268
273
|
$start: str.index($mixin-str, '(') + 1;
|
|
269
274
|
$end: str.length($mixin-str) - 1;
|
|
270
275
|
$value: str.slice($mixin-str, $start, $end);
|
|
271
276
|
@include w-col(str.unquote($value));
|
|
272
|
-
} @else if str.index($mixin-str, '
|
|
277
|
+
} @else if str.index($mixin-str, 'cols(') == 1 {
|
|
278
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
279
|
+
$end: str.length($mixin-str) - 1;
|
|
280
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
281
|
+
@include cols(str.unquote($value));
|
|
282
|
+
} @else if str.index($mixin-str, 'rows(') == 1 {
|
|
273
283
|
$start: str.index($mixin-str, '(') + 1;
|
|
274
284
|
$end: str.length($mixin-str) - 1;
|
|
275
285
|
$value: str.slice($mixin-str, $start, $end);
|
|
276
|
-
@include
|
|
277
|
-
} @else if str.index($mixin-str, 'grid-
|
|
286
|
+
@include rows(str.unquote($value));
|
|
287
|
+
} @else if str.index($mixin-str, 'grid-cols-custom(') == 1 {
|
|
278
288
|
$start: str.index($mixin-str, '(') + 1;
|
|
279
289
|
$end: str.length($mixin-str) - 1;
|
|
280
290
|
$value: str.slice($mixin-str, $start, $end);
|
|
281
|
-
@include grid-
|
|
282
|
-
} @else if str.index($mixin-str, '
|
|
291
|
+
@include grid-cols-custom(str.unquote($value));
|
|
292
|
+
} @else if str.index($mixin-str, 'auto-fit(') == 1 {
|
|
283
293
|
$start: str.index($mixin-str, '(') + 1;
|
|
284
294
|
$end: str.length($mixin-str) - 1;
|
|
285
295
|
$value: str.slice($mixin-str, $start, $end);
|
|
286
|
-
@include
|
|
287
|
-
} @else if str.index($mixin-str, '
|
|
296
|
+
@include auto-fit(str.unquote($value));
|
|
297
|
+
} @else if str.index($mixin-str, 'auto-fill(') == 1 {
|
|
288
298
|
$start: str.index($mixin-str, '(') + 1;
|
|
289
299
|
$end: str.length($mixin-str) - 1;
|
|
290
300
|
$value: str.slice($mixin-str, $start, $end);
|
|
291
|
-
@include
|
|
301
|
+
@include auto-fill(str.unquote($value));
|
|
292
302
|
} @else if str.index($mixin-str, 'justify-items(') == 1 {
|
|
293
303
|
$start: str.index($mixin-str, '(') + 1;
|
|
294
304
|
$end: str.length($mixin-str) - 1;
|
|
@@ -304,16 +314,16 @@
|
|
|
304
314
|
$end: str.length($mixin-str) - 1;
|
|
305
315
|
$value: str.slice($mixin-str, $start, $end);
|
|
306
316
|
@include place-items(str.unquote($value));
|
|
307
|
-
} @else if str.index($mixin-str, 'col
|
|
317
|
+
} @else if str.index($mixin-str, 'span-col(') == 1 {
|
|
308
318
|
$start: str.index($mixin-str, '(') + 1;
|
|
309
319
|
$end: str.length($mixin-str) - 1;
|
|
310
320
|
$value: str.slice($mixin-str, $start, $end);
|
|
311
|
-
@include col
|
|
312
|
-
} @else if str.index($mixin-str, 'row
|
|
321
|
+
@include span-col(str.unquote($value));
|
|
322
|
+
} @else if str.index($mixin-str, 'span-row(') == 1 {
|
|
313
323
|
$start: str.index($mixin-str, '(') + 1;
|
|
314
324
|
$end: str.length($mixin-str) - 1;
|
|
315
325
|
$value: str.slice($mixin-str, $start, $end);
|
|
316
|
-
@include row
|
|
326
|
+
@include span-row(str.unquote($value));
|
|
317
327
|
} @else if str.index($mixin-str, 'col-start(') == 1 {
|
|
318
328
|
$start: str.index($mixin-str, '(') + 1;
|
|
319
329
|
$end: str.length($mixin-str) - 1;
|
|
@@ -334,6 +344,21 @@
|
|
|
334
344
|
$end: str.length($mixin-str) - 1;
|
|
335
345
|
$value: str.slice($mixin-str, $start, $end);
|
|
336
346
|
@include row-end(str.unquote($value));
|
|
347
|
+
} @else if str.index($mixin-str, 'grid-position(') == 1 {
|
|
348
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
349
|
+
$end: str.length($mixin-str) - 1;
|
|
350
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
351
|
+
@include grid-position(str.unquote($value));
|
|
352
|
+
} @else if str.index($mixin-str, 'position-col(') == 1 {
|
|
353
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
354
|
+
$end: str.length($mixin-str) - 1;
|
|
355
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
356
|
+
@include position-col(str.unquote($value));
|
|
357
|
+
} @else if str.index($mixin-str, 'position-row(') == 1 {
|
|
358
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
359
|
+
$end: str.length($mixin-str) - 1;
|
|
360
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
361
|
+
@include position-row(str.unquote($value));
|
|
337
362
|
} @else if str.index($mixin-str, 'generate-bounce-keyframes(') == 1 {
|
|
338
363
|
$start: str.index($mixin-str, '(') + 1;
|
|
339
364
|
$end: str.length($mixin-str) - 1;
|
|
@@ -369,6 +394,31 @@
|
|
|
369
394
|
$end: str.length($mixin-str) - 1;
|
|
370
395
|
$value: str.slice($mixin-str, $start, $end);
|
|
371
396
|
@include filter(str.unquote($value));
|
|
397
|
+
} @else if str.index($mixin-str, 'container-up(') == 1 {
|
|
398
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
399
|
+
$end: str.length($mixin-str) - 1;
|
|
400
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
401
|
+
@include container-up(str.unquote($value));
|
|
402
|
+
} @else if str.index($mixin-str, 'container-down(') == 1 {
|
|
403
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
404
|
+
$end: str.length($mixin-str) - 1;
|
|
405
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
406
|
+
@include container-down(str.unquote($value));
|
|
407
|
+
} @else if str.index($mixin-str, 'container-between(') == 1 {
|
|
408
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
409
|
+
$end: str.length($mixin-str) - 1;
|
|
410
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
411
|
+
@include container-between(str.unquote($value));
|
|
412
|
+
} @else if str.index($mixin-str, 'container-only(') == 1 {
|
|
413
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
414
|
+
$end: str.length($mixin-str) - 1;
|
|
415
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
416
|
+
@include container-only(str.unquote($value));
|
|
417
|
+
} @else if str.index($mixin-str, 'container-query(') == 1 {
|
|
418
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
419
|
+
$end: str.length($mixin-str) - 1;
|
|
420
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
421
|
+
@include container-query(str.unquote($value));
|
|
372
422
|
} @else if str.index($mixin-str, 'media-up(') == 1 {
|
|
373
423
|
$start: str.index($mixin-str, '(') + 1;
|
|
374
424
|
$end: str.length($mixin-str) - 1;
|
|
@@ -389,11 +439,6 @@
|
|
|
389
439
|
$end: str.length($mixin-str) - 1;
|
|
390
440
|
$value: str.slice($mixin-str, $start, $end);
|
|
391
441
|
@include media-only(str.unquote($value));
|
|
392
|
-
} @else if str.index($mixin-str, 'container-query(') == 1 {
|
|
393
|
-
$start: str.index($mixin-str, '(') + 1;
|
|
394
|
-
$end: str.length($mixin-str) - 1;
|
|
395
|
-
$value: str.slice($mixin-str, $start, $end);
|
|
396
|
-
@include container-query(str.unquote($value));
|
|
397
442
|
} @else if str.index($mixin-str, 'supports(') == 1 {
|
|
398
443
|
$start: str.index($mixin-str, '(') + 1;
|
|
399
444
|
$end: str.length($mixin-str) - 1;
|
|
@@ -599,17 +644,16 @@
|
|
|
599
644
|
$end: str.length($mixin-str) - 1;
|
|
600
645
|
$value: str.slice($mixin-str, $start, $end);
|
|
601
646
|
@include gap-y(str.unquote($value));
|
|
647
|
+
} @else if str.index($mixin-str, 'text-size(') == 1 {
|
|
648
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
649
|
+
$end: str.length($mixin-str) - 1;
|
|
650
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
651
|
+
@include text-size(str.unquote($value));
|
|
602
652
|
}
|
|
603
653
|
}
|
|
604
654
|
} @else {
|
|
605
655
|
@if $mixin-str == 'container-base' {
|
|
606
656
|
@include container-base;
|
|
607
|
-
} @else if $mixin-str == 'container' {
|
|
608
|
-
@include container;
|
|
609
|
-
} @else if $mixin-str == 'container-flex' {
|
|
610
|
-
@include container-flex;
|
|
611
|
-
} @else if $mixin-str == 'container-grid' {
|
|
612
|
-
@include container-grid;
|
|
613
657
|
} @else if $mixin-str == 'flex' {
|
|
614
658
|
@include flex;
|
|
615
659
|
} @else if $mixin-str == 'flex-inline' {
|
|
@@ -640,16 +684,30 @@
|
|
|
640
684
|
@include around;
|
|
641
685
|
} @else if $mixin-str == 'evenly' {
|
|
642
686
|
@include evenly;
|
|
643
|
-
} @else if $mixin-str == '
|
|
644
|
-
@include
|
|
645
|
-
} @else if $mixin-str == '
|
|
646
|
-
@include
|
|
647
|
-
} @else if $mixin-str == '
|
|
648
|
-
@include
|
|
649
|
-
} @else if $mixin-str == '
|
|
650
|
-
@include
|
|
651
|
-
} @else if $mixin-str == '
|
|
652
|
-
@include
|
|
687
|
+
} @else if $mixin-str == 'x-start' {
|
|
688
|
+
@include x-start;
|
|
689
|
+
} @else if $mixin-str == 'x-end' {
|
|
690
|
+
@include x-end;
|
|
691
|
+
} @else if $mixin-str == 'x-center' {
|
|
692
|
+
@include x-center;
|
|
693
|
+
} @else if $mixin-str == 'x-stretch' {
|
|
694
|
+
@include x-stretch;
|
|
695
|
+
} @else if $mixin-str == 'x-baseline' {
|
|
696
|
+
@include x-baseline;
|
|
697
|
+
} @else if $mixin-str == 'x-content-start' {
|
|
698
|
+
@include x-content-start;
|
|
699
|
+
} @else if $mixin-str == 'x-content-end' {
|
|
700
|
+
@include x-content-end;
|
|
701
|
+
} @else if $mixin-str == 'x-content-center' {
|
|
702
|
+
@include x-content-center;
|
|
703
|
+
} @else if $mixin-str == 'x-content-between' {
|
|
704
|
+
@include x-content-between;
|
|
705
|
+
} @else if $mixin-str == 'x-content-around' {
|
|
706
|
+
@include x-content-around;
|
|
707
|
+
} @else if $mixin-str == 'x-content-evenly' {
|
|
708
|
+
@include x-content-evenly;
|
|
709
|
+
} @else if $mixin-str == 'x-content-stretch' {
|
|
710
|
+
@include x-content-stretch;
|
|
653
711
|
} @else if $mixin-str == 'self-auto' {
|
|
654
712
|
@include self-auto;
|
|
655
713
|
} @else if $mixin-str == 'self-start' {
|
|
@@ -660,6 +718,8 @@
|
|
|
660
718
|
@include self-center;
|
|
661
719
|
} @else if $mixin-str == 'self-stretch' {
|
|
662
720
|
@include self-stretch;
|
|
721
|
+
} @else if $mixin-str == 'self-baseline' {
|
|
722
|
+
@include self-baseline;
|
|
663
723
|
} @else if $mixin-str == 'shrink' {
|
|
664
724
|
@include shrink;
|
|
665
725
|
} @else if $mixin-str == 'shrink-0' {
|
|
@@ -678,26 +738,30 @@
|
|
|
678
738
|
@include grid;
|
|
679
739
|
} @else if $mixin-str == 'grid-inline' {
|
|
680
740
|
@include grid-inline;
|
|
681
|
-
} @else if $mixin-str == '
|
|
682
|
-
@include
|
|
683
|
-
} @else if $mixin-str == '
|
|
684
|
-
@include
|
|
685
|
-
} @else if $mixin-str == '
|
|
686
|
-
@include
|
|
687
|
-
} @else if $mixin-str == '
|
|
688
|
-
@include
|
|
689
|
-
} @else if $mixin-str == '
|
|
690
|
-
@include
|
|
691
|
-
} @else if $mixin-str == '
|
|
692
|
-
@include
|
|
693
|
-
} @else if $mixin-str == '
|
|
694
|
-
@include
|
|
741
|
+
} @else if $mixin-str == 'flow-in-row' {
|
|
742
|
+
@include flow-in-row;
|
|
743
|
+
} @else if $mixin-str == 'flow-in-col' {
|
|
744
|
+
@include flow-in-col;
|
|
745
|
+
} @else if $mixin-str == 'flow-dense-items' {
|
|
746
|
+
@include flow-dense-items;
|
|
747
|
+
} @else if $mixin-str == 'hide' {
|
|
748
|
+
@include hide;
|
|
749
|
+
} @else if $mixin-str == 'block' {
|
|
750
|
+
@include block;
|
|
751
|
+
} @else if $mixin-str == 'inline' {
|
|
752
|
+
@include inline;
|
|
753
|
+
} @else if $mixin-str == 'inline-block' {
|
|
754
|
+
@include inline-block;
|
|
755
|
+
} @else if $mixin-str == 'show' {
|
|
756
|
+
@include show;
|
|
695
757
|
} @else if $mixin-str == 'd-tbl' {
|
|
696
758
|
@include d-tbl;
|
|
697
759
|
} @else if $mixin-str == 'd-tbl-row' {
|
|
698
760
|
@include d-tbl-row;
|
|
699
761
|
} @else if $mixin-str == 'd-tbl-cell' {
|
|
700
762
|
@include d-tbl-cell;
|
|
763
|
+
} @else if $mixin-str == 'overflow-hidden' {
|
|
764
|
+
@include overflow-hidden;
|
|
701
765
|
} @else if $mixin-str == 'touch' {
|
|
702
766
|
@include touch;
|
|
703
767
|
} @else if $mixin-str == 'print' {
|
|
@@ -746,22 +810,6 @@
|
|
|
746
810
|
@include mr-auto;
|
|
747
811
|
} @else if $mixin-str == 'mx-auto' {
|
|
748
812
|
@include mx-auto;
|
|
749
|
-
} @else if $mixin-str == 'text-xs' {
|
|
750
|
-
@include text-xs;
|
|
751
|
-
} @else if $mixin-str == 'text-sm' {
|
|
752
|
-
@include text-sm;
|
|
753
|
-
} @else if $mixin-str == 'text-md' {
|
|
754
|
-
@include text-md;
|
|
755
|
-
} @else if $mixin-str == 'text-lg' {
|
|
756
|
-
@include text-lg;
|
|
757
|
-
} @else if $mixin-str == 'text-xl' {
|
|
758
|
-
@include text-xl;
|
|
759
|
-
} @else if $mixin-str == 'text-2xl' {
|
|
760
|
-
@include text-2xl;
|
|
761
|
-
} @else if $mixin-str == 'text-3xl' {
|
|
762
|
-
@include text-3xl;
|
|
763
|
-
} @else if $mixin-str == 'text-4xl' {
|
|
764
|
-
@include text-4xl;
|
|
765
813
|
} @else if $mixin-str == 'font-thin' {
|
|
766
814
|
@include font-thin;
|
|
767
815
|
} @else if $mixin-str == 'font-extralight' {
|
|
@@ -820,31 +868,41 @@
|
|
|
820
868
|
@include no-underline;
|
|
821
869
|
} @else if $mixin-str == 'truncate' {
|
|
822
870
|
@include truncate;
|
|
871
|
+
} @else if str.index($mixin-str, 'container(') == 1 {
|
|
872
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
873
|
+
$end: str.length($mixin-str) - 1;
|
|
874
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
875
|
+
@include container(str.unquote($value));
|
|
823
876
|
} @else if str.index($mixin-str, 'w-col(') == 1 {
|
|
824
877
|
$start: str.index($mixin-str, '(') + 1;
|
|
825
878
|
$end: str.length($mixin-str) - 1;
|
|
826
879
|
$value: str.slice($mixin-str, $start, $end);
|
|
827
880
|
@include w-col(str.unquote($value));
|
|
828
|
-
} @else if str.index($mixin-str, '
|
|
881
|
+
} @else if str.index($mixin-str, 'cols(') == 1 {
|
|
882
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
883
|
+
$end: str.length($mixin-str) - 1;
|
|
884
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
885
|
+
@include cols(str.unquote($value));
|
|
886
|
+
} @else if str.index($mixin-str, 'rows(') == 1 {
|
|
829
887
|
$start: str.index($mixin-str, '(') + 1;
|
|
830
888
|
$end: str.length($mixin-str) - 1;
|
|
831
889
|
$value: str.slice($mixin-str, $start, $end);
|
|
832
|
-
@include
|
|
833
|
-
} @else if str.index($mixin-str, 'grid-
|
|
890
|
+
@include rows(str.unquote($value));
|
|
891
|
+
} @else if str.index($mixin-str, 'grid-cols-custom(') == 1 {
|
|
834
892
|
$start: str.index($mixin-str, '(') + 1;
|
|
835
893
|
$end: str.length($mixin-str) - 1;
|
|
836
894
|
$value: str.slice($mixin-str, $start, $end);
|
|
837
|
-
@include grid-
|
|
838
|
-
} @else if str.index($mixin-str, '
|
|
895
|
+
@include grid-cols-custom(str.unquote($value));
|
|
896
|
+
} @else if str.index($mixin-str, 'auto-fit(') == 1 {
|
|
839
897
|
$start: str.index($mixin-str, '(') + 1;
|
|
840
898
|
$end: str.length($mixin-str) - 1;
|
|
841
899
|
$value: str.slice($mixin-str, $start, $end);
|
|
842
|
-
@include
|
|
843
|
-
} @else if str.index($mixin-str, '
|
|
900
|
+
@include auto-fit(str.unquote($value));
|
|
901
|
+
} @else if str.index($mixin-str, 'auto-fill(') == 1 {
|
|
844
902
|
$start: str.index($mixin-str, '(') + 1;
|
|
845
903
|
$end: str.length($mixin-str) - 1;
|
|
846
904
|
$value: str.slice($mixin-str, $start, $end);
|
|
847
|
-
@include
|
|
905
|
+
@include auto-fill(str.unquote($value));
|
|
848
906
|
} @else if str.index($mixin-str, 'justify-items(') == 1 {
|
|
849
907
|
$start: str.index($mixin-str, '(') + 1;
|
|
850
908
|
$end: str.length($mixin-str) - 1;
|
|
@@ -860,16 +918,16 @@
|
|
|
860
918
|
$end: str.length($mixin-str) - 1;
|
|
861
919
|
$value: str.slice($mixin-str, $start, $end);
|
|
862
920
|
@include place-items(str.unquote($value));
|
|
863
|
-
} @else if str.index($mixin-str, 'col
|
|
921
|
+
} @else if str.index($mixin-str, 'span-col(') == 1 {
|
|
864
922
|
$start: str.index($mixin-str, '(') + 1;
|
|
865
923
|
$end: str.length($mixin-str) - 1;
|
|
866
924
|
$value: str.slice($mixin-str, $start, $end);
|
|
867
|
-
@include col
|
|
868
|
-
} @else if str.index($mixin-str, 'row
|
|
925
|
+
@include span-col(str.unquote($value));
|
|
926
|
+
} @else if str.index($mixin-str, 'span-row(') == 1 {
|
|
869
927
|
$start: str.index($mixin-str, '(') + 1;
|
|
870
928
|
$end: str.length($mixin-str) - 1;
|
|
871
929
|
$value: str.slice($mixin-str, $start, $end);
|
|
872
|
-
@include row
|
|
930
|
+
@include span-row(str.unquote($value));
|
|
873
931
|
} @else if str.index($mixin-str, 'col-start(') == 1 {
|
|
874
932
|
$start: str.index($mixin-str, '(') + 1;
|
|
875
933
|
$end: str.length($mixin-str) - 1;
|
|
@@ -890,6 +948,21 @@
|
|
|
890
948
|
$end: str.length($mixin-str) - 1;
|
|
891
949
|
$value: str.slice($mixin-str, $start, $end);
|
|
892
950
|
@include row-end(str.unquote($value));
|
|
951
|
+
} @else if str.index($mixin-str, 'grid-position(') == 1 {
|
|
952
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
953
|
+
$end: str.length($mixin-str) - 1;
|
|
954
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
955
|
+
@include grid-position(str.unquote($value));
|
|
956
|
+
} @else if str.index($mixin-str, 'position-col(') == 1 {
|
|
957
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
958
|
+
$end: str.length($mixin-str) - 1;
|
|
959
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
960
|
+
@include position-col(str.unquote($value));
|
|
961
|
+
} @else if str.index($mixin-str, 'position-row(') == 1 {
|
|
962
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
963
|
+
$end: str.length($mixin-str) - 1;
|
|
964
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
965
|
+
@include position-row(str.unquote($value));
|
|
893
966
|
} @else if str.index($mixin-str, 'generate-bounce-keyframes(') == 1 {
|
|
894
967
|
$start: str.index($mixin-str, '(') + 1;
|
|
895
968
|
$end: str.length($mixin-str) - 1;
|
|
@@ -925,6 +998,31 @@
|
|
|
925
998
|
$end: str.length($mixin-str) - 1;
|
|
926
999
|
$value: str.slice($mixin-str, $start, $end);
|
|
927
1000
|
@include filter(str.unquote($value));
|
|
1001
|
+
} @else if str.index($mixin-str, 'container-up(') == 1 {
|
|
1002
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
1003
|
+
$end: str.length($mixin-str) - 1;
|
|
1004
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
1005
|
+
@include container-up(str.unquote($value));
|
|
1006
|
+
} @else if str.index($mixin-str, 'container-down(') == 1 {
|
|
1007
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
1008
|
+
$end: str.length($mixin-str) - 1;
|
|
1009
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
1010
|
+
@include container-down(str.unquote($value));
|
|
1011
|
+
} @else if str.index($mixin-str, 'container-between(') == 1 {
|
|
1012
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
1013
|
+
$end: str.length($mixin-str) - 1;
|
|
1014
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
1015
|
+
@include container-between(str.unquote($value));
|
|
1016
|
+
} @else if str.index($mixin-str, 'container-only(') == 1 {
|
|
1017
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
1018
|
+
$end: str.length($mixin-str) - 1;
|
|
1019
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
1020
|
+
@include container-only(str.unquote($value));
|
|
1021
|
+
} @else if str.index($mixin-str, 'container-query(') == 1 {
|
|
1022
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
1023
|
+
$end: str.length($mixin-str) - 1;
|
|
1024
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
1025
|
+
@include container-query(str.unquote($value));
|
|
928
1026
|
} @else if str.index($mixin-str, 'media-up(') == 1 {
|
|
929
1027
|
$start: str.index($mixin-str, '(') + 1;
|
|
930
1028
|
$end: str.length($mixin-str) - 1;
|
|
@@ -945,11 +1043,6 @@
|
|
|
945
1043
|
$end: str.length($mixin-str) - 1;
|
|
946
1044
|
$value: str.slice($mixin-str, $start, $end);
|
|
947
1045
|
@include media-only(str.unquote($value));
|
|
948
|
-
} @else if str.index($mixin-str, 'container-query(') == 1 {
|
|
949
|
-
$start: str.index($mixin-str, '(') + 1;
|
|
950
|
-
$end: str.length($mixin-str) - 1;
|
|
951
|
-
$value: str.slice($mixin-str, $start, $end);
|
|
952
|
-
@include container-query(str.unquote($value));
|
|
953
1046
|
} @else if str.index($mixin-str, 'supports(') == 1 {
|
|
954
1047
|
$start: str.index($mixin-str, '(') + 1;
|
|
955
1048
|
$end: str.length($mixin-str) - 1;
|
|
@@ -1155,6 +1248,11 @@
|
|
|
1155
1248
|
$end: str.length($mixin-str) - 1;
|
|
1156
1249
|
$value: str.slice($mixin-str, $start, $end);
|
|
1157
1250
|
@include gap-y(str.unquote($value));
|
|
1251
|
+
} @else if str.index($mixin-str, 'text-size(') == 1 {
|
|
1252
|
+
$start: str.index($mixin-str, '(') + 1;
|
|
1253
|
+
$end: str.length($mixin-str) - 1;
|
|
1254
|
+
$value: str.slice($mixin-str, $start, $end);
|
|
1255
|
+
@include text-size(str.unquote($value));
|
|
1158
1256
|
} @else {
|
|
1159
1257
|
@warn "Mixin '#{$mixin}' is not defined.";
|
|
1160
1258
|
}
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
@use '../utilities/variables' as *;
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
8
|
// Generate scales for primitives
|
|
11
9
|
$colors-primitives: ();
|
|
12
10
|
|
|
@@ -40,6 +38,24 @@ $colors-primitives: ();
|
|
|
40
38
|
--button-text-color: var(--gray-100);
|
|
41
39
|
--link-color: var(--primary);
|
|
42
40
|
--link-hover-color: var(--primary-600);
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
&::-webkit-scrollbar {
|
|
44
|
+
width: 12px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&::-webkit-scrollbar-track {
|
|
48
|
+
background: var(--background); // Light background
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&::-webkit-scrollbar-thumb {
|
|
52
|
+
background-color: #888; // Dark gray thumb
|
|
53
|
+
border-radius: 6px;
|
|
54
|
+
border: 3px solid var(--background); // Light background
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
scrollbar-width: thin;
|
|
58
|
+
scrollbar-color: #888 var(--background); // Dark gray thumb, light background
|
|
43
59
|
}
|
|
44
60
|
|
|
45
61
|
[data-theme="dark"] {
|
|
@@ -54,6 +70,17 @@ $colors-primitives: ();
|
|
|
54
70
|
--button-text-color: var(--gray-200);
|
|
55
71
|
--link-color: var(--primary);
|
|
56
72
|
--link-hover-color: var(--primary-400);
|
|
73
|
+
|
|
74
|
+
&::-webkit-scrollbar-track {
|
|
75
|
+
background: var(--background);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&::-webkit-scrollbar-thumb {
|
|
79
|
+
background-color: #555;
|
|
80
|
+
border: 3px solid var(--background);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
scrollbar-color: #555 var(--background);
|
|
57
84
|
}
|
|
58
85
|
|
|
59
86
|
// --font-family-heading: var(--font-family-base);
|
|
@@ -20,13 +20,10 @@
|
|
|
20
20
|
|
|
21
21
|
// Responsive Position Classes
|
|
22
22
|
@each $breakpoint, $width in $breakpoints {
|
|
23
|
-
@media (min-width: $width) {
|
|
24
|
-
|
|
25
|
-
@each $i in 0 1 2 4 8 {
|
|
26
|
-
.border-#{$i}\@#{$breakpoint} { @include border($i); }
|
|
27
|
-
}
|
|
23
|
+
@media (min-width: #{$width}) {
|
|
28
24
|
@each $i in 0 2 3 4 5 10 15 20 25 {
|
|
29
25
|
.rounded-#{$i}\@#{$breakpoint} { @include border($i); }
|
|
30
26
|
}
|
|
27
|
+
.rounded\@#{$breakpoint} { @include border(0.25rem); }
|
|
31
28
|
}
|
|
32
29
|
}
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
// Color Relationship Functions
|
|
45
|
-
@function find-text-color($
|
|
46
|
-
$luminance: luminance($
|
|
45
|
+
@function find-text-color($color) {
|
|
46
|
+
$luminance: luminance($color);
|
|
47
47
|
@return if($luminance > 0.55, #000, #fff);
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
// Context-Aware Colors
|
|
64
|
-
@mixin adaptive-contrast($
|
|
65
|
-
background: $
|
|
66
|
-
color: find-text-color($
|
|
64
|
+
@mixin adaptive-contrast($color) {
|
|
65
|
+
background: $color;
|
|
66
|
+
color: find-text-color($color);
|
|
67
67
|
|
|
68
68
|
@media (prefers-contrast: more) {
|
|
69
|
-
$high-contrast: adjust-contrast($
|
|
69
|
+
$high-contrast: adjust-contrast($color, 20%);
|
|
70
70
|
|
|
71
71
|
background: $high-contrast;
|
|
72
72
|
}
|