@splendidlabz/styles 4.8.0 → 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
package/src/form/input.css
CHANGED
|
@@ -1,56 +1,52 @@
|
|
|
1
1
|
@utility input-container {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
:where(.label) {
|
|
8
|
+
color: var(--text-color, inherit);
|
|
9
|
+
}
|
|
15
10
|
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
}
|