@splendidlabz/styles 4.6.7 → 4.6.8
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 +1 -1
- package/src/components/css/hero-heading.css +0 -5
- package/src/components/css/index.css +1 -0
- package/src/components/css/strikethrough.css +17 -0
- package/src/components/svelte/accordion.css +36 -13
- package/src/effects/gradients.css +1 -1
- package/src/generic/anchors-and-buttons.css +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@utility strikethrough {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
|
|
5
|
+
&::after {
|
|
6
|
+
content: '';
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 50%;
|
|
10
|
+
left: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
height: var(--strike-width, 0.125em);
|
|
13
|
+
background: var(--strike-color, currentColor);
|
|
14
|
+
transform: translateY(-50%) rotate(var(--strike-angle, 0deg));
|
|
15
|
+
transform-origin: center;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,36 +1,62 @@
|
|
|
1
1
|
@utility accordion-stack {
|
|
2
|
-
@apply
|
|
2
|
+
@apply border-scaffold;
|
|
3
|
+
|
|
4
|
+
> *:not(:last-child),
|
|
5
|
+
> *:where(astro-slot, astro-content, astro-island):not(:last-child) > * {
|
|
6
|
+
border-bottom: var(--border-width) solid var(--border-color);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
> *:where(:first-child),
|
|
10
|
+
> *:where(astro-slot, astro-content, astro-island):first-child > * {
|
|
11
|
+
border-radius: 0;
|
|
12
|
+
border-top-left-radius: calc(var(--radius) - var(--border-width));
|
|
13
|
+
border-top-right-radius: calc(var(--radius) - var(--border-width));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
> *:where(:last-child),
|
|
17
|
+
> *:where(astro-slot, astro-content, astro-island):last-child > * {
|
|
18
|
+
border-radius: 0;
|
|
19
|
+
border-bottom-left-radius: calc(var(--radius) - var(--border-width));
|
|
20
|
+
border-bottom-right-radius: calc(var(--radius) - var(--border-width));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.accordion-title {
|
|
24
|
+
border-radius: inherit;
|
|
25
|
+
}
|
|
3
26
|
|
|
4
27
|
.accordion-button {
|
|
5
|
-
|
|
28
|
+
border-radius: inherit;
|
|
6
29
|
}
|
|
7
30
|
}
|
|
8
31
|
|
|
9
32
|
@utility accordion {
|
|
33
|
+
padding: 0;
|
|
34
|
+
|
|
10
35
|
&:not(.accordion-stack &) {
|
|
11
36
|
@apply border-scaffold;
|
|
12
37
|
}
|
|
13
38
|
|
|
39
|
+
*:where([aria-expanded='true'] svg) {
|
|
40
|
+
transform: rotate(90deg);
|
|
41
|
+
}
|
|
42
|
+
|
|
14
43
|
svg {
|
|
15
44
|
transition: var(--transition-values);
|
|
16
45
|
transition-property: var(--transition-props);
|
|
17
46
|
}
|
|
18
|
-
|
|
19
|
-
:where([aria-expanded='true'] svg) {
|
|
20
|
-
transform: rotate(90deg);
|
|
21
|
-
}
|
|
22
47
|
}
|
|
23
48
|
|
|
24
49
|
@utility accordion-button {
|
|
25
50
|
& {
|
|
26
|
-
@apply padding-scaffold;
|
|
27
|
-
--border-width: 0;
|
|
28
51
|
display: flex;
|
|
29
52
|
justify-content: space-between;
|
|
30
53
|
align-items: start;
|
|
31
54
|
gap: var(--gap);
|
|
32
55
|
width: 100%;
|
|
33
56
|
max-width: 100%;
|
|
57
|
+
padding: calc(var(--spacing) * 4);
|
|
58
|
+
border-width: 0;
|
|
59
|
+
border-radius: inherit;
|
|
34
60
|
font: inherit;
|
|
35
61
|
text-align: left;
|
|
36
62
|
|
|
@@ -47,9 +73,6 @@
|
|
|
47
73
|
}
|
|
48
74
|
|
|
49
75
|
@utility accordion-content {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
&:not(.accordion-stack &) {
|
|
53
|
-
padding-top: 0;
|
|
54
|
-
}
|
|
76
|
+
@apply prose;
|
|
77
|
+
padding: calc(var(--spacing) * 4);
|
|
55
78
|
}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
padding: 0.125lh 0.75lh;
|
|
11
11
|
font: inherit;
|
|
12
12
|
text-decoration-line: none !important;
|
|
13
|
-
cursor: pointer;
|
|
14
13
|
|
|
15
14
|
&[disabled] {
|
|
16
15
|
cursor: default;
|
|
@@ -55,6 +54,7 @@
|
|
|
55
54
|
|
|
56
55
|
button {
|
|
57
56
|
@apply button;
|
|
57
|
+
cursor: pointer;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/* focus states with outlines */
|