@volverjs/style 0.1.2-beta.18 → 0.1.2-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/dist/components/vv-accordion.css +1 -1
- package/dist/components/vv-alert.css +1 -1
- package/dist/components/vv-avatar.css +1 -1
- package/dist/components/vv-badge.css +1 -1
- package/dist/components/vv-button.css +1 -1
- package/dist/components/vv-nav.css +1 -1
- package/dist/components/vv-select.css +1 -1
- package/dist/components/vv-tab.css +1 -0
- package/dist/components/vv-text.css +1 -1
- package/dist/components/vv-toast.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/animation.css +1 -1
- package/dist/props/spacing.css +1 -1
- package/dist/props.css +1 -1
- package/dist/utilities/flexbox.css +1 -1
- package/dist/utilities/layout.css +1 -1
- package/dist/utilities/sizing.css +1 -1
- package/dist/utilities/spacing.css +1 -1
- package/dist/utilities.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +3 -1
- package/src/_config.scss +1 -0
- package/src/_preflight.scss +33 -1
- package/src/components/index.scss +1 -0
- package/src/components/vv-tab.scss +12 -0
- package/src/components/vv-tooltip.scss +20 -0
- package/src/props/animation.scss +11 -0
- package/src/settings/_index.scss +1 -0
- package/src/settings/_spacing.scss +1 -0
- package/src/settings/components/_vv-accordion.scss +33 -32
- package/src/settings/components/_vv-alert.scss +12 -0
- package/src/settings/components/_vv-avatar.scss +28 -20
- package/src/settings/components/_vv-badge.scss +27 -12
- package/src/settings/components/_vv-button.scss +10 -6
- package/src/settings/components/_vv-nav.scss +74 -14
- package/src/settings/components/_vv-select.scss +2 -1
- package/src/settings/components/_vv-tab.scss +16 -0
- package/src/settings/components/_vv-text.scss +20 -0
- package/src/settings/components/_vv-toast.scss +137 -5
- package/src/settings/components/_vv-tooltip.scss +54 -120
- package/src/tools/_mixins.scss +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volverjs/style",
|
|
3
|
-
"version": "0.1.2-beta.
|
|
3
|
+
"version": "0.1.2-beta.20",
|
|
4
4
|
"description": "@volverjs/style is a lightweight responsive CSS utility library to accompany @volverjs/ui and static webpages as well.",
|
|
5
5
|
"main": "dist/style.css",
|
|
6
6
|
"style": "dist/style.css",
|
|
@@ -59,6 +59,8 @@
|
|
|
59
59
|
"./scss/components/vv-progress": "./src/components/vv-progress.scss",
|
|
60
60
|
"./components/vv-select": "./dist/components/vv-select.css",
|
|
61
61
|
"./scss/components/vv-select": "./src/components/vv-select.scss",
|
|
62
|
+
"./components/vv-tab": "./dist/components/vv-tab.css",
|
|
63
|
+
"./scss/components/vv-tab": "./src/components/vv-tab.scss",
|
|
62
64
|
"./components/vv-table": "./dist/components/vv-table.css",
|
|
63
65
|
"./scss/components/vv-table": "./src/components/vv-table.scss",
|
|
64
66
|
"./components/vv-text": "./dist/components/vv-text.css",
|
package/src/_config.scss
CHANGED
|
@@ -30,6 +30,7 @@ $components-names: (
|
|
|
30
30
|
vv-nav: $components-prefix + -nav,
|
|
31
31
|
vv-progress: $components-prefix + -progress,
|
|
32
32
|
vv-select: $components-prefix + -select,
|
|
33
|
+
vv-tab: $components-prefix + -tab,
|
|
33
34
|
vv-table: $components-prefix + -table,
|
|
34
35
|
vv-text: $components-prefix + -text,
|
|
35
36
|
vv-textarea: $components-prefix + -textarea,
|
package/src/_preflight.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
1
3
|
:where(:host, :root, [class*='theme']) {
|
|
2
4
|
accent-color: var(--color-brand);
|
|
3
5
|
background: var(--color-surface);
|
|
@@ -72,6 +74,10 @@
|
|
|
72
74
|
@extend %italic !optional;
|
|
73
75
|
}
|
|
74
76
|
|
|
77
|
+
&:where(svg) {
|
|
78
|
+
@extend %align-middle !optional;
|
|
79
|
+
}
|
|
80
|
+
|
|
75
81
|
&:where(dfn, var) {
|
|
76
82
|
@extend %font-serif !optional;
|
|
77
83
|
}
|
|
@@ -80,7 +86,7 @@
|
|
|
80
86
|
@extend %line-through !optional;
|
|
81
87
|
}
|
|
82
88
|
|
|
83
|
-
&:where(ins, u, cite
|
|
89
|
+
&:where(ins, u, cite) {
|
|
84
90
|
@extend %underline !optional;
|
|
85
91
|
}
|
|
86
92
|
|
|
@@ -135,6 +141,32 @@
|
|
|
135
141
|
@extend %border-surface-3 !optional;
|
|
136
142
|
}
|
|
137
143
|
|
|
144
|
+
// anchor
|
|
145
|
+
&:where(a:not(.#{map.get($components-names, vv-button)})) {
|
|
146
|
+
@extend %vv-text !optional;
|
|
147
|
+
@extend %vv-text--link !optional;
|
|
148
|
+
|
|
149
|
+
&:where(:hover) {
|
|
150
|
+
@extend %vv-button-modifier-link--hover !optional;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&:where(:focus) {
|
|
154
|
+
@extend %vv-button-modifier-link--focus !optional;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&:where(:focus-visible) {
|
|
158
|
+
@extend %vv-button-modifier-link--focus-visible !optional;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:where(:visited) {
|
|
162
|
+
@extend %vv-button-modifier-link--visited !optional;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&:where(:active) {
|
|
166
|
+
@extend %vv-button-modifier-link--active !optional;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
138
170
|
// buttons
|
|
139
171
|
&:where(button, input[type='button'], input[type='submit'], input[type='reset']) {
|
|
140
172
|
@extend %vv-button !optional;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../context';
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-tab);
|
|
5
|
+
$component-map: $vv-tab;
|
|
6
|
+
|
|
7
|
+
@include spread-map-into-bem(
|
|
8
|
+
$map: $component-map,
|
|
9
|
+
$block: $component-name,
|
|
10
|
+
$props: $use-custom-props-for-components,
|
|
11
|
+
$zero-specificity: $zero-specificity-for-compoenents
|
|
12
|
+
);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
$component-name: map.get($components-names, vv-tooltip);
|
|
5
5
|
$component-map: $vv-tooltip;
|
|
6
|
+
$component-selector: '.#{ $component-name}';
|
|
6
7
|
|
|
7
8
|
@include spread-map-into-bem(
|
|
8
9
|
$map: $component-map,
|
|
@@ -10,3 +11,22 @@ $component-map: $vv-tooltip;
|
|
|
10
11
|
$props: $use-custom-props-for-components,
|
|
11
12
|
$zero-specificity: $zero-specificity-for-compoenents
|
|
12
13
|
);
|
|
14
|
+
|
|
15
|
+
@include wrap-with-where(
|
|
16
|
+
$selector: '*:has(#{$component-selector})',
|
|
17
|
+
$enabled: $zero-specificity-for-compoenents
|
|
18
|
+
) {
|
|
19
|
+
position: relative;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include wrap-with-where(
|
|
23
|
+
$selector: '*:has(> #{$component-selector})',
|
|
24
|
+
$enabled: $zero-specificity-for-compoenents
|
|
25
|
+
) {
|
|
26
|
+
&:hover,
|
|
27
|
+
&:focus-visible,
|
|
28
|
+
&.hover,
|
|
29
|
+
&.focus-visible {
|
|
30
|
+
@extend %vv-tooltip--visible !optional;
|
|
31
|
+
}
|
|
32
|
+
}
|
package/src/props/animation.scss
CHANGED
package/src/settings/_index.scss
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
$vv-accordion: (
|
|
2
2
|
--accordion-marker-size:
|
|
3
3
|
calc(var(--spacing-sm) + var(--leading-normal) * 1em),
|
|
4
|
-
--accordion-padding-top:
|
|
5
|
-
--accordion-padding-right:
|
|
6
|
-
--accordion-padding-bottom:
|
|
7
|
-
--accordion-padding-left:
|
|
4
|
+
--accordion-padding-top: var(--spacing-xs),
|
|
5
|
+
--accordion-padding-right: var(--spacing-xs),
|
|
6
|
+
--accordion-padding-bottom: var(--spacing-xs),
|
|
7
|
+
--accordion-padding-left: var(--spacing-xs),
|
|
8
|
+
overflow: hidden,
|
|
9
|
+
state: (
|
|
10
|
+
open: (
|
|
11
|
+
element: (
|
|
12
|
+
summary: (
|
|
13
|
+
background-color: var(--color-surface-2),
|
|
14
|
+
pseudo: (
|
|
15
|
+
before: (
|
|
16
|
+
transform: rotate(0),
|
|
17
|
+
),
|
|
18
|
+
),
|
|
19
|
+
),
|
|
20
|
+
),
|
|
21
|
+
),
|
|
22
|
+
),
|
|
8
23
|
element: (
|
|
9
24
|
summary: (
|
|
10
25
|
_alias: '> summary',
|
|
@@ -22,6 +37,7 @@ $vv-accordion: (
|
|
|
22
37
|
will-change: background-color,
|
|
23
38
|
transition: background-color 0.3s ease-in-out,
|
|
24
39
|
font-size: var(--text-sm),
|
|
40
|
+
border-radius: var(--rounded-lg),
|
|
25
41
|
pseudo: (
|
|
26
42
|
before: (
|
|
27
43
|
display: block,
|
|
@@ -45,6 +61,11 @@ $vv-accordion: (
|
|
|
45
61
|
display: none,
|
|
46
62
|
),
|
|
47
63
|
),
|
|
64
|
+
state: (
|
|
65
|
+
hover: (
|
|
66
|
+
background-color: var(--color-surface-1),
|
|
67
|
+
),
|
|
68
|
+
),
|
|
48
69
|
),
|
|
49
70
|
content: (
|
|
50
71
|
_alias: '> summary + *',
|
|
@@ -53,19 +74,6 @@ $vv-accordion: (
|
|
|
53
74
|
var(--accordion-padding-right),
|
|
54
75
|
),
|
|
55
76
|
),
|
|
56
|
-
state: (
|
|
57
|
-
open: (
|
|
58
|
-
element: (
|
|
59
|
-
summary: (
|
|
60
|
-
pseudo: (
|
|
61
|
-
before: (
|
|
62
|
-
transform: rotate(0),
|
|
63
|
-
),
|
|
64
|
-
),
|
|
65
|
-
),
|
|
66
|
-
),
|
|
67
|
-
),
|
|
68
|
-
),
|
|
69
77
|
modifier: (
|
|
70
78
|
marker-right: (
|
|
71
79
|
element: (
|
|
@@ -100,25 +108,18 @@ $vv-accordion: (
|
|
|
100
108
|
),
|
|
101
109
|
),
|
|
102
110
|
bordered: (
|
|
103
|
-
--accordion-padding-top: var(--spacing-
|
|
104
|
-
--accordion-padding-right: var(--spacing-
|
|
105
|
-
--accordion-padding-bottom: var(--spacing-
|
|
106
|
-
--accordion-padding-left: var(--spacing-
|
|
107
|
-
border
|
|
108
|
-
|
|
109
|
-
summary: (
|
|
110
|
-
state: (
|
|
111
|
-
hover: (
|
|
112
|
-
background-color: var(--color-surface-1),
|
|
113
|
-
),
|
|
114
|
-
),
|
|
115
|
-
),
|
|
116
|
-
),
|
|
111
|
+
--accordion-padding-top: var(--spacing-xs),
|
|
112
|
+
--accordion-padding-right: var(--spacing-xs),
|
|
113
|
+
--accordion-padding-bottom: var(--spacing-xs),
|
|
114
|
+
--accordion-padding-left: var(--spacing-xs),
|
|
115
|
+
border: var(--border) solid var(--color-surface-4),
|
|
116
|
+
border-radius: var(--rounded-lg),
|
|
117
117
|
state: (
|
|
118
118
|
open: (
|
|
119
119
|
element: (
|
|
120
120
|
summary: (
|
|
121
|
-
|
|
121
|
+
border-bottom-right-radius: 0,
|
|
122
|
+
border-bottom-left-radius: 0,
|
|
122
123
|
),
|
|
123
124
|
),
|
|
124
125
|
),
|
|
@@ -51,6 +51,18 @@ $vv-alert: (
|
|
|
51
51
|
),
|
|
52
52
|
),
|
|
53
53
|
modifier: (
|
|
54
|
+
fixed: (
|
|
55
|
+
position: fixed,
|
|
56
|
+
z-index: var(--z-notification-alert),
|
|
57
|
+
),
|
|
58
|
+
top: (
|
|
59
|
+
inset-inline: var(--spacing-lg),
|
|
60
|
+
inset-block: var(--spacing-lg) auto,
|
|
61
|
+
),
|
|
62
|
+
bottom: (
|
|
63
|
+
inset-inline: var(--spacing-lg),
|
|
64
|
+
inset-block: auto var(--spacing-lg),
|
|
65
|
+
),
|
|
54
66
|
success: (
|
|
55
67
|
border-color: var(--color-success-lighten-5),
|
|
56
68
|
background-color: var(--color-surface-success),
|
|
@@ -1,34 +1,32 @@
|
|
|
1
1
|
$vv-avatar: (
|
|
2
2
|
display: inline-flex,
|
|
3
|
+
position: relative,
|
|
3
4
|
justify-content: center,
|
|
4
5
|
align-items: center,
|
|
5
|
-
|
|
6
|
-
height: var(--
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
border-
|
|
10
|
-
border-color: var(--color-surface-4),
|
|
11
|
-
background-color: var(--color-word),
|
|
6
|
+
font-size: var(--text-12),
|
|
7
|
+
line-height: var(--leading-none),
|
|
8
|
+
width: var(--spacing-28),
|
|
9
|
+
height: var(--spacing-28),
|
|
10
|
+
border-radius: var(--rounded),
|
|
12
11
|
background-position: center,
|
|
13
12
|
background-size: contain,
|
|
14
13
|
background-repeat: no-repeat,
|
|
15
|
-
color: var(--color-
|
|
14
|
+
color: var(--color-white),
|
|
16
15
|
object-fit: contain,
|
|
17
|
-
overflow: hidden,
|
|
18
16
|
modifier: (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
rounded: (
|
|
18
|
+
border-radius: var(--rounded-full),
|
|
19
|
+
overflow: hidden,
|
|
22
20
|
),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
md: (
|
|
22
|
+
font-size: var(--text-14),
|
|
23
|
+
width: var(--spacing-34),
|
|
24
|
+
height: var(--spacing-34),
|
|
27
25
|
),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
lg: (
|
|
27
|
+
font-size: var(--text-16),
|
|
28
|
+
width: var(--spacing-40),
|
|
29
|
+
height: var(--spacing-40),
|
|
32
30
|
),
|
|
33
31
|
),
|
|
34
32
|
state: (
|
|
@@ -37,4 +35,14 @@ $vv-avatar: (
|
|
|
37
35
|
outline-offset: var(--spacing-0),
|
|
38
36
|
),
|
|
39
37
|
),
|
|
38
|
+
element: (
|
|
39
|
+
badge: (
|
|
40
|
+
_alias: '> sup',
|
|
41
|
+
position: absolute,
|
|
42
|
+
top: 0,
|
|
43
|
+
right: 0,
|
|
44
|
+
transform: translate(50%, -50%),
|
|
45
|
+
box-shadow: var(--shadow-sm),
|
|
46
|
+
),
|
|
47
|
+
),
|
|
40
48
|
) !default;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
$vv-badge: (
|
|
2
2
|
--badge-font-size: 0.7rem,
|
|
3
|
+
--badge-color: var(--color-white),
|
|
4
|
+
--badge-background-color: var(--color-brand),
|
|
5
|
+
--badge-border-width: 0,
|
|
3
6
|
[font-size]: var(--badge-font-size),
|
|
7
|
+
[background-color]: var(--badge-background-color),
|
|
8
|
+
[color]: var(--badge-color),
|
|
9
|
+
[border-width]: var(--badge-border-width),
|
|
10
|
+
[border-color]: var(--badge-background-color),
|
|
11
|
+
border-style: solid,
|
|
4
12
|
border-radius: 0.5em,
|
|
5
|
-
background: var(--color-brand),
|
|
6
|
-
color: var(--color-white),
|
|
7
13
|
line-height: 2em,
|
|
8
14
|
min-height: 2em,
|
|
9
15
|
min-width: 2em,
|
|
@@ -28,34 +34,43 @@ $vv-badge: (
|
|
|
28
34
|
),
|
|
29
35
|
),
|
|
30
36
|
modifier: (
|
|
31
|
-
|
|
37
|
+
sm: (
|
|
32
38
|
--badge-font-size: 0.6rem,
|
|
33
39
|
),
|
|
34
40
|
rounded: (
|
|
35
41
|
border-radius: 1em,
|
|
36
42
|
),
|
|
43
|
+
outline: (
|
|
44
|
+
--badge-border-width: var(--border),
|
|
45
|
+
[background-color]: transparent,
|
|
46
|
+
[color]: var(--badge-background-color),
|
|
47
|
+
),
|
|
48
|
+
ghost: (
|
|
49
|
+
[background-color]: transparent,
|
|
50
|
+
[color]: var(--badge-background-color),
|
|
51
|
+
),
|
|
37
52
|
white: (
|
|
38
|
-
background: alpha-color('white', 80%),
|
|
39
|
-
color: var(--color-black),
|
|
53
|
+
--badge-background-color: alpha-color('white', 80%),
|
|
54
|
+
--badge-color: var(--color-black),
|
|
40
55
|
),
|
|
41
56
|
black: (
|
|
42
|
-
background: alpha-color('black', 80%),
|
|
43
|
-
color: var(--color-white),
|
|
57
|
+
--badge-background-color: alpha-color('black', 80%),
|
|
58
|
+
--badge-color: var(--color-white),
|
|
44
59
|
),
|
|
45
60
|
danger: (
|
|
46
|
-
background: var(--color-danger),
|
|
61
|
+
--badge-background-color: var(--color-danger),
|
|
47
62
|
),
|
|
48
63
|
success: (
|
|
49
|
-
background: var(--color-success),
|
|
64
|
+
--badge-background-color: var(--color-success),
|
|
50
65
|
),
|
|
51
66
|
warning: (
|
|
52
|
-
background: var(--color-warning),
|
|
67
|
+
--badge-background-color: var(--color-warning),
|
|
53
68
|
),
|
|
54
69
|
info: (
|
|
55
|
-
background: var(--color-info),
|
|
70
|
+
--badge-background-color: var(--color-info),
|
|
56
71
|
),
|
|
57
72
|
accent: (
|
|
58
|
-
background: var(--color-accent),
|
|
73
|
+
--badge-background-color: var(--color-accent),
|
|
59
74
|
),
|
|
60
75
|
),
|
|
61
76
|
) !default;
|
|
@@ -25,6 +25,7 @@ $vv-button: (
|
|
|
25
25
|
hover: (
|
|
26
26
|
background: var(--color-brand-darken-1),
|
|
27
27
|
border-color: var(--color-brand-darken-1),
|
|
28
|
+
text-decoration: none,
|
|
28
29
|
),
|
|
29
30
|
active: (
|
|
30
31
|
background: var(--color-brand-darken-2),
|
|
@@ -147,21 +148,24 @@ $vv-button: (
|
|
|
147
148
|
),
|
|
148
149
|
link: (
|
|
149
150
|
background: transparent,
|
|
150
|
-
border-color: var(--color-word),
|
|
151
151
|
border-width: var(--border-0),
|
|
152
|
-
border-radius: 0,
|
|
153
152
|
padding: 0,
|
|
154
|
-
color: var(--color-
|
|
155
|
-
|
|
153
|
+
color: var(--color-brand),
|
|
154
|
+
font-weight: var(--font-normal),
|
|
155
|
+
text-shadow: none,
|
|
156
156
|
state: (
|
|
157
157
|
focus-visible: (
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
outline: var(--spacing-px) solid
|
|
159
|
+
var(--color-brand-lighten-4),
|
|
160
|
+
outline-offset: var(--spacing-4),
|
|
160
161
|
),
|
|
161
162
|
hover: (
|
|
162
163
|
text-decoration: underline,
|
|
163
164
|
text-underline-offset: var(--spacing-4),
|
|
164
165
|
),
|
|
166
|
+
active: (
|
|
167
|
+
color: var(--color-brand-darken-3),
|
|
168
|
+
),
|
|
165
169
|
),
|
|
166
170
|
),
|
|
167
171
|
static-light: (
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
$vv-nav: (
|
|
2
2
|
--nav-item-padding: var(--spacing-xs) var(--spacing-sm),
|
|
3
|
+
display: flex,
|
|
3
4
|
element: (
|
|
4
5
|
menu: (
|
|
5
6
|
_alias: 'ul',
|
|
@@ -23,19 +24,13 @@ $vv-nav: (
|
|
|
23
24
|
align-items: center,
|
|
24
25
|
will-change: background-color color,
|
|
25
26
|
transition: all 0.3s ease-in-out,
|
|
26
|
-
border-radius: var(--rounded-md),
|
|
27
27
|
color: var(--color-word-3),
|
|
28
28
|
[padding]: var(--nav-item-padding),
|
|
29
29
|
state: (
|
|
30
30
|
hover: (
|
|
31
|
-
background-color: var(--color-surface-2),
|
|
32
31
|
color: var(--color-word-1),
|
|
33
32
|
),
|
|
34
|
-
active: (
|
|
35
|
-
background-color: var(--color-surface-3),
|
|
36
|
-
),
|
|
37
33
|
current: (
|
|
38
|
-
background-color: var(--color-surface-2),
|
|
39
34
|
color: var(--color-word-1),
|
|
40
35
|
),
|
|
41
36
|
),
|
|
@@ -49,16 +44,28 @@ $vv-nav: (
|
|
|
49
44
|
),
|
|
50
45
|
),
|
|
51
46
|
modifier: (
|
|
52
|
-
|
|
53
|
-
font-size:
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
sidebar: (
|
|
48
|
+
font-size: var(--text-14),
|
|
49
|
+
element: (
|
|
50
|
+
item-label: (
|
|
51
|
+
border-radius: var(--rounded-md),
|
|
52
|
+
state: (
|
|
53
|
+
hover: (
|
|
54
|
+
background-color: var(--color-surface-2),
|
|
55
|
+
),
|
|
56
|
+
active: (
|
|
57
|
+
background-color: var(--color-surface-3),
|
|
58
|
+
),
|
|
59
|
+
current: (
|
|
60
|
+
background-color: var(--color-surface-2),
|
|
61
|
+
),
|
|
62
|
+
),
|
|
63
|
+
),
|
|
64
|
+
),
|
|
56
65
|
),
|
|
57
|
-
|
|
66
|
+
aside: (
|
|
58
67
|
--nav-item-padding: var(--spacing-8) var(--spacing-12),
|
|
59
68
|
font-size: var(--text-12),
|
|
60
|
-
display: flex,
|
|
61
|
-
flex-direction: column,
|
|
62
69
|
border-left: var(--border) solid var(--color-surface-3),
|
|
63
70
|
element: (
|
|
64
71
|
heading-label: (
|
|
@@ -72,12 +79,65 @@ $vv-nav: (
|
|
|
72
79
|
hover: (
|
|
73
80
|
border-color: var(--color-brand),
|
|
74
81
|
),
|
|
75
|
-
|
|
82
|
+
current: (
|
|
83
|
+
border-color: var(--color-brand),
|
|
84
|
+
),
|
|
85
|
+
),
|
|
86
|
+
),
|
|
87
|
+
divider: (
|
|
88
|
+
margin-block: var(--spacing-8),
|
|
89
|
+
),
|
|
90
|
+
),
|
|
91
|
+
),
|
|
92
|
+
tabs: (
|
|
93
|
+
element: (
|
|
94
|
+
menu: (
|
|
95
|
+
overflow: auto hidden,
|
|
96
|
+
overscroll-behavior-x: contain,
|
|
97
|
+
scroll-behavior: smooth,
|
|
98
|
+
scroll-snap-type: x mandatory,
|
|
99
|
+
flex-direction: row,
|
|
100
|
+
border-bottom: 1px solid var(--color-surface-4),
|
|
101
|
+
scrollbar-width: none,
|
|
102
|
+
pseudo: (
|
|
103
|
+
-webkit-scrollbar: (
|
|
104
|
+
width: 0,
|
|
105
|
+
height: 0,
|
|
106
|
+
),
|
|
107
|
+
),
|
|
108
|
+
),
|
|
109
|
+
item-label: (
|
|
110
|
+
border-bottom: 2px solid transparent,
|
|
111
|
+
margin-bottom: -1px,
|
|
112
|
+
white-space: nowrap,
|
|
113
|
+
state: (
|
|
114
|
+
hover: (
|
|
115
|
+
color: var(--color-brand),
|
|
116
|
+
),
|
|
117
|
+
current: (
|
|
118
|
+
color: var(--color-brand),
|
|
76
119
|
border-color: var(--color-brand),
|
|
120
|
+
background-color:
|
|
121
|
+
hsla(
|
|
122
|
+
var(--color-brand-hue)
|
|
123
|
+
var(--color-brand-saturation)
|
|
124
|
+
var(--color-brand-lightness) / 5%
|
|
125
|
+
),
|
|
77
126
|
),
|
|
78
127
|
),
|
|
79
128
|
),
|
|
80
129
|
),
|
|
81
130
|
),
|
|
131
|
+
full: (
|
|
132
|
+
element: (
|
|
133
|
+
item: (
|
|
134
|
+
flex: 1 1 0%,
|
|
135
|
+
),
|
|
136
|
+
item-label: (
|
|
137
|
+
display: block,
|
|
138
|
+
text-align: center,
|
|
139
|
+
),
|
|
140
|
+
),
|
|
141
|
+
),
|
|
82
142
|
),
|
|
83
143
|
) !default;
|
|
@@ -12,6 +12,26 @@ $vv-text: (
|
|
|
12
12
|
copy: (
|
|
13
13
|
margin-block: var(--spacing-16),
|
|
14
14
|
),
|
|
15
|
+
link: (
|
|
16
|
+
color: var(--color-brand),
|
|
17
|
+
state: (
|
|
18
|
+
focus-visible: (
|
|
19
|
+
outline: var(--spacing-px) solid var(--color-brand),
|
|
20
|
+
outline-offset: var(--spacing-4),
|
|
21
|
+
),
|
|
22
|
+
hover: (
|
|
23
|
+
text-decoration: underline,
|
|
24
|
+
text-underline-offset: var(--spacing-4),
|
|
25
|
+
),
|
|
26
|
+
active: (
|
|
27
|
+
color: var(--color-brand-darken-3),
|
|
28
|
+
),
|
|
29
|
+
disabled: (
|
|
30
|
+
opacity: 0.5,
|
|
31
|
+
cursor: not-allowed,
|
|
32
|
+
),
|
|
33
|
+
),
|
|
34
|
+
),
|
|
15
35
|
quote: (
|
|
16
36
|
font-family: var(--font-serif),
|
|
17
37
|
border-left: var(--spacing-4) solid var(--color-surface-3),
|