@volverjs/style 0.1.2 → 0.1.3
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-group.css +1 -0
- package/dist/components/vv-accordion.css +1 -1
- package/dist/components/vv-button.css +1 -1
- package/dist/components/vv-checkbox.css +1 -1
- package/dist/components/vv-dialog.css +1 -1
- package/dist/components/vv-input-text.css +1 -1
- package/dist/components/vv-radio.css +1 -1
- package/dist/components/vv-select.css +1 -1
- package/dist/components/vv-text.css +1 -1
- package/dist/components/vv-textarea.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/effects.css +1 -1
- package/dist/props.css +1 -1
- package/dist/utilities/layout.css +1 -1
- package/dist/utilities/tables.css +1 -0
- package/dist/utilities/transforms.css +1 -0
- package/dist/utilities.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +8 -2
- package/src/_config.scss +1 -0
- package/src/components/index.scss +1 -0
- package/src/components/vv-accordion-group.scss +13 -0
- package/src/export.scss +49 -0
- package/src/props/effects.scss +1 -0
- package/src/settings/_index.scss +3 -0
- package/src/settings/_layout.scss +12 -0
- package/src/settings/_tables.scss +11 -0
- package/src/settings/_transforms.scss +50 -0
- package/src/settings/components/_vv-accordion-group.scss +5 -0
- package/src/settings/components/_vv-accordion.scss +9 -0
- package/src/settings/components/_vv-button.scss +1 -1
- package/src/settings/components/_vv-checkbox.scss +2 -2
- package/src/settings/components/_vv-dialog.scss +6 -6
- package/src/settings/components/_vv-input-text.scss +7 -7
- package/src/settings/components/_vv-radio.scss +2 -2
- package/src/settings/components/_vv-select.scss +5 -5
- package/src/settings/components/_vv-text.scss +1 -1
- package/src/settings/components/_vv-textarea.scss +4 -4
- package/src/settings/components/_vv-toast.scss +2 -2
- package/src/settings/components/_vv-tooltip.scss +2 -2
- package/src/utilities/index.scss +2 -0
- package/src/utilities/layout.scss +10 -5
- package/src/utilities/tables.scss +15 -0
- package/src/utilities/transforms.scss +111 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volverjs/style",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
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",
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
"./scss/preflight": "./src/_preflight.scss",
|
|
24
24
|
"./components": "./dist/components.css",
|
|
25
25
|
"./scss/components": "./src/components/index.scss",
|
|
26
|
+
"./components/vv-accordion-group": "./dist/components/vv-accordion-group.css",
|
|
27
|
+
"./scss/components/vv-accordion-group": "./src/components/vv-accordion-group.scss",
|
|
26
28
|
"./components/vv-accordion": "./dist/components/vv-accordion.css",
|
|
27
29
|
"./scss/components/vv-accordion": "./src/components/vv-accordion.scss",
|
|
28
30
|
"./components/vv-alert": "./dist/components/vv-alert.css",
|
|
@@ -135,6 +137,10 @@
|
|
|
135
137
|
"./scss/utilities/sizing": "./src/utilities/sizing.scss",
|
|
136
138
|
"./utilities/spacing": "./dist/utilities/spacing.css",
|
|
137
139
|
"./scss/utilities/spacing": "./src/utilities/spacing.scss",
|
|
140
|
+
"./utilities/tables": "./dist/utilities/tables.css",
|
|
141
|
+
"./scss/utilities/tables": "./src/utilities/tables.scss",
|
|
142
|
+
"./utilities/transforms": "./dist/utilities/transforms.css",
|
|
143
|
+
"./scss/utilities/transforms": "./src/utilities/transforms.scss",
|
|
138
144
|
"./utilities/transitions": "./dist/utilities/transitions.css",
|
|
139
145
|
"./scss/utilities/transitions": "./src/utilities/transitions.scss",
|
|
140
146
|
"./utilities/typography": "./dist/utilities/typography.css",
|
|
@@ -168,7 +174,7 @@
|
|
|
168
174
|
"icss-utils": "^5.1.0",
|
|
169
175
|
"markdown-it-anchor": "^8.6.6",
|
|
170
176
|
"markdown-it-prism": "^2.3.0",
|
|
171
|
-
"postcss": "^8.4.
|
|
177
|
+
"postcss": "^8.4.21",
|
|
172
178
|
"postcss-html": "^1.5.0",
|
|
173
179
|
"postcss-preset-env": "^7.8.3",
|
|
174
180
|
"prism-themes": "^1.9.0",
|
package/src/_config.scss
CHANGED
|
@@ -12,6 +12,7 @@ $components-prefix: vv !default;
|
|
|
12
12
|
|
|
13
13
|
// components names
|
|
14
14
|
$components-names: (
|
|
15
|
+
vv-accordion-group: $components-prefix + -accordion-group,
|
|
15
16
|
vv-accordion: $components-prefix + -accordion,
|
|
16
17
|
vv-alert: $components-prefix + -alert,
|
|
17
18
|
vv-badge: $components-prefix + -badge,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../context' as *;
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-accordion-group);
|
|
5
|
+
$component-map: $vv-accordion-group;
|
|
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-components,
|
|
12
|
+
$bps: $breakpoints
|
|
13
|
+
);
|
package/src/export.scss
CHANGED
|
@@ -98,6 +98,14 @@
|
|
|
98
98
|
#{'position__' + $index}: $index;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
// placement
|
|
102
|
+
@each $key, $value in $placement {
|
|
103
|
+
$name: meta.inspect($key);
|
|
104
|
+
$name: str-replace($name, '\\/', '_');
|
|
105
|
+
|
|
106
|
+
#{'placement__' + $name}: $value;
|
|
107
|
+
}
|
|
108
|
+
|
|
101
109
|
// visibility
|
|
102
110
|
@each $key, $value in $visibility {
|
|
103
111
|
#{'visibility__' + $key}: $value;
|
|
@@ -449,6 +457,20 @@
|
|
|
449
457
|
|
|
450
458
|
// #endregion
|
|
451
459
|
|
|
460
|
+
// ============================================================== */
|
|
461
|
+
// #region TABLES
|
|
462
|
+
// border-collapse
|
|
463
|
+
@each $key, $value in $border-collapse {
|
|
464
|
+
#{'border-collapse__' + $key}: $value;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
// table-layout
|
|
468
|
+
@each $key, $value in $table-layout {
|
|
469
|
+
#{'table-layout__' + $key}: $value;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
// #endregion
|
|
473
|
+
|
|
452
474
|
// ============================================================== */
|
|
453
475
|
// #region TRANSITIONS & ANIMATIONS
|
|
454
476
|
// transition property
|
|
@@ -470,4 +492,31 @@
|
|
|
470
492
|
}
|
|
471
493
|
|
|
472
494
|
// #endregion
|
|
495
|
+
|
|
496
|
+
// ============================================================== */
|
|
497
|
+
// #region TRANSFORMS
|
|
498
|
+
// scale
|
|
499
|
+
@each $key, $value in $scale {
|
|
500
|
+
#{'scale__' + $key}: $value;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
// rotate
|
|
504
|
+
@each $key, $value in $rotate {
|
|
505
|
+
#{'rotate__' + $key}: $value;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// translate
|
|
509
|
+
@each $key, $value in $translate {
|
|
510
|
+
$name: meta.inspect($key);
|
|
511
|
+
$name: str-replace($name, '\\/', '/');
|
|
512
|
+
|
|
513
|
+
#{'translate__' + $name}: $value;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
// transform-origin
|
|
517
|
+
@each $key, $value in $transform-origin {
|
|
518
|
+
#{'transform-origin__' + $key}: $value;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
// #endregion
|
|
473
522
|
}
|
package/src/props/effects.scss
CHANGED
package/src/settings/_index.scss
CHANGED
|
@@ -12,10 +12,13 @@
|
|
|
12
12
|
@forward 'layout';
|
|
13
13
|
@forward 'sizing';
|
|
14
14
|
@forward 'spacing';
|
|
15
|
+
@forward 'tables';
|
|
16
|
+
@forward 'transforms';
|
|
15
17
|
@forward 'transitions';
|
|
16
18
|
@forward 'typography';
|
|
17
19
|
|
|
18
20
|
// components
|
|
21
|
+
@forward 'components/vv-accordion-group';
|
|
19
22
|
@forward 'components/vv-accordion';
|
|
20
23
|
@forward 'components/vv-alert';
|
|
21
24
|
@forward 'components/vv-badge';
|
|
@@ -94,6 +94,18 @@ $overflow: (
|
|
|
94
94
|
// position
|
|
95
95
|
$position: (static, fixed, absolute, relative, sticky) !default;
|
|
96
96
|
|
|
97
|
+
// placement
|
|
98
|
+
$placement: (
|
|
99
|
+
1\/2: 50%,
|
|
100
|
+
1\/3: 33.3333%,
|
|
101
|
+
2\/3: 66.6667%,
|
|
102
|
+
1\/4: 25%,
|
|
103
|
+
2\/4: 50%,
|
|
104
|
+
3\/4: 75%,
|
|
105
|
+
full: 100%,
|
|
106
|
+
auto: auto
|
|
107
|
+
) !default;
|
|
108
|
+
|
|
97
109
|
// visibility
|
|
98
110
|
$visibility: (
|
|
99
111
|
visible: visible,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// scale
|
|
2
|
+
$scale: (
|
|
3
|
+
0: 0,
|
|
4
|
+
50: 0.5,
|
|
5
|
+
75: 0.75,
|
|
6
|
+
90: 0.9,
|
|
7
|
+
95: 0.95,
|
|
8
|
+
100: 1,
|
|
9
|
+
105: 1.05,
|
|
10
|
+
110: 1.1,
|
|
11
|
+
125: 1.25,
|
|
12
|
+
150: 1.5,
|
|
13
|
+
) !default;
|
|
14
|
+
|
|
15
|
+
// rotate
|
|
16
|
+
$rotate: (
|
|
17
|
+
0: rotate(0deg),
|
|
18
|
+
1: rotate(1deg),
|
|
19
|
+
2: rotate(2deg),
|
|
20
|
+
3: rotate(3deg),
|
|
21
|
+
6: rotate(6deg),
|
|
22
|
+
12: rotate(12deg),
|
|
23
|
+
45: rotate(45deg),
|
|
24
|
+
90: rotate(90deg),
|
|
25
|
+
180: rotate(180deg),
|
|
26
|
+
) !default;
|
|
27
|
+
|
|
28
|
+
// translate
|
|
29
|
+
$translate: (
|
|
30
|
+
1\/2: 50%,
|
|
31
|
+
1\/3: 33.3333%,
|
|
32
|
+
2\/3: 66.6667%,
|
|
33
|
+
1\/4: 25%,
|
|
34
|
+
2\/4: 50%,
|
|
35
|
+
3\/4: 75%,
|
|
36
|
+
full: 100%
|
|
37
|
+
) !default;
|
|
38
|
+
|
|
39
|
+
// transform-origin
|
|
40
|
+
$transform-origin: (
|
|
41
|
+
center: center,
|
|
42
|
+
top: top,
|
|
43
|
+
top-right: top right,
|
|
44
|
+
top-left: top left,
|
|
45
|
+
bottom: bottom,
|
|
46
|
+
bottom-right: bottom right,
|
|
47
|
+
bottom-left: bottom left,
|
|
48
|
+
right: right,
|
|
49
|
+
left: left,
|
|
50
|
+
) !default;
|
|
@@ -11,7 +11,7 @@ $vv-checkbox: (
|
|
|
11
11
|
min-width: var(--input-min-width),
|
|
12
12
|
state: (
|
|
13
13
|
disabled: (
|
|
14
|
-
opacity:
|
|
14
|
+
opacity: var(--opacity-30),
|
|
15
15
|
cursor: not-allowed,
|
|
16
16
|
),
|
|
17
17
|
),
|
|
@@ -55,7 +55,7 @@ $vv-checkbox: (
|
|
|
55
55
|
),
|
|
56
56
|
modifier: (
|
|
57
57
|
readonly: (
|
|
58
|
-
opacity:
|
|
58
|
+
opacity: var(--opacity-100),
|
|
59
59
|
cursor: default,
|
|
60
60
|
pointer-events: none,
|
|
61
61
|
),
|
|
@@ -13,7 +13,7 @@ $vv-dialog: (
|
|
|
13
13
|
border: 0,
|
|
14
14
|
background-color: var(--color-backdrop),
|
|
15
15
|
backdrop-filter: var(--blur-sm),
|
|
16
|
-
opacity:
|
|
16
|
+
opacity: var(--opacity-100),
|
|
17
17
|
state: (
|
|
18
18
|
close: (
|
|
19
19
|
display: none,
|
|
@@ -80,7 +80,7 @@ $vv-dialog: (
|
|
|
80
80
|
),
|
|
81
81
|
),
|
|
82
82
|
enter-from: (
|
|
83
|
-
opacity: 0,
|
|
83
|
+
opacity: var(--opacity-0),
|
|
84
84
|
element: (
|
|
85
85
|
wrapper: (
|
|
86
86
|
transform: translateY(100%),
|
|
@@ -88,7 +88,7 @@ $vv-dialog: (
|
|
|
88
88
|
),
|
|
89
89
|
),
|
|
90
90
|
leave-to: (
|
|
91
|
-
opacity: 0,
|
|
91
|
+
opacity: var(--opacity-0),
|
|
92
92
|
element: (
|
|
93
93
|
wrapper: (
|
|
94
94
|
transform: translateY(-100%),
|
|
@@ -106,7 +106,7 @@ $vv-dialog: (
|
|
|
106
106
|
),
|
|
107
107
|
),
|
|
108
108
|
enter-from: (
|
|
109
|
-
opacity: 0,
|
|
109
|
+
opacity: var(--opacity-0),
|
|
110
110
|
element: (
|
|
111
111
|
wrapper: (
|
|
112
112
|
transform: translateX(-100%),
|
|
@@ -114,7 +114,7 @@ $vv-dialog: (
|
|
|
114
114
|
),
|
|
115
115
|
),
|
|
116
116
|
leave-to: (
|
|
117
|
-
opacity: 0,
|
|
117
|
+
opacity: var(--opacity-0),
|
|
118
118
|
element: (
|
|
119
119
|
wrapper: (
|
|
120
120
|
transform: translateX(100%),
|
|
@@ -132,7 +132,7 @@ $vv-dialog: (
|
|
|
132
132
|
),
|
|
133
133
|
),
|
|
134
134
|
inert: (
|
|
135
|
-
opacity: 0,
|
|
135
|
+
opacity: var(--opacity-0),
|
|
136
136
|
element: (
|
|
137
137
|
wrapper: (
|
|
138
138
|
transform: scale(0%),
|
|
@@ -79,11 +79,11 @@ $vv-input-text: (
|
|
|
79
79
|
padding: var(--spacing-sm),
|
|
80
80
|
top: 0,
|
|
81
81
|
right: 0,
|
|
82
|
-
opacity: 0,
|
|
82
|
+
opacity: var(--opacity-0),
|
|
83
83
|
),
|
|
84
84
|
search-cancel-button: (
|
|
85
85
|
-webkit-appearance: none,
|
|
86
|
-
opacity: 0,
|
|
86
|
+
opacity: var(--opacity-0),
|
|
87
87
|
),
|
|
88
88
|
color-swatch-wrapper: (
|
|
89
89
|
padding: 1px,
|
|
@@ -299,7 +299,7 @@ $vv-input-text: (
|
|
|
299
299
|
placeholder: (
|
|
300
300
|
will-change: 'opacity',
|
|
301
301
|
transition: var(--transition-opacity),
|
|
302
|
-
opacity: 0,
|
|
302
|
+
opacity: var(--opacity-0),
|
|
303
303
|
),
|
|
304
304
|
),
|
|
305
305
|
),
|
|
@@ -315,7 +315,7 @@ $vv-input-text: (
|
|
|
315
315
|
transform: translateY(0.55em),
|
|
316
316
|
pseudo: (
|
|
317
317
|
placeholder: (
|
|
318
|
-
opacity:
|
|
318
|
+
opacity: var(--opacity-100),
|
|
319
319
|
),
|
|
320
320
|
),
|
|
321
321
|
),
|
|
@@ -331,7 +331,7 @@ $vv-input-text: (
|
|
|
331
331
|
transform: translateY(0.55em),
|
|
332
332
|
pseudo: (
|
|
333
333
|
placeholder: (
|
|
334
|
-
opacity:
|
|
334
|
+
opacity: var(--opacity-100),
|
|
335
335
|
),
|
|
336
336
|
),
|
|
337
337
|
),
|
|
@@ -342,7 +342,7 @@ $vv-input-text: (
|
|
|
342
342
|
),
|
|
343
343
|
state: (
|
|
344
344
|
disabled: (
|
|
345
|
-
opacity:
|
|
345
|
+
opacity: var(--opacity-50),
|
|
346
346
|
element: (
|
|
347
347
|
wrapper: (
|
|
348
348
|
state: (
|
|
@@ -358,7 +358,7 @@ $vv-input-text: (
|
|
|
358
358
|
wrapper: (
|
|
359
359
|
pseudo: (
|
|
360
360
|
after: (
|
|
361
|
-
opacity: 0,
|
|
361
|
+
opacity: var(--opacity-0),
|
|
362
362
|
),
|
|
363
363
|
),
|
|
364
364
|
state: (
|
|
@@ -11,13 +11,13 @@ $vv-radio: (
|
|
|
11
11
|
min-width: var(--input-min-width),
|
|
12
12
|
state: (
|
|
13
13
|
disabled: (
|
|
14
|
-
opacity:
|
|
14
|
+
opacity: var(--opacity-30),
|
|
15
15
|
cursor: not-allowed,
|
|
16
16
|
),
|
|
17
17
|
),
|
|
18
18
|
modifier: (
|
|
19
19
|
readonly: (
|
|
20
|
-
opacity:
|
|
20
|
+
opacity: var(--opacity-100),
|
|
21
21
|
cursor: default,
|
|
22
22
|
pointer-events: none,
|
|
23
23
|
),
|
|
@@ -214,7 +214,7 @@ $vv-select: (
|
|
|
214
214
|
input: (
|
|
215
215
|
pseudo: (
|
|
216
216
|
placeholder: (
|
|
217
|
-
opacity: 0,
|
|
217
|
+
opacity: var(--opacity-0),
|
|
218
218
|
),
|
|
219
219
|
),
|
|
220
220
|
),
|
|
@@ -233,7 +233,7 @@ $vv-select: (
|
|
|
233
233
|
calc(var(--input-spacing-bottom) - 0.55em),
|
|
234
234
|
pseudo: (
|
|
235
235
|
placeholder: (
|
|
236
|
-
opacity:
|
|
236
|
+
opacity: var(--opacity-100),
|
|
237
237
|
),
|
|
238
238
|
),
|
|
239
239
|
),
|
|
@@ -242,13 +242,13 @@ $vv-select: (
|
|
|
242
242
|
),
|
|
243
243
|
),
|
|
244
244
|
readonly: (
|
|
245
|
-
opacity:
|
|
245
|
+
opacity: var(--opacity-100),
|
|
246
246
|
user-select: text,
|
|
247
247
|
element: (
|
|
248
248
|
wrapper: (
|
|
249
249
|
pseudo: (
|
|
250
250
|
after: (
|
|
251
|
-
opacity: 0,
|
|
251
|
+
opacity: var(--opacity-0),
|
|
252
252
|
),
|
|
253
253
|
),
|
|
254
254
|
state: (
|
|
@@ -266,7 +266,7 @@ $vv-select: (
|
|
|
266
266
|
),
|
|
267
267
|
state: (
|
|
268
268
|
disabled: (
|
|
269
|
-
opacity:
|
|
269
|
+
opacity: var(--opacity-50),
|
|
270
270
|
element: (
|
|
271
271
|
wrapper: (
|
|
272
272
|
state: (
|
|
@@ -226,7 +226,7 @@ $vv-textarea: (
|
|
|
226
226
|
placeholder: (
|
|
227
227
|
will-change: 'opacity',
|
|
228
228
|
transition: var(--transition-opacity),
|
|
229
|
-
opacity: 0,
|
|
229
|
+
opacity: var(--opacity-0),
|
|
230
230
|
),
|
|
231
231
|
),
|
|
232
232
|
),
|
|
@@ -242,7 +242,7 @@ $vv-textarea: (
|
|
|
242
242
|
transform: translateY(0.55em),
|
|
243
243
|
pseudo: (
|
|
244
244
|
placeholder: (
|
|
245
|
-
opacity:
|
|
245
|
+
opacity: var(--opacity-100),
|
|
246
246
|
),
|
|
247
247
|
),
|
|
248
248
|
),
|
|
@@ -258,7 +258,7 @@ $vv-textarea: (
|
|
|
258
258
|
transform: translateY(0.55em),
|
|
259
259
|
pseudo: (
|
|
260
260
|
placeholder: (
|
|
261
|
-
opacity:
|
|
261
|
+
opacity: var(--opacity-100),
|
|
262
262
|
),
|
|
263
263
|
),
|
|
264
264
|
),
|
|
@@ -269,7 +269,7 @@ $vv-textarea: (
|
|
|
269
269
|
),
|
|
270
270
|
state: (
|
|
271
271
|
disabled: (
|
|
272
|
-
opacity:
|
|
272
|
+
opacity: var(--opacity-50),
|
|
273
273
|
element: (
|
|
274
274
|
wrapper: (
|
|
275
275
|
state: (
|
|
@@ -54,7 +54,7 @@ $vv-toast: (
|
|
|
54
54
|
border: 1px solid var(--color-white),
|
|
55
55
|
border-radius: 50%,
|
|
56
56
|
overflow: hidden,
|
|
57
|
-
opacity:
|
|
57
|
+
opacity: var(--opacity-80),
|
|
58
58
|
cursor: pointer,
|
|
59
59
|
pseudo: (
|
|
60
60
|
before: (
|
|
@@ -78,7 +78,7 @@ $vv-toast: (
|
|
|
78
78
|
border-radius: 100% 0 0 100% / 50% 0 0 50%,
|
|
79
79
|
[animation]: pie-masks var(--toast-pie-animation-duration)
|
|
80
80
|
steps(1, end),
|
|
81
|
-
opacity: 0,
|
|
81
|
+
opacity: var(--opacity-0),
|
|
82
82
|
),
|
|
83
83
|
),
|
|
84
84
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
$vv-tooltip: (
|
|
2
|
-
opacity: 0,
|
|
2
|
+
opacity: var(--opacity-0),
|
|
3
3
|
display: block,
|
|
4
4
|
position: absolute,
|
|
5
5
|
inset-inline: 100% auto,
|
|
@@ -33,7 +33,7 @@ $vv-tooltip: (
|
|
|
33
33
|
),
|
|
34
34
|
modifier: (
|
|
35
35
|
visible: (
|
|
36
|
-
opacity:
|
|
36
|
+
opacity: var(--opacity-100),
|
|
37
37
|
),
|
|
38
38
|
top: (
|
|
39
39
|
inset-inline: 50% 0,
|
package/src/utilities/index.scss
CHANGED
|
@@ -137,11 +137,16 @@
|
|
|
137
137
|
);
|
|
138
138
|
|
|
139
139
|
// top / right / bottom / left
|
|
140
|
-
@each $size,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
@each $size,
|
|
141
|
+
$value in map.merge($placement, map.merge($spacing, $spacing-dynamic))
|
|
142
|
+
{
|
|
143
|
+
$var: $value;
|
|
144
|
+
@if not map-has-key($placement, $size) {
|
|
145
|
+
// check if value is not a map (spacing-dynamic)
|
|
146
|
+
$var: var(--spacing-#{$size});
|
|
147
|
+
@if type-of($value) != 'map' {
|
|
148
|
+
$var: var(--spacing-#{$size}, #{$value});
|
|
149
|
+
}
|
|
145
150
|
}
|
|
146
151
|
|
|
147
152
|
// all
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@import '../context';
|
|
2
|
+
|
|
3
|
+
// border-collapse
|
|
4
|
+
@include spread-map-into-utilities(
|
|
5
|
+
$map: $border-collapse,
|
|
6
|
+
$class: border,
|
|
7
|
+
$attribute: border-collapse
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
// table-layout
|
|
11
|
+
@include spread-map-into-utilities(
|
|
12
|
+
$map: $table-layout,
|
|
13
|
+
$class: table,
|
|
14
|
+
$attribute: table-layout
|
|
15
|
+
);
|