@volverjs/style 0.1.11 → 0.1.12-beta.10
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 +6 -4
- package/dist/base.css +1 -1
- package/dist/components/vv-accordion-group.css +1 -1
- package/dist/components/vv-accordion.css +1 -1
- package/dist/components/vv-alert-group.css +1 -1
- package/dist/components/vv-alert.css +1 -1
- package/dist/components/vv-avatar-group.css +1 -1
- package/dist/components/vv-avatar.css +1 -1
- package/dist/components/vv-badge.css +1 -1
- package/dist/components/vv-breadcrumb.css +1 -1
- package/dist/components/vv-button-group.css +1 -1
- package/dist/components/vv-button.css +1 -1
- package/dist/components/vv-card.css +1 -1
- package/dist/components/vv-checkbox-group.css +1 -1
- package/dist/components/vv-checkbox.css +1 -1
- package/dist/components/vv-dialog.css +1 -1
- package/dist/components/vv-dropdown-option.css +1 -1
- package/dist/components/vv-dropdown.css +1 -1
- package/dist/components/vv-input-file.css +1 -0
- package/dist/components/vv-input-text.css +1 -1
- package/dist/components/vv-nav.css +1 -1
- package/dist/components/vv-progress.css +1 -1
- package/dist/components/vv-radio-group.css +1 -1
- package/dist/components/vv-radio.css +1 -1
- package/dist/components/vv-select.css +1 -1
- package/dist/components/vv-table.css +1 -1
- package/dist/components/vv-text.css +1 -1
- package/dist/components/vv-textarea.css +1 -1
- package/dist/components/vv-tooltip.css +1 -1
- package/dist/components.css +1 -1
- package/dist/export.css +1 -1
- package/dist/props/background.css +1 -1
- package/dist/props/colors.css +1 -1
- package/dist/props/filters.css +1 -1
- package/dist/props/input.css +1 -1
- package/dist/props/layout.css +1 -1
- package/dist/props/transitions.css +1 -1
- package/dist/props.css +1 -1
- package/dist/reset.css +1 -1
- package/dist/themes/dark/components.css +1 -1
- package/dist/themes/dark/props.css +1 -1
- package/dist/themes/dark/volver.css +1 -1
- package/dist/utilities/backgrounds.css +1 -1
- package/dist/utilities/colors.css +1 -1
- package/dist/utilities/filters.css +1 -1
- package/dist/utilities/layout.css +1 -1
- package/dist/utilities/transforms.css +1 -1
- package/dist/utilities/transitions.css +1 -1
- package/dist/utilities/typography.css +1 -1
- package/dist/utilities.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +30 -27
- package/src/_config.scss +10 -9
- package/src/_preflight.scss +15 -0
- package/src/components/index.scss +1 -0
- package/src/components/vv-button-group.scss +6 -6
- package/src/components/vv-button.scss +1 -12
- package/src/components/vv-input-file.scss +93 -0
- package/src/components/vv-input-text.scss +54 -11
- package/src/components/vv-select.scss +53 -10
- package/src/components/vv-textarea.scss +53 -10
- package/src/export.scss +17 -32
- package/src/props/background.scss +1 -0
- package/src/props/transitions.scss +28 -9
- package/src/settings/_background.scss +228 -0
- package/src/settings/_colors.scss +16 -53
- package/src/settings/_effects.scss +0 -18
- package/src/settings/_filters.scss +15 -0
- package/src/settings/_index.scss +1 -0
- package/src/settings/_input.scss +5 -4
- package/src/settings/_layout.scss +1 -0
- package/src/settings/_transitions.scss +2 -1
- package/src/settings/components/_vv-accordion.scss +10 -10
- package/src/settings/components/_vv-alert-group.scss +24 -21
- package/src/settings/components/_vv-alert.scss +83 -83
- package/src/settings/components/_vv-avatar.scss +52 -54
- package/src/settings/components/_vv-badge.scss +65 -27
- package/src/settings/components/_vv-breadcrumb.scss +1 -1
- package/src/settings/components/_vv-button.scss +10 -5
- package/src/settings/components/_vv-checkbox-group.scss +1 -0
- package/src/settings/components/_vv-checkbox.scss +2 -2
- package/src/settings/components/_vv-dialog.scss +8 -5
- package/src/settings/components/_vv-dropdown-option.scss +2 -2
- package/src/settings/components/_vv-dropdown.scss +95 -9
- package/src/settings/components/_vv-input-file.scss +474 -0
- package/src/settings/components/_vv-input-text.scss +8 -7
- package/src/settings/components/_vv-nav.scss +10 -9
- package/src/settings/components/_vv-progress.scss +2 -0
- package/src/settings/components/_vv-radio.scss +5 -4
- package/src/settings/components/_vv-select.scss +9 -7
- package/src/settings/components/_vv-table.scss +19 -1
- package/src/settings/components/_vv-text.scss +1 -0
- package/src/settings/components/_vv-textarea.scss +7 -6
- package/src/settings/components/_vv-tooltip.scss +11 -8
- package/src/themes/dark/components/_vv-avatar.scss +22 -0
- package/src/themes/dark/components/_vv-badge.scss +22 -0
- package/src/themes/dark/components/_vv-dropdown-action.scss +22 -0
- package/src/themes/dark/components/_vv-dropdown-option.scss +22 -0
- package/src/themes/dark/components/_vv-nav.scss +22 -0
- package/src/themes/dark/components/index.scss +6 -1
- package/src/themes/dark/settings/_background.scss +2 -0
- package/src/themes/dark/settings/_colors.scss +4 -38
- package/src/themes/dark/settings/_index.scss +6 -1
- package/src/themes/dark/settings/components/_vv-alert.scss +1 -1
- package/src/themes/dark/settings/components/_vv-avatar.scss +27 -0
- package/src/themes/dark/settings/components/_vv-badge.scss +50 -0
- package/src/themes/dark/settings/components/_vv-button.scss +13 -8
- package/src/themes/dark/settings/components/_vv-dropdown-action.scss +3 -0
- package/src/themes/dark/settings/components/_vv-dropdown-option.scss +19 -0
- package/src/themes/dark/settings/components/_vv-nav.scss +15 -0
- package/src/tools/_functions.scss +26 -13
- package/src/tools/_mixins.scss +44 -2
- package/src/utilities/backgrounds.scss +14 -4
- package/src/utilities/transforms.scss +9 -9
- package/src/utilities/typography.scss +10 -0
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
hue: color.hue($color),
|
|
16
16
|
saturation: color.saturation($color),
|
|
17
17
|
lightness: color.lightness($color),
|
|
18
|
-
#{$name}: hsla(var(--color-#{$name}-hue)
|
|
19
|
-
var(--color-#{$name}-saturation)
|
|
20
|
-
var(--color-#{$name}-lightness) / color.alpha($color))
|
|
18
|
+
#{$name}: hsla(var(--color-#{$name}-hue), var(--color-#{$name}-saturation), var(--color-#{$name}-lightness), color.alpha($color))
|
|
21
19
|
);
|
|
22
20
|
}
|
|
23
21
|
}
|
|
@@ -34,8 +32,10 @@
|
|
|
34
32
|
);
|
|
35
33
|
} @else {
|
|
36
34
|
@return hsla(
|
|
37
|
-
var(--color-#{$name}-hue)
|
|
38
|
-
|
|
35
|
+
var(--color-#{$name}-hue),
|
|
36
|
+
var(--color-#{$name}-saturation),
|
|
37
|
+
var(--color-#{$name}-lightness),
|
|
38
|
+
$alpha
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
$color,
|
|
49
49
|
$name,
|
|
50
50
|
$steps: 9,
|
|
51
|
-
$scale:
|
|
51
|
+
$scale: 0.1,
|
|
52
52
|
$noVarExport: false
|
|
53
53
|
) {
|
|
54
54
|
$result: hsla-map($color, $name, $noVarExport);
|
|
@@ -73,8 +73,7 @@
|
|
|
73
73
|
$noVarExport: false
|
|
74
74
|
) {
|
|
75
75
|
$result: map.merge(
|
|
76
|
-
map.
|
|
77
|
-
(#{$name}: $color),
|
|
76
|
+
map.set(
|
|
78
77
|
color-lighten-map(
|
|
79
78
|
$color,
|
|
80
79
|
$name,
|
|
@@ -83,7 +82,9 @@
|
|
|
83
82
|
'lighten',
|
|
84
83
|
$fixed,
|
|
85
84
|
$noVarExport
|
|
86
|
-
)
|
|
85
|
+
),
|
|
86
|
+
$name,
|
|
87
|
+
$color
|
|
87
88
|
),
|
|
88
89
|
color-darken-map(
|
|
89
90
|
$color,
|
|
@@ -105,10 +106,16 @@
|
|
|
105
106
|
$scale: 10%,
|
|
106
107
|
$prefix: '',
|
|
107
108
|
$fixed: false,
|
|
108
|
-
$noVarExport: false
|
|
109
|
+
$noVarExport: false,
|
|
110
|
+
$inverted: true
|
|
109
111
|
) {
|
|
110
112
|
$result: hsla-map($color, $name, $noVarExport);
|
|
111
|
-
@for $
|
|
113
|
+
@for $counter from 1 to ($steps + 1) {
|
|
114
|
+
$index: $counter;
|
|
115
|
+
@if $inverted {
|
|
116
|
+
$index: $steps + 1 - $counter;
|
|
117
|
+
}
|
|
118
|
+
|
|
112
119
|
$key: $index;
|
|
113
120
|
@if $prefix != '' {
|
|
114
121
|
$key: $prefix + '-' + $index;
|
|
@@ -192,11 +199,17 @@
|
|
|
192
199
|
$scale: 10%,
|
|
193
200
|
$prefix: '',
|
|
194
201
|
$fixed: false,
|
|
195
|
-
$noVarExport: false
|
|
202
|
+
$noVarExport: false,
|
|
203
|
+
$inverted: false
|
|
196
204
|
) {
|
|
197
205
|
$result: hsla-map($color, $name, $noVarExport);
|
|
198
206
|
|
|
199
|
-
@for $
|
|
207
|
+
@for $counter from 1 to ($steps + 1) {
|
|
208
|
+
$index: $counter;
|
|
209
|
+
@if $inverted {
|
|
210
|
+
$index: $steps + 1 - $counter;
|
|
211
|
+
}
|
|
212
|
+
|
|
200
213
|
$key: $index;
|
|
201
214
|
@if $prefix != '' {
|
|
202
215
|
$key: $prefix + '-' + $index;
|
package/src/tools/_mixins.scss
CHANGED
|
@@ -428,6 +428,7 @@
|
|
|
428
428
|
disabled,
|
|
429
429
|
checked,
|
|
430
430
|
checked-within,
|
|
431
|
+
multiple,
|
|
431
432
|
selected,
|
|
432
433
|
readonly,
|
|
433
434
|
empty,
|
|
@@ -514,7 +515,14 @@
|
|
|
514
515
|
'#{$modifier}#{$alias}:not(:has(*:placeholder-shown))'
|
|
515
516
|
);
|
|
516
517
|
}
|
|
517
|
-
} @else if
|
|
518
|
+
} @else if
|
|
519
|
+
$state ==
|
|
520
|
+
'disabled' or
|
|
521
|
+
$state ==
|
|
522
|
+
'readonly' or
|
|
523
|
+
$state ==
|
|
524
|
+
'multiple'
|
|
525
|
+
{
|
|
518
526
|
$selectors: list.join(
|
|
519
527
|
$selectors,
|
|
520
528
|
'#{$modifier}#{$block-item}[#{$state}]'
|
|
@@ -640,6 +648,21 @@
|
|
|
640
648
|
$bps: $bps
|
|
641
649
|
);
|
|
642
650
|
}
|
|
651
|
+
|
|
652
|
+
// breakpoints
|
|
653
|
+
@if map.get($value, 'breakpoint') {
|
|
654
|
+
@include spread-map-into-breakpoints(
|
|
655
|
+
$original: $original,
|
|
656
|
+
$map: $value,
|
|
657
|
+
$prefix: #{$prefix}-#{$key}-#{$state},
|
|
658
|
+
$key: 'breakpoint',
|
|
659
|
+
$block: $block,
|
|
660
|
+
$modifier: $selector,
|
|
661
|
+
$props: $props,
|
|
662
|
+
$zero-specificity: $zero-specificity,
|
|
663
|
+
$bps: $bps
|
|
664
|
+
);
|
|
665
|
+
}
|
|
643
666
|
}
|
|
644
667
|
}
|
|
645
668
|
}
|
|
@@ -829,6 +852,8 @@
|
|
|
829
852
|
datetime-edit,
|
|
830
853
|
datetime-edit-fields-wrapper,
|
|
831
854
|
datetime-edit-day-field,
|
|
855
|
+
backdrop,
|
|
856
|
+
file-selector-button,
|
|
832
857
|
-webkit-progress-bar,
|
|
833
858
|
-webkit-progress-value,
|
|
834
859
|
-webkit-inner-element,
|
|
@@ -836,7 +861,9 @@
|
|
|
836
861
|
-moz-progress-value,
|
|
837
862
|
-moz-inner-element,
|
|
838
863
|
-webkit-details-marker,
|
|
839
|
-
-webkit-scrollbar
|
|
864
|
+
-webkit-scrollbar,
|
|
865
|
+
-webkit-scrollbar-track,
|
|
866
|
+
-webkit-scrollbar-thumb
|
|
840
867
|
),
|
|
841
868
|
$pseudo-element
|
|
842
869
|
)
|
|
@@ -1163,6 +1190,21 @@
|
|
|
1163
1190
|
$bps: $bps
|
|
1164
1191
|
);
|
|
1165
1192
|
}
|
|
1193
|
+
|
|
1194
|
+
// map breakpoints
|
|
1195
|
+
@if map.get($value, 'breakpoint') {
|
|
1196
|
+
@include spread-map-into-breakpoints(
|
|
1197
|
+
$original: $map,
|
|
1198
|
+
$map: $value,
|
|
1199
|
+
$prefix: #{$prefix}-#{$key}-#{$transition}-#{$state},
|
|
1200
|
+
$key: 'breakpoint',
|
|
1201
|
+
$block: $block,
|
|
1202
|
+
$modifier: $selector,
|
|
1203
|
+
$props: $props,
|
|
1204
|
+
$zero-specificity: $zero-specificity,
|
|
1205
|
+
$bps: $bps
|
|
1206
|
+
);
|
|
1207
|
+
}
|
|
1166
1208
|
}
|
|
1167
1209
|
}
|
|
1168
1210
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// background-attachment
|
|
4
4
|
@include spread-map-into-utilities(
|
|
5
5
|
$map: $background-attachment,
|
|
6
|
-
$class:
|
|
6
|
+
$class: bg,
|
|
7
7
|
$attribute: 'background-attachment',
|
|
8
8
|
$zero-specificity: $zero-specificity-for-utilities
|
|
9
9
|
);
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// background-clip
|
|
12
12
|
@include spread-map-into-utilities(
|
|
13
13
|
$map: $background-clip,
|
|
14
|
-
$class:
|
|
14
|
+
$class: bg-clip,
|
|
15
15
|
$attribute: 'background-clip',
|
|
16
16
|
$zero-specificity: $zero-specificity-for-utilities
|
|
17
17
|
);
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// background-origin
|
|
20
20
|
@include spread-map-into-utilities(
|
|
21
21
|
$map: $background-origin,
|
|
22
|
-
$class:
|
|
22
|
+
$class: bg-origin,
|
|
23
23
|
$attribute: 'background-origin',
|
|
24
24
|
$zero-specificity: $zero-specificity-for-utilities
|
|
25
25
|
);
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
// background-position
|
|
28
28
|
@include spread-map-into-utilities(
|
|
29
29
|
$map: $background-position,
|
|
30
|
-
$class:
|
|
30
|
+
$class: bg,
|
|
31
31
|
$attribute: 'background-position',
|
|
32
32
|
$zero-specificity: $zero-specificity-for-utilities
|
|
33
33
|
);
|
|
@@ -53,5 +53,15 @@
|
|
|
53
53
|
$map: $background-image,
|
|
54
54
|
$class: bg,
|
|
55
55
|
$attribute: background-image,
|
|
56
|
+
$prop: bg,
|
|
57
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
// background gradients
|
|
61
|
+
@include spread-map-into-utilities(
|
|
62
|
+
$map: $gradient,
|
|
63
|
+
$class: bg-gradient,
|
|
64
|
+
$attribute: background-image,
|
|
65
|
+
$prop: gradient,
|
|
56
66
|
$zero-specificity: $zero-specificity-for-utilities
|
|
57
67
|
);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// scale
|
|
4
4
|
@each $size, $value in $scale {
|
|
5
5
|
%scale-#{$size} {
|
|
6
|
-
|
|
6
|
+
scale: #{$value};
|
|
7
7
|
}
|
|
8
8
|
@include wrap-with-where(
|
|
9
9
|
$selector: '.scale-#{$size}',
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
%scale-x-#{$size} {
|
|
16
|
-
|
|
16
|
+
scale: #{$value} 1;
|
|
17
17
|
}
|
|
18
18
|
@include wrap-with-where(
|
|
19
19
|
$selector: '.scale-x-#{$size}',
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
%scale-y-#{$size} {
|
|
26
|
-
|
|
26
|
+
scale: 1 #{$value};
|
|
27
27
|
}
|
|
28
28
|
@include wrap-with-where(
|
|
29
29
|
$selector: '.scale-y-#{$size}',
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
// translate
|
|
53
53
|
@each $size, $value in $translate {
|
|
54
54
|
%translate-#{$size} {
|
|
55
|
-
|
|
55
|
+
translate: #{$value} #{$value};
|
|
56
56
|
}
|
|
57
57
|
@include wrap-with-where(
|
|
58
58
|
$selector: '.translate-#{$size}',
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
%translate-x-#{$size} {
|
|
65
|
-
|
|
65
|
+
translate: #{$value};
|
|
66
66
|
}
|
|
67
67
|
@include wrap-with-where(
|
|
68
68
|
$selector: '.translate-x-#{$size}',
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
%translate-y-#{$size} {
|
|
75
|
-
|
|
75
|
+
translate: 0 #{$value};
|
|
76
76
|
}
|
|
77
77
|
@include wrap-with-where(
|
|
78
78
|
$selector: '.translate-y-#{$size}',
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
%-translate-#{$size} {
|
|
85
|
-
|
|
85
|
+
translate: -#{$value} -#{$value};
|
|
86
86
|
}
|
|
87
87
|
@include wrap-with-where(
|
|
88
88
|
$selector: '.-translate-#{$size}',
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
%-translate-x-#{$size} {
|
|
95
|
-
|
|
95
|
+
translate: -#{$value};
|
|
96
96
|
}
|
|
97
97
|
@include wrap-with-where(
|
|
98
98
|
$selector: '.-translate-x-#{$size}',
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
%-translate-y-#{$size} {
|
|
105
|
-
|
|
105
|
+
translate: 0 -#{$value};
|
|
106
106
|
}
|
|
107
107
|
@include wrap-with-where(
|
|
108
108
|
$selector: '.-translate-y-#{$size}',
|
|
@@ -195,6 +195,16 @@
|
|
|
195
195
|
@extend %text-clip;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
%text-balance {
|
|
199
|
+
text-wrap: balance;
|
|
200
|
+
}
|
|
201
|
+
@include wrap-with-where(
|
|
202
|
+
$selector: '.text-balance',
|
|
203
|
+
$enabled: $zero-specificity-for-utilities
|
|
204
|
+
) {
|
|
205
|
+
@extend %text-balance;
|
|
206
|
+
}
|
|
207
|
+
|
|
198
208
|
// word break
|
|
199
209
|
%break-normal {
|
|
200
210
|
overflow-wrap: normal;
|