@volverjs/style 0.1.12-beta.2 → 0.1.12-beta.20
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/LICENSE +1 -1
- package/README.md +5 -5
- 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-action.css +1 -1
- package/dist/components/vv-dropdown-optgroup.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-skeleton.css +1 -1
- package/dist/components/vv-tab.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/spacing.css +1 -1
- package/dist/props/transitions.css +1 -1
- package/dist/props/typography.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/effects.css +1 -1
- package/dist/utilities/filters.css +1 -1
- package/dist/utilities/interactivity.css +1 -1
- package/dist/utilities/layout.css +1 -1
- package/dist/utilities/sizing.css +1 -1
- package/dist/utilities/transforms.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 +44 -44
- package/src/_config.scss +10 -9
- package/src/_preflight.scss +35 -1
- 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/components/vv-tooltip.scss +1 -1
- package/src/export.scss +33 -59
- package/src/props/background.scss +1 -0
- package/src/props/breakpoints.scss +5 -4
- package/src/props/index.scss +0 -1
- package/src/props/spacing.scss +2 -2
- package/src/props/transitions.scss +19 -0
- package/src/props/typography.scss +3 -2
- 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 -1
- package/src/settings/_input.scss +4 -3
- package/src/settings/_interactivity.scss +14 -0
- package/src/settings/_layout.scss +1 -0
- package/src/settings/_transitions.scss +1 -0
- package/src/settings/_typography.scss +9 -1
- package/src/settings/components/_vv-accordion-group.scss +2 -2
- package/src/settings/components/_vv-accordion.scss +6 -5
- package/src/settings/components/_vv-alert-group.scss +14 -4
- package/src/settings/components/_vv-alert.scss +9 -9
- package/src/settings/components/_vv-avatar-group.scss +1 -0
- package/src/settings/components/_vv-avatar.scss +54 -52
- package/src/settings/components/_vv-badge.scss +67 -27
- package/src/settings/components/_vv-breadcrumb.scss +1 -0
- package/src/settings/components/_vv-button.scss +11 -5
- package/src/settings/components/_vv-card.scss +2 -0
- package/src/settings/components/_vv-checkbox-group.scss +3 -0
- package/src/settings/components/_vv-checkbox.scss +1 -0
- package/src/settings/components/_vv-dialog.scss +4 -0
- package/src/settings/components/_vv-dropdown-option.scss +2 -2
- package/src/settings/components/_vv-dropdown.scss +93 -7
- package/src/settings/components/_vv-input-file.scss +503 -0
- package/src/settings/components/_vv-input-text.scss +5 -1
- 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 +3 -2
- package/src/settings/components/_vv-select.scss +6 -1
- 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 +6 -1
- 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/_breakpoints.scss +13 -4
- package/src/tools/_functions.scss +26 -13
- package/src/tools/_mixins.scss +97 -26
- package/src/utilities/backgrounds.scss +14 -4
- package/src/utilities/flexbox.scss +6 -1
- package/src/utilities/index.scss +0 -1
- package/src/utilities/interactivity.scss +17 -1
- package/src/utilities/layout.scss +9 -3
- package/src/utilities/sizing.scss +10 -2
- package/src/utilities/spacing.scss +10 -1
- package/src/utilities/transforms.scss +2 -2
- package/src/utilities/typography.scss +21 -0
- package/dist/props/gradient.css +0 -1
- package/dist/utilities/gradients.css +0 -1
- package/src/props/gradient.scss +0 -7
- package/src/settings/_gradient.scss +0 -201
- package/src/utilities/gradients.scss +0 -11
|
@@ -9,8 +9,10 @@ $vv-textarea: (
|
|
|
9
9
|
element: (
|
|
10
10
|
label: (
|
|
11
11
|
_alias: '> label',
|
|
12
|
+
_combinator: '>',
|
|
12
13
|
display: var(--input-label-display),
|
|
13
14
|
font-size: var(--input-label-font-size),
|
|
15
|
+
font-weight: var(--input-label-font-weight),
|
|
14
16
|
color: var(--input-label-color),
|
|
15
17
|
margin: 0 0 var(--input-label-gap) 0,
|
|
16
18
|
white-space: var(--input-label-white-space),
|
|
@@ -81,6 +83,7 @@ $vv-textarea: (
|
|
|
81
83
|
var(--input-spacing-bottom) var(--input-spacing-left),
|
|
82
84
|
overflow: auto,
|
|
83
85
|
text-overflow: var(--input-text-overflow),
|
|
86
|
+
min-height: var(--input-min-height),
|
|
84
87
|
pseudo: (
|
|
85
88
|
placeholder: (
|
|
86
89
|
color: var(--input-placeholder-color),
|
|
@@ -115,6 +118,7 @@ $vv-textarea: (
|
|
|
115
118
|
height: var(--input-min-height),
|
|
116
119
|
margin: var(--input-icon-margin),
|
|
117
120
|
pointer-events: var(--input-icon-pointer-events),
|
|
121
|
+
flex-shrink: 0,
|
|
118
122
|
),
|
|
119
123
|
icon-after: (
|
|
120
124
|
_alias: 'textarea + :where(svg, [data-icon])',
|
|
@@ -130,6 +134,7 @@ $vv-textarea: (
|
|
|
130
134
|
),
|
|
131
135
|
hint: (
|
|
132
136
|
_alias: '> small',
|
|
137
|
+
_combinator: '>',
|
|
133
138
|
display: var(--input-hint-display),
|
|
134
139
|
font-size: var(--input-hint-font-size),
|
|
135
140
|
color: var(--input-hint-color),
|
|
@@ -223,7 +228,7 @@ $vv-textarea: (
|
|
|
223
228
|
),
|
|
224
229
|
label: (
|
|
225
230
|
position: absolute,
|
|
226
|
-
z-index: 1,
|
|
231
|
+
z-index: var(--z-1),
|
|
227
232
|
min-height: var(--input-min-height),
|
|
228
233
|
line-height: var(--input-min-height),
|
|
229
234
|
pointer-events: none,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../context' as *;
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-avatar);
|
|
5
|
+
$component-map: $dark-vv-avatar;
|
|
6
|
+
|
|
7
|
+
@mixin theme-dark-vv-avatar {
|
|
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-avatar;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.theme.theme--dark) {
|
|
21
|
+
@include theme-dark-vv-avatar;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../context' as *;
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-badge);
|
|
5
|
+
$component-map: $dark-vv-badge;
|
|
6
|
+
|
|
7
|
+
@mixin theme-dark-vv-badge {
|
|
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-badge;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.theme.theme--dark) {
|
|
21
|
+
@include theme-dark-vv-badge;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../context' as *;
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-dropdown-action);
|
|
5
|
+
$component-map: $dark-vv-dropdown-action;
|
|
6
|
+
|
|
7
|
+
@mixin theme-dark-vv-dropdown-action {
|
|
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-dropdown-action;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.theme.theme--dark) {
|
|
21
|
+
@include theme-dark-vv-dropdown-action;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../context' as *;
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-dropdown-option);
|
|
5
|
+
$component-map: $dark-vv-dropdown-option;
|
|
6
|
+
|
|
7
|
+
@mixin theme-dark-vv-dropdown-option {
|
|
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-dropdown-option;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.theme.theme--dark) {
|
|
21
|
+
@include theme-dark-vv-dropdown-option;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../context' as *;
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-nav);
|
|
5
|
+
$component-map: $dark-vv-nav;
|
|
6
|
+
|
|
7
|
+
@mixin theme-dark-vv-nav {
|
|
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-nav;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.theme.theme--dark) {
|
|
21
|
+
@include theme-dark-vv-nav;
|
|
22
|
+
}
|
|
@@ -6,6 +6,8 @@ $dark-background-image: (
|
|
|
6
6
|
none: none,
|
|
7
7
|
chevron:
|
|
8
8
|
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"),
|
|
9
|
+
chessboard:
|
|
10
|
+
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' width='200' height='400'%3E%3Cdefs%3E%3Cpattern id='grid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Crect fill='white' x='0' y='0' width='10' height='10' opacity='0.1'/%3E%3Crect fill='black' x='10' y='0' width='10' height='10'/%3E%3Crect fill='white' x='10' y='10' width='10' height='10' opacity='0.1'/%3E%3Crect fill='black' x='0' y='10' width='10' height='10'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23grid)' x='0' y='0' width='100%25' height='100%25'/%3E%3C/svg%3E"),
|
|
9
11
|
grid:
|
|
10
12
|
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"),
|
|
11
13
|
check:
|
|
@@ -4,10 +4,8 @@
|
|
|
4
4
|
@use '../../../settings/colors' as *;
|
|
5
5
|
|
|
6
6
|
$dark-color-scheme: dark !default;
|
|
7
|
-
$dark-color-
|
|
8
|
-
$dark-color-
|
|
9
|
-
$dark-color-surface: hsl(color.hue($dark-color-brand) 10% 5%) !default;
|
|
10
|
-
$dark-color-alpha: hsla(0deg 0% 100% / 0%) !default;
|
|
7
|
+
$dark-color-word: hsl(color.hue($color-brand) 15% 85%) !default;
|
|
8
|
+
$dark-color-surface: hsl(color.hue($color-brand) 10% 5%) !default;
|
|
11
9
|
$dark-color-surface-palette: (
|
|
12
10
|
brand: hsl(var(--color-brand-hue) var(--color-brand-saturation) 10%),
|
|
13
11
|
accent: hsl(var(--color-accent-hue) var(--color-accent-saturation) 10%),
|
|
@@ -29,30 +27,6 @@ $dark-color-surface-palette-no-vars: (
|
|
|
29
27
|
$dark-colors: (
|
|
30
28
|
scheme: $dark-color-scheme,
|
|
31
29
|
word: color-darken-map($dark-color-word, 'word', $scale: 12%, $fixed: true),
|
|
32
|
-
surface:
|
|
33
|
-
map.merge(
|
|
34
|
-
color-lighten-map(
|
|
35
|
-
$dark-color-surface,
|
|
36
|
-
'surface',
|
|
37
|
-
$scale: 5%,
|
|
38
|
-
$fixed: true
|
|
39
|
-
),
|
|
40
|
-
$dark-color-surface-palette
|
|
41
|
-
),
|
|
42
|
-
alpha: color-alpha-map($dark-color-alpha, 'alpha', $steps: 5, $scale: 5%),
|
|
43
|
-
) !default;
|
|
44
|
-
|
|
45
|
-
// dark-colors computed map
|
|
46
|
-
$dark-colors-computed: (
|
|
47
|
-
scheme: $dark-color-scheme,
|
|
48
|
-
word:
|
|
49
|
-
color-darken-map(
|
|
50
|
-
$dark-color-word,
|
|
51
|
-
'word',
|
|
52
|
-
$scale: 12%,
|
|
53
|
-
$fixed: true,
|
|
54
|
-
$noVarExport: true
|
|
55
|
-
),
|
|
56
30
|
surface:
|
|
57
31
|
map.merge(
|
|
58
32
|
color-lighten-map(
|
|
@@ -60,16 +34,8 @@ $dark-colors-computed: (
|
|
|
60
34
|
'surface',
|
|
61
35
|
$scale: 5%,
|
|
62
36
|
$fixed: true,
|
|
63
|
-
$
|
|
37
|
+
$inverted: false
|
|
64
38
|
),
|
|
65
|
-
$dark-color-surface-palette
|
|
66
|
-
),
|
|
67
|
-
alpha:
|
|
68
|
-
color-alpha-map(
|
|
69
|
-
$dark-color-alpha,
|
|
70
|
-
'alpha',
|
|
71
|
-
$steps: 5,
|
|
72
|
-
$scale: 5%,
|
|
73
|
-
$noVarExport: true
|
|
39
|
+
$dark-color-surface-palette
|
|
74
40
|
),
|
|
75
41
|
) !default;
|
|
@@ -2,5 +2,10 @@
|
|
|
2
2
|
@forward 'background';
|
|
3
3
|
@forward 'input';
|
|
4
4
|
|
|
5
|
-
@forward 'components/vv-button';
|
|
6
5
|
@forward 'components/vv-alert';
|
|
6
|
+
@forward 'components/vv-avatar';
|
|
7
|
+
@forward 'components/vv-badge';
|
|
8
|
+
@forward 'components/vv-button';
|
|
9
|
+
@forward 'components/vv-dropdown-action';
|
|
10
|
+
@forward 'components/vv-dropdown-option';
|
|
11
|
+
@forward 'components/vv-nav';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
$dark-vv-avatar: (
|
|
2
|
+
modifier: (
|
|
3
|
+
ring: (
|
|
4
|
+
color: var(--color-brand-lighten-3),
|
|
5
|
+
modifier: (
|
|
6
|
+
danger: (
|
|
7
|
+
color: var(--color-danger-lighten-5),
|
|
8
|
+
),
|
|
9
|
+
success: (
|
|
10
|
+
color: var(--color-success-lighten-3),
|
|
11
|
+
),
|
|
12
|
+
warning: (
|
|
13
|
+
color: var(--color-warning),
|
|
14
|
+
),
|
|
15
|
+
gray: (
|
|
16
|
+
color: var(--color-gray-lighten-3),
|
|
17
|
+
),
|
|
18
|
+
info: (
|
|
19
|
+
color: var(--color-info),
|
|
20
|
+
),
|
|
21
|
+
accent: (
|
|
22
|
+
color: var(--color-accent-lighten-5),
|
|
23
|
+
),
|
|
24
|
+
),
|
|
25
|
+
),
|
|
26
|
+
),
|
|
27
|
+
);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
$dark-vv-badge: (
|
|
2
|
+
modifier: (
|
|
3
|
+
outline: (
|
|
4
|
+
color: var(--color-brand-lighten-3),
|
|
5
|
+
modifier: (
|
|
6
|
+
danger: (
|
|
7
|
+
color: var(--color-danger-lighten-3),
|
|
8
|
+
),
|
|
9
|
+
success: (
|
|
10
|
+
color: var(--color-success-lighten-3),
|
|
11
|
+
),
|
|
12
|
+
warning: (
|
|
13
|
+
color: var(--color-warning),
|
|
14
|
+
),
|
|
15
|
+
info: (
|
|
16
|
+
color: var(--color-info),
|
|
17
|
+
),
|
|
18
|
+
accent: (
|
|
19
|
+
color: var(--color-accent-lighten-3),
|
|
20
|
+
),
|
|
21
|
+
gray: (
|
|
22
|
+
color: var(--color-gray-lighten-3),
|
|
23
|
+
),
|
|
24
|
+
),
|
|
25
|
+
),
|
|
26
|
+
ghost: (
|
|
27
|
+
color: var(--color-brand-lighten-3),
|
|
28
|
+
modifier: (
|
|
29
|
+
danger: (
|
|
30
|
+
color: var(--color-danger-lighten-3),
|
|
31
|
+
),
|
|
32
|
+
success: (
|
|
33
|
+
color: var(--color-success-lighten-3),
|
|
34
|
+
),
|
|
35
|
+
warning: (
|
|
36
|
+
color: var(--color-warning),
|
|
37
|
+
),
|
|
38
|
+
info: (
|
|
39
|
+
color: var(--color-info),
|
|
40
|
+
),
|
|
41
|
+
accent: (
|
|
42
|
+
color: var(--color-accent-lighten-3),
|
|
43
|
+
),
|
|
44
|
+
gray: (
|
|
45
|
+
color: var(--color-gray-lighten-3),
|
|
46
|
+
),
|
|
47
|
+
),
|
|
48
|
+
),
|
|
49
|
+
),
|
|
50
|
+
);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
$dark-vv-button: (
|
|
2
2
|
modifier: (
|
|
3
3
|
primary: (
|
|
4
|
-
border-color: var(--color-gray-darken-
|
|
5
|
-
background: var(--color-gray-darken-
|
|
4
|
+
border-color: var(--color-gray-darken-3),
|
|
5
|
+
background: var(--color-gray-darken-3),
|
|
6
6
|
state: (
|
|
7
7
|
focus-visible: (
|
|
8
8
|
outline: var(--spacing-px) solid var(--color-gray),
|
|
9
9
|
),
|
|
10
10
|
hover: (
|
|
11
|
-
background: var(--color-gray-
|
|
12
|
-
border-color: var(--color-gray-
|
|
11
|
+
background: var(--color-gray-darken-2),
|
|
12
|
+
border-color: var(--color-gray-darken-2),
|
|
13
13
|
),
|
|
14
14
|
active: (
|
|
15
|
-
background: var(--color-gray),
|
|
16
|
-
border-color: var(--color-gray),
|
|
15
|
+
background: var(--color-gray-darken-1),
|
|
16
|
+
border-color: var(--color-gray-darken-1),
|
|
17
17
|
),
|
|
18
18
|
),
|
|
19
19
|
),
|
|
20
20
|
secondary: (
|
|
21
21
|
border-color: var(--color-gray-darken-1),
|
|
22
|
-
background:
|
|
22
|
+
background: transparent,
|
|
23
23
|
text-shadow: 0 1px 0 var(--color-gray-darken-5),
|
|
24
24
|
state: (
|
|
25
25
|
focus-visible: (
|
|
@@ -52,7 +52,12 @@ $dark-vv-button: (
|
|
|
52
52
|
),
|
|
53
53
|
),
|
|
54
54
|
link: (
|
|
55
|
-
color: var(--color-brand-lighten-
|
|
55
|
+
color: var(--color-brand-lighten-3),
|
|
56
|
+
state: (
|
|
57
|
+
active: (
|
|
58
|
+
color: var(--color-brand-lighten-2),
|
|
59
|
+
),
|
|
60
|
+
),
|
|
56
61
|
),
|
|
57
62
|
),
|
|
58
63
|
) !default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
$dark-vv-dropdown-option: (
|
|
2
|
+
state: (
|
|
3
|
+
focus-visible: (
|
|
4
|
+
color: var(--color-success-lighten-3),
|
|
5
|
+
),
|
|
6
|
+
selected: (
|
|
7
|
+
color: var(--color-brand-lighten-3),
|
|
8
|
+
),
|
|
9
|
+
),
|
|
10
|
+
modifier: (
|
|
11
|
+
unselectable: (
|
|
12
|
+
state: (
|
|
13
|
+
focus-visible: (
|
|
14
|
+
color: var(--color-danger-lighten-5),
|
|
15
|
+
),
|
|
16
|
+
),
|
|
17
|
+
),
|
|
18
|
+
),
|
|
19
|
+
);
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
$bps-names: map.keys($bps)
|
|
20
20
|
) {
|
|
21
21
|
$n: list.index($bps-names, $name);
|
|
22
|
+
|
|
22
23
|
@return if(
|
|
23
|
-
$n != null and $n < length($bps-names),
|
|
24
|
-
nth($bps-names, $n + 1),
|
|
24
|
+
$n != null and $n < list.length($bps-names),
|
|
25
|
+
list.nth($bps-names, $n + 1),
|
|
25
26
|
null
|
|
26
27
|
);
|
|
27
28
|
}
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
// 576px
|
|
32
33
|
@function breakpoint-min($name, $bps) {
|
|
33
34
|
$min: map.get($bps, $name);
|
|
35
|
+
|
|
34
36
|
@return if($min != 0, $min, null);
|
|
35
37
|
}
|
|
36
38
|
|
|
@@ -44,6 +46,7 @@
|
|
|
44
46
|
// 767.98px
|
|
45
47
|
@function breakpoint-max($name, $bps) {
|
|
46
48
|
$next: breakpoint-next($name, $bps);
|
|
49
|
+
|
|
47
50
|
@return if($next, breakpoint-min($next, $bps) - 0.02, null);
|
|
48
51
|
}
|
|
49
52
|
|
|
@@ -61,12 +64,17 @@
|
|
|
61
64
|
// Makes the @content apply to the given breakpoint and wider.
|
|
62
65
|
@mixin media-breakpoint-up($name, $bps) {
|
|
63
66
|
$min: breakpoint-min($name, $bps);
|
|
67
|
+
|
|
64
68
|
@if $min {
|
|
65
69
|
@media (min-width: $min) {
|
|
66
|
-
|
|
70
|
+
& {
|
|
71
|
+
@content;
|
|
72
|
+
}
|
|
67
73
|
}
|
|
68
74
|
} @else {
|
|
69
|
-
|
|
75
|
+
& {
|
|
76
|
+
@content;
|
|
77
|
+
}
|
|
70
78
|
}
|
|
71
79
|
}
|
|
72
80
|
|
|
@@ -74,6 +82,7 @@
|
|
|
74
82
|
// Makes the @content apply to the given breakpoint and narrower.
|
|
75
83
|
@mixin media-breakpoint-down($name, $bps) {
|
|
76
84
|
$max: breakpoint-max($name, $bps);
|
|
85
|
+
|
|
77
86
|
@if $max {
|
|
78
87
|
@media (max-width: $max) {
|
|
79
88
|
@content;
|
|
@@ -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;
|