@volverjs/style 0.1.2-beta.19 → 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-nav.css +1 -1
- package/dist/components/vv-tab.css +1 -0
- package/dist/components/vv-tooltip.css +1 -1
- package/dist/components.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +3 -1
- package/src/_config.scss +1 -0
- package/src/components/index.scss +1 -0
- package/src/components/vv-tab.scss +12 -0
- package/src/components/vv-tooltip.scss +3 -1
- package/src/settings/_index.scss +1 -0
- package/src/settings/components/_vv-accordion.scss +26 -27
- package/src/settings/components/_vv-nav.scss +17 -0
- package/src/settings/components/_vv-tab.scss +16 -0
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,
|
|
@@ -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
|
+
);
|
package/src/settings/_index.scss
CHANGED
|
@@ -1,11 +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
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
|
+
),
|
|
9
23
|
element: (
|
|
10
24
|
summary: (
|
|
11
25
|
_alias: '> summary',
|
|
@@ -23,6 +37,7 @@ $vv-accordion: (
|
|
|
23
37
|
will-change: background-color,
|
|
24
38
|
transition: background-color 0.3s ease-in-out,
|
|
25
39
|
font-size: var(--text-sm),
|
|
40
|
+
border-radius: var(--rounded-lg),
|
|
26
41
|
pseudo: (
|
|
27
42
|
before: (
|
|
28
43
|
display: block,
|
|
@@ -46,6 +61,11 @@ $vv-accordion: (
|
|
|
46
61
|
display: none,
|
|
47
62
|
),
|
|
48
63
|
),
|
|
64
|
+
state: (
|
|
65
|
+
hover: (
|
|
66
|
+
background-color: var(--color-surface-1),
|
|
67
|
+
),
|
|
68
|
+
),
|
|
49
69
|
),
|
|
50
70
|
content: (
|
|
51
71
|
_alias: '> summary + *',
|
|
@@ -54,19 +74,6 @@ $vv-accordion: (
|
|
|
54
74
|
var(--accordion-padding-right),
|
|
55
75
|
),
|
|
56
76
|
),
|
|
57
|
-
state: (
|
|
58
|
-
open: (
|
|
59
|
-
element: (
|
|
60
|
-
summary: (
|
|
61
|
-
pseudo: (
|
|
62
|
-
before: (
|
|
63
|
-
transform: rotate(0),
|
|
64
|
-
),
|
|
65
|
-
),
|
|
66
|
-
),
|
|
67
|
-
),
|
|
68
|
-
),
|
|
69
|
-
),
|
|
70
77
|
modifier: (
|
|
71
78
|
marker-right: (
|
|
72
79
|
element: (
|
|
@@ -107,20 +114,12 @@ $vv-accordion: (
|
|
|
107
114
|
--accordion-padding-left: var(--spacing-xs),
|
|
108
115
|
border: var(--border) solid var(--color-surface-4),
|
|
109
116
|
border-radius: var(--rounded-lg),
|
|
110
|
-
element: (
|
|
111
|
-
summary: (
|
|
112
|
-
state: (
|
|
113
|
-
hover: (
|
|
114
|
-
background-color: var(--color-surface-1),
|
|
115
|
-
),
|
|
116
|
-
),
|
|
117
|
-
),
|
|
118
|
-
),
|
|
119
117
|
state: (
|
|
120
118
|
open: (
|
|
121
119
|
element: (
|
|
122
120
|
summary: (
|
|
123
|
-
|
|
121
|
+
border-bottom-right-radius: 0,
|
|
122
|
+
border-bottom-left-radius: 0,
|
|
124
123
|
),
|
|
125
124
|
),
|
|
126
125
|
),
|
|
@@ -117,10 +117,27 @@ $vv-nav: (
|
|
|
117
117
|
current: (
|
|
118
118
|
color: var(--color-brand),
|
|
119
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
|
+
),
|
|
120
126
|
),
|
|
121
127
|
),
|
|
122
128
|
),
|
|
123
129
|
),
|
|
124
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
|
+
),
|
|
125
142
|
),
|
|
126
143
|
) !default;
|