@splendidlabz/styles 4.6.7 → 4.7.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 +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/components/svelte/tabs.css +34 -30
- 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
|
}
|
|
@@ -30,6 +30,40 @@
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
@utility tablist-top {
|
|
34
|
+
--placement: top;
|
|
35
|
+
--scrollbar-width: none;
|
|
36
|
+
--scrollbar-size: 0px;
|
|
37
|
+
max-width: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@layer components {
|
|
41
|
+
/*********************
|
|
42
|
+
* Tab placements *
|
|
43
|
+
*********************/
|
|
44
|
+
|
|
45
|
+
/* Top */
|
|
46
|
+
|
|
47
|
+
/* Left and Right */
|
|
48
|
+
:is(.tablist-left, .tablist-right) {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-flow: column nowrap;
|
|
51
|
+
|
|
52
|
+
:where(.tab) {
|
|
53
|
+
align-self: stretch;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.tablist-left {
|
|
58
|
+
--placement: left;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.tablist-right {
|
|
62
|
+
--placement: right;
|
|
63
|
+
order: 2;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
33
67
|
/*********************
|
|
34
68
|
* Variations *
|
|
35
69
|
*********************/
|
|
@@ -116,8 +150,6 @@
|
|
|
116
150
|
|
|
117
151
|
&.tablist-left,
|
|
118
152
|
&.tablist-right {
|
|
119
|
-
background: red !important;
|
|
120
|
-
|
|
121
153
|
:where(.tab) {
|
|
122
154
|
border-width: 0;
|
|
123
155
|
border-radius: 0;
|
|
@@ -139,31 +171,3 @@
|
|
|
139
171
|
}
|
|
140
172
|
}
|
|
141
173
|
}
|
|
142
|
-
|
|
143
|
-
@utility tablist-top {
|
|
144
|
-
--scrollbar-width: none;
|
|
145
|
-
--scrollbar-size: 0px;
|
|
146
|
-
max-width: 100%;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
@layer components {
|
|
150
|
-
/*********************
|
|
151
|
-
* Tab placements *
|
|
152
|
-
*********************/
|
|
153
|
-
|
|
154
|
-
/* Top */
|
|
155
|
-
|
|
156
|
-
/* Left and Right */
|
|
157
|
-
:is(.tablist-left, .tablist-right) {
|
|
158
|
-
display: flex;
|
|
159
|
-
flex-flow: column nowrap;
|
|
160
|
-
|
|
161
|
-
:where(.tab) {
|
|
162
|
-
align-self: stretch;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.tablist-right {
|
|
167
|
-
order: 2;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
@@ -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 */
|