@splendidlabz/styles 4.7.1 → 4.8.1

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.7.1",
3
+ "version": "4.8.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "homepage": "https://splendidlabz.com/docs/styles",
@@ -29,10 +29,10 @@
29
29
  "@splendidlabz/utils": "*"
30
30
  },
31
31
  "devDependencies": {
32
- "@splendidlabz/stylelint-config": "3.1.1",
33
- "@tailwindcss/cli": "^4.1.3",
34
- "lightningcss-cli": "^1.29.3",
35
- "tailwindcss": "^4.1.3",
36
- "turbowatch": "^2.29.4"
32
+ "@splendidlabz/stylelint-config": "3.1.2",
33
+ "@tailwindcss/cli": "^4.2.2",
34
+ "lightningcss-cli": "^1.32.0",
35
+ "tailwindcss": "^4.2.2",
36
+ "turbowatch": "^2.30.0"
37
37
  }
38
38
  }
@@ -1,16 +1,12 @@
1
1
  @utility tablist {
2
- & {
3
- display: flex;
4
- gap: 0.5lh;
5
- }
2
+ display: flex;
3
+ gap: 0.5lh;
6
4
  }
7
5
 
8
6
  @utility tab {
9
- & {
10
- align-items: start;
11
- padding: 0.25rlh 0.5rlh;
12
- text-align: left;
13
- }
7
+ align-items: start;
8
+ padding: 0.25rlh 0.5rlh;
9
+ text-align: left;
14
10
 
15
11
  &[aria-selected] {
16
12
  z-index: 2;
@@ -18,10 +14,8 @@
18
14
  }
19
15
 
20
16
  @utility tabpanels {
21
- & {
22
- @apply border-scaffold;
23
- position: relative;
24
- }
17
+ @apply border-scaffold;
18
+ position: relative;
25
19
  }
26
20
 
27
21
  @utility tabpanel {
@@ -37,28 +31,24 @@
37
31
 
38
32
  @utility tablist-left {
39
33
  --placement: left;
34
+ display: flex;
35
+ flex-flow: column nowrap;
36
+
37
+ :where(.tab) {
38
+ align-self: stretch;
39
+ justify-content: left;
40
+ }
40
41
  }
41
42
 
42
43
  @utility tablist-right {
43
44
  --placement: right;
44
45
  order: 2;
45
- }
46
-
47
- @layer components {
48
- /*********************
49
- * Tab placements *
50
- *********************/
46
+ display: flex;
47
+ flex-flow: column nowrap;
51
48
 
52
- /* Top */
53
-
54
- /* Left and Right */
55
- :is(.tablist-left, .tablist-right) {
56
- display: flex;
57
- flex-flow: column nowrap;
58
-
59
- :where(.tab) {
60
- align-self: stretch;
61
- }
49
+ :where(.tab) {
50
+ align-self: stretch;
51
+ justify-content: left;
62
52
  }
63
53
  }
64
54
 
@@ -115,12 +105,10 @@
115
105
  }
116
106
 
117
107
  @utility tablist-card-divided {
118
- & {
119
- @apply border-scaffold;
120
- position: relative;
121
- gap: 0;
122
- padding: 0;
123
- }
108
+ @apply border-scaffold;
109
+ position: relative;
110
+ gap: 0;
111
+ padding: 0;
124
112
 
125
113
  &:where(.tablist-top) {
126
114
  :where(.tab) {
@@ -1,56 +1,52 @@
1
1
  @utility input-container {
2
- & {
3
- --padding: 0.25lh 0.5lh;
4
- display: flex;
5
- flex-direction: column;
6
- gap: 0.25lh;
7
-
8
- :where(.label) {
9
- color: var(--text-color, inherit);
10
- }
2
+ --padding: 0.25lh 0.5lh;
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: 0.25lh;
11
6
 
12
- :where(.hint) {
13
- opacity: 0.5;
14
- }
7
+ :where(.label) {
8
+ color: var(--text-color, inherit);
9
+ }
15
10
 
16
- :where(.error) {
17
- color: red;
18
- }
11
+ :where(.hint) {
12
+ opacity: 0.5;
13
+ }
14
+
15
+ :where(.error) {
16
+ color: red;
19
17
  }
20
18
  }
21
19
 
22
20
  @utility input-group {
23
- & {
24
- @apply pigment;
25
- position: relative;
26
- display: flex;
27
-
28
- /* Allow all inner items to use the same padding values */
29
- > *,
30
- > :where(astro-slot, astro-content, astro-island) > * {
31
- padding: var(--padding);
32
- border-width: 0;
33
-
34
- /* TODO: Remove the following and use 'card-divided-horizontal' and 'card-divided-vertical' instead. Keep padding though */
35
- &:where(:not(:first-child, :last-child)) {
36
- border-radius: 0;
37
- }
38
-
39
- /* Raise position for nicer focus */
40
- &:focus,
41
- &:focus-visible {
42
- z-index: 2;
43
- }
44
-
45
- &:first-child {
46
- border-start-start-radius: calc(var(--radius) - var(--border-width));
47
- border-end-start-radius: calc(var(--radius) - var(--border-width));
48
- }
49
-
50
- &:last-child {
51
- border-start-end-radius: calc(var(--radius) - var(--border-width));
52
- border-end-end-radius: calc(var(--radius) - var(--border-width));
53
- }
21
+ @apply pigment;
22
+ position: relative;
23
+ display: flex;
24
+
25
+ /* Allow all inner items to use the same padding values */
26
+ > *,
27
+ > :where(astro-slot, astro-content, astro-island) > * {
28
+ padding: var(--padding);
29
+ border-width: 0;
30
+
31
+ /* TODO: Remove the following and use 'card-divided-horizontal' and 'card-divided-vertical' instead. Keep padding though */
32
+ &:where(:not(:first-child, :last-child)) {
33
+ border-radius: 0;
34
+ }
35
+
36
+ /* Raise position for nicer focus */
37
+ &:focus,
38
+ &:focus-visible {
39
+ z-index: 2;
40
+ }
41
+
42
+ &:first-child {
43
+ border-start-start-radius: calc(var(--radius) - var(--border-width));
44
+ border-end-start-radius: calc(var(--radius) - var(--border-width));
45
+ }
46
+
47
+ &:last-child {
48
+ border-start-end-radius: calc(var(--radius) - var(--border-width));
49
+ border-end-end-radius: calc(var(--radius) - var(--border-width));
54
50
  }
55
51
  }
56
52
  }
@@ -1,5 +1,6 @@
1
+ @import './section.css';
2
+ @import './wrap.css';
1
3
  @import './grid.css';
2
4
  @import './subgrid.css';
3
5
  @import './masonry.css';
4
6
  @import './grid-flex.css';
5
- @import './wrap.css';
@@ -0,0 +1,22 @@
1
+ @theme inline {
2
+ --spacing-section: 2rlh;
3
+ --spacing-section-mini: calc(var(--spacing-section) * 0.5);
4
+ --spacing-section-cont: 0;
5
+ }
6
+
7
+ @utility section {
8
+ padding-block: var(--spacing-section);
9
+ }
10
+
11
+ @utility section-mini {
12
+ padding-block: var(--spacing-section-mini);
13
+ }
14
+
15
+ @utility section-cont {
16
+ @apply section;
17
+
18
+ .section + &,
19
+ & + & {
20
+ padding-block-start: var(--spacing-section-cont);
21
+ }
22
+ }
@@ -1,7 +1,8 @@
1
1
  @theme {
2
2
  --snap-align: start;
3
3
  --snap-type: proximity;
4
- --scroll-margin: 1rlh;
4
+
5
+ /* --scroll-margin: 1rlh; */
5
6
  }
6
7
 
7
8
  @utility scrollable {
@@ -39,6 +39,7 @@
39
39
  }
40
40
 
41
41
  &:hover,
42
+ &:focus-visible,
42
43
  &:focus-within {
43
44
  > .overlay {
44
45
  opacity: 1;