@splendidlabz/styles 4.0.1 → 4.2.0
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 +3 -3
- package/src/components/astro/fancylist.css +12 -6
- package/src/components/css/card.css +78 -37
- package/src/components/css/hero-heading.css +2 -1
- package/src/components/css/indent-list.css +40 -7
- package/src/components/css/prose.css +22 -18
- package/src/components/svelte/accordion.css +18 -1
- package/src/components/svelte/drawer.css +9 -0
- package/src/components/svelte/modal.css +14 -14
- package/src/components/svelte/popover.css +8 -4
- package/src/effects/{fancy-box.css → fancybox.css} +44 -17
- package/src/effects/frosted-glass.css +2 -1
- package/src/effects/gradients.css +2 -2
- package/src/effects/index.css +1 -1
- package/src/form/input.css +1 -0
- package/src/generic/anchors-and-buttons.css +7 -3
- package/src/generic/form.css +13 -8
- package/src/generic/index.css +1 -0
- package/src/generic/scroll-behavior.css +5 -0
- package/src/layouts/macro/grid.css +13 -8
- package/src/layouts/micro/divider.css +4 -3
- package/src/layouts/micro/index.css +1 -0
- package/src/layouts/micro/inner-spacing.css +39 -0
- package/src/layouts/micro/micro.css +2 -0
- package/src/layouts/micro/stack.css +18 -0
- package/src/layouts/position/edge.css +72 -34
- package/src/reset.css +1 -1
- package/src/tools/color.css +4 -0
- package/src/tools/index.css +2 -1
- package/src/tools/pigment.css +65 -70
- package/src/tools/scaffolds.css +119 -0
- package/src/tools/transitions.css +18 -2
- package/src/type/index.css +2 -0
- package/src/type/text-edge.css +3 -0
- package/src/type/text-relative.css +51 -0
- package/src/variables/font.css +29 -0
- package/src/variables/radius.css +40 -40
- package/src/variables/variables.css +0 -2
- package/dist/no-tw/layouts.css +0 -1278
- package/dist/no-tw/styles.css +0 -2018
- package/dist/styles.css +0 -1383
- package/src/tools/border.css +0 -59
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splendidlabz/styles",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Zell Liew <zellwk@gmail.com>",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"build": "npm run build-styles & npm run build-layouts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@splendidlabz/utils": "1.
|
|
26
|
+
"@splendidlabz/utils": "1.7.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@splendidlabz/stylelint-config": "3.
|
|
29
|
+
"@splendidlabz/stylelint-config": "3.1.1",
|
|
30
30
|
"@tailwindcss/cli": "^4.1.3",
|
|
31
31
|
"lightningcss-cli": "^1.29.3",
|
|
32
32
|
"tailwindcss": "^4.1.3",
|
|
@@ -3,13 +3,17 @@
|
|
|
3
3
|
--svg-width: 1em;
|
|
4
4
|
--svg-height: 1lh;
|
|
5
5
|
display: grid;
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
/* grid-template-columns: auto 1fr; */
|
|
7
8
|
column-gap: 0.5em;
|
|
8
9
|
|
|
9
10
|
:where(li) {
|
|
10
11
|
grid-column: 1 / -1;
|
|
11
12
|
display: grid;
|
|
12
|
-
|
|
13
|
+
|
|
14
|
+
/* grid-template-columns: subgrid; */
|
|
15
|
+
grid-template-columns: auto 1fr;
|
|
16
|
+
column-gap: inherit;
|
|
13
17
|
|
|
14
18
|
/* Positions the Emoji */
|
|
15
19
|
|
|
@@ -19,10 +23,12 @@
|
|
|
19
23
|
font-size: 0.75em;
|
|
20
24
|
line-height: 1lh;
|
|
21
25
|
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
26
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
:where(ul) {
|
|
28
|
+
grid-column: 2;
|
|
29
|
+
display: grid;
|
|
30
|
+
column-gap: inherit;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
27
33
|
}
|
|
28
34
|
}
|
|
@@ -1,56 +1,97 @@
|
|
|
1
|
+
@utility box {
|
|
2
|
+
@apply card;
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
@utility card {
|
|
2
6
|
& {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
border-radius: var(--radius);
|
|
7
|
+
@apply border-scaffold;
|
|
8
|
+
@apply padding-scaffold;
|
|
6
9
|
}
|
|
7
10
|
}
|
|
8
11
|
|
|
9
|
-
@utility card-
|
|
12
|
+
@utility card-divided {
|
|
10
13
|
& {
|
|
11
|
-
@apply
|
|
14
|
+
@apply border-scaffold;
|
|
15
|
+
position: relative;
|
|
12
16
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
padding: var(--padding, 1rlh);
|
|
17
|
+
&:is(&) {
|
|
18
|
+
gap: 0;
|
|
19
|
+
padding: 0;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
>
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
> *:not(&),
|
|
23
|
+
> :where(astro-slot, astro-island, astro-content) > *:not(&) {
|
|
24
|
+
@apply padding-scaffold;
|
|
25
|
+
--fallback-padding: 1rlh;
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
/* Increase specificity to overwrite padding and gap utilities used on card-split. */
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
gap: 0;
|
|
28
|
-
padding: 0;
|
|
27
|
+
/* @apply inner-radius; */
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
/* Raise for nicer focus ring */
|
|
30
|
+
&:focus-visible {
|
|
31
|
+
z-index: 2;
|
|
33
32
|
}
|
|
34
|
-
}
|
|
35
33
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
&:not(:focus-visible) {
|
|
35
|
+
--z-index: 1;
|
|
36
|
+
animation: z-index-hack var(--transition-duration)
|
|
37
|
+
var(--transition-delay);
|
|
38
|
+
}
|
|
41
39
|
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
@utility card-divided-horizontal {
|
|
44
|
+
@apply horizontal;
|
|
45
|
+
@apply divider-between-y;
|
|
46
|
+
|
|
47
|
+
> * {
|
|
48
|
+
border-width: 0;
|
|
49
|
+
border-radius: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
> :where(:not(:first-child)) {
|
|
53
|
+
border-left-width: var(--border-width);
|
|
54
|
+
border-color: var(--_bc, var(--border-color));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
> :where(:first-child) {
|
|
58
|
+
border-radius: 0;
|
|
59
|
+
border-top-left-radius: var(--radius);
|
|
60
|
+
border-bottom-left-radius: var(--radius);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
> :where(:last-child) {
|
|
64
|
+
border-radius: 0;
|
|
65
|
+
border-top-right-radius: var(--radius);
|
|
66
|
+
border-bottom-right-radius: var(--radius);
|
|
48
67
|
}
|
|
49
68
|
}
|
|
50
69
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
70
|
+
@utility card-divided-vertical {
|
|
71
|
+
@apply vertical;
|
|
72
|
+
@apply divider-between-x;
|
|
73
|
+
|
|
74
|
+
> * {
|
|
75
|
+
border-width: 0;
|
|
76
|
+
border-radius: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
> :where(:not(:first-child)) {
|
|
80
|
+
border-top-width: var(--border-width);
|
|
81
|
+
border-style: var(--border-style);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
> :first-child {
|
|
85
|
+
border-top-left-radius: var(--radius);
|
|
86
|
+
border-top-right-radius: var(--radius);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
> :last-child {
|
|
90
|
+
border-bottom-left-radius: var(--radius);
|
|
91
|
+
border-bottom-right-radius: var(--radius);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@utility card-split {
|
|
96
|
+
@apply card-divided;
|
|
56
97
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
@utility hero-heading {
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
|
-
gap: 0.
|
|
7
|
+
gap: var(--gap, 0.5lh);
|
|
8
8
|
max-width: 100%;
|
|
9
9
|
|
|
10
10
|
> .eyebrow {
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
& {
|
|
30
30
|
@apply hero-heading;
|
|
31
31
|
align-self: center;
|
|
32
|
+
align-items: center;
|
|
32
33
|
margin-inline: auto;
|
|
33
34
|
text-align: center;
|
|
34
35
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@utility indentlist-scaffold {
|
|
2
2
|
--indentlist-depth: 0;
|
|
3
3
|
|
|
4
|
-
li li {
|
|
4
|
+
:where(li li) {
|
|
5
5
|
margin-inline-start: var(--indent, 1em);
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -47,15 +47,16 @@
|
|
|
47
47
|
& {
|
|
48
48
|
@apply indentlist-scaffold;
|
|
49
49
|
|
|
50
|
-
li
|
|
50
|
+
li {
|
|
51
51
|
position: relative;
|
|
52
52
|
margin-inline-start: 0;
|
|
53
|
+
margin-block: 0;
|
|
53
54
|
padding-inline-start: var(--indent, 1em);
|
|
54
55
|
|
|
55
56
|
a {
|
|
56
57
|
position: relative;
|
|
57
|
-
margin-
|
|
58
|
-
padding-
|
|
58
|
+
margin-inline-start: calc(var(--indent, 1em) * -2);
|
|
59
|
+
padding-inline-start: var(--indent, 1em);
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
&::before,
|
|
@@ -65,13 +66,45 @@
|
|
|
65
66
|
top: 0;
|
|
66
67
|
bottom: 0;
|
|
67
68
|
left: 0;
|
|
68
|
-
width: 1px;
|
|
69
|
-
background-color: var(--
|
|
69
|
+
width: var(--guide-width, 1px);
|
|
70
|
+
background-color: var(--guide-color, transparent);
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
a:hover::before {
|
|
73
|
-
background-color: var(--
|
|
74
|
+
background-color: var(--guide-hover-color, var(--guide-color));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
a:focus::before {
|
|
78
|
+
background-color: var(
|
|
79
|
+
--guide-focus-color,
|
|
80
|
+
var(--guide-hover-color, var(--guide-color))
|
|
81
|
+
);
|
|
74
82
|
}
|
|
75
83
|
}
|
|
76
84
|
}
|
|
85
|
+
|
|
86
|
+
li li a {
|
|
87
|
+
margin-inline-start: calc(var(--indent, 1em) * -3);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@utility indentlist-singleguide {
|
|
92
|
+
@apply indentlist-guides;
|
|
93
|
+
|
|
94
|
+
li {
|
|
95
|
+
position: relative;
|
|
96
|
+
margin-inline-start: calc(var(--indent, 1em) * -1);
|
|
97
|
+
padding-inline-start: 0;
|
|
98
|
+
|
|
99
|
+
li a,
|
|
100
|
+
a {
|
|
101
|
+
position: relative;
|
|
102
|
+
margin-inline-start: 0;
|
|
103
|
+
padding-inline-start: calc(var(--indent, 1em) * var(--depth));
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
li li {
|
|
108
|
+
margin-inline-start: 0;
|
|
109
|
+
}
|
|
77
110
|
}
|
|
@@ -7,25 +7,23 @@
|
|
|
7
7
|
|
|
8
8
|
/* Using padding instead of margin, so #targets will leave some whitespace above when scrolling to the component. (We can also use scroll-margin-top + margin-top... but this is simpler). */
|
|
9
9
|
> * + :where(h2),
|
|
10
|
-
> * + :where(astro-island, astro-slot) > :where(
|
|
11
|
-
margin-top:
|
|
12
|
-
scroll-margin-top:
|
|
10
|
+
> * + :where(astro-island, astro-slot) > :where(h2):first-child {
|
|
11
|
+
margin-top: calc(var(--spacing) * 6);
|
|
12
|
+
scroll-margin-top: calc(var(--spacing) * 6);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
> * + :where(h3),
|
|
16
|
-
> * + :where(astro-island, astro-slot) > :where(
|
|
17
|
-
margin-top:
|
|
18
|
-
margin-bottom: -
|
|
19
|
-
scroll-margin-top:
|
|
16
|
+
> * + :where(astro-island, astro-slot) > :where(h3):first-child {
|
|
17
|
+
margin-top: calc(var(--spacing) * 4);
|
|
18
|
+
margin-bottom: calc(var(--spacing) * -2);
|
|
19
|
+
scroll-margin-top: calc(var(--spacing) * 4);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
> * + :where(h4, h5, h6),
|
|
23
|
-
> *
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
margin-top:
|
|
27
|
-
margin-bottom: -1rlh;
|
|
28
|
-
scroll-margin-top: 1rlh;
|
|
23
|
+
> * + :where(astro-island, astro-slot) > :where(h4, h5, h6):first-child {
|
|
24
|
+
margin-top: calc(var(--spacing) * 4);
|
|
25
|
+
margin-bottom: calc(var(--spacing) * -4);
|
|
26
|
+
scroll-margin-top: calc(var(--spacing) * 4);
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
:where(ul) {
|
|
@@ -33,12 +31,13 @@
|
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
/* Basic list styles */
|
|
36
|
-
|
|
37
|
-
> :where(astro-island, astro-slot)
|
|
34
|
+
:where(ul, ol),
|
|
35
|
+
> :where(astro-island, astro-slot) :where(ul, ol) {
|
|
38
36
|
list-style-position: outside;
|
|
39
37
|
margin-left: 2em;
|
|
40
38
|
|
|
41
39
|
:where(ul, ol) {
|
|
40
|
+
margin-left: 0;
|
|
42
41
|
padding-left: 2em;
|
|
43
42
|
}
|
|
44
43
|
|
|
@@ -47,15 +46,15 @@
|
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
li + li {
|
|
50
|
-
margin-top:
|
|
49
|
+
margin-top: calc(var(--spacing));
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
li:has(li) + li {
|
|
54
|
-
margin-top:
|
|
53
|
+
margin-top: calc(var(--spacing) * 2);
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
li > :where(ul, ol) {
|
|
58
|
-
margin-top:
|
|
57
|
+
margin-top: calc(var(--spacing));
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
60
|
|
|
@@ -68,5 +67,10 @@
|
|
|
68
67
|
border: 1px solid oklch(90% 0 0deg);
|
|
69
68
|
border-radius: var(--radius);
|
|
70
69
|
}
|
|
70
|
+
|
|
71
|
+
&.fancylist,
|
|
72
|
+
& .fancylist {
|
|
73
|
+
padding-left: 0;
|
|
74
|
+
}
|
|
71
75
|
}
|
|
72
76
|
}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
@utility accordion-stack {
|
|
2
|
+
@apply card-divided card-divided-vertical;
|
|
3
|
+
|
|
4
|
+
.accordion-button {
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
@utility accordion {
|
|
10
|
+
&:not(.accordion-stack &) {
|
|
11
|
+
@apply border-scaffold;
|
|
12
|
+
}
|
|
13
|
+
|
|
2
14
|
svg {
|
|
3
15
|
transition: var(--transition-values);
|
|
4
16
|
transition-property: var(--transition-props);
|
|
@@ -12,6 +24,7 @@
|
|
|
12
24
|
@utility accordion-button {
|
|
13
25
|
& {
|
|
14
26
|
@apply padding-scaffold;
|
|
27
|
+
--border-width: 0;
|
|
15
28
|
display: flex;
|
|
16
29
|
justify-content: space-between;
|
|
17
30
|
align-items: start;
|
|
@@ -33,5 +46,9 @@
|
|
|
33
46
|
}
|
|
34
47
|
|
|
35
48
|
@utility accordion-content {
|
|
36
|
-
padding
|
|
49
|
+
@apply padding-scaffold;
|
|
50
|
+
|
|
51
|
+
&:not(.accordion-stack &) {
|
|
52
|
+
padding-top: 0;
|
|
53
|
+
}
|
|
37
54
|
}
|
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
@utility drawer-content {
|
|
11
11
|
overflow-y: auto;
|
|
12
12
|
z-index: 100;
|
|
13
|
+
|
|
14
|
+
&.fixed-leftfull {
|
|
15
|
+
border-start-start-radius: 0;
|
|
16
|
+
border-end-start-radius: 0;
|
|
17
|
+
}
|
|
18
|
+
&.fixed-rightfull {
|
|
19
|
+
border-start-end-radius: 0;
|
|
20
|
+
border-end-end-radius: 0;
|
|
21
|
+
}
|
|
13
22
|
}
|
|
14
23
|
|
|
15
24
|
@utility drawer-close-button {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
@layer base {
|
|
2
2
|
/* Prevent scroll when modal is open */
|
|
3
|
-
html:has(.modal) {
|
|
3
|
+
html:has(.modal-content) {
|
|
4
4
|
@apply transition-scaffold;
|
|
5
5
|
--transition-props: overflow;
|
|
6
6
|
transition-duration: 300ms;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
html:has(.modal[open]) {
|
|
9
|
+
html:has(.modal-content[open]) {
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
transition-delay: 0s;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.modal:not([open]) {
|
|
14
|
+
.modal-content:not([open]) {
|
|
15
15
|
pointer-events: none;
|
|
16
16
|
opacity: 0;
|
|
17
17
|
}
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
/* Position fixed and some inset has been automatically applied */
|
|
20
20
|
|
|
21
21
|
/* Base/Closing Style */
|
|
22
|
-
.modal {
|
|
22
|
+
.modal-content {
|
|
23
23
|
@apply border-scaffold;
|
|
24
24
|
margin: auto;
|
|
25
25
|
padding: 1lh;
|
|
26
26
|
color: var(--text-color);
|
|
27
|
-
background: var(--bg-color);
|
|
27
|
+
background: var(--bg-color, white);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.modal::backdrop {
|
|
30
|
+
.modal-content::backdrop {
|
|
31
31
|
backdrop-filter: blur(0);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.modal,
|
|
35
|
-
.modal::backdrop {
|
|
36
|
-
@apply transition-scaffold;
|
|
34
|
+
.modal-content,
|
|
35
|
+
.modal-content::backdrop {
|
|
36
|
+
@apply transition-scaffold-extended;
|
|
37
37
|
--transition-duration: 300ms;
|
|
38
38
|
--transition-easing: ease-in;
|
|
39
39
|
opacity: 0;
|
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/* Opened Style */
|
|
44
|
-
.modal[open],
|
|
45
|
-
.modal[open]::backdrop {
|
|
44
|
+
.modal-content[open],
|
|
45
|
+
.modal-content[open]::backdrop {
|
|
46
46
|
--transition-easing: ease-out;
|
|
47
47
|
opacity: 1;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.modal[open]::backdrop {
|
|
50
|
+
.modal-content[open]::backdrop {
|
|
51
51
|
backdrop-filter: blur(var(--blur, 6px));
|
|
52
52
|
background: var(--backdrop-bg, oklch(0% 0 0deg / 50%));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
@starting-style {
|
|
56
|
-
.modal[open],
|
|
57
|
-
.modal[open]::backdrop {
|
|
56
|
+
.modal-content[open],
|
|
57
|
+
.modal-content[open]::backdrop {
|
|
58
58
|
backdrop-filter: blur(0);
|
|
59
59
|
opacity: 0;
|
|
60
60
|
}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
@layer base {
|
|
2
2
|
[popover] {
|
|
3
3
|
@apply border-scaffold;
|
|
4
|
-
@apply transition-scaffold;
|
|
4
|
+
@apply transition-scaffold-extended;
|
|
5
5
|
--transition-duration: 300ms;
|
|
6
6
|
--transition-easing: ease-out;
|
|
7
7
|
position: absolute;
|
|
8
8
|
max-width: 100%;
|
|
9
9
|
padding: 1rem;
|
|
10
10
|
color: var(--text-color);
|
|
11
|
-
background: var(--bg-color);
|
|
11
|
+
background: var(--bg-color, white);
|
|
12
12
|
opacity: 0;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
[popover]:not(:popover-open) {
|
|
16
|
+
display: none !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
15
19
|
[popover]:popover-open {
|
|
16
20
|
--transition-easing: ease-in;
|
|
17
21
|
opacity: 1;
|
|
@@ -19,6 +23,7 @@
|
|
|
19
23
|
|
|
20
24
|
@starting-style {
|
|
21
25
|
[popover]:popover-open {
|
|
26
|
+
display: block;
|
|
22
27
|
opacity: 0;
|
|
23
28
|
}
|
|
24
29
|
}
|
|
@@ -31,8 +36,7 @@
|
|
|
31
36
|
opacity: 0;
|
|
32
37
|
}
|
|
33
38
|
|
|
34
|
-
[popover] >
|
|
35
|
-
.popover-content {
|
|
39
|
+
[popover] > * {
|
|
36
40
|
overflow: auto;
|
|
37
41
|
}
|
|
38
42
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
--color-space: oklch;
|
|
3
|
+
--hue-interpolation: shorter hue;
|
|
4
|
+
|
|
2
5
|
/* --inner-gradient: linear-gradient(var(--gradient-angle), #563444, #4ecdc4); */
|
|
3
6
|
/* --bg-color: transparent;
|
|
4
7
|
--outer-gradient: linear-gradient(
|
|
@@ -9,40 +12,64 @@
|
|
|
9
12
|
--text-color: white; */
|
|
10
13
|
}
|
|
11
14
|
|
|
12
|
-
|
|
15
|
+
/* Useful for creating gradient border with solid color within. Not very useful if you wanna stack gradients together and bleed it out. */
|
|
16
|
+
@utility fancybox {
|
|
13
17
|
& {
|
|
14
18
|
@apply border-scaffold;
|
|
15
|
-
--a: var(--arrow-angle, 90deg);
|
|
16
|
-
--h: var(--arrow-height, 0.75em);
|
|
17
|
-
--p: var(--arrow-position, 50%);
|
|
18
19
|
--b: var(--border-width);
|
|
19
20
|
--r: var(--radius);
|
|
20
|
-
--
|
|
21
|
-
var(--
|
|
22
|
-
|
|
21
|
+
--_inner-gradient: linear-gradient(
|
|
22
|
+
var(--inner-gradient-angle, var(--gradient-angle)) in
|
|
23
|
+
var(--inner-gradient-color-space, var(--color-space))
|
|
24
|
+
var(--inner-gradient-hue-interpolation, var(--hue-interpolation)),
|
|
25
|
+
var(
|
|
26
|
+
--inner-gradient,
|
|
27
|
+
var(--bg-color, transparent),
|
|
28
|
+
var(--bg-color, transparent)
|
|
29
|
+
)
|
|
23
30
|
);
|
|
24
|
-
--
|
|
25
|
-
var(--
|
|
26
|
-
|
|
31
|
+
--_outer-gradient: linear-gradient(
|
|
32
|
+
var(--outer-gradient-angle, var(--gradient-angle)) in
|
|
33
|
+
var(--outer-gradient-color-space, var(--color-space))
|
|
34
|
+
var(--outer-gradient-hue-interpolation, var(--hue-interpolation)),
|
|
35
|
+
var(
|
|
36
|
+
--outer-gradient,
|
|
37
|
+
var(--border-color, transparent),
|
|
38
|
+
var(--border-color, transparent)
|
|
39
|
+
)
|
|
27
40
|
);
|
|
28
|
-
overflow: visible;
|
|
29
41
|
position: relative;
|
|
30
|
-
z-index: 0;
|
|
31
|
-
padding: 0.5em; /* To remove */
|
|
32
42
|
border-width: var(--b);
|
|
33
43
|
border-color: transparent;
|
|
34
44
|
color: var(--text-color);
|
|
35
45
|
background:
|
|
36
|
-
padding-box var(--
|
|
37
|
-
border-box var(--
|
|
46
|
+
padding-box var(--_inner-gradient),
|
|
47
|
+
border-box var(--_outer-gradient);
|
|
38
48
|
|
|
39
49
|
/* animation: rotate-angle 10s linear infinite paused; */
|
|
40
50
|
}
|
|
41
51
|
}
|
|
42
52
|
|
|
43
|
-
|
|
53
|
+
/* Creates a border on the fancybox so the gradient bleeds onto the border. */
|
|
54
|
+
@utility fancybox-bleed-border {
|
|
55
|
+
&::after {
|
|
56
|
+
content: '';
|
|
57
|
+
pointer-events: none;
|
|
58
|
+
position: absolute;
|
|
59
|
+
inset: calc(-1 * var(--border-width));
|
|
60
|
+
border: var(--border-width) var(--border-style) var(--border-color);
|
|
61
|
+
border-radius: inherit;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@utility fancybox-arrow {
|
|
44
66
|
& {
|
|
45
|
-
@apply
|
|
67
|
+
@apply fancybox;
|
|
68
|
+
--a: var(--arrow-angle, 90deg);
|
|
69
|
+
--h: var(--arrow-height, 0.75em);
|
|
70
|
+
--p: var(--arrow-position, 50%);
|
|
71
|
+
overflow: visible;
|
|
72
|
+
z-index: 0;
|
|
46
73
|
}
|
|
47
74
|
|
|
48
75
|
&.arrow-top,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
--gradient-position: center; /* For radial and conic gradients */
|
|
14
14
|
--gradient-shape: ; /* For radial and conic gradients */
|
|
15
15
|
--gradient-size: ; /* For radial gradient */
|
|
16
|
-
--color-space:
|
|
16
|
+
--color-space: oklch;
|
|
17
17
|
--hue-interpolation: ;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
var(--gradient)
|
|
83
83
|
);
|
|
84
84
|
|
|
85
|
-
@supports (linear-gradient(in
|
|
85
|
+
@supports (linear-gradient(in oklch)) {
|
|
86
86
|
background-image: repeating-linear-gradient(
|
|
87
87
|
var(--gradient-angle) in var(--color-space) var(--hue-interpolation),
|
|
88
88
|
var(--gradient)
|
package/src/effects/index.css
CHANGED
package/src/form/input.css
CHANGED