@volverjs/style 0.0.0 → 0.1.2-beta-12
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 +2 -2
- package/dist/components/vv-accordion.css +1 -0
- package/dist/components/vv-alert.css +1 -0
- package/dist/components/vv-badge.css +1 -0
- package/dist/components/vv-breadcrumb.css +1 -0
- package/dist/components/vv-button-group.css +1 -0
- package/dist/components/vv-button.css +1 -0
- package/dist/components/vv-card.css +1 -0
- package/dist/components/vv-dialog.css +1 -0
- package/dist/components/vv-dropdown.css +1 -0
- package/dist/components/vv-input-checkbox-group.css +1 -0
- package/dist/components/vv-input-checkbox.css +1 -0
- package/dist/components/vv-input-radio-group.css +1 -0
- package/dist/components/vv-input-radio.css +1 -0
- package/dist/components/vv-input-text.css +1 -0
- package/dist/components/vv-nav.css +1 -0
- package/dist/components/vv-progress.css +1 -0
- package/dist/components/vv-select.css +1 -0
- package/dist/components/vv-table.css +1 -0
- package/dist/components/vv-text.css +1 -0
- package/dist/components/vv-textarea.css +1 -0
- package/dist/components.css +1 -0
- package/dist/export.css +1 -0
- package/dist/props/animation.css +1 -0
- package/dist/props/background.css +1 -0
- package/dist/props/borders.css +1 -0
- package/dist/props/colors.css +1 -0
- package/dist/props/effects.css +1 -0
- package/dist/props/filters.css +1 -0
- package/dist/props/input.css +1 -0
- package/dist/props/layout.css +1 -0
- package/dist/props/media.css +0 -0
- package/dist/props/sizing.css +1 -0
- package/dist/props/spacing.css +1 -0
- package/dist/props/typography.css +1 -0
- package/dist/props.css +1 -0
- package/dist/reset.css +1 -0
- package/dist/themes/dark/components.css +1 -0
- package/dist/themes/dark/props.css +1 -0
- package/dist/themes/dark/volver.css +1 -0
- package/dist/utilities/animation.css +1 -0
- package/dist/utilities/backgrounds.css +1 -0
- package/dist/utilities/borders.css +1 -0
- package/dist/utilities/colors.css +1 -0
- package/dist/utilities/effects.css +1 -0
- package/dist/utilities/filters.css +1 -0
- package/dist/utilities/flexbox.css +1 -0
- package/dist/utilities/grid.css +1 -0
- package/dist/utilities/layout.css +1 -0
- package/dist/utilities/sizing.css +1 -0
- package/dist/utilities/spacing.css +1 -0
- package/dist/utilities/typography.css +1 -0
- package/dist/utilities.css +1 -0
- package/dist/volver.css +1 -0
- package/package.json +147 -116
- package/src/_config.scss +10 -7
- package/src/{preflight.scss → _preflight.scss} +71 -1
- package/src/components/index.scss +10 -7
- package/src/components/vv-accordion.scss +12 -0
- package/src/components/{vv-collapse.scss → vv-alert.scss} +2 -2
- package/src/components/vv-breadcrumb.scss +12 -0
- package/src/components/vv-button-group.scss +4 -8
- package/src/components/vv-nav.scss +12 -0
- package/src/reset.scss +1 -1
- package/src/settings/_index.scss +10 -7
- package/src/settings/components/_vv-accordion.scss +128 -0
- package/src/settings/components/_vv-alert.scss +148 -0
- package/src/settings/components/_vv-badge.scss +21 -9
- package/src/settings/components/_vv-breadcrumb.scss +87 -0
- package/src/settings/components/_vv-button.scss +106 -6
- package/src/settings/components/_vv-card.scss +2 -1
- package/src/settings/components/_vv-dialog.scss +2 -2
- package/src/settings/components/_vv-input-checkbox.scss +3 -2
- package/src/settings/components/_vv-input-radio.scss +2 -1
- package/src/settings/components/_vv-input-text.scss +19 -3
- package/src/settings/components/_vv-nav.scss +57 -0
- package/src/settings/components/_vv-select.scss +77 -3
- package/src/settings/components/_vv-table.scss +16 -3
- package/src/settings/components/_vv-text.scss +0 -1
- package/src/settings/components/_vv-textarea.scss +24 -3
- package/src/themes/dark/components/_vv-alert.scss +22 -0
- package/src/themes/dark/components/_vv-button.scss +2 -4
- package/src/themes/dark/components/_vv-input-checkbox.scss +2 -4
- package/src/themes/dark/components/index.scss +1 -0
- package/src/themes/dark/props/_background.scss +1 -1
- package/src/themes/dark/props/_colors.scss +1 -1
- package/src/themes/dark/settings/_background.scss +4 -4
- package/src/themes/dark/settings/_colors.scss +10 -10
- package/src/themes/dark/settings/_index.scss +1 -0
- package/src/themes/dark/settings/components/_vv-alert.scss +80 -0
- package/src/themes/dark/settings/components/_vv-button.scss +1 -1
- package/src/themes/dark/settings/components/_vv-input-checkbox.scss +3 -3
- package/src/themes/dark/{style.scss → volver.scss} +0 -0
- package/src/tools/_mixins.scss +49 -14
- package/src/utilities/flexbox.scss +18 -7
- package/src/utilities/grid.scss +16 -8
- package/src/utilities/layout.scss +2 -1
- package/src/{style.scss → volver.scss} +4 -4
- package/src/assets/24consulting.svg +0 -63
- package/src/assets/volverjs.svg +0 -15
- package/src/settings/components/_vv-collapse.scss +0 -111
|
@@ -25,7 +25,7 @@ $vv-input-text: (
|
|
|
25
25
|
overflow: hidden,
|
|
26
26
|
background-color: var(--input-background-color),
|
|
27
27
|
will-change: background-color,
|
|
28
|
-
transition: background-color 0.
|
|
28
|
+
transition: background-color 0.3s ease-in-out,
|
|
29
29
|
pseudo: (
|
|
30
30
|
before: (
|
|
31
31
|
position: absolute,
|
|
@@ -41,7 +41,7 @@ $vv-input-text: (
|
|
|
41
41
|
transform: scaleX(0),
|
|
42
42
|
transform-origin: left,
|
|
43
43
|
will-change: transform,
|
|
44
|
-
transition: transform 0.
|
|
44
|
+
transition: transform 0.3s ease-in-out,
|
|
45
45
|
),
|
|
46
46
|
),
|
|
47
47
|
state: (
|
|
@@ -166,6 +166,11 @@ $vv-input-text: (
|
|
|
166
166
|
overflow: var(--input-hint-overflow),
|
|
167
167
|
max-width: var(--input-hint-max-width),
|
|
168
168
|
),
|
|
169
|
+
limit: (
|
|
170
|
+
[padding-right]: var(--input-padding-right),
|
|
171
|
+
font-size: var(--input-hint-font-size),
|
|
172
|
+
color: var(--input-hint-color),
|
|
173
|
+
),
|
|
169
174
|
),
|
|
170
175
|
modifier: (
|
|
171
176
|
icon-left: (
|
|
@@ -173,6 +178,11 @@ $vv-input-text: (
|
|
|
173
178
|
),
|
|
174
179
|
icon-right: (
|
|
175
180
|
--input-padding-right: calc(var(--spacing-sm) * 2 + 1em),
|
|
181
|
+
element: (
|
|
182
|
+
limit: (
|
|
183
|
+
margin-left: calc((var(--spacing-sm) + 1em) * -1),
|
|
184
|
+
),
|
|
185
|
+
),
|
|
176
186
|
),
|
|
177
187
|
valid: (
|
|
178
188
|
element: (
|
|
@@ -187,6 +197,9 @@ $vv-input-text: (
|
|
|
187
197
|
hint: (
|
|
188
198
|
color: var(--input-valid-color),
|
|
189
199
|
),
|
|
200
|
+
limit: (
|
|
201
|
+
color: var(--input-valid-color),
|
|
202
|
+
),
|
|
190
203
|
icon-right: (
|
|
191
204
|
color: var(--input-valid-color),
|
|
192
205
|
),
|
|
@@ -205,6 +218,9 @@ $vv-input-text: (
|
|
|
205
218
|
hint: (
|
|
206
219
|
color: var(--input-invalid-color),
|
|
207
220
|
),
|
|
221
|
+
limit: (
|
|
222
|
+
color: var(--input-invalid-color),
|
|
223
|
+
),
|
|
208
224
|
icon-right: (
|
|
209
225
|
color: var(--input-invalid-color),
|
|
210
226
|
),
|
|
@@ -248,7 +264,7 @@ $vv-input-text: (
|
|
|
248
264
|
margin: 0,
|
|
249
265
|
will-change: 'transform',
|
|
250
266
|
transform-origin: left,
|
|
251
|
-
transition: all 0.
|
|
267
|
+
transition: all 0.3s ease-in-out,
|
|
252
268
|
),
|
|
253
269
|
input: (
|
|
254
270
|
pseudo: (
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
$vv-nav: (
|
|
2
|
+
--nav-item-padding: var(--spacing-xs) var(--spacing-sm),
|
|
3
|
+
element: (
|
|
4
|
+
menu: (
|
|
5
|
+
_alias: 'ul',
|
|
6
|
+
flex: 1,
|
|
7
|
+
display: flex,
|
|
8
|
+
flex-direction: column,
|
|
9
|
+
gap: var(--spacing-2),
|
|
10
|
+
),
|
|
11
|
+
item: (
|
|
12
|
+
_alias: 'li',
|
|
13
|
+
),
|
|
14
|
+
heading-label: (
|
|
15
|
+
_alias: '[aria-hidden="true"]',
|
|
16
|
+
display: block,
|
|
17
|
+
font-weight: var(--font-semibold),
|
|
18
|
+
[padding]: var(--nav-item-padding),
|
|
19
|
+
),
|
|
20
|
+
item-label: (
|
|
21
|
+
_alias: 'li > a',
|
|
22
|
+
display: block,
|
|
23
|
+
will-change: background-color color,
|
|
24
|
+
transition: all 0.3s ease-in-out,
|
|
25
|
+
border-radius: var(--rounded-md),
|
|
26
|
+
color: var(--color-word-3),
|
|
27
|
+
[padding]: var(--nav-item-padding),
|
|
28
|
+
state: (
|
|
29
|
+
hover: (
|
|
30
|
+
background-color: var(--color-surface-2),
|
|
31
|
+
color: var(--color-word-1),
|
|
32
|
+
),
|
|
33
|
+
active: (
|
|
34
|
+
background-color: var(--color-surface-3),
|
|
35
|
+
),
|
|
36
|
+
current: (
|
|
37
|
+
background-color: var(--color-surface-2),
|
|
38
|
+
color: var(--color-word-1),
|
|
39
|
+
),
|
|
40
|
+
),
|
|
41
|
+
),
|
|
42
|
+
divider: (
|
|
43
|
+
_alias: 'li[role="separator"]',
|
|
44
|
+
display: block,
|
|
45
|
+
margin-block: var(--spacing-16),
|
|
46
|
+
height: var(--spacing-px),
|
|
47
|
+
background-color: var(--color-surface-3),
|
|
48
|
+
),
|
|
49
|
+
),
|
|
50
|
+
modifier: (
|
|
51
|
+
menu: (
|
|
52
|
+
font-size: 0.9em,
|
|
53
|
+
display: flex,
|
|
54
|
+
flex-direction: column,
|
|
55
|
+
),
|
|
56
|
+
),
|
|
57
|
+
) !default;
|
|
@@ -25,7 +25,7 @@ $vv-select: (
|
|
|
25
25
|
flex: 1,
|
|
26
26
|
background-color: var(--input-background-color),
|
|
27
27
|
will-change: background-color,
|
|
28
|
-
transition: background-color 0.
|
|
28
|
+
transition: background-color 0.3s ease-in-out,
|
|
29
29
|
pseudo: (
|
|
30
30
|
before: (
|
|
31
31
|
position: absolute,
|
|
@@ -41,7 +41,7 @@ $vv-select: (
|
|
|
41
41
|
transform: scaleX(0),
|
|
42
42
|
transform-origin: left,
|
|
43
43
|
will-change: transform,
|
|
44
|
-
transition: transform 0.
|
|
44
|
+
transition: transform 0.3s ease-in-out,
|
|
45
45
|
),
|
|
46
46
|
),
|
|
47
47
|
state: (
|
|
@@ -170,7 +170,81 @@ $vv-select: (
|
|
|
170
170
|
background: var(--color-brand-lighten-5),
|
|
171
171
|
),
|
|
172
172
|
after: (
|
|
173
|
-
animation:
|
|
173
|
+
animation: var(--animate-indeterminate),
|
|
174
|
+
),
|
|
175
|
+
),
|
|
176
|
+
),
|
|
177
|
+
),
|
|
178
|
+
),
|
|
179
|
+
floating: (
|
|
180
|
+
[margin-left]: var(--input-padding-left),
|
|
181
|
+
[margin-right]: var(--input-padding-right),
|
|
182
|
+
element: (
|
|
183
|
+
wrapper: (
|
|
184
|
+
[margin-left]: calc(var(--input-padding-left) * -1),
|
|
185
|
+
[margin-right]: calc(var(--input-padding-right) * -1),
|
|
186
|
+
),
|
|
187
|
+
hint: (
|
|
188
|
+
[margin-left]: calc(var(--input-padding-left) * -1),
|
|
189
|
+
[margin-right]: calc(var(--input-padding-right) * -1),
|
|
190
|
+
),
|
|
191
|
+
label: (
|
|
192
|
+
position: absolute,
|
|
193
|
+
z-index: 1,
|
|
194
|
+
pointer-events: none,
|
|
195
|
+
font-size: inherit,
|
|
196
|
+
[padding-top]: var(--input-padding-top),
|
|
197
|
+
[padding-bottom]: var(--input-padding-bottom),
|
|
198
|
+
padding-inline: 0,
|
|
199
|
+
margin: 0,
|
|
200
|
+
will-change: 'transform',
|
|
201
|
+
transform-origin: left,
|
|
202
|
+
transition: all 0.3s ease-in-out,
|
|
203
|
+
),
|
|
204
|
+
input: (
|
|
205
|
+
pseudo: (
|
|
206
|
+
placeholder: (
|
|
207
|
+
opacity: 0,
|
|
208
|
+
),
|
|
209
|
+
),
|
|
210
|
+
),
|
|
211
|
+
),
|
|
212
|
+
state: (
|
|
213
|
+
focus-within: (
|
|
214
|
+
element: (
|
|
215
|
+
label: (
|
|
216
|
+
transform: translateY(-1.2ch),
|
|
217
|
+
font-size: var(--text-12),
|
|
218
|
+
),
|
|
219
|
+
input: (
|
|
220
|
+
[padding-top]:
|
|
221
|
+
calc(var(--input-padding-top) + 0.85ch),
|
|
222
|
+
[padding-bottom]:
|
|
223
|
+
calc(var(--input-padding-bottom) - 0.85ch),
|
|
224
|
+
pseudo: (
|
|
225
|
+
placeholder: (
|
|
226
|
+
opacity: 1,
|
|
227
|
+
),
|
|
228
|
+
),
|
|
229
|
+
),
|
|
230
|
+
),
|
|
231
|
+
),
|
|
232
|
+
dirty: (
|
|
233
|
+
element: (
|
|
234
|
+
label: (
|
|
235
|
+
transform: translateY(-1.2ch),
|
|
236
|
+
font-size: var(--text-12),
|
|
237
|
+
),
|
|
238
|
+
input: (
|
|
239
|
+
[padding-top]:
|
|
240
|
+
calc(var(--input-padding-top) + 0.85ch),
|
|
241
|
+
[padding-bottom]:
|
|
242
|
+
calc(var(--input-padding-bottom) - 0.85ch),
|
|
243
|
+
pseudo: (
|
|
244
|
+
placeholder: (
|
|
245
|
+
opacity: 1,
|
|
246
|
+
),
|
|
247
|
+
),
|
|
174
248
|
),
|
|
175
249
|
),
|
|
176
250
|
),
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
$vv-table: (
|
|
2
|
+
--table-cell-padding: var(--spacing-md) 0,
|
|
2
3
|
width: 100%,
|
|
4
|
+
border-collapse: collapse,
|
|
5
|
+
border-color: var(--color-surface-5),
|
|
3
6
|
element: (
|
|
4
7
|
tr: (
|
|
5
8
|
_alias: 'tr',
|
|
6
9
|
border-width: 0 0 1px 0,
|
|
7
10
|
border-style: solid,
|
|
8
|
-
border-color: var(--color-
|
|
11
|
+
border-color: var(--color-surface-5),
|
|
12
|
+
),
|
|
13
|
+
tbody-tr: (
|
|
14
|
+
_alias: 'tbody > tr',
|
|
15
|
+
border-color: var(--color-surface-3),
|
|
9
16
|
state: (
|
|
10
17
|
last-child: (
|
|
11
18
|
border-width: 0,
|
|
@@ -15,15 +22,21 @@ $vv-table: (
|
|
|
15
22
|
th: (
|
|
16
23
|
_alias: 'th',
|
|
17
24
|
font-weight: semibold,
|
|
18
|
-
padding-block: var(--spacing-md),
|
|
19
25
|
font-size: var(--text-sm),
|
|
20
26
|
color: var(--color-word-2),
|
|
27
|
+
[padding]: var(--table-cell-padding),
|
|
21
28
|
),
|
|
22
29
|
td: (
|
|
23
30
|
_alias: 'td',
|
|
24
|
-
padding-block: var(--spacing-md),
|
|
25
31
|
border-style: solid,
|
|
26
32
|
font-size: var(--text-xs),
|
|
33
|
+
[padding]: var(--table-cell-padding),
|
|
34
|
+
),
|
|
35
|
+
),
|
|
36
|
+
modifier: (
|
|
37
|
+
inline-spacing: (
|
|
38
|
+
--table-cell-padding: var(--spacing-md),
|
|
39
|
+
border-width: 0,
|
|
27
40
|
),
|
|
28
41
|
),
|
|
29
42
|
) !default;
|
|
@@ -17,6 +17,13 @@ $vv-textarea: (
|
|
|
17
17
|
overflow: var(--input-label-overflow),
|
|
18
18
|
max-width: var(--input-label-max-width),
|
|
19
19
|
),
|
|
20
|
+
limit: (
|
|
21
|
+
position: absolute,
|
|
22
|
+
right: var(--input-gap),
|
|
23
|
+
bottom: var(--input-gap),
|
|
24
|
+
font-size: var(--input-hint-font-size),
|
|
25
|
+
color: var(--input-hint-color),
|
|
26
|
+
),
|
|
20
27
|
wrapper: (
|
|
21
28
|
position: relative,
|
|
22
29
|
display: flex,
|
|
@@ -25,7 +32,7 @@ $vv-textarea: (
|
|
|
25
32
|
overflow: hidden,
|
|
26
33
|
background-color: var(--input-background-color),
|
|
27
34
|
will-change: background-color,
|
|
28
|
-
transition: background-color 0.
|
|
35
|
+
transition: background-color 0.3s ease-in-out,
|
|
29
36
|
pseudo: (
|
|
30
37
|
before: (
|
|
31
38
|
position: absolute,
|
|
@@ -41,7 +48,7 @@ $vv-textarea: (
|
|
|
41
48
|
transform: scaleX(0),
|
|
42
49
|
transform-origin: left,
|
|
43
50
|
will-change: transform,
|
|
44
|
-
transition: transform 0.
|
|
51
|
+
transition: transform 0.3s ease-in-out,
|
|
45
52
|
),
|
|
46
53
|
),
|
|
47
54
|
state: (
|
|
@@ -66,6 +73,7 @@ $vv-textarea: (
|
|
|
66
73
|
[padding]: var(--input-padding-top) var(--input-padding-right)
|
|
67
74
|
var(--input-padding-bottom) var(--input-padding-left),
|
|
68
75
|
min-height: var(--spacing-50),
|
|
76
|
+
overflow: auto,
|
|
69
77
|
pseudo: (
|
|
70
78
|
placeholder: (
|
|
71
79
|
color: var(--input-placeholder-color),
|
|
@@ -122,6 +130,13 @@ $vv-textarea: (
|
|
|
122
130
|
icon-right: (
|
|
123
131
|
--input-padding-right: calc(var(--spacing-sm) * 2 + 1em),
|
|
124
132
|
),
|
|
133
|
+
resizable: (
|
|
134
|
+
element: (
|
|
135
|
+
input: (
|
|
136
|
+
resize: vertical,
|
|
137
|
+
),
|
|
138
|
+
),
|
|
139
|
+
),
|
|
125
140
|
valid: (
|
|
126
141
|
element: (
|
|
127
142
|
wrapper: (
|
|
@@ -135,6 +150,9 @@ $vv-textarea: (
|
|
|
135
150
|
hint: (
|
|
136
151
|
color: var(--input-valid-color),
|
|
137
152
|
),
|
|
153
|
+
limit: (
|
|
154
|
+
color: var(--input-valid-color),
|
|
155
|
+
),
|
|
138
156
|
icon-right: (
|
|
139
157
|
color: var(--input-valid-color),
|
|
140
158
|
),
|
|
@@ -153,6 +171,9 @@ $vv-textarea: (
|
|
|
153
171
|
hint: (
|
|
154
172
|
color: var(--input-invalid-color),
|
|
155
173
|
),
|
|
174
|
+
limit: (
|
|
175
|
+
color: var(--input-invalid-color),
|
|
176
|
+
),
|
|
156
177
|
icon-right: (
|
|
157
178
|
color: var(--input-invalid-color),
|
|
158
179
|
),
|
|
@@ -196,7 +217,7 @@ $vv-textarea: (
|
|
|
196
217
|
margin: 0,
|
|
197
218
|
will-change: 'transform',
|
|
198
219
|
transform-origin: left,
|
|
199
|
-
transition: all 0.
|
|
220
|
+
transition: all 0.3s ease-in-out,
|
|
200
221
|
),
|
|
201
222
|
input: (
|
|
202
223
|
pseudo: (
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../context';
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-alert);
|
|
5
|
+
$component-map: $dark-vv-alert;
|
|
6
|
+
|
|
7
|
+
@mixin theme-dark-vv-alert {
|
|
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-alert;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.theme.theme--dark) {
|
|
21
|
+
@include theme-dark-vv-alert;
|
|
22
|
+
}
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
@import '../context';
|
|
3
3
|
|
|
4
4
|
$component-name: map.get($components-names, vv-button);
|
|
5
|
-
$component-map: $vv-button;
|
|
6
|
-
$props: true;
|
|
5
|
+
$component-map: $dark-vv-button;
|
|
7
6
|
|
|
8
7
|
@mixin theme-dark-vv-button {
|
|
9
8
|
@include spread-map-into-props(
|
|
10
9
|
$map: $component-map,
|
|
11
|
-
$prefix: $component-name
|
|
12
|
-
$deep: $props
|
|
10
|
+
$prefix: $component-name
|
|
13
11
|
);
|
|
14
12
|
}
|
|
15
13
|
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
@import '../context';
|
|
3
3
|
|
|
4
4
|
$component-name: map.get($components-names, vv-input-checkbox);
|
|
5
|
-
$component-map: $vv-input-checkbox;
|
|
6
|
-
$props: true;
|
|
5
|
+
$component-map: $dark-vv-input-checkbox;
|
|
7
6
|
|
|
8
7
|
@mixin theme-dark-vv-input-checkbox {
|
|
9
8
|
@include spread-map-into-props(
|
|
10
9
|
$map: $component-map,
|
|
11
|
-
$prefix: $component-name
|
|
12
|
-
$deep: $props
|
|
10
|
+
$prefix: $component-name
|
|
13
11
|
);
|
|
14
12
|
}
|
|
15
13
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// background-image
|
|
2
|
-
$background-image: (
|
|
2
|
+
$dark-background-image: (
|
|
3
3
|
none: none,
|
|
4
4
|
chevron:
|
|
5
|
-
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($color-word)})' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"),
|
|
5
|
+
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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"),
|
|
6
6
|
grid:
|
|
7
7
|
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(51 65 85 / 0.25)'%3E%3Cpath d='M0 .5H31.5V32'/%3E%3C/svg%3E"),
|
|
8
8
|
check:
|
|
9
|
-
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($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"),
|
|
9
|
+
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"),
|
|
10
10
|
minus:
|
|
11
|
-
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($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"),
|
|
11
|
+
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"),
|
|
12
12
|
) !default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
2
|
|
|
3
|
-
$color-scheme: dark !default;
|
|
4
|
-
$color-brand: #1976d2 !default;
|
|
5
|
-
$color-word: hsl(color.hue($color-brand) 15% 85%) !default;
|
|
6
|
-
$color-surface: hsl(color.hue($color-brand) 10% 5%) !default;
|
|
7
|
-
$color-alpha: hsla(0deg 0% 100% / 0%) !default;
|
|
3
|
+
$dark-color-scheme: dark !default;
|
|
4
|
+
$dark-color-brand: #1976d2 !default;
|
|
5
|
+
$dark-color-word: hsl(color.hue($dark-color-brand) 15% 85%) !default;
|
|
6
|
+
$dark-color-surface: hsl(color.hue($dark-color-brand) 10% 5%) !default;
|
|
7
|
+
$dark-color-alpha: hsla(0deg 0% 100% / 0%) !default;
|
|
8
8
|
|
|
9
9
|
// color map
|
|
10
|
-
$colors: (
|
|
11
|
-
scheme: $color-scheme,
|
|
12
|
-
word: color-darken-map($color-word, 'word', $scale: 15%),
|
|
13
|
-
surface: color-lighten-map($color-surface, 'surface', $scale: 5%),
|
|
14
|
-
alpha: color-alpha-map($color-alpha, 'alpha', $steps: 5, $scale: 5%),
|
|
10
|
+
$dark-colors: (
|
|
11
|
+
scheme: $dark-color-scheme,
|
|
12
|
+
word: color-darken-map($dark-color-word, 'word', $scale: 15%),
|
|
13
|
+
surface: color-lighten-map($dark-color-surface, 'surface', $scale: 5%),
|
|
14
|
+
alpha: color-alpha-map($dark-color-alpha, 'alpha', $steps: 5, $scale: 5%),
|
|
15
15
|
) !default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
$dark-vv-alert: (
|
|
2
|
+
modifier: (
|
|
3
|
+
success: (
|
|
4
|
+
background-color:
|
|
5
|
+
hsl(
|
|
6
|
+
var(--color-success-hue) var(--color-success-saturation) 10%
|
|
7
|
+
),
|
|
8
|
+
element: (
|
|
9
|
+
icon: (
|
|
10
|
+
color: var(--color-success),
|
|
11
|
+
),
|
|
12
|
+
title: (
|
|
13
|
+
color: var(--color-success),
|
|
14
|
+
),
|
|
15
|
+
),
|
|
16
|
+
),
|
|
17
|
+
danger: (
|
|
18
|
+
background-color:
|
|
19
|
+
hsl(var(--color-danger-hue) var(--color-danger-saturation) 10%),
|
|
20
|
+
element: (
|
|
21
|
+
icon: (
|
|
22
|
+
color: var(--color-danger),
|
|
23
|
+
),
|
|
24
|
+
title: (
|
|
25
|
+
color: var(--color-danger),
|
|
26
|
+
),
|
|
27
|
+
),
|
|
28
|
+
),
|
|
29
|
+
warning: (
|
|
30
|
+
background-color:
|
|
31
|
+
hsl(
|
|
32
|
+
var(--color-warning-hue) var(--color-warning-saturation) 10%
|
|
33
|
+
),
|
|
34
|
+
element: (
|
|
35
|
+
icon: (
|
|
36
|
+
color: var(--color-warning),
|
|
37
|
+
),
|
|
38
|
+
title: (
|
|
39
|
+
color: var(--color-warning),
|
|
40
|
+
),
|
|
41
|
+
),
|
|
42
|
+
),
|
|
43
|
+
info: (
|
|
44
|
+
background-color:
|
|
45
|
+
hsl(var(--color-info-hue) var(--color-info-saturation) 10%),
|
|
46
|
+
element: (
|
|
47
|
+
icon: (
|
|
48
|
+
color: var(--color-info),
|
|
49
|
+
),
|
|
50
|
+
title: (
|
|
51
|
+
color: var(--color-info),
|
|
52
|
+
),
|
|
53
|
+
),
|
|
54
|
+
),
|
|
55
|
+
accent: (
|
|
56
|
+
background-color:
|
|
57
|
+
hsl(var(--color-accent-hue) var(--color-accent-saturation) 10%),
|
|
58
|
+
element: (
|
|
59
|
+
icon: (
|
|
60
|
+
color: var(--color-accent),
|
|
61
|
+
),
|
|
62
|
+
title: (
|
|
63
|
+
color: var(--color-accent),
|
|
64
|
+
),
|
|
65
|
+
),
|
|
66
|
+
),
|
|
67
|
+
brand: (
|
|
68
|
+
background-color:
|
|
69
|
+
hsl(var(--color-brand-hue) var(--color-brand-saturation) 10%),
|
|
70
|
+
element: (
|
|
71
|
+
icon: (
|
|
72
|
+
color: var(--color-brand),
|
|
73
|
+
),
|
|
74
|
+
title: (
|
|
75
|
+
color: var(--color-brand),
|
|
76
|
+
),
|
|
77
|
+
),
|
|
78
|
+
),
|
|
79
|
+
),
|
|
80
|
+
) !default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
$vv-input-checkbox: (
|
|
1
|
+
$dark-vv-input-checkbox: (
|
|
2
2
|
element: (
|
|
3
3
|
input: (
|
|
4
4
|
state: (
|
|
5
5
|
checked: (
|
|
6
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($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"),
|
|
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
8
|
),
|
|
9
9
|
),
|
|
10
10
|
),
|
|
@@ -16,7 +16,7 @@ $vv-input-checkbox: (
|
|
|
16
16
|
state: (
|
|
17
17
|
checked: (
|
|
18
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($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"),
|
|
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
20
|
),
|
|
21
21
|
),
|
|
22
22
|
),
|
|
File without changes
|