@splendidlabz/styles 4.0.0-alpha.2 → 4.0.0-beta.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/package.json +4 -8
- package/src/components/astro/fancylist.css +28 -0
- package/src/components/astro/index.css +2 -0
- package/src/{primitives → components/css}/card.css +8 -3
- package/src/{primitives → components/css}/indent-list.css +6 -6
- package/src/{primitives → components/css}/prose.css +17 -9
- package/src/{effects/stroke.css → components/css/simple-svg.css} +10 -0
- package/src/{primitives → components/css}/table.css +12 -3
- package/src/components/css/writing-mode.css +41 -0
- package/src/components/index.css +3 -6
- package/src/components/svelte/breadcrumbs.css +31 -0
- package/src/components/{browserframe.css → svelte/browserframe.css} +6 -6
- package/src/components/svelte/callout.css +33 -0
- package/src/components/svelte/index.css +10 -0
- package/src/components/svelte/resizer.css +44 -0
- package/src/components/svelte/status.css +37 -0
- package/src/components/{tabs.css → svelte/tabs.css} +2 -2
- package/src/effects/gradients.css +10 -6
- package/src/effects/index.css +1 -1
- package/src/{addons → effects}/scrollbars.css +25 -5
- package/src/effects/shadows.css +116 -0
- package/src/effects/text.css +37 -5
- package/src/form/checkbox-and-radio.css +1 -1
- package/src/form/input.css +2 -2
- package/src/form/textarea.css +1 -0
- package/src/generic/anchors-and-buttons.css +3 -2
- package/src/generic/form.css +2 -2
- package/src/layouts/macro/{flex-grid.css → grid-flex.css} +8 -7
- package/src/layouts/macro/grid.css +5 -12
- package/src/layouts/macro/index.css +1 -1
- package/src/layouts/macro/subgrid.css +3 -4
- package/src/layouts/macro/wrap.css +1 -1
- package/src/layouts/micro/breakout.css +14 -7
- package/src/layouts/micro/divider.css +3 -12
- package/src/layouts/micro/micro.css +0 -6
- package/src/layouts/micro/scrollable.css +2 -14
- package/src/layouts/micro/stack.css +1 -0
- package/src/layouts/position/edge.css +264 -25
- package/src/layouts/position/fixed.css +57 -30
- package/src/layouts/position/nudge.css +47 -28
- package/src/layouts/position/pos.css +51 -69
- package/src/layouts/position/sticky.css +6 -2
- package/src/layouts/shell/shell-grid.css +1 -1
- package/src/styles.css +1 -1
- package/src/tools/border.css +53 -3
- package/src/tools/outlines.css +13 -25
- package/src/tools/pigment.css +2 -2
- package/src/variables/variables.css +3 -3
- package/src/addons/index.css +0 -1
- package/src/astro/index.css +0 -1
- package/src/primitives/simple-svg.css +0 -7
- package/src/primitives/writing-mode.css +0 -51
- /package/src/{astro → components/astro}/textwall.css +0 -0
- /package/src/{primitives → components/css}/break-word.css +0 -0
- /package/src/{primitives → components/css}/hero-heading.css +0 -0
- /package/src/{primitives → components/css}/index.css +0 -0
- /package/src/{primitives → components/css}/shapes.css +0 -0
- /package/src/{primitives → components/css}/text.css +0 -0
- /package/src/components/{accordion.css → svelte/accordion.css} +0 -0
- /package/src/components/{drawer.css → svelte/drawer.css} +0 -0
- /package/src/components/{modal.css → svelte/modal.css} +0 -0
- /package/src/components/{popover.css → svelte/popover.css} +0 -0
package/src/effects/text.css
CHANGED
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
/* Extends Text-stroke */
|
|
13
|
-
|
|
14
12
|
/* Sets color to background color and stroke to actual color you want for the stroke */
|
|
15
13
|
@utility text-outline {
|
|
16
14
|
color: var(--stroke-color); /* fallback */
|
|
@@ -18,10 +16,44 @@
|
|
|
18
16
|
@supports (-webkit-text-stroke-width: 1px) {
|
|
19
17
|
font-size: calc(1em - var(--stroke-width, 0.1em) / 2);
|
|
20
18
|
color: var(--bg-color);
|
|
21
|
-
-webkit-text-stroke-width: var(--stroke-width, 2px);
|
|
22
|
-
|
|
23
|
-
/* // We cannot use currentcolor because current color is set to --bg-color. That's why we need a --stroke variable */
|
|
24
19
|
-webkit-text-stroke-color: var(--stroke-color);
|
|
20
|
+
|
|
21
|
+
/* We cannot use currentcolor because current color is set to --bg-color. That's why we need a --stroke variable */
|
|
22
|
+
-webkit-text-stroke-width: var(--stroke-width, 0.1em);
|
|
25
23
|
paint-order: stroke fill;
|
|
26
24
|
}
|
|
27
25
|
}
|
|
26
|
+
|
|
27
|
+
@utility writing-normal {
|
|
28
|
+
transition: none;
|
|
29
|
+
writing-mode: horizontal-tb;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@utility writing-rotate-left {
|
|
33
|
+
transform: rotate(180deg);
|
|
34
|
+
transition: none;
|
|
35
|
+
writing-mode: vertical-rl;
|
|
36
|
+
text-orientation: sideways;
|
|
37
|
+
|
|
38
|
+
/* // transform: scale( -1, -1 ); // This is the alternative if we don't want to use rotate (though I'm not sure if there is a specific reason why. */
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@utility writing-rotate-right {
|
|
42
|
+
transition: none;
|
|
43
|
+
writing-mode: vertical-rl;
|
|
44
|
+
text-orientation: sideways;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@utility writing-downwards {
|
|
48
|
+
writing-mode: vertical-lr;
|
|
49
|
+
text-orientation: upright;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@utility writing-downwards-lr {
|
|
53
|
+
@apply writing-downwards;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@utility writing-downwards-rl {
|
|
57
|
+
writing-mode: vertical-rl;
|
|
58
|
+
text-orientation: upright;
|
|
59
|
+
}
|
package/src/form/input.css
CHANGED
package/src/form/textarea.css
CHANGED
|
@@ -39,8 +39,9 @@
|
|
|
39
39
|
|
|
40
40
|
@layer base {
|
|
41
41
|
a {
|
|
42
|
-
@apply pigment;
|
|
42
|
+
@apply pigment-with-svg;
|
|
43
43
|
border-radius: 0;
|
|
44
|
+
text-decoration: none;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
a:where(:not(.button)) {
|
|
@@ -55,6 +56,6 @@
|
|
|
55
56
|
/* focus states with outlines */
|
|
56
57
|
:is(a, button, .button),
|
|
57
58
|
:where([tabindex]:not([tabindex='-1'])) {
|
|
58
|
-
@apply
|
|
59
|
+
@apply outline-scaffold;
|
|
59
60
|
}
|
|
60
61
|
}
|
package/src/generic/form.css
CHANGED
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
.field {
|
|
18
18
|
@apply pigment;
|
|
19
19
|
@apply border-scaffold;
|
|
20
|
-
@apply
|
|
20
|
+
@apply outline-scaffold;
|
|
21
21
|
display: block;
|
|
22
22
|
width: 100%;
|
|
23
|
-
padding: 0.
|
|
23
|
+
padding: 0.25lh 0.5lh;
|
|
24
24
|
font: inherit;
|
|
25
25
|
font-family: var(--input-font);
|
|
26
26
|
color: var(--text-color, currentcolor);
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
@utility flex
|
|
1
|
+
@utility grid-flex {
|
|
2
|
+
--_cols: var(--cols);
|
|
2
3
|
display: flex;
|
|
3
4
|
flex-flow: row wrap;
|
|
4
|
-
gap: var(--gap,
|
|
5
|
+
gap: var(--gap, 1rlh);
|
|
5
6
|
max-width: 100%;
|
|
6
7
|
|
|
7
8
|
> *,
|
|
8
9
|
> *:where(astro-island, astro-slot) > *,
|
|
9
10
|
> :where(.contents) > * {
|
|
10
|
-
--one-column: var(--gap,
|
|
11
|
+
--one-column: var(--gap, 1rlh) * (var(--_cols, 1) - 1);
|
|
11
12
|
flex: var(--grow, var(--span, 1)) var(--span, 1)
|
|
12
13
|
calc(
|
|
13
|
-
(100% - var(--one-column)) / var(--
|
|
14
|
-
(var(--span, 1) - 1) * var(--gap,
|
|
14
|
+
(100% - var(--one-column)) / var(--_cols, 1) * var(--span, 1) +
|
|
15
|
+
(var(--span, 1) - 1) * var(--gap, 1rlh)
|
|
15
16
|
);
|
|
16
17
|
min-width: min(100%, var(--item-width, 3rem));
|
|
17
18
|
max-width: 100%;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
@utility flex-
|
|
22
|
+
@utility grid-flex-gallery {
|
|
22
23
|
& {
|
|
23
24
|
display: flex;
|
|
24
25
|
flex-flow: row wrap;
|
|
25
|
-
gap: var(--gap,
|
|
26
|
+
gap: var(--gap, 1rlh);
|
|
26
27
|
max-width: 100%;
|
|
27
28
|
|
|
28
29
|
> * {
|
|
@@ -1,50 +1,43 @@
|
|
|
1
1
|
@property --cols {
|
|
2
|
-
syntax: '<integer>';
|
|
2
|
+
syntax: '<integer> | auto';
|
|
3
3
|
initial-value: 1;
|
|
4
4
|
inherits: false;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
@property --colstart {
|
|
8
|
-
syntax: '<integer>';
|
|
8
|
+
syntax: '<integer> | auto';
|
|
9
9
|
initial-value: auto;
|
|
10
10
|
inherits: false;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
/* Gotta test for subgrid after adding inherit-false to --span */
|
|
14
14
|
@property --span {
|
|
15
|
-
syntax: '<integer>';
|
|
15
|
+
syntax: '<integer> | auto';
|
|
16
16
|
initial-value: 1;
|
|
17
17
|
inherits: false;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
@property --rowspan {
|
|
21
|
-
syntax: '<integer>';
|
|
21
|
+
syntax: '<integer> | auto';
|
|
22
22
|
initial-value: 1;
|
|
23
23
|
inherits: false;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@property --rowstart {
|
|
27
|
-
syntax: '<integer>';
|
|
27
|
+
syntax: '<integer> | auto';
|
|
28
28
|
initial-value: auto;
|
|
29
29
|
inherits: false;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
@utility grid-scaffold {
|
|
33
33
|
& {
|
|
34
|
-
/* --span: 1; */
|
|
35
|
-
/* Revert to default span for children in nested grids */
|
|
36
34
|
display: grid;
|
|
37
35
|
gap: var(--gap-y, var(--gap)) var(--gap-x, var(--gap));
|
|
38
36
|
max-width: 100%;
|
|
39
37
|
|
|
40
|
-
/* width: 100%; */
|
|
41
|
-
/* margin-inline: auto; */
|
|
42
|
-
|
|
43
38
|
> *,
|
|
44
39
|
> *:where(.contents) > *,
|
|
45
40
|
> *:where(astro-island, astro-slot) > * {
|
|
46
|
-
/* Reset cols */
|
|
47
|
-
/* --cols: 1; */
|
|
48
41
|
grid-column: var(--colstart) / span var(--span);
|
|
49
42
|
grid-row: var(--rowstart) / span var(--rowspan);
|
|
50
43
|
max-width: 100%;
|
|
@@ -12,12 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
@utility subgrid-columns {
|
|
14
14
|
@apply subgrid-scaffold;
|
|
15
|
-
grid-column: var(--
|
|
15
|
+
grid-column: var(--colstart, auto) / span var(--span, 1);
|
|
16
16
|
grid-template-columns: subgrid;
|
|
17
17
|
|
|
18
18
|
> *:not([class*='subgrid']) {
|
|
19
|
-
grid-column-end: span var(--
|
|
20
|
-
width: 100%;
|
|
19
|
+
grid-column-end: span var(--span, 1);
|
|
21
20
|
max-width: 100%;
|
|
22
21
|
}
|
|
23
22
|
}
|
|
@@ -28,6 +27,6 @@
|
|
|
28
27
|
grid-template-rows: subgrid;
|
|
29
28
|
|
|
30
29
|
> *:not([class*='subgrid']) {
|
|
31
|
-
grid-row-end: span var(--
|
|
30
|
+
grid-row-end: span var(--rowspan, 1);
|
|
32
31
|
}
|
|
33
32
|
}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
/* prettier-ignore */
|
|
2
2
|
@utility breakout-* {
|
|
3
|
-
margin-inline:
|
|
3
|
+
margin-inline: calc(var(--spacing) * --value(integer) * -1);
|
|
4
|
+
margin-inline: calc(--value([length]) * -1);
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
/* prettier-ignore */
|
|
7
8
|
@utility breakout-x-* {
|
|
8
|
-
margin-inline:
|
|
9
|
+
margin-inline: calc(var(--spacing) * --value(integer) * -1);
|
|
10
|
+
margin-inline: calc(--value([length]) * -1);
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
/* prettier-ignore */
|
|
12
14
|
@utility breakout-l-* {
|
|
13
|
-
margin-inline-start:
|
|
15
|
+
margin-inline-start: calc(var(--spacing) * --value(integer) * -1);
|
|
16
|
+
margin-inline-start: calc(--value([length]) * -1);
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
/* prettier-ignore */
|
|
17
20
|
@utility breakout-r-* {
|
|
18
|
-
margin-inline-end:
|
|
21
|
+
margin-inline-end: calc(var(--spacing) * --value(integer) * -1);
|
|
22
|
+
margin-inline-end: calc(--value([length]) * -1);
|
|
19
23
|
}
|
|
20
24
|
|
|
21
25
|
/*********************
|
|
@@ -24,15 +28,18 @@
|
|
|
24
28
|
|
|
25
29
|
/* prettier-ignore */
|
|
26
30
|
@utility breakout-y-* {
|
|
27
|
-
margin-block:
|
|
31
|
+
margin-block: calc(var(--spacing) * --value(integer) * -1);
|
|
32
|
+
margin-block: calc(--value([length]) * -1);
|
|
28
33
|
}
|
|
29
34
|
|
|
30
35
|
/* prettier-ignore */
|
|
31
36
|
@utility breakout-t-* {
|
|
32
|
-
margin-block-start:
|
|
37
|
+
margin-block-start: calc(var(--spacing) * --value(integer) * -1);
|
|
38
|
+
margin-block-start: calc(--value([length]) * -1);
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
/* prettier-ignore */
|
|
36
42
|
@utility breakout-b-* {
|
|
37
|
-
margin-block-end:
|
|
43
|
+
margin-block-end: calc(var(--spacing) * --value(integer) * -1);
|
|
44
|
+
margin-block-end: calc(--value([length]) * -1);
|
|
38
45
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
@utility divider-scaffold {
|
|
2
2
|
& {
|
|
3
3
|
align-self: stretch;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
4
6
|
padding: 0 !important;
|
|
5
7
|
border-radius: 0 !important;
|
|
6
8
|
|
|
7
9
|
&:where(:not(:empty)) {
|
|
8
|
-
gap: var(--gap,
|
|
10
|
+
gap: var(--gap, 1rlh);
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
&::before,
|
|
@@ -20,8 +22,6 @@
|
|
|
20
22
|
& {
|
|
21
23
|
@apply divider-scaffold;
|
|
22
24
|
flex-grow: 1;
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
25
|
|
|
26
26
|
&::before,
|
|
27
27
|
&::after {
|
|
@@ -34,14 +34,7 @@
|
|
|
34
34
|
@utility divider-y {
|
|
35
35
|
& {
|
|
36
36
|
@apply divider-scaffold;
|
|
37
|
-
align-self: stretch;
|
|
38
|
-
display: flex;
|
|
39
37
|
flex-direction: column;
|
|
40
|
-
align-items: center;
|
|
41
|
-
|
|
42
|
-
:where(.vertical, .single-col, .wrap) > & {
|
|
43
|
-
flex-grow: 1;
|
|
44
|
-
}
|
|
45
38
|
|
|
46
39
|
&::before,
|
|
47
40
|
&::after {
|
|
@@ -66,7 +59,6 @@
|
|
|
66
59
|
*********************/
|
|
67
60
|
@utility divider-between-x {
|
|
68
61
|
& {
|
|
69
|
-
@apply divider-scaffold;
|
|
70
62
|
flex-direction: column;
|
|
71
63
|
row-gap: 0;
|
|
72
64
|
|
|
@@ -80,7 +72,6 @@
|
|
|
80
72
|
|
|
81
73
|
@utility divider-between-y {
|
|
82
74
|
& {
|
|
83
|
-
@apply divider-scaffold;
|
|
84
75
|
column-gap: 0;
|
|
85
76
|
|
|
86
77
|
> * + *,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@theme {
|
|
2
2
|
--snap-align: start;
|
|
3
3
|
--snap-type: proximity;
|
|
4
|
-
--scroll-margin:
|
|
4
|
+
--scroll-margin: 1rlh;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
@utility scrollable {
|
|
8
8
|
& {
|
|
9
9
|
display: flex;
|
|
10
|
-
gap: var(--gap,
|
|
10
|
+
gap: var(--gap, 1rlh);
|
|
11
11
|
|
|
12
12
|
> :where(*) {
|
|
13
13
|
flex-grow: 0;
|
|
@@ -37,18 +37,6 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
/* Maybe Blog about this.
|
|
41
|
-
These three properties used to preserve outlines, because overflow cuts off outlines. Content-box is necessary. If not, box will cut on the right side. (in Flex environments). */
|
|
42
|
-
@utility scrollable-preserve-outlines {
|
|
43
|
-
& {
|
|
44
|
-
box-sizing: content-box;
|
|
45
|
-
margin: calc(var(--outline-width) * -1);
|
|
46
|
-
padding: calc(var(--outline-width));
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* Does this work? */
|
|
51
|
-
|
|
52
40
|
/* prettier-ignore */
|
|
53
41
|
@utility snap-type-* {
|
|
54
42
|
--snap-type: --value(--snap-type-*);
|