@volverjs/style 0.1.2-beta.5 → 0.1.2-beta.7
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/assets/vv-nav.3896d2c7.js +1 -0
- package/dist/components/vv-accordion.css +1 -0
- package/dist/components/vv-badge.css +1 -1
- package/dist/components/vv-breadcrumb.css +1 -0
- 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-input-checkbox.css +1 -1
- package/dist/components/vv-input-radio.css +1 -1
- package/dist/components.css +1 -1
- package/dist/reset.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +13 -9
- package/src/_config.scss +3 -1
- package/src/components/index.scss +3 -1
- package/src/components/vv-accordion.scss +12 -0
- package/src/components/vv-breadcrumb.scss +12 -0
- package/src/components/vv-button-group.scss +4 -8
- package/src/components/{vv-collapse.scss → vv-nav.scss} +2 -2
- package/src/reset.scss +1 -1
- package/src/settings/_index.scss +3 -1
- package/src/settings/components/_vv-accordion.scss +128 -0
- package/src/settings/components/_vv-badge.scss +21 -9
- package/src/settings/components/_vv-breadcrumb.scss +85 -0
- package/src/settings/components/_vv-button.scss +78 -4
- package/src/settings/components/_vv-card.scss +2 -1
- package/src/settings/components/_vv-input-checkbox.scss +1 -0
- package/src/settings/components/_vv-input-radio.scss +1 -0
- package/src/settings/components/_vv-nav.scss +1 -0
- package/src/tools/_mixins.scss +10 -5
- package/dist/components/vv-collapse.css +0 -1
- package/src/settings/components/_vv-collapse.scss +0 -111
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.7",
|
|
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",
|
|
@@ -17,16 +17,18 @@
|
|
|
17
17
|
".": "./dist/style",
|
|
18
18
|
"./components": "./dist/components",
|
|
19
19
|
"./scss/components": "./src/components/index",
|
|
20
|
+
"./components/vv-accordion": "./dist/components/vv-accordion",
|
|
21
|
+
"./scss/components/vv-accordion": "./src/components/vv-accordion",
|
|
20
22
|
"./components/vv-badge": "./dist/components/vv-badge",
|
|
21
23
|
"./scss/components/vv-badge": "./src/components/vv-badge",
|
|
24
|
+
"./components/vv-breadcrumb": "./dist/components/vv-breadcrumb",
|
|
25
|
+
"./scss/components/vv-breadcrumb": "./src/components/vv-breadcrumb",
|
|
22
26
|
"./components/vv-button-group": "./dist/components/vv-button-group",
|
|
23
27
|
"./scss/components/vv-button-group": "./src/components/vv-button-group",
|
|
24
28
|
"./components/vv-button": "./dist/components/vv-button",
|
|
25
29
|
"./scss/components/vv-button": "./src/components/vv-button",
|
|
26
30
|
"./components/vv-card": "./dist/components/vv-card",
|
|
27
31
|
"./scss/components/vv-card": "./src/components/vv-card",
|
|
28
|
-
"./components/vv-collapse": "./dist/components/vv-collapse",
|
|
29
|
-
"./scss/components/vv-collapse": "./src/components/vv-collapse",
|
|
30
32
|
"./components/vv-dialog": "./dist/components/vv-dialog",
|
|
31
33
|
"./scss/components/vv-dialog": "./src/components/vv-dialog",
|
|
32
34
|
"./components/vv-dropdown": "./dist/components/vv-dropdown",
|
|
@@ -41,6 +43,8 @@
|
|
|
41
43
|
"./scss/components/vv-input-radio": "./src/components/vv-input-radio",
|
|
42
44
|
"./components/vv-input-text": "./dist/components/vv-input-text",
|
|
43
45
|
"./scss/components/vv-input-text": "./src/components/vv-input-text",
|
|
46
|
+
"./components/vv-nav": "./dist/components/vv-nav",
|
|
47
|
+
"./scss/components/vv-nav": "./src/components/vv-nav",
|
|
44
48
|
"./components/vv-progress": "./dist/components/vv-progress",
|
|
45
49
|
"./scss/components/vv-progress": "./src/components/vv-progress",
|
|
46
50
|
"./components/vv-select": "./dist/components/vv-select",
|
|
@@ -134,20 +138,20 @@
|
|
|
134
138
|
"homepage": "https://github.com/volverjs/style#readme",
|
|
135
139
|
"devDependencies": {
|
|
136
140
|
"eslint-config-prettier": "^8.5.0",
|
|
137
|
-
"eslint": "^8.
|
|
141
|
+
"eslint": "^8.26.0",
|
|
138
142
|
"glob": "^8.0.3",
|
|
139
143
|
"icss-utils": "^5.1.0",
|
|
140
144
|
"postcss-preset-env": "^7.8.2",
|
|
141
145
|
"postcss": "^8.4.18",
|
|
142
|
-
"promise": "^8.
|
|
146
|
+
"promise": "^8.3.0",
|
|
143
147
|
"sass": "^1.55.0",
|
|
144
148
|
"stylelint-config-prettier": "^9.0.3",
|
|
145
|
-
"stylelint-config-standard-scss": "^
|
|
146
|
-
"stylelint": "^14.
|
|
149
|
+
"stylelint-config-standard-scss": "^6.0.0",
|
|
150
|
+
"stylelint": "^14.14.0",
|
|
147
151
|
"vite-plugin-eslint": "^1.8.1",
|
|
148
152
|
"vite-plugin-handlebars": "^1.6.0",
|
|
149
|
-
"vite-plugin-stylelint": "^3.0.
|
|
150
|
-
"vite": "^3.
|
|
153
|
+
"vite-plugin-stylelint": "^3.0.8",
|
|
154
|
+
"vite": "^3.2.0"
|
|
151
155
|
},
|
|
152
156
|
"scripts": {
|
|
153
157
|
"dev": "vite --port 3000 --open",
|
package/src/_config.scss
CHANGED
|
@@ -13,10 +13,11 @@ $components-prefix: vv !default;
|
|
|
13
13
|
// components names
|
|
14
14
|
$components-names: (
|
|
15
15
|
vv-badge: $components-prefix + -badge,
|
|
16
|
+
vv-breadcrumb: $components-prefix + -breadcrumb,
|
|
16
17
|
vv-button: $components-prefix + -button,
|
|
17
18
|
vv-button-group: $components-prefix + -button-group,
|
|
18
19
|
vv-progress: $components-prefix + -progress,
|
|
19
|
-
vv-
|
|
20
|
+
vv-accordion: $components-prefix + -accordion,
|
|
20
21
|
vv-dialog: $components-prefix + -dialog,
|
|
21
22
|
vv-dropdown: $components-prefix + -dropdown,
|
|
22
23
|
vv-input-checkbox: $components-prefix + -input-checkbox,
|
|
@@ -24,6 +25,7 @@ $components-names: (
|
|
|
24
25
|
vv-input-radio: $components-prefix + -input-radio,
|
|
25
26
|
vv-input-radio-group: $components-prefix + -input-radio-group,
|
|
26
27
|
vv-input-text: $components-prefix + -input-text,
|
|
28
|
+
vv-nav: $components-prefix + -nav,
|
|
27
29
|
vv-textarea: $components-prefix + -textarea,
|
|
28
30
|
vv-select: $components-prefix + -select,
|
|
29
31
|
vv-table: $components-prefix + -table,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
@import 'vv-badge';
|
|
2
|
+
@import 'vv-breadcrumb';
|
|
2
3
|
@import 'vv-button';
|
|
3
4
|
@import 'vv-button-group';
|
|
4
5
|
@import 'vv-progress';
|
|
5
|
-
@import 'vv-
|
|
6
|
+
@import 'vv-accordion';
|
|
6
7
|
@import 'vv-dialog';
|
|
7
8
|
@import 'vv-dropdown';
|
|
8
9
|
@import 'vv-input-checkbox';
|
|
@@ -10,6 +11,7 @@
|
|
|
10
11
|
@import 'vv-input-radio';
|
|
11
12
|
@import 'vv-input-radio-group';
|
|
12
13
|
@import 'vv-input-text';
|
|
14
|
+
@import 'vv-nav';
|
|
13
15
|
@import 'vv-textarea';
|
|
14
16
|
@import 'vv-select';
|
|
15
17
|
@import 'vv-table';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../context';
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-accordion);
|
|
5
|
+
$component-map: $vv-accordion;
|
|
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
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../context';
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-breadcrumb);
|
|
5
|
+
$component-map: $vv-breadcrumb;
|
|
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
|
+
);
|
|
@@ -64,14 +64,12 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
// clear margin for inner children
|
|
67
|
-
@if map.get($vv-button, 'border-width') {
|
|
67
|
+
@if map.get($vv-button, '--button-border-width') {
|
|
68
68
|
@include wrap-with-where(
|
|
69
69
|
$selector: '&:not(:last-child, :last-child)',
|
|
70
70
|
$enabled: $zero-specificity-for-compoenents
|
|
71
71
|
) {
|
|
72
|
-
margin-block: calc(
|
|
73
|
-
map.get($vv-button, 'border-width') * -1
|
|
74
|
-
);
|
|
72
|
+
margin-block: calc(var(--button-border-width) * -1);
|
|
75
73
|
}
|
|
76
74
|
}
|
|
77
75
|
}
|
|
@@ -99,14 +97,12 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
99
97
|
}
|
|
100
98
|
|
|
101
99
|
// clear margin for inner children
|
|
102
|
-
@if map.get($vv-button, 'border-width') {
|
|
100
|
+
@if map.get($vv-button, '--button-border-width') {
|
|
103
101
|
@include wrap-with-where(
|
|
104
102
|
$selector: '&:not(:last-child, :last-child)',
|
|
105
103
|
$enabled: $zero-specificity-for-compoenents
|
|
106
104
|
) {
|
|
107
|
-
margin-inline: calc(
|
|
108
|
-
map.get($vv-button, 'border-width') * -1
|
|
109
|
-
);
|
|
105
|
+
margin-inline: calc(var(--button-border-width) * -1);
|
|
110
106
|
}
|
|
111
107
|
}
|
|
112
108
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@import '../context';
|
|
3
3
|
|
|
4
|
-
$component-name: map.get($components-names, vv-
|
|
5
|
-
$component-map: $vv-
|
|
4
|
+
$component-name: map.get($components-names, vv-nav);
|
|
5
|
+
$component-map: $vv-nav;
|
|
6
6
|
|
|
7
7
|
@include spread-map-into-bem(
|
|
8
8
|
$map: $component-map,
|
package/src/reset.scss
CHANGED
package/src/settings/_index.scss
CHANGED
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
// components
|
|
18
18
|
@import 'components/vv-badge';
|
|
19
|
+
@import 'components/vv-breadcrumb';
|
|
19
20
|
@import 'components/vv-button';
|
|
20
21
|
@import 'components/vv-button-group';
|
|
21
22
|
@import 'components/vv-progress';
|
|
22
|
-
@import 'components/vv-
|
|
23
|
+
@import 'components/vv-accordion';
|
|
23
24
|
@import 'components/vv-dialog';
|
|
24
25
|
@import 'components/vv-dropdown';
|
|
25
26
|
@import 'components/vv-input-checkbox';
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
@import 'components/vv-input-radio';
|
|
28
29
|
@import 'components/vv-input-radio-group';
|
|
29
30
|
@import 'components/vv-input-text';
|
|
31
|
+
@import 'components/vv-nav';
|
|
30
32
|
@import 'components/vv-textarea';
|
|
31
33
|
@import 'components/vv-select';
|
|
32
34
|
@import 'components/vv-table';
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
$vv-accordion: (
|
|
2
|
+
--accordion-marker-size:
|
|
3
|
+
calc(var(--spacing-sm) + var(--leading-normal) * 1em),
|
|
4
|
+
--accordion-padding-top: 0px,
|
|
5
|
+
--accordion-padding-right: 0px,
|
|
6
|
+
--accordion-padding-bottom: 0px,
|
|
7
|
+
--accordion-padding-left: 0px,
|
|
8
|
+
element: (
|
|
9
|
+
summary: (
|
|
10
|
+
_alias: '> summary',
|
|
11
|
+
position: relative,
|
|
12
|
+
cursor: pointer,
|
|
13
|
+
[padding-top]: var(--accordion-padding-top),
|
|
14
|
+
[padding-right]: var(--accordion-padding-right),
|
|
15
|
+
[padding-bottom]: var(--accordion-padding-bottom),
|
|
16
|
+
[padding-left]:
|
|
17
|
+
calc(
|
|
18
|
+
var(--accordion-padding-left) + var(--accordion-marker-size)
|
|
19
|
+
),
|
|
20
|
+
line-height: var(--leading-normal),
|
|
21
|
+
color: var(--color-word-2),
|
|
22
|
+
will-change: background-color,
|
|
23
|
+
transition: background-color 0.2s ease-in-out,
|
|
24
|
+
font-size: var(--text-sm),
|
|
25
|
+
pseudo: (
|
|
26
|
+
before: (
|
|
27
|
+
display: block,
|
|
28
|
+
position: absolute,
|
|
29
|
+
[top]: var(--accordion-padding-top),
|
|
30
|
+
[left]: var(--accordion-padding-left),
|
|
31
|
+
width: calc(var(--leading-normal) * 1em),
|
|
32
|
+
height: calc(var(--leading-normal) * 1em),
|
|
33
|
+
background-image: var(--bg-chevron),
|
|
34
|
+
background-position: center,
|
|
35
|
+
background-size: 1em,
|
|
36
|
+
background-repeat: no-repeat,
|
|
37
|
+
will-change: transform,
|
|
38
|
+
transition: transform 0.2s ease-in-out,
|
|
39
|
+
transform: rotate(-90deg),
|
|
40
|
+
),
|
|
41
|
+
marker: (
|
|
42
|
+
display: none,
|
|
43
|
+
),
|
|
44
|
+
-webkit-details-marker: (
|
|
45
|
+
display: none,
|
|
46
|
+
),
|
|
47
|
+
),
|
|
48
|
+
),
|
|
49
|
+
content: (
|
|
50
|
+
_alias: '> summary + *',
|
|
51
|
+
padding-block: var(--spacing-sm),
|
|
52
|
+
[padding-inline]: var(--accordion-padding-left)
|
|
53
|
+
var(--accordion-padding-right),
|
|
54
|
+
),
|
|
55
|
+
),
|
|
56
|
+
state: (
|
|
57
|
+
open: (
|
|
58
|
+
element: (
|
|
59
|
+
summary: (
|
|
60
|
+
pseudo: (
|
|
61
|
+
before: (
|
|
62
|
+
transform: rotate(0),
|
|
63
|
+
),
|
|
64
|
+
),
|
|
65
|
+
),
|
|
66
|
+
),
|
|
67
|
+
),
|
|
68
|
+
),
|
|
69
|
+
modifier: (
|
|
70
|
+
marker-right: (
|
|
71
|
+
element: (
|
|
72
|
+
summary: (
|
|
73
|
+
[padding-right]:
|
|
74
|
+
calc(
|
|
75
|
+
var(--accordion-padding-right) +
|
|
76
|
+
var(--accordion-marker-size)
|
|
77
|
+
),
|
|
78
|
+
[padding-left]: var(--accordion-padding-left),
|
|
79
|
+
pseudo: (
|
|
80
|
+
before: (
|
|
81
|
+
left: auto,
|
|
82
|
+
[right]: var(--accordion-padding-right),
|
|
83
|
+
transform: rotate(0def),
|
|
84
|
+
),
|
|
85
|
+
),
|
|
86
|
+
),
|
|
87
|
+
),
|
|
88
|
+
state: (
|
|
89
|
+
open: (
|
|
90
|
+
element: (
|
|
91
|
+
summary: (
|
|
92
|
+
pseudo: (
|
|
93
|
+
before: (
|
|
94
|
+
transform: rotate(-180deg),
|
|
95
|
+
),
|
|
96
|
+
),
|
|
97
|
+
),
|
|
98
|
+
),
|
|
99
|
+
),
|
|
100
|
+
),
|
|
101
|
+
),
|
|
102
|
+
bordered: (
|
|
103
|
+
--accordion-padding-top: var(--spacing-sm),
|
|
104
|
+
--accordion-padding-right: var(--spacing-sm),
|
|
105
|
+
--accordion-padding-bottom: var(--spacing-sm),
|
|
106
|
+
--accordion-padding-left: var(--spacing-sm),
|
|
107
|
+
border-bottom: var(--border) solid var(--color-surface-2),
|
|
108
|
+
element: (
|
|
109
|
+
summary: (
|
|
110
|
+
state: (
|
|
111
|
+
hover: (
|
|
112
|
+
background-color: var(--color-surface-1),
|
|
113
|
+
),
|
|
114
|
+
),
|
|
115
|
+
),
|
|
116
|
+
),
|
|
117
|
+
state: (
|
|
118
|
+
open: (
|
|
119
|
+
element: (
|
|
120
|
+
summary: (
|
|
121
|
+
background-color: var(--color-surface-2),
|
|
122
|
+
),
|
|
123
|
+
),
|
|
124
|
+
),
|
|
125
|
+
),
|
|
126
|
+
),
|
|
127
|
+
),
|
|
128
|
+
) !default;
|
|
@@ -1,27 +1,39 @@
|
|
|
1
1
|
$vv-badge: (
|
|
2
|
-
|
|
2
|
+
--badge-font-size: 0.7em,
|
|
3
|
+
[font-size]: var(--badge-font-size),
|
|
4
|
+
border-radius: 0.5em,
|
|
3
5
|
background: var(--color-brand),
|
|
4
6
|
color: var(--color-white),
|
|
5
|
-
|
|
6
|
-
height:
|
|
7
|
-
min-width:
|
|
8
|
-
padding: 0
|
|
7
|
+
line-height: 2em,
|
|
8
|
+
min-height: 2em,
|
|
9
|
+
min-width: 2em,
|
|
10
|
+
padding: 0 0.5em,
|
|
9
11
|
display: inline-flex,
|
|
10
12
|
justify-content: center,
|
|
11
|
-
|
|
13
|
+
align-items: center,
|
|
14
|
+
gap: 0.5ch,
|
|
15
|
+
white-space: nowrap,
|
|
12
16
|
font-family: var(--font-sans),
|
|
17
|
+
font-weight: var(--font-normal),
|
|
13
18
|
text-shadow: none,
|
|
14
19
|
state: (
|
|
15
20
|
empty: (
|
|
16
21
|
font-size: inherit,
|
|
17
|
-
width: 0.5em,
|
|
18
|
-
height: 0.5em,
|
|
19
22
|
min-width: 0,
|
|
20
|
-
|
|
23
|
+
min-height: 0,
|
|
24
|
+
[width]: var(--badge-font-size),
|
|
25
|
+
[height]: var(--badge-font-size),
|
|
26
|
+
[border-radius]: calc(var(--badge-font-size) * 0.5),
|
|
21
27
|
padding: 0,
|
|
22
28
|
),
|
|
23
29
|
),
|
|
24
30
|
modifier: (
|
|
31
|
+
small: (
|
|
32
|
+
--badge-font-size: 0.6em,
|
|
33
|
+
),
|
|
34
|
+
rounded: (
|
|
35
|
+
border-radius: 1em,
|
|
36
|
+
),
|
|
25
37
|
white: (
|
|
26
38
|
background: alpha-color('white', 80%),
|
|
27
39
|
color: var(--color-black),
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
$vv-breadcrumb: (
|
|
2
|
+
element: (
|
|
3
|
+
list: (
|
|
4
|
+
_alias: '> ol',
|
|
5
|
+
position: relative,
|
|
6
|
+
display: flex,
|
|
7
|
+
flex-wrap: no-wrap,
|
|
8
|
+
list-style: none,
|
|
9
|
+
overflow: auto,
|
|
10
|
+
padding: 0,
|
|
11
|
+
background: var(--color-surface),
|
|
12
|
+
pseudo: (
|
|
13
|
+
after: (
|
|
14
|
+
position: absolute,
|
|
15
|
+
top: 0,
|
|
16
|
+
bottom: 0,
|
|
17
|
+
right: 0,
|
|
18
|
+
display: block,
|
|
19
|
+
width: var(--spacing-sm),
|
|
20
|
+
background:
|
|
21
|
+
linear-gradient(
|
|
22
|
+
45deg,
|
|
23
|
+
transparent,
|
|
24
|
+
var(--color-surface)
|
|
25
|
+
),
|
|
26
|
+
),
|
|
27
|
+
),
|
|
28
|
+
),
|
|
29
|
+
item: (
|
|
30
|
+
_alias: '> ol > li:has(a)',
|
|
31
|
+
display: inline-flex,
|
|
32
|
+
color: var(--color-word-2),
|
|
33
|
+
pseudo: (
|
|
34
|
+
after: (
|
|
35
|
+
display: block,
|
|
36
|
+
margin-inline: 1ch,
|
|
37
|
+
width: calc(var(--leading-normal) * 1em),
|
|
38
|
+
height: calc(var(--leading-normal) * 1em),
|
|
39
|
+
background-image: var(--bg-chevron),
|
|
40
|
+
background-position: center,
|
|
41
|
+
background-size: 1em,
|
|
42
|
+
background-repeat: no-repeat,
|
|
43
|
+
transform: rotate(-90deg),
|
|
44
|
+
),
|
|
45
|
+
),
|
|
46
|
+
),
|
|
47
|
+
item-active: (
|
|
48
|
+
_alias: '> ol > li:not(:has(a))',
|
|
49
|
+
display: inline-flex,
|
|
50
|
+
font-weight: var(--font-bold),
|
|
51
|
+
padding-right: var(--spacing-16),
|
|
52
|
+
),
|
|
53
|
+
link: (
|
|
54
|
+
_alias: '> ol > li > a',
|
|
55
|
+
state: (
|
|
56
|
+
hover: (
|
|
57
|
+
text-decoration: underline,
|
|
58
|
+
),
|
|
59
|
+
focus-within: (
|
|
60
|
+
text-decoration: underline,
|
|
61
|
+
),
|
|
62
|
+
active: (
|
|
63
|
+
color: var(--color-brand-darken-2),
|
|
64
|
+
),
|
|
65
|
+
),
|
|
66
|
+
),
|
|
67
|
+
),
|
|
68
|
+
modifier: (
|
|
69
|
+
multiline: (
|
|
70
|
+
element: (
|
|
71
|
+
list: (
|
|
72
|
+
flex-wrap: wrap,
|
|
73
|
+
),
|
|
74
|
+
item: (
|
|
75
|
+
font-size: var(--text-12),
|
|
76
|
+
),
|
|
77
|
+
item-active: (
|
|
78
|
+
width: 100%,
|
|
79
|
+
font-size: var(--text-18),
|
|
80
|
+
line-height: var(--leading-relaxed),
|
|
81
|
+
),
|
|
82
|
+
),
|
|
83
|
+
),
|
|
84
|
+
),
|
|
85
|
+
) !default;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
$vv-button: (
|
|
2
|
+
--button-border-width: var(--border-2),
|
|
2
3
|
position: relative,
|
|
3
4
|
background: var(--color-brand),
|
|
4
5
|
border-radius: 0.5ch,
|
|
5
|
-
border-width: var(--
|
|
6
|
+
[border-width]: var(--button-border-width),
|
|
6
7
|
border-style: solid,
|
|
7
8
|
border-color: var(--color-brand),
|
|
8
9
|
color: var(--color-white),
|
|
@@ -74,7 +75,6 @@ $vv-button: (
|
|
|
74
75
|
),
|
|
75
76
|
secondary: (
|
|
76
77
|
background: var(--color-white),
|
|
77
|
-
border-width: var(--spacing-2),
|
|
78
78
|
border-style: solid,
|
|
79
79
|
border-color: var(--color-gray-lighten-4),
|
|
80
80
|
color: var(--color-word),
|
|
@@ -130,7 +130,7 @@ $vv-button: (
|
|
|
130
130
|
text: (
|
|
131
131
|
background: transparent,
|
|
132
132
|
border-color: var(--color-word),
|
|
133
|
-
border-width: 0,
|
|
133
|
+
border-width: var(--border-0),
|
|
134
134
|
border-radius: 0,
|
|
135
135
|
padding: 0,
|
|
136
136
|
color: var(--color-word),
|
|
@@ -141,7 +141,8 @@ $vv-button: (
|
|
|
141
141
|
outline: none,
|
|
142
142
|
),
|
|
143
143
|
hover: (
|
|
144
|
-
|
|
144
|
+
text-decoration: underline,
|
|
145
|
+
text-underline-offset: var(--spacing-4),
|
|
145
146
|
),
|
|
146
147
|
),
|
|
147
148
|
),
|
|
@@ -183,6 +184,79 @@ $vv-button: (
|
|
|
183
184
|
),
|
|
184
185
|
),
|
|
185
186
|
),
|
|
187
|
+
action: (
|
|
188
|
+
--button-border-width: var(--border),
|
|
189
|
+
font-size: 0.875em,
|
|
190
|
+
background: var(--color-surface-1),
|
|
191
|
+
color: var(--color-word-1),
|
|
192
|
+
border-color: var(--color-word-5),
|
|
193
|
+
font-weight: var(--font-normal),
|
|
194
|
+
padding-inline: 0.75ch,
|
|
195
|
+
padding-block: 0.5ch,
|
|
196
|
+
line-height: var(--leading-snug),
|
|
197
|
+
text-shadow: none,
|
|
198
|
+
state: (
|
|
199
|
+
focus-visible: (
|
|
200
|
+
outline: var(--spacing-px) solid var(--color-gray-lighten-4),
|
|
201
|
+
),
|
|
202
|
+
hover: (
|
|
203
|
+
background: var(--color-surface-2),
|
|
204
|
+
),
|
|
205
|
+
active: (
|
|
206
|
+
background: var(--color-surface-5),
|
|
207
|
+
),
|
|
208
|
+
selected: (
|
|
209
|
+
color: var(--color-white),
|
|
210
|
+
background: var(--color-gray),
|
|
211
|
+
border-color: var(--color-gray),
|
|
212
|
+
),
|
|
213
|
+
),
|
|
214
|
+
element: (
|
|
215
|
+
icon: (
|
|
216
|
+
margin-inline: -0.125ch,
|
|
217
|
+
block-size: calc(1em * var(--leading-snug)),
|
|
218
|
+
inline-size: calc(1em * var(--leading-snug)),
|
|
219
|
+
),
|
|
220
|
+
),
|
|
221
|
+
),
|
|
222
|
+
action-quiet: (
|
|
223
|
+
--button-border-width: var(--border),
|
|
224
|
+
font-size: var(--text-14),
|
|
225
|
+
background: transparent,
|
|
226
|
+
color: var(--color-word-1),
|
|
227
|
+
border-color: transparent,
|
|
228
|
+
font-weight: var(--font-normal),
|
|
229
|
+
padding-inline: 0.75ch,
|
|
230
|
+
padding-block: 0.5ch,
|
|
231
|
+
line-height: var(--leading-snug),
|
|
232
|
+
text-shadow: none,
|
|
233
|
+
state: (
|
|
234
|
+
focus-visible: (
|
|
235
|
+
outline: var(--spacing-px) solid var(--color-gray-lighten-4),
|
|
236
|
+
outline-offset: 0,
|
|
237
|
+
),
|
|
238
|
+
hover: (
|
|
239
|
+
background: var(--color-surface-2),
|
|
240
|
+
border-color: var(--color-surface-2),
|
|
241
|
+
),
|
|
242
|
+
active: (
|
|
243
|
+
background: var(--color-surface-5),
|
|
244
|
+
border-color: var(--color-surface-5),
|
|
245
|
+
),
|
|
246
|
+
selected: (
|
|
247
|
+
color: var(--color-white),
|
|
248
|
+
background: var(--color-gray),
|
|
249
|
+
border-color: var(--color-gray),
|
|
250
|
+
),
|
|
251
|
+
),
|
|
252
|
+
element: (
|
|
253
|
+
icon: (
|
|
254
|
+
margin-inline: -0.125ch,
|
|
255
|
+
block-size: calc(1em * var(--leading-snug)),
|
|
256
|
+
inline-size: calc(1em * var(--leading-snug)),
|
|
257
|
+
),
|
|
258
|
+
),
|
|
259
|
+
),
|
|
186
260
|
rounded: (
|
|
187
261
|
border-radius: var(--rounded-full),
|
|
188
262
|
element: (
|
|
@@ -29,6 +29,8 @@ $vv-card: (
|
|
|
29
29
|
display: block,
|
|
30
30
|
width: 100%,
|
|
31
31
|
height: auto,
|
|
32
|
+
object-fit: cover,
|
|
33
|
+
object-position: center,
|
|
32
34
|
),
|
|
33
35
|
content: (
|
|
34
36
|
padding: var(--spacing-md),
|
|
@@ -38,7 +40,6 @@ $vv-card: (
|
|
|
38
40
|
),
|
|
39
41
|
footer: (
|
|
40
42
|
_alias: '> footer',
|
|
41
|
-
background-color: var(--color-surface-1),
|
|
42
43
|
border-top: var(--border) solid var(--color-surface-4),
|
|
43
44
|
padding: var(--spacing-md),
|
|
44
45
|
),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$vv-nav: () !default;
|
package/src/tools/_mixins.scss
CHANGED
|
@@ -396,7 +396,8 @@
|
|
|
396
396
|
open,
|
|
397
397
|
close,
|
|
398
398
|
determinate,
|
|
399
|
-
indeterminate
|
|
399
|
+
indeterminate,
|
|
400
|
+
selected
|
|
400
401
|
),
|
|
401
402
|
$state
|
|
402
403
|
)
|
|
@@ -503,7 +504,7 @@
|
|
|
503
504
|
'#{$modifier}#{$alias}:#{$state}'
|
|
504
505
|
);
|
|
505
506
|
}
|
|
506
|
-
} @else {
|
|
507
|
+
} @else if $state != 'selected' {
|
|
507
508
|
$selectors: list.join(
|
|
508
509
|
$selectors,
|
|
509
510
|
'#{$modifier}#{$block-item}:not([disabled]):#{$state}'
|
|
@@ -664,12 +665,14 @@
|
|
|
664
665
|
progress-bar,
|
|
665
666
|
progress-value,
|
|
666
667
|
inner-element,
|
|
668
|
+
marker,
|
|
667
669
|
-webkit-progress-bar,
|
|
668
670
|
-webkit-progress-value,
|
|
669
671
|
-webkit-inner-element,
|
|
670
672
|
-moz-progress-bar,
|
|
671
673
|
-moz-progress-value,
|
|
672
|
-
-moz-inner-element
|
|
674
|
+
-moz-inner-element,
|
|
675
|
+
-webkit-details-marker
|
|
673
676
|
),
|
|
674
677
|
$pseudo-element
|
|
675
678
|
)
|
|
@@ -684,11 +687,12 @@
|
|
|
684
687
|
$pseudo-element
|
|
685
688
|
) {
|
|
686
689
|
@if not $original {
|
|
687
|
-
@if not
|
|
690
|
+
@if not(
|
|
688
691
|
map.has-key(
|
|
689
692
|
$pseudo-map,
|
|
690
693
|
'content'
|
|
691
694
|
)
|
|
695
|
+
)
|
|
692
696
|
{
|
|
693
697
|
content: '';
|
|
694
698
|
}
|
|
@@ -763,7 +767,7 @@
|
|
|
763
767
|
);
|
|
764
768
|
}
|
|
765
769
|
|
|
766
|
-
#{$key}:
|
|
770
|
+
#{$key}: $value;
|
|
767
771
|
}
|
|
768
772
|
}
|
|
769
773
|
}
|
|
@@ -785,6 +789,7 @@
|
|
|
785
789
|
} @else if $enabled {
|
|
786
790
|
$selector: ':where(#{$selector})';
|
|
787
791
|
}
|
|
792
|
+
|
|
788
793
|
#{$selector} {
|
|
789
794
|
@content;
|
|
790
795
|
}
|