@volverjs/style 0.1.2-beta.22 → 0.1.2-beta.23
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-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-select.css +1 -1
- package/dist/components/vv-textarea.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/sizing.css +1 -1
- package/dist/utilities/transitions.css +1 -0
- package/dist/utilities.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +4 -2
- 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-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 +1 -0
- package/src/settings/components/_vv-select.scss +1 -0
- package/src/settings/components/_vv-textarea.scss +1 -0
- 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 +41 -18
- 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
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
2
|
+
@use '../context' as *;
|
|
3
3
|
|
|
4
4
|
// font-family
|
|
5
5
|
@include spread-map-into-utilities(
|
|
6
6
|
$map: $font-family,
|
|
7
7
|
$class: font,
|
|
8
8
|
$attribute: font-family,
|
|
9
|
-
$prop: font
|
|
9
|
+
$prop: font,
|
|
10
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
10
11
|
);
|
|
11
12
|
|
|
12
13
|
// font-weight
|
|
@@ -14,7 +15,8 @@
|
|
|
14
15
|
$map: $font-weight,
|
|
15
16
|
$class: font,
|
|
16
17
|
$attribute: font-weight,
|
|
17
|
-
$prop: font
|
|
18
|
+
$prop: font,
|
|
19
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
18
20
|
);
|
|
19
21
|
|
|
20
22
|
// font-size
|
|
@@ -23,7 +25,8 @@
|
|
|
23
25
|
$class: text,
|
|
24
26
|
$attribute: font-size,
|
|
25
27
|
$prop: text,
|
|
26
|
-
$deep: false
|
|
28
|
+
$deep: false,
|
|
29
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
27
30
|
);
|
|
28
31
|
|
|
29
32
|
// font-style
|
|
@@ -75,7 +78,8 @@
|
|
|
75
78
|
$map: $line-height,
|
|
76
79
|
$class: leading,
|
|
77
80
|
$attribute: line-height,
|
|
78
|
-
$prop: leading
|
|
81
|
+
$prop: leading,
|
|
82
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
79
83
|
);
|
|
80
84
|
|
|
81
85
|
// letter-spacing
|
|
@@ -83,67 +87,77 @@
|
|
|
83
87
|
$map: $letter-spacing,
|
|
84
88
|
$class: tracking,
|
|
85
89
|
$attribute: letter-spacing,
|
|
86
|
-
$prop: tracking
|
|
90
|
+
$prop: tracking,
|
|
91
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
87
92
|
);
|
|
88
93
|
|
|
89
94
|
// font-variant-numeric
|
|
90
95
|
@include spread-map-into-utilities(
|
|
91
96
|
$map: $font-variant-numeric,
|
|
92
|
-
$attribute: font-variant-numeric
|
|
97
|
+
$attribute: font-variant-numeric,
|
|
98
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
93
99
|
);
|
|
94
100
|
|
|
95
101
|
// list-style-type
|
|
96
102
|
@include spread-map-into-utilities(
|
|
97
103
|
$map: $list-style-type,
|
|
98
104
|
$class: list,
|
|
99
|
-
$attribute: list-style-type
|
|
105
|
+
$attribute: list-style-type,
|
|
106
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
100
107
|
);
|
|
101
108
|
|
|
102
109
|
// list-style-position
|
|
103
110
|
@include spread-map-into-utilities(
|
|
104
111
|
$map: $list-style-position,
|
|
105
112
|
$class: list,
|
|
106
|
-
$attribute: list-style-position
|
|
113
|
+
$attribute: list-style-position,
|
|
114
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
107
115
|
);
|
|
108
116
|
|
|
109
117
|
// text-align
|
|
110
118
|
@include spread-map-into-utilities(
|
|
111
119
|
$map: $text-align,
|
|
112
120
|
$class: text,
|
|
113
|
-
$attribute: text-align
|
|
121
|
+
$attribute: text-align,
|
|
122
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
114
123
|
);
|
|
115
124
|
|
|
116
125
|
// text-decorator-line
|
|
117
126
|
@include spread-map-into-utilities(
|
|
118
127
|
$map: $text-decorator-line,
|
|
119
|
-
$attribute: text-decoration-line
|
|
128
|
+
$attribute: text-decoration-line,
|
|
129
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
120
130
|
);
|
|
121
131
|
|
|
122
132
|
// text-decorator-style
|
|
123
133
|
@include spread-map-into-utilities(
|
|
124
134
|
$map: $text-decorator-style,
|
|
125
135
|
$class: decoration,
|
|
126
|
-
$attribute: text-decoration-style
|
|
136
|
+
$attribute: text-decoration-style,
|
|
137
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
127
138
|
);
|
|
128
139
|
|
|
129
140
|
// text-decorator-thickness
|
|
130
141
|
@include spread-map-into-utilities(
|
|
131
142
|
$map: $text-decorator-thickness,
|
|
132
143
|
$class: decoration,
|
|
133
|
-
$attribute: text-decoration-thickness
|
|
144
|
+
$attribute: text-decoration-thickness,
|
|
145
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
134
146
|
);
|
|
135
147
|
|
|
136
148
|
// text-underline-offset
|
|
137
149
|
@include spread-map-into-utilities(
|
|
138
150
|
$map: $text-underline-offset,
|
|
139
151
|
$class: underline-offset,
|
|
140
|
-
$attribute: text-underline-offset
|
|
152
|
+
$attribute: text-underline-offset,
|
|
153
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
141
154
|
);
|
|
142
155
|
|
|
143
156
|
// text-transform
|
|
144
157
|
@include spread-map-into-utilities(
|
|
145
158
|
$map: $text-transform,
|
|
146
|
-
$attribute: text-transform
|
|
159
|
+
$attribute: text-transform,
|
|
160
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
147
161
|
);
|
|
148
162
|
|
|
149
163
|
// text-overflow
|
|
@@ -215,12 +229,14 @@
|
|
|
215
229
|
@include spread-map-into-utilities(
|
|
216
230
|
$map: $vertical-align,
|
|
217
231
|
$class: align,
|
|
218
|
-
$attribute: vertical-align
|
|
232
|
+
$attribute: vertical-align,
|
|
233
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
219
234
|
);
|
|
220
235
|
|
|
221
236
|
// white-space
|
|
222
237
|
@include spread-map-into-utilities(
|
|
223
238
|
$map: $white-space,
|
|
224
239
|
$class: whitespace,
|
|
225
|
-
$attribute: white-space
|
|
240
|
+
$attribute: white-space,
|
|
241
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
226
242
|
);
|
package/src/volver.scss
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// reset
|
|
2
|
-
@
|
|
2
|
+
@use 'reset';
|
|
3
3
|
|
|
4
4
|
// props
|
|
5
|
-
@
|
|
5
|
+
@use 'props';
|
|
6
6
|
|
|
7
7
|
// components
|
|
8
|
-
@
|
|
8
|
+
@use 'components';
|
|
9
9
|
|
|
10
10
|
// utilities
|
|
11
|
-
@
|
|
11
|
+
@use 'utilities';
|
|
12
12
|
|
|
13
13
|
// preflight
|
|
14
14
|
@import 'preflight';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@import '../context';
|
|
3
|
-
|
|
4
|
-
$component-name: map.get($components-names, vv-input-checkbox);
|
|
5
|
-
$component-map: $dark-vv-input-checkbox;
|
|
6
|
-
|
|
7
|
-
@mixin theme-dark-vv-input-checkbox {
|
|
8
|
-
@include spread-map-into-props(
|
|
9
|
-
$map: $component-map,
|
|
10
|
-
$prefix: $component-name
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:where(:host, :root, .theme):not(.theme--light) {
|
|
15
|
-
@media (prefers-color-scheme: dark) {
|
|
16
|
-
@include theme-dark-vv-input-checkbox;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:where(.theme.theme--dark) {
|
|
21
|
-
@include theme-dark-vv-input-checkbox;
|
|
22
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
$dark-vv-input-checkbox: (
|
|
2
|
-
element: (
|
|
3
|
-
input: (
|
|
4
|
-
state: (
|
|
5
|
-
checked: (
|
|
6
|
-
background-image:
|
|
7
|
-
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($dark-color-word)})' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"),
|
|
8
|
-
),
|
|
9
|
-
),
|
|
10
|
-
),
|
|
11
|
-
),
|
|
12
|
-
modifier: (
|
|
13
|
-
partial: (
|
|
14
|
-
element: (
|
|
15
|
-
input: (
|
|
16
|
-
state: (
|
|
17
|
-
checked: (
|
|
18
|
-
background-image:
|
|
19
|
-
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($dark-color-word)})' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E"),
|
|
20
|
-
),
|
|
21
|
-
),
|
|
22
|
-
),
|
|
23
|
-
),
|
|
24
|
-
),
|
|
25
|
-
),
|
|
26
|
-
) !default;
|