@volverjs/style 0.1.3 → 0.1.5
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 +6 -0
- package/dist/components/vv-button.css +1 -1
- package/dist/components/vv-input-text.css +1 -1
- package/dist/components/vv-select.css +1 -1
- package/dist/components/vv-textarea.css +1 -1
- package/dist/components.css +1 -1
- package/dist/export.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/tables.css +1 -1
- package/dist/utilities/transforms.css +1 -1
- package/dist/utilities.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +71 -63
- package/src/components/vv-button.scss +7 -1
- package/src/reset.scss +14 -2
- package/src/settings/_spacing.scss +4 -0
- package/src/settings/components/_vv-button.scss +16 -13
- package/src/settings/components/_vv-input-text.scss +1 -3
- package/src/settings/components/_vv-select.scss +2 -1
- package/src/settings/components/_vv-textarea.scss +2 -1
- package/src/utilities/tables.scss +4 -2
- package/src/utilities/transforms.scss +13 -11
package/package.json
CHANGED
|
@@ -1,18 +1,84 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volverjs/style",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
3
|
+
"description": "@volverjs/style is a lightweight responsive CSS utility library to accompany @volverjs/ui-* and static webpages as well.",
|
|
4
|
+
"author": "24/Consulting",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"css",
|
|
8
|
+
"scss",
|
|
9
|
+
"design-system",
|
|
10
|
+
"volver",
|
|
11
|
+
"volverjs",
|
|
12
|
+
"css custom properties",
|
|
13
|
+
"css variables",
|
|
14
|
+
"utility classes",
|
|
15
|
+
"design tokens",
|
|
16
|
+
"responsive",
|
|
17
|
+
"components library"
|
|
18
|
+
],
|
|
19
|
+
"homepage": "https://volverjs.github.io/style",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/volverjs/style"
|
|
23
|
+
},
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/volverjs/style/issues"
|
|
26
|
+
},
|
|
27
|
+
"version": "0.1.5",
|
|
8
28
|
"engines": {
|
|
9
29
|
"node": ">= 12.x"
|
|
10
30
|
},
|
|
11
31
|
"packageManager": "pnpm@7.8.0",
|
|
32
|
+
"type": "module",
|
|
33
|
+
"main": "dist/style.css",
|
|
34
|
+
"style": "dist/style.css",
|
|
12
35
|
"files": [
|
|
13
36
|
"src/*",
|
|
14
37
|
"dist/*"
|
|
15
38
|
],
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@iconify/vue": "^4.0.2",
|
|
41
|
+
"@vitejs/plugin-vue": "^4.0.0",
|
|
42
|
+
"@vueuse/core": "^9.11.0",
|
|
43
|
+
"@vueuse/head": "^1.0.22",
|
|
44
|
+
"eslint": "^8.32.0",
|
|
45
|
+
"eslint-config-prettier": "^8.6.0",
|
|
46
|
+
"eslint-plugin-vue": "^9.9.0",
|
|
47
|
+
"glob": "^8.1.0",
|
|
48
|
+
"icss-utils": "^5.1.0",
|
|
49
|
+
"markdown-it-anchor": "^8.6.6",
|
|
50
|
+
"markdown-it-prism": "^2.3.0",
|
|
51
|
+
"postcss": "^8.4.21",
|
|
52
|
+
"postcss-html": "^1.5.0",
|
|
53
|
+
"postcss-preset-env": "^7.8.3",
|
|
54
|
+
"prism-themes": "^1.9.0",
|
|
55
|
+
"prismjs": "1.29.0",
|
|
56
|
+
"remark": "^14.0.2",
|
|
57
|
+
"remark-frontmatter": "^4.0.1",
|
|
58
|
+
"remark-gfm": "^3.0.1",
|
|
59
|
+
"remark-lint": "^9.1.1",
|
|
60
|
+
"sass": "^1.57.1",
|
|
61
|
+
"stylelint": "^14.16.1",
|
|
62
|
+
"stylelint-config-prettier": "^9.0.4",
|
|
63
|
+
"stylelint-config-recommended-scss": "^8.0.0",
|
|
64
|
+
"stylelint-config-recommended-vue": "^1.4.0",
|
|
65
|
+
"stylelint-config-standard-scss": "^6.1.0",
|
|
66
|
+
"unplugin-auto-import": "^0.12.1",
|
|
67
|
+
"unplugin-vue-components": "^0.22.12",
|
|
68
|
+
"vite": "^4.0.4",
|
|
69
|
+
"vite-plugin-css-export": "^1.2.1",
|
|
70
|
+
"vite-plugin-eslint": "^1.8.1",
|
|
71
|
+
"vite-plugin-handlebars": "^1.6.0",
|
|
72
|
+
"vite-plugin-markdown": "^2.1.0",
|
|
73
|
+
"vite-plugin-pages": "^0.28.0",
|
|
74
|
+
"vite-plugin-stylelint": "^4.1.6",
|
|
75
|
+
"vite-plugin-vue-layouts": "^0.7.0",
|
|
76
|
+
"vite-ssg": "^0.22.1",
|
|
77
|
+
"vite-ssg-sitemap": "^0.4.3",
|
|
78
|
+
"vue": "^3.2.45",
|
|
79
|
+
"vue-live": "2.3.2",
|
|
80
|
+
"vue-router": "^4.1.6"
|
|
81
|
+
},
|
|
16
82
|
"exports": {
|
|
17
83
|
".": "./dist/volver.css",
|
|
18
84
|
"./scss/context": "./src/_context.scss",
|
|
@@ -147,64 +213,6 @@
|
|
|
147
213
|
"./scss/utilities/typography": "./src/utilities/typography.scss",
|
|
148
214
|
"./scss": "./src/volver.scss"
|
|
149
215
|
},
|
|
150
|
-
"repository": {
|
|
151
|
-
"type": "git",
|
|
152
|
-
"url": "https://github.com/volverjs/style"
|
|
153
|
-
},
|
|
154
|
-
"keywords": [
|
|
155
|
-
"css",
|
|
156
|
-
"design-system",
|
|
157
|
-
"volverjs"
|
|
158
|
-
],
|
|
159
|
-
"author": "24/Consulting",
|
|
160
|
-
"license": "MIT",
|
|
161
|
-
"bugs": {
|
|
162
|
-
"url": "https://github.com/volverjs/style/issues"
|
|
163
|
-
},
|
|
164
|
-
"homepage": "https://github.com/volverjs/style#readme",
|
|
165
|
-
"devDependencies": {
|
|
166
|
-
"@iconify/vue": "^4.0.2",
|
|
167
|
-
"@vitejs/plugin-vue": "^4.0.0",
|
|
168
|
-
"@vueuse/core": "^9.10.0",
|
|
169
|
-
"@vueuse/head": "^1.0.22",
|
|
170
|
-
"eslint": "^8.31.0",
|
|
171
|
-
"eslint-config-prettier": "^8.6.0",
|
|
172
|
-
"eslint-plugin-vue": "^9.8.0",
|
|
173
|
-
"glob": "^8.0.3",
|
|
174
|
-
"icss-utils": "^5.1.0",
|
|
175
|
-
"markdown-it-anchor": "^8.6.6",
|
|
176
|
-
"markdown-it-prism": "^2.3.0",
|
|
177
|
-
"postcss": "^8.4.21",
|
|
178
|
-
"postcss-html": "^1.5.0",
|
|
179
|
-
"postcss-preset-env": "^7.8.3",
|
|
180
|
-
"prism-themes": "^1.9.0",
|
|
181
|
-
"prismjs": "1.29.0",
|
|
182
|
-
"remark": "^14.0.2",
|
|
183
|
-
"remark-frontmatter": "^4.0.1",
|
|
184
|
-
"remark-gfm": "^3.0.1",
|
|
185
|
-
"remark-lint": "^9.1.1",
|
|
186
|
-
"sass": "^1.57.1",
|
|
187
|
-
"stylelint": "^14.16.1",
|
|
188
|
-
"stylelint-config-prettier": "^9.0.4",
|
|
189
|
-
"stylelint-config-recommended-scss": "^8.0.0",
|
|
190
|
-
"stylelint-config-recommended-vue": "^1.4.0",
|
|
191
|
-
"stylelint-config-standard-scss": "^6.1.0",
|
|
192
|
-
"unplugin-auto-import": "^0.12.1",
|
|
193
|
-
"unplugin-vue-components": "^0.22.12",
|
|
194
|
-
"vite": "^4.0.4",
|
|
195
|
-
"vite-plugin-css-export": "^1.2.1",
|
|
196
|
-
"vite-plugin-eslint": "^1.8.1",
|
|
197
|
-
"vite-plugin-handlebars": "^1.6.0",
|
|
198
|
-
"vite-plugin-markdown": "^2.1.0",
|
|
199
|
-
"vite-plugin-pages": "^0.28.0",
|
|
200
|
-
"vite-plugin-stylelint": "^4.1.5",
|
|
201
|
-
"vite-plugin-vue-layouts": "^0.7.0",
|
|
202
|
-
"vite-ssg": "^0.22.1",
|
|
203
|
-
"vite-ssg-sitemap": "^0.4.3",
|
|
204
|
-
"vue": "^3.2.45",
|
|
205
|
-
"vue-live": "2.3.2",
|
|
206
|
-
"vue-router": "^4.1.6"
|
|
207
|
-
},
|
|
208
216
|
"scripts": {
|
|
209
217
|
"dev": "vite --port 3000 --open",
|
|
210
218
|
"build": "node ./scripts/build.js",
|
|
@@ -36,7 +36,13 @@ $component-selector: '.#{ $component-name}';
|
|
|
36
36
|
$selector: $component-selector,
|
|
37
37
|
$enabled: $zero-specificity-for-components
|
|
38
38
|
) {
|
|
39
|
-
&:where(
|
|
39
|
+
&:where(
|
|
40
|
+
a[href],
|
|
41
|
+
button,
|
|
42
|
+
input[type='button'],
|
|
43
|
+
input[type='submit'],
|
|
44
|
+
input[type='reset']
|
|
45
|
+
),
|
|
40
46
|
&::file-selector-button {
|
|
41
47
|
@extend %#{$component-name};
|
|
42
48
|
}
|
package/src/reset.scss
CHANGED
|
@@ -2,8 +2,20 @@
|
|
|
2
2
|
Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
|
|
3
3
|
- The "symbol *" part is to solve Firefox SVG sprite bug
|
|
4
4
|
*/
|
|
5
|
-
*:where(
|
|
6
|
-
|
|
5
|
+
*:where(
|
|
6
|
+
:not(
|
|
7
|
+
html,
|
|
8
|
+
iframe,
|
|
9
|
+
canvas,
|
|
10
|
+
img,
|
|
11
|
+
svg,
|
|
12
|
+
video,
|
|
13
|
+
details,
|
|
14
|
+
summary,
|
|
15
|
+
svg *,
|
|
16
|
+
symbol *
|
|
17
|
+
)
|
|
18
|
+
) {
|
|
7
19
|
all: unset;
|
|
8
20
|
display: revert;
|
|
9
21
|
}
|
|
@@ -5,15 +5,15 @@ $vv-button: (
|
|
|
5
5
|
[line-height]: var(--button-line-height),
|
|
6
6
|
position: relative,
|
|
7
7
|
background: var(--color-brand),
|
|
8
|
-
border-radius:
|
|
8
|
+
border-radius: var(--rounded),
|
|
9
9
|
border-style: solid,
|
|
10
10
|
border-color: var(--color-brand),
|
|
11
11
|
color: var(--color-white),
|
|
12
12
|
font-family: var(--font-sans),
|
|
13
13
|
font-weight: var(--font-semibold),
|
|
14
14
|
gap: 1ch,
|
|
15
|
-
padding-block:
|
|
16
|
-
padding-inline:
|
|
15
|
+
padding-block: var(--spacing-7),
|
|
16
|
+
padding-inline: var(--spacing-16),
|
|
17
17
|
text-shadow: 0 1px 0 var(--color-gray-darken-5),
|
|
18
18
|
transition: var(--transition-all),
|
|
19
19
|
will-change: all,
|
|
@@ -52,6 +52,7 @@ $vv-button: (
|
|
|
52
52
|
flex-shrink: 0,
|
|
53
53
|
stroke-linecap: round,
|
|
54
54
|
stroke-linejoin: round,
|
|
55
|
+
[min-height]: calc(1em * var(--button-line-height)),
|
|
55
56
|
),
|
|
56
57
|
label: (
|
|
57
58
|
white-space: nowrap,
|
|
@@ -61,6 +62,13 @@ $vv-button: (
|
|
|
61
62
|
),
|
|
62
63
|
),
|
|
63
64
|
modifier: (
|
|
65
|
+
icon-only: (
|
|
66
|
+
element: (
|
|
67
|
+
icon: (
|
|
68
|
+
margin-inline: calc(var(--spacing-6) * -1),
|
|
69
|
+
),
|
|
70
|
+
),
|
|
71
|
+
),
|
|
64
72
|
primary: (
|
|
65
73
|
background: var(--color-gray-darken-3),
|
|
66
74
|
border-color: var(--color-gray-darken-3),
|
|
@@ -223,8 +231,8 @@ $vv-button: (
|
|
|
223
231
|
color: var(--color-word-1),
|
|
224
232
|
border-color: var(--color-word-5),
|
|
225
233
|
font-weight: var(--font-normal),
|
|
226
|
-
padding-inline:
|
|
227
|
-
padding-block:
|
|
234
|
+
padding-inline: var(--spacing-6),
|
|
235
|
+
padding-block: var(--spacing-4),
|
|
228
236
|
text-shadow: none,
|
|
229
237
|
state: (
|
|
230
238
|
focus-visible: (
|
|
@@ -258,8 +266,8 @@ $vv-button: (
|
|
|
258
266
|
color: var(--color-word-1),
|
|
259
267
|
border-color: transparent,
|
|
260
268
|
font-weight: var(--font-normal),
|
|
261
|
-
padding-inline:
|
|
262
|
-
padding-block:
|
|
269
|
+
padding-inline: var(--spacing-6),
|
|
270
|
+
padding-block: var(--spacing-4),
|
|
263
271
|
text-shadow: none,
|
|
264
272
|
state: (
|
|
265
273
|
focus-visible: (
|
|
@@ -290,11 +298,6 @@ $vv-button: (
|
|
|
290
298
|
),
|
|
291
299
|
rounded: (
|
|
292
300
|
border-radius: var(--rounded-full),
|
|
293
|
-
element: (
|
|
294
|
-
icon: (
|
|
295
|
-
margin: 0 -1ch,
|
|
296
|
-
),
|
|
297
|
-
),
|
|
298
301
|
),
|
|
299
302
|
block: (
|
|
300
303
|
display: block,
|
|
@@ -310,7 +313,7 @@ $vv-button: (
|
|
|
310
313
|
),
|
|
311
314
|
column: (
|
|
312
315
|
flex-direction: column,
|
|
313
|
-
gap:
|
|
316
|
+
gap: var(--spacing-2),
|
|
314
317
|
),
|
|
315
318
|
full-bleed: (
|
|
316
319
|
min-width: 20ch,
|
|
@@ -27,7 +27,7 @@ $vv-input-text: (
|
|
|
27
27
|
background-color: var(--input-background-color),
|
|
28
28
|
will-change: background-color,
|
|
29
29
|
transition: var(--transition-colors),
|
|
30
|
-
min-height: var(--
|
|
30
|
+
min-height: var(--input-min-height),
|
|
31
31
|
pseudo: (
|
|
32
32
|
before: (
|
|
33
33
|
position: absolute,
|
|
@@ -280,8 +280,6 @@ $vv-input-text: (
|
|
|
280
280
|
label: (
|
|
281
281
|
position: absolute,
|
|
282
282
|
z-index: 1,
|
|
283
|
-
display: flex,
|
|
284
|
-
align-items: center,
|
|
285
283
|
min-height: var(--input-min-height),
|
|
286
284
|
pointer-events: none,
|
|
287
285
|
font-size: inherit,
|
|
@@ -79,7 +79,7 @@ $vv-select: (
|
|
|
79
79
|
background-repeat: no-repeat,
|
|
80
80
|
[background-position]: right var(--input-spacing-right) center,
|
|
81
81
|
background-size: 1em,
|
|
82
|
-
min-height: var(--
|
|
82
|
+
min-height: var(--input-min-height),
|
|
83
83
|
state: (
|
|
84
84
|
disabled: (
|
|
85
85
|
cursor: not-allowed,
|
|
@@ -201,6 +201,7 @@ $vv-select: (
|
|
|
201
201
|
label: (
|
|
202
202
|
position: absolute,
|
|
203
203
|
z-index: 1,
|
|
204
|
+
min-height: var(--input-min-height),
|
|
204
205
|
pointer-events: none,
|
|
205
206
|
font-size: inherit,
|
|
206
207
|
[padding-top]: var(--input-spacing-top),
|
|
@@ -34,7 +34,7 @@ $vv-textarea: (
|
|
|
34
34
|
background-color: var(--input-background-color),
|
|
35
35
|
will-change: background-color,
|
|
36
36
|
transition: var(--transition-colors),
|
|
37
|
-
min-height: var(--
|
|
37
|
+
min-height: var(--input-min-height),
|
|
38
38
|
pseudo: (
|
|
39
39
|
before: (
|
|
40
40
|
position: absolute,
|
|
@@ -210,6 +210,7 @@ $vv-textarea: (
|
|
|
210
210
|
label: (
|
|
211
211
|
position: absolute,
|
|
212
212
|
z-index: 1,
|
|
213
|
+
min-height: var(--input-min-height),
|
|
213
214
|
pointer-events: none,
|
|
214
215
|
font-size: inherit,
|
|
215
216
|
[padding-top]: var(--input-spacing-top),
|
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
@include spread-map-into-utilities(
|
|
5
5
|
$map: $border-collapse,
|
|
6
6
|
$class: border,
|
|
7
|
-
$attribute: border-collapse
|
|
7
|
+
$attribute: border-collapse,
|
|
8
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
8
9
|
);
|
|
9
10
|
|
|
10
11
|
// table-layout
|
|
11
12
|
@include spread-map-into-utilities(
|
|
12
13
|
$map: $table-layout,
|
|
13
14
|
$class: table,
|
|
14
|
-
$attribute: table-layout
|
|
15
|
+
$attribute: table-layout,
|
|
16
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
15
17
|
);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
transform: scale(#{$value});
|
|
7
7
|
}
|
|
8
8
|
@include wrap-with-where(
|
|
9
|
-
$selector: 'scale-#{$size}',
|
|
9
|
+
$selector: '.scale-#{$size}',
|
|
10
10
|
$enabled: $zero-specificity-for-utilities
|
|
11
11
|
) {
|
|
12
12
|
@extend %scale-#{$size};
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
transform: scaleX(#{$value});
|
|
17
17
|
}
|
|
18
18
|
@include wrap-with-where(
|
|
19
|
-
$selector: 'scale-x-#{$size}',
|
|
19
|
+
$selector: '.scale-x-#{$size}',
|
|
20
20
|
$enabled: $zero-specificity-for-utilities
|
|
21
21
|
) {
|
|
22
22
|
@extend %scale-x-#{$size};
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
transform: scaleY(#{$value});
|
|
27
27
|
}
|
|
28
28
|
@include wrap-with-where(
|
|
29
|
-
$selector: 'scale-y-#{$size}',
|
|
29
|
+
$selector: '.scale-y-#{$size}',
|
|
30
30
|
$enabled: $zero-specificity-for-utilities
|
|
31
31
|
) {
|
|
32
32
|
@extend %scale-y-#{$size};
|
|
@@ -37,14 +37,16 @@
|
|
|
37
37
|
@include spread-map-into-utilities(
|
|
38
38
|
$map: $rotate,
|
|
39
39
|
$class: rotate,
|
|
40
|
-
$attribute: transform
|
|
40
|
+
$attribute: transform,
|
|
41
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
41
42
|
);
|
|
42
43
|
|
|
43
44
|
// transform-origin
|
|
44
45
|
@include spread-map-into-utilities(
|
|
45
46
|
$map: $transform-origin,
|
|
46
47
|
$class: origin,
|
|
47
|
-
$attribute: transform-origin
|
|
48
|
+
$attribute: transform-origin,
|
|
49
|
+
$zero-specificity: $zero-specificity-for-utilities
|
|
48
50
|
);
|
|
49
51
|
|
|
50
52
|
// translate
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
transform: translate(#{$value});
|
|
54
56
|
}
|
|
55
57
|
@include wrap-with-where(
|
|
56
|
-
$selector: 'translate-#{$size}',
|
|
58
|
+
$selector: '.translate-#{$size}',
|
|
57
59
|
$enabled: $zero-specificity-for-utilities
|
|
58
60
|
) {
|
|
59
61
|
@extend %translate-#{$size};
|
|
@@ -63,7 +65,7 @@
|
|
|
63
65
|
transform: translateX(#{$value});
|
|
64
66
|
}
|
|
65
67
|
@include wrap-with-where(
|
|
66
|
-
$selector: 'translate-x-#{$size}',
|
|
68
|
+
$selector: '.translate-x-#{$size}',
|
|
67
69
|
$enabled: $zero-specificity-for-utilities
|
|
68
70
|
) {
|
|
69
71
|
@extend %translate-x-#{$size};
|
|
@@ -73,7 +75,7 @@
|
|
|
73
75
|
transform: translateY(#{$value});
|
|
74
76
|
}
|
|
75
77
|
@include wrap-with-where(
|
|
76
|
-
$selector: 'translate-y-#{$size}',
|
|
78
|
+
$selector: '.translate-y-#{$size}',
|
|
77
79
|
$enabled: $zero-specificity-for-utilities
|
|
78
80
|
) {
|
|
79
81
|
@extend %translate-y-#{$size};
|
|
@@ -83,7 +85,7 @@
|
|
|
83
85
|
transform: translate(-#{$value});
|
|
84
86
|
}
|
|
85
87
|
@include wrap-with-where(
|
|
86
|
-
$selector: '
|
|
88
|
+
$selector: '.-translate-#{$size}',
|
|
87
89
|
$enabled: $zero-specificity-for-utilities
|
|
88
90
|
) {
|
|
89
91
|
@extend %-translate-#{$size};
|
|
@@ -93,7 +95,7 @@
|
|
|
93
95
|
transform: translateX(-#{$value});
|
|
94
96
|
}
|
|
95
97
|
@include wrap-with-where(
|
|
96
|
-
$selector: '
|
|
98
|
+
$selector: '.-translate-x-#{$size}',
|
|
97
99
|
$enabled: $zero-specificity-for-utilities
|
|
98
100
|
) {
|
|
99
101
|
@extend %-translate-x-#{$size};
|
|
@@ -103,7 +105,7 @@
|
|
|
103
105
|
transform: translateY(-#{$value});
|
|
104
106
|
}
|
|
105
107
|
@include wrap-with-where(
|
|
106
|
-
$selector: '
|
|
108
|
+
$selector: '.-translate-y-#{$size}',
|
|
107
109
|
$enabled: $zero-specificity-for-utilities
|
|
108
110
|
) {
|
|
109
111
|
@extend %-translate-y-#{$size};
|