@splendidlabz/styles 4.3.1 → 4.3.2

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.3.1",
3
+ "version": "4.3.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "author": "Zell Liew <zellwk@gmail.com>",
@@ -16,7 +16,6 @@
16
16
  column-gap: inherit;
17
17
 
18
18
  /* Positions the Emoji */
19
-
20
19
  /* This is kind of brute-forced at the moment. */
21
20
  :where(.emoji),
22
21
  > :where(astro-slot, astro-island) > :where(.emoji) {
@@ -62,14 +62,14 @@
62
62
  text-decoration: underline;
63
63
  }
64
64
 
65
- > img,
66
- figure img {
65
+ :where(> img),
66
+ :where(> figure img) {
67
67
  border: 1px solid oklch(90% 0 0deg);
68
68
  border-radius: var(--radius);
69
69
  }
70
70
 
71
- &.fancylist,
72
- & .fancylist {
71
+ :where(.fancylist) {
72
+ margin-left: 1em;
73
73
  padding-left: 0;
74
74
  }
75
75
  }
@@ -4,10 +4,7 @@
4
4
  @utility table-scaffold {
5
5
  & {
6
6
  width: 100%;
7
-
8
- /* font: inherit; Not sure if needed? */
9
- font-variant-numeric: lining-nums tabular-nums slashed-zero
10
- diagonal-fractions;
7
+ font-variant-numeric: lining-nums tabular-nums slashed-zero;
11
8
  }
12
9
  }
13
10
 
@@ -111,7 +108,7 @@ table {
111
108
  }
112
109
 
113
110
  &:not(:has(thead)) tr {
114
- tr:nth-child(2n + 3) {
111
+ &:nth-child(2n + 3) {
115
112
  background-color: var(--alt-row-color);
116
113
  }
117
114
  }
@@ -122,7 +119,6 @@ table {
122
119
  }
123
120
 
124
121
  /* Row Headers */
125
-
126
122
  /* Not adding border-right because it's a bit too much if table-layout is auto */
127
123
  th:where([scope='group'], [scope='row']) {
128
124
  @apply table-header-column;
@@ -7,7 +7,6 @@
7
7
  @apply transition-scaffold-extended;
8
8
  position: relative;
9
9
  backdrop-filter: blur(var(--blur, 16px));
10
- border: inherit;
11
10
  }
12
11
  }
13
12
 
package/src/type/font.css CHANGED
@@ -4,15 +4,19 @@
4
4
  inherits: true;
5
5
  }
6
6
 
7
- /*
8
- @property --font-opsz {
7
+ @property --font-slant {
9
8
  syntax: '<integer> | auto';
10
- initial-value: 25;
9
+ initial-value: 0;
11
10
  inherits: true;
12
11
  }
13
12
 
14
- @property --font-width {
13
+ @property --font-opsz {
15
14
  syntax: '<integer> | auto';
16
- initial-value: 100;
15
+ initial-value: 25;
17
16
  inherits: true;
18
- } */
17
+ }
18
+
19
+ @utility font-weight-* {
20
+ --font-weight: --value([integer]);
21
+ font-weight: var(--font-weight);
22
+ }
@@ -1,3 +1,4 @@
1
1
  @import './font-position.css';
2
2
  @import './text-relative.css';
3
3
  @import './text-edge.css';
4
+ @import './font.css';