@volverjs/style 0.1.2-beta.22 → 0.1.2-beta.24
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/README.md +16 -15
- package/dist/components/vv-badge.css +1 -1
- package/dist/components/vv-button.css +1 -1
- package/dist/components/vv-input-checkbox-group.css +1 -1
- package/dist/components/vv-input-checkbox.css +1 -1
- package/dist/components/vv-input-radio-group.css +1 -1
- package/dist/components/vv-input-radio.css +1 -1
- package/dist/components/vv-input-text.css +1 -1
- package/dist/components/vv-nav.css +1 -1
- package/dist/components/vv-select.css +1 -1
- package/dist/components/vv-table.css +1 -1
- package/dist/components/vv-textarea.css +1 -1
- package/dist/components/vv-toast.css +1 -1
- package/dist/components.css +1 -1
- package/dist/export.css +1 -1
- package/dist/props/input.css +1 -1
- package/dist/props.css +1 -1
- package/dist/themes/dark/components.css +1 -1
- package/dist/themes/dark/volver.css +1 -1
- package/dist/utilities/effects.css +1 -1
- package/dist/utilities/layout.css +1 -1
- package/dist/utilities/sizing.css +1 -1
- package/dist/utilities/transitions.css +1 -0
- package/dist/utilities/typography.css +1 -1
- package/dist/utilities.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +15 -13
- package/src/_context.scss +3 -3
- package/src/_preflight.scss +1 -0
- package/src/components/index.scss +24 -24
- package/src/components/vv-accordion.scss +3 -2
- package/src/components/vv-alert.scss +3 -2
- package/src/components/vv-avatar.scss +3 -2
- package/src/components/vv-badge.scss +3 -2
- package/src/components/vv-breadcrumb.scss +3 -2
- package/src/components/vv-button-group.scss +3 -2
- package/src/components/vv-button.scss +3 -2
- package/src/components/vv-card.scss +3 -2
- package/src/components/vv-dialog.scss +3 -2
- package/src/components/vv-dropdown.scss +3 -2
- package/src/components/vv-input-checkbox-group.scss +3 -2
- package/src/components/vv-input-checkbox.scss +3 -2
- package/src/components/vv-input-radio-group.scss +3 -2
- package/src/components/vv-input-radio.scss +3 -2
- package/src/components/vv-input-text.scss +3 -2
- package/src/components/vv-nav.scss +3 -2
- package/src/components/vv-progress.scss +3 -2
- package/src/components/vv-select.scss +3 -2
- package/src/components/vv-tab.scss +3 -2
- package/src/components/vv-table.scss +3 -2
- package/src/components/vv-text.scss +3 -2
- package/src/components/vv-textarea.scss +3 -2
- package/src/components/vv-toast.scss +3 -2
- package/src/components/vv-tooltip.scss +3 -2
- package/src/export.scss +41 -4
- package/src/props/animation.scss +1 -1
- package/src/props/background.scss +1 -1
- package/src/props/borders.scss +1 -1
- package/src/props/colors.scss +1 -1
- package/src/props/effects.scss +1 -1
- package/src/props/filters.scss +1 -1
- package/src/props/index.scss +12 -12
- package/src/props/input.scss +1 -1
- package/src/props/layout.scss +1 -1
- package/src/props/media.scss +1 -1
- package/src/props/sizing.scss +1 -1
- package/src/props/spacing.scss +2 -2
- package/src/props/typography.scss +2 -2
- package/src/settings/_background.scss +3 -0
- package/src/settings/_breakpoints.scss +2 -0
- package/src/settings/_colors.scss +1 -0
- package/src/settings/_effects.scss +47 -2
- package/src/settings/_index.scss +39 -38
- package/src/settings/_input.scss +1 -0
- package/src/settings/_transitions.scss +41 -0
- package/src/settings/components/_vv-badge.scss +10 -3
- package/src/settings/components/_vv-button.scss +8 -6
- package/src/settings/components/_vv-input-checkbox-group.scss +1 -0
- package/src/settings/components/_vv-input-checkbox.scss +1 -0
- package/src/settings/components/_vv-input-radio-group.scss +2 -0
- package/src/settings/components/_vv-input-radio.scss +1 -0
- package/src/settings/components/_vv-input-text.scss +13 -1
- package/src/settings/components/_vv-nav.scss +0 -1
- package/src/settings/components/_vv-select.scss +1 -0
- package/src/settings/components/_vv-table.scss +6 -0
- package/src/settings/components/_vv-textarea.scss +1 -0
- package/src/settings/components/_vv-toast.scss +0 -1
- package/src/themes/dark/_context.scss +4 -4
- package/src/themes/dark/components/_vv-button.scss +1 -1
- package/src/themes/dark/components/index.scss +1 -2
- package/src/themes/dark/props/_background.scss +1 -1
- package/src/themes/dark/props/_colors.scss +1 -1
- package/src/themes/dark/props/index.scss +2 -2
- package/src/themes/dark/settings/_background.scss +3 -0
- package/src/themes/dark/settings/_colors.scss +2 -0
- package/src/themes/dark/settings/_index.scss +3 -4
- package/src/themes/dark/volver.scss +2 -2
- package/src/tools/_breakpoints.scss +7 -7
- package/src/tools/_index.scss +3 -3
- package/src/tools/_mixins.scss +50 -19
- package/src/utilities/animation.scss +3 -2
- package/src/utilities/backgrounds.scss +15 -8
- package/src/utilities/borders.scss +17 -9
- package/src/utilities/colors.scss +9 -5
- package/src/utilities/effects.scss +23 -5
- package/src/utilities/filters.scss +7 -4
- package/src/utilities/flexbox.scss +15 -8
- package/src/utilities/grid.scss +17 -9
- package/src/utilities/index.scss +13 -12
- package/src/utilities/layout.scss +26 -14
- package/src/utilities/sizing.scss +15 -8
- package/src/utilities/spacing.scss +1 -1
- package/src/utilities/transitions.scss +30 -0
- package/src/utilities/typography.scss +33 -17
- package/src/volver.scss +4 -4
- package/src/themes/dark/components/_vv-input-checkbox.scss +0 -22
- package/src/themes/dark/settings/components/_vv-input-checkbox.scss +0 -26
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
|
29
29
|
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
30
30
|
// 576px
|
|
31
|
-
@function breakpoint-min($name, $bps
|
|
31
|
+
@function breakpoint-min($name, $bps) {
|
|
32
32
|
$min: map.get($bps, $name);
|
|
33
33
|
@return if($min != 0, $min, null);
|
|
34
34
|
}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
// See https://bugs.webkit.org/show_bug.cgi?id=178261
|
|
42
42
|
// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
43
43
|
// 767.98px
|
|
44
|
-
@function breakpoint-max($name, $bps
|
|
44
|
+
@function breakpoint-max($name, $bps) {
|
|
45
45
|
$next: breakpoint-next($name, $bps);
|
|
46
46
|
@return if($next, breakpoint-min($next, $bps) - 0.02, null);
|
|
47
47
|
}
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
// "" (Returns a blank string)
|
|
53
53
|
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
54
54
|
// "-sm"
|
|
55
|
-
@function breakpoint-infix($name, $bps
|
|
55
|
+
@function breakpoint-infix($name, $bps) {
|
|
56
56
|
@return if(breakpoint-min($name, $bps) == null, '', '-#{$name}');
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
|
|
60
60
|
// Makes the @content apply to the given breakpoint and wider.
|
|
61
|
-
@mixin media-breakpoint-up($name, $bps
|
|
61
|
+
@mixin media-breakpoint-up($name, $bps) {
|
|
62
62
|
$min: breakpoint-min($name, $bps);
|
|
63
63
|
@if $min {
|
|
64
64
|
@media (min-width: $min) {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
// Media of at most the maximum breakpoint width. No query for the largest breakpoint.
|
|
73
73
|
// Makes the @content apply to the given breakpoint and narrower.
|
|
74
|
-
@mixin media-breakpoint-down($name, $bps
|
|
74
|
+
@mixin media-breakpoint-down($name, $bps) {
|
|
75
75
|
$max: breakpoint-max($name, $bps);
|
|
76
76
|
@if $max {
|
|
77
77
|
@media (max-width: $max) {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
|
|
85
85
|
// Media that spans multiple breakpoint widths.
|
|
86
86
|
// Makes the @content apply between the min and max breakpoints
|
|
87
|
-
@mixin media-breakpoint-between($lower, $upper, $bps
|
|
87
|
+
@mixin media-breakpoint-between($lower, $upper, $bps) {
|
|
88
88
|
$min: breakpoint-min($lower, $bps);
|
|
89
89
|
$max: breakpoint-max($upper, $bps);
|
|
90
90
|
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
// Media between the breakpoint's minimum and maximum widths.
|
|
107
107
|
// No minimum for the smallest breakpoint, and no maximum for the largest one.
|
|
108
108
|
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
|
|
109
|
-
@mixin media-breakpoint-only($name, $bps
|
|
109
|
+
@mixin media-breakpoint-only($name, $bps) {
|
|
110
110
|
$min: breakpoint-min($name, $bps);
|
|
111
111
|
$max: breakpoint-max($name, $bps);
|
|
112
112
|
|
package/src/tools/_index.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
1
|
+
@forward 'functions';
|
|
2
|
+
@forward 'mixins';
|
|
3
|
+
@forward 'breakpoints';
|
package/src/tools/_mixins.scss
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
@use 'sass:string';
|
|
4
4
|
@use 'sass:meta';
|
|
5
5
|
@use 'sass:selector';
|
|
6
|
+
@use 'functions' as *;
|
|
7
|
+
@use 'breakpoints' as *;
|
|
6
8
|
|
|
7
9
|
// Check ascending order
|
|
8
10
|
// Used to ensure the breakpoints are ordered ascending.
|
|
@@ -77,7 +79,7 @@
|
|
|
77
79
|
xxs: 0,
|
|
78
80
|
),
|
|
79
81
|
$prefix: '',
|
|
80
|
-
$zero-specificity:
|
|
82
|
+
$zero-specificity: false
|
|
81
83
|
) {
|
|
82
84
|
@if (type-of($map) == 'map' or type-of($map) == 'list') and $attribute != ''
|
|
83
85
|
{
|
|
@@ -91,12 +93,14 @@
|
|
|
91
93
|
}
|
|
92
94
|
@if type-of($value) == 'map' and $deep {
|
|
93
95
|
@include spread-map-into-utilities(
|
|
94
|
-
$value,
|
|
95
|
-
$class,
|
|
96
|
-
$attribute,
|
|
97
|
-
$prop,
|
|
98
|
-
$key,
|
|
99
|
-
$
|
|
96
|
+
$map: $value,
|
|
97
|
+
$class: $class,
|
|
98
|
+
$attribute: $attribute,
|
|
99
|
+
$prop: $prop,
|
|
100
|
+
$name: $key,
|
|
101
|
+
$bps: $bps,
|
|
102
|
+
$prefix: $prefix,
|
|
103
|
+
$zero-specificity: $zero-specificity
|
|
100
104
|
);
|
|
101
105
|
} @else {
|
|
102
106
|
$default: null;
|
|
@@ -133,8 +137,12 @@
|
|
|
133
137
|
$default: $key;
|
|
134
138
|
}
|
|
135
139
|
|
|
140
|
+
@if type-of($default) == 'string' {
|
|
141
|
+
$default: string.unquote($default);
|
|
142
|
+
}
|
|
143
|
+
|
|
136
144
|
%#{$prefix}#{$class-name} {
|
|
137
|
-
@include media-breakpoint-up($breakpoint) {
|
|
145
|
+
@include media-breakpoint-up($breakpoint, $bps) {
|
|
138
146
|
@if type-of($attribute) != 'list' {
|
|
139
147
|
$attribute: ($attribute);
|
|
140
148
|
}
|
|
@@ -170,7 +178,10 @@
|
|
|
170
178
|
$key: 'modifier',
|
|
171
179
|
$block: null,
|
|
172
180
|
$props: true,
|
|
173
|
-
$zero-specificity: true
|
|
181
|
+
$zero-specificity: true,
|
|
182
|
+
$bps: (
|
|
183
|
+
xxs: 0,
|
|
184
|
+
)
|
|
174
185
|
) {
|
|
175
186
|
@if not $block {
|
|
176
187
|
$block: &;
|
|
@@ -255,7 +266,10 @@
|
|
|
255
266
|
$block: null,
|
|
256
267
|
$modifier: null,
|
|
257
268
|
$props: true,
|
|
258
|
-
$zero-specificity: true
|
|
269
|
+
$zero-specificity: true,
|
|
270
|
+
$bps: (
|
|
271
|
+
xxs: 0,
|
|
272
|
+
)
|
|
259
273
|
) {
|
|
260
274
|
@if not $block {
|
|
261
275
|
$block: &;
|
|
@@ -360,7 +374,10 @@
|
|
|
360
374
|
$modifier: '',
|
|
361
375
|
$alias: null,
|
|
362
376
|
$props: true,
|
|
363
|
-
$zero-specificity: true
|
|
377
|
+
$zero-specificity: true,
|
|
378
|
+
$bps: (
|
|
379
|
+
xxs: 0,
|
|
380
|
+
)
|
|
364
381
|
) {
|
|
365
382
|
@if not $original {
|
|
366
383
|
$original: $map;
|
|
@@ -593,7 +610,9 @@
|
|
|
593
610
|
$key: 'breakpoint',
|
|
594
611
|
$block: null,
|
|
595
612
|
$props: true,
|
|
596
|
-
$bps:
|
|
613
|
+
$bps: (
|
|
614
|
+
xxs: 0,
|
|
615
|
+
),
|
|
597
616
|
$zero-specificity: true
|
|
598
617
|
) {
|
|
599
618
|
@if not $block {
|
|
@@ -633,7 +652,9 @@
|
|
|
633
652
|
outer-spin-button,
|
|
634
653
|
progress-bar,
|
|
635
654
|
progress-value,
|
|
636
|
-
progress-inner-element
|
|
655
|
+
progress-inner-element,
|
|
656
|
+
datetime-edit-fields-wrapper,
|
|
657
|
+
datetime-edit-day-field
|
|
637
658
|
),
|
|
638
659
|
$pseudo-element
|
|
639
660
|
)
|
|
@@ -660,7 +681,10 @@
|
|
|
660
681
|
$postfix: '',
|
|
661
682
|
$deep: false,
|
|
662
683
|
$ignore: (),
|
|
663
|
-
$props: true
|
|
684
|
+
$props: true,
|
|
685
|
+
$bps: (
|
|
686
|
+
xxs: 0,
|
|
687
|
+
)
|
|
664
688
|
) {
|
|
665
689
|
@if type-of($map) == 'map' and $prefix != '' {
|
|
666
690
|
@each $key, $value in $map {
|
|
@@ -693,6 +717,8 @@
|
|
|
693
717
|
progress-value,
|
|
694
718
|
inner-element,
|
|
695
719
|
marker,
|
|
720
|
+
datetime-edit-fields-wrapper,
|
|
721
|
+
datetime-edit-day-field,
|
|
696
722
|
-webkit-progress-bar,
|
|
697
723
|
-webkit-progress-value,
|
|
698
724
|
-webkit-inner-element,
|
|
@@ -838,7 +864,8 @@
|
|
|
838
864
|
$custom-elements: false,
|
|
839
865
|
$custom-modifiers: false,
|
|
840
866
|
$custom-states: false,
|
|
841
|
-
$custom-breakpoints: false
|
|
867
|
+
$custom-breakpoints: false,
|
|
868
|
+
$bps: (xxs: 0)
|
|
842
869
|
) {
|
|
843
870
|
@if type-of($map) == 'map' and $block != '' {
|
|
844
871
|
$selector: '.' + $block;
|
|
@@ -888,7 +915,8 @@
|
|
|
888
915
|
$key: $elements-key,
|
|
889
916
|
$block: $selector,
|
|
890
917
|
$props: $props,
|
|
891
|
-
$zero-specificity: $zero-specificity
|
|
918
|
+
$zero-specificity: $zero-specificity,
|
|
919
|
+
$bps: $bps
|
|
892
920
|
);
|
|
893
921
|
}
|
|
894
922
|
}
|
|
@@ -902,7 +930,8 @@
|
|
|
902
930
|
$key: $states-key,
|
|
903
931
|
$block: $selector,
|
|
904
932
|
$props: $props,
|
|
905
|
-
$zero-specificity: $zero-specificity
|
|
933
|
+
$zero-specificity: $zero-specificity,
|
|
934
|
+
$bps: $bps
|
|
906
935
|
);
|
|
907
936
|
}
|
|
908
937
|
}
|
|
@@ -916,7 +945,8 @@
|
|
|
916
945
|
$key: $modifiers-key,
|
|
917
946
|
$block: $selector,
|
|
918
947
|
$props: $props,
|
|
919
|
-
$zero-specificity: $zero-specificity
|
|
948
|
+
$zero-specificity: $zero-specificity,
|
|
949
|
+
$bps: $bps
|
|
920
950
|
);
|
|
921
951
|
}
|
|
922
952
|
}
|
|
@@ -930,7 +960,8 @@
|
|
|
930
960
|
$key: $breakpoints-key,
|
|
931
961
|
$block: $selector,
|
|
932
962
|
$props: $props,
|
|
933
|
-
$zero-specificity: $zero-specificity
|
|
963
|
+
$zero-specificity: $zero-specificity,
|
|
964
|
+
$bps: $bps
|
|
934
965
|
);
|
|
935
966
|
}
|
|
936
967
|
}
|
|
@@ -1,50 +1,57 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../context' as *;
|
|
2
2
|
|
|
3
3
|
// background-attachment
|
|
4
4
|
@include spread-map-into-utilities(
|
|
5
5
|
$map: $background-attachment,
|
|
6
6
|
$class: 'bg',
|
|
7
|
-
$attribute: 'background-attachment'
|
|
7
|
+
$attribute: 'background-attachment',
|
|
8
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
8
9
|
);
|
|
9
10
|
|
|
10
11
|
// background-clip
|
|
11
12
|
@include spread-map-into-utilities(
|
|
12
13
|
$map: $background-clip,
|
|
13
14
|
$class: 'bg-clip',
|
|
14
|
-
$attribute: 'background-clip'
|
|
15
|
+
$attribute: 'background-clip',
|
|
16
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
15
17
|
);
|
|
16
18
|
|
|
17
19
|
// background-origin
|
|
18
20
|
@include spread-map-into-utilities(
|
|
19
21
|
$map: $background-origin,
|
|
20
22
|
$class: 'bg-origin',
|
|
21
|
-
$attribute: 'background-origin'
|
|
23
|
+
$attribute: 'background-origin',
|
|
24
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
22
25
|
);
|
|
23
26
|
|
|
24
27
|
// background-position
|
|
25
28
|
@include spread-map-into-utilities(
|
|
26
29
|
$map: $background-position,
|
|
27
30
|
$class: 'bg',
|
|
28
|
-
$attribute: 'background-position'
|
|
31
|
+
$attribute: 'background-position',
|
|
32
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
29
33
|
);
|
|
30
34
|
|
|
31
35
|
// background-repeat
|
|
32
36
|
@include spread-map-into-utilities(
|
|
33
37
|
$map: $background-repeat,
|
|
34
38
|
$class: bg,
|
|
35
|
-
$attribute: background-repeat
|
|
39
|
+
$attribute: background-repeat,
|
|
40
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
36
41
|
);
|
|
37
42
|
|
|
38
43
|
// background-size
|
|
39
44
|
@include spread-map-into-utilities(
|
|
40
45
|
$map: $background-size,
|
|
41
46
|
$class: bg,
|
|
42
|
-
$attribute: background-size
|
|
47
|
+
$attribute: background-size,
|
|
48
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
43
49
|
);
|
|
44
50
|
|
|
45
51
|
// background-image
|
|
46
52
|
@include spread-map-into-utilities(
|
|
47
53
|
$map: $background-image,
|
|
48
54
|
$class: bg,
|
|
49
|
-
$attribute: background-image
|
|
55
|
+
$attribute: background-image,
|
|
56
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
50
57
|
);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
2
|
+
@use '../context' as *;
|
|
3
3
|
|
|
4
4
|
// border-radius
|
|
5
5
|
@include spread-map-into-utilities(
|
|
6
6
|
$map: $border-radius,
|
|
7
7
|
$class: rounded,
|
|
8
8
|
$attribute: border-radius,
|
|
9
|
-
$prop: rounded
|
|
9
|
+
$prop: rounded,
|
|
10
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
10
11
|
);
|
|
11
12
|
|
|
12
13
|
@each $x-key, $x-value in (t: top, b: bottom) {
|
|
@@ -17,7 +18,8 @@
|
|
|
17
18
|
border- + $x-value + -left-radius,
|
|
18
19
|
border- + $x-value + -right-radius,
|
|
19
20
|
),
|
|
20
|
-
$prop: rounded
|
|
21
|
+
$prop: rounded,
|
|
22
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
21
23
|
);
|
|
22
24
|
|
|
23
25
|
@each $y-key, $y-value in (r: right, l: left) {
|
|
@@ -27,7 +29,8 @@
|
|
|
27
29
|
$attribute: (
|
|
28
30
|
border- + $x-value + '-' + $y-value + -radius,
|
|
29
31
|
),
|
|
30
|
-
$prop: rounded
|
|
32
|
+
$prop: rounded,
|
|
33
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
31
34
|
);
|
|
32
35
|
}
|
|
33
36
|
}
|
|
@@ -37,7 +40,8 @@
|
|
|
37
40
|
$map: $border-width,
|
|
38
41
|
$class: border,
|
|
39
42
|
$attribute: border-width,
|
|
40
|
-
$prop: border
|
|
43
|
+
$prop: border,
|
|
44
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
41
45
|
);
|
|
42
46
|
|
|
43
47
|
@include spread-map-into-utilities(
|
|
@@ -47,7 +51,8 @@
|
|
|
47
51
|
border-right-width,
|
|
48
52
|
border-left-width,
|
|
49
53
|
),
|
|
50
|
-
$prop: border
|
|
54
|
+
$prop: border,
|
|
55
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
51
56
|
);
|
|
52
57
|
|
|
53
58
|
@include spread-map-into-utilities(
|
|
@@ -57,7 +62,8 @@
|
|
|
57
62
|
border-top-width,
|
|
58
63
|
border-bottom-width,
|
|
59
64
|
),
|
|
60
|
-
$prop: border
|
|
65
|
+
$prop: border,
|
|
66
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
61
67
|
);
|
|
62
68
|
|
|
63
69
|
@each $key, $value in (t: top, r: right, b: bottom, l: left) {
|
|
@@ -67,7 +73,8 @@
|
|
|
67
73
|
$attribute: (
|
|
68
74
|
border- + $value + -width,
|
|
69
75
|
),
|
|
70
|
-
$prop: border
|
|
76
|
+
$prop: border,
|
|
77
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
71
78
|
);
|
|
72
79
|
}
|
|
73
80
|
|
|
@@ -75,5 +82,6 @@
|
|
|
75
82
|
@include spread-map-into-utilities(
|
|
76
83
|
$map: $border-style,
|
|
77
84
|
$class: border,
|
|
78
|
-
$attribute: border-style
|
|
85
|
+
$attribute: border-style,
|
|
86
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
79
87
|
);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../context' as *;
|
|
2
2
|
|
|
3
3
|
// background-color
|
|
4
4
|
@include spread-map-into-utilities(
|
|
5
5
|
$map: $colors,
|
|
6
6
|
$class: bg,
|
|
7
7
|
$attribute: background-color,
|
|
8
|
-
$prop: color
|
|
8
|
+
$prop: color,
|
|
9
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
9
10
|
);
|
|
10
11
|
|
|
11
12
|
// color
|
|
@@ -13,7 +14,8 @@
|
|
|
13
14
|
$map: $colors,
|
|
14
15
|
$class: text,
|
|
15
16
|
$attribute: color,
|
|
16
|
-
$prop: color
|
|
17
|
+
$prop: color,
|
|
18
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
17
19
|
);
|
|
18
20
|
|
|
19
21
|
// text-decoration-color
|
|
@@ -21,7 +23,8 @@
|
|
|
21
23
|
$map: $colors,
|
|
22
24
|
$class: decoration,
|
|
23
25
|
$attribute: text-decoration-color,
|
|
24
|
-
$prop: color
|
|
26
|
+
$prop: color,
|
|
27
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
25
28
|
);
|
|
26
29
|
|
|
27
30
|
// border-color
|
|
@@ -29,5 +32,6 @@
|
|
|
29
32
|
$map: $colors,
|
|
30
33
|
$class: border,
|
|
31
34
|
$attribute: border-color,
|
|
32
|
-
$prop: color
|
|
35
|
+
$prop: color,
|
|
36
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
33
37
|
);
|
|
@@ -1,15 +1,33 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../context' as *;
|
|
2
2
|
|
|
3
3
|
// box shadow
|
|
4
4
|
@include spread-map-into-utilities(
|
|
5
5
|
$map: $box-shadow,
|
|
6
6
|
$class: shadow,
|
|
7
|
-
$attribute: box-shadow
|
|
7
|
+
$attribute: box-shadow,
|
|
8
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
8
9
|
);
|
|
9
10
|
|
|
10
|
-
//
|
|
11
|
+
// opacity
|
|
11
12
|
@include spread-map-into-utilities(
|
|
12
|
-
$map: $
|
|
13
|
+
$map: $opacity,
|
|
14
|
+
$class: opacity,
|
|
15
|
+
$attribute: opacity,
|
|
16
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
// mix blend mode
|
|
20
|
+
@include spread-map-into-utilities(
|
|
21
|
+
$map: $mix-blend-mode,
|
|
13
22
|
$class: mix-blend,
|
|
14
|
-
$attribute: mix-blend-mode
|
|
23
|
+
$attribute: mix-blend-mode,
|
|
24
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
// background blend mode
|
|
28
|
+
@include spread-map-into-utilities(
|
|
29
|
+
$map: $background-blend-mode,
|
|
30
|
+
$class: bg-blend,
|
|
31
|
+
$attribute: background-blend-mode,
|
|
32
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
15
33
|
);
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../context' as *;
|
|
2
2
|
|
|
3
3
|
// blur
|
|
4
4
|
@include spread-map-into-utilities(
|
|
5
5
|
$map: $blur,
|
|
6
6
|
$class: blur,
|
|
7
|
-
$attribute: filter
|
|
7
|
+
$attribute: filter,
|
|
8
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
8
9
|
);
|
|
9
10
|
|
|
10
11
|
// brightness
|
|
11
12
|
@include spread-map-into-utilities(
|
|
12
13
|
$map: $brightness,
|
|
13
14
|
$class: brightness,
|
|
14
|
-
$attribute: filter
|
|
15
|
+
$attribute: filter,
|
|
16
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
15
17
|
);
|
|
16
18
|
|
|
17
19
|
// backdrop blur
|
|
18
20
|
@include spread-map-into-utilities(
|
|
19
21
|
$map: $blur,
|
|
20
22
|
$class: backdrop-blur,
|
|
21
|
-
$attribute: backdrop-filter
|
|
23
|
+
$attribute: backdrop-filter,
|
|
24
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
22
25
|
);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
2
|
+
@use '../context' as *;
|
|
3
3
|
|
|
4
4
|
// flex direction
|
|
5
5
|
@include spread-map-into-utilities(
|
|
6
6
|
$map: $flex-direction,
|
|
7
7
|
$class: flex,
|
|
8
8
|
$attribute: flex-direction,
|
|
9
|
-
$bps: $breakpoints
|
|
9
|
+
$bps: $breakpoints,
|
|
10
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
10
11
|
);
|
|
11
12
|
|
|
12
13
|
// flex wrap
|
|
@@ -14,7 +15,8 @@
|
|
|
14
15
|
$map: $flex-wrap,
|
|
15
16
|
$class: flex,
|
|
16
17
|
$attribute: flex-wrap,
|
|
17
|
-
$bps: $breakpoints
|
|
18
|
+
$bps: $breakpoints,
|
|
19
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
18
20
|
);
|
|
19
21
|
|
|
20
22
|
// flex
|
|
@@ -22,7 +24,8 @@
|
|
|
22
24
|
$map: $flex,
|
|
23
25
|
$class: flex,
|
|
24
26
|
$attribute: flex,
|
|
25
|
-
$bps: $breakpoints
|
|
27
|
+
$bps: $breakpoints,
|
|
28
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
26
29
|
);
|
|
27
30
|
|
|
28
31
|
// flex grow
|
|
@@ -45,7 +48,8 @@
|
|
|
45
48
|
$map: $order,
|
|
46
49
|
$class: order,
|
|
47
50
|
$attribute: order,
|
|
48
|
-
$bps: $breakpoints
|
|
51
|
+
$bps: $breakpoints,
|
|
52
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
49
53
|
);
|
|
50
54
|
|
|
51
55
|
// gap
|
|
@@ -99,7 +103,8 @@
|
|
|
99
103
|
$map: $justify-align-content,
|
|
100
104
|
$class: $class,
|
|
101
105
|
$attribute: $attribute,
|
|
102
|
-
$bps: $breakpoints
|
|
106
|
+
$bps: $breakpoints,
|
|
107
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
103
108
|
);
|
|
104
109
|
}
|
|
105
110
|
|
|
@@ -109,7 +114,8 @@
|
|
|
109
114
|
$map: $justify-align-items,
|
|
110
115
|
$class: $class,
|
|
111
116
|
$attribute: $attribute,
|
|
112
|
-
$bps: $breakpoints
|
|
117
|
+
$bps: $breakpoints,
|
|
118
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
113
119
|
);
|
|
114
120
|
}
|
|
115
121
|
|
|
@@ -119,6 +125,7 @@
|
|
|
119
125
|
$map: $justify-align-self,
|
|
120
126
|
$class: $class,
|
|
121
127
|
$attribute: $attribute,
|
|
122
|
-
$bps: $breakpoints
|
|
128
|
+
$bps: $breakpoints,
|
|
129
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
123
130
|
);
|
|
124
131
|
}
|
package/src/utilities/grid.scss
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
2
|
+
@use '../context' as *;
|
|
3
3
|
|
|
4
4
|
// grid template columns
|
|
5
5
|
@include spread-map-into-utilities(
|
|
6
6
|
$map: $grid-template-columns,
|
|
7
7
|
$class: grid-cols,
|
|
8
8
|
$attribute: grid-template-columns,
|
|
9
|
-
$bps: $breakpoints
|
|
9
|
+
$bps: $breakpoints,
|
|
10
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
10
11
|
);
|
|
11
12
|
|
|
12
13
|
// grid column
|
|
@@ -14,7 +15,8 @@
|
|
|
14
15
|
$map: $grid-column,
|
|
15
16
|
$class: col,
|
|
16
17
|
$attribute: grid-column,
|
|
17
|
-
$bps: $breakpoints
|
|
18
|
+
$bps: $breakpoints,
|
|
19
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
18
20
|
);
|
|
19
21
|
|
|
20
22
|
// grid column start/end
|
|
@@ -25,7 +27,8 @@
|
|
|
25
27
|
$map: $grid-column-start-end,
|
|
26
28
|
$class: $class,
|
|
27
29
|
$attribute: $attribute,
|
|
28
|
-
$bps: $breakpoints
|
|
30
|
+
$bps: $breakpoints,
|
|
31
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
29
32
|
);
|
|
30
33
|
}
|
|
31
34
|
|
|
@@ -34,7 +37,8 @@
|
|
|
34
37
|
$map: $grid-template-rows,
|
|
35
38
|
$class: grid-rows,
|
|
36
39
|
$attribute: grid-template-rows,
|
|
37
|
-
$bps: $breakpoints
|
|
40
|
+
$bps: $breakpoints,
|
|
41
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
38
42
|
);
|
|
39
43
|
|
|
40
44
|
// grid row
|
|
@@ -42,7 +46,8 @@
|
|
|
42
46
|
$map: $grid-row,
|
|
43
47
|
$class: row,
|
|
44
48
|
$attribute: grid-row,
|
|
45
|
-
$bps: $breakpoints
|
|
49
|
+
$bps: $breakpoints,
|
|
50
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
46
51
|
);
|
|
47
52
|
|
|
48
53
|
// grid row start/end
|
|
@@ -51,7 +56,8 @@
|
|
|
51
56
|
$map: $grid-row-start-end,
|
|
52
57
|
$class: $class,
|
|
53
58
|
$attribute: $attribute,
|
|
54
|
-
$bps: $breakpoints
|
|
59
|
+
$bps: $breakpoints,
|
|
60
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
55
61
|
);
|
|
56
62
|
}
|
|
57
63
|
|
|
@@ -60,7 +66,8 @@
|
|
|
60
66
|
$map: $grid-auto-flow,
|
|
61
67
|
$class: grid-flow,
|
|
62
68
|
$attribute: grid-auto-flow,
|
|
63
|
-
$bps: $breakpoints
|
|
69
|
+
$bps: $breakpoints,
|
|
70
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
64
71
|
);
|
|
65
72
|
|
|
66
73
|
// grid auto rows/columns
|
|
@@ -71,6 +78,7 @@
|
|
|
71
78
|
$map: $grid-auto-rows-columns,
|
|
72
79
|
$class: $class,
|
|
73
80
|
$attribute: $attribute,
|
|
74
|
-
$bps: $breakpoints
|
|
81
|
+
$bps: $breakpoints,
|
|
82
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
75
83
|
);
|
|
76
84
|
}
|
package/src/utilities/index.scss
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
1
|
+
@forward 'animation';
|
|
2
|
+
@forward 'backgrounds';
|
|
3
|
+
@forward 'borders';
|
|
4
|
+
@forward 'colors';
|
|
5
|
+
@forward 'effects';
|
|
6
|
+
@forward 'filters';
|
|
7
|
+
@forward 'flexbox';
|
|
8
|
+
@forward 'grid';
|
|
9
|
+
@forward 'layout';
|
|
10
|
+
@forward 'sizing';
|
|
11
|
+
@forward 'spacing';
|
|
12
|
+
@forward 'typography';
|
|
13
|
+
@forward 'transitions';
|