@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splendidlabz/styles",
3
- "version": "4.6.7",
3
+ "version": "4.6.8",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "homepage": "https://splendidlabz.com/docs/styles",
@@ -4,11 +4,6 @@
4
4
  @utility hero-heading {
5
5
  display: flex;
6
6
  flex-direction: column;
7
- gap: 0.5lh;
8
-
9
- > .eyebrow {
10
- font-size: var(--eyebrow-size, 0.6em);
11
- }
12
7
 
13
8
  > *,
14
9
  > *:where(.contents) > *,
@@ -8,3 +8,4 @@
8
8
  @import './simple-svg.css';
9
9
  @import './table.css';
10
10
  @import './writing-mode.css';
11
+ @import './strikethrough.css';
@@ -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 card-divided card-divided-vertical;
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
- padding: 0;
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
- /* @apply padding-scaffold; */
51
-
52
- &:not(.accordion-stack &) {
53
- padding-top: 0;
54
- }
76
+ @apply prose;
77
+ padding: calc(var(--spacing) * 4);
55
78
  }
@@ -1,5 +1,5 @@
1
1
  @property --gradient-angle {
2
- syntax: '*';
2
+ syntax: '<angle> | to [left | right | top | bottom] | to [top | bottom] [left | right]';
3
3
  initial-value: to bottom;
4
4
  inherits: false;
5
5
  }
@@ -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 */