@redseed/redseed-ui-tailwindcss 7.50.0 → 7.52.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/components/card.css
CHANGED
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.rsui-card__image__badge-container {
|
|
119
|
-
@apply absolute inset-x-0 w-full bottom-0 py-space-
|
|
119
|
+
@apply absolute inset-x-0 w-full bottom-0 py-space-lg px-space-xl flex gap-space-xxs;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.rsui-card__content {
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.rsui-card__content--padded {
|
|
127
|
-
@apply py-space-
|
|
127
|
+
@apply py-space-lg px-space-xl min-h-16;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.rsui-card__meta {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.rsui-card-header {
|
|
2
2
|
@apply @container/card-header;
|
|
3
3
|
@apply flex flex-col gap-x-space-sm gap-y-space-lg transition-all;
|
|
4
|
-
@apply pt-space-
|
|
4
|
+
@apply pt-space-lg pb-0 px-space-xl;
|
|
5
5
|
@apply border-b border-transparent;
|
|
6
6
|
|
|
7
7
|
@apply @md/card-header:flex-row @md/card-header:justify-between @md/card-header:items-center;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.rsui-card-header--padded-bottom {
|
|
20
|
-
@apply pb-space-
|
|
20
|
+
@apply pb-space-lg;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.rsui-card-header__header {
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
.rsui-card-horizontal__body {
|
|
176
176
|
/* Mobile: body fills full width below the image (self-stretch default).
|
|
177
177
|
sm+: self-start so body drives the grid row height (not stretches to it). */
|
|
178
|
-
@apply flex flex-col gap-y-space-xs
|
|
178
|
+
@apply flex flex-col gap-y-space-xs py-space-lg px-space-xl min-w-0;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
@container card-horizontal (min-width: calc(32rem - 2px)) /* --container-lg (32rem=512px) - 2px border */ {
|
package/components/loader.css
CHANGED
|
@@ -2,22 +2,74 @@
|
|
|
2
2
|
@apply max-w-24 max-h-24 min-w-3 min-h-3 transition;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/* The mark carries its own intrinsic width/height, so it scales down to
|
|
6
|
+
whatever the container allows — the max-* above when standalone, or the
|
|
7
|
+
size Icon sets on its child when nested inside one. */
|
|
8
|
+
.rsui-loader svg {
|
|
9
|
+
@apply w-auto h-auto max-w-full max-h-full;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* Default: the two-tone RedSeed mark. The colour props override both halves
|
|
13
|
+
with a single colour, for places where the brand mark would compete — on a
|
|
14
|
+
filled button, or inline in a sentence. */
|
|
15
|
+
.rsui-loader--brand .rsui-loader__mark {
|
|
16
|
+
fill: var(--Colors-Journey-Green-500);
|
|
7
17
|
}
|
|
8
18
|
|
|
9
|
-
.rsui-loader--
|
|
19
|
+
.rsui-loader--brand .rsui-loader__accent {
|
|
20
|
+
fill: var(--Colors-Warm-Mauve-500);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.rsui-loader--primary .rsui-loader__mark,
|
|
24
|
+
.rsui-loader--primary .rsui-loader__accent {
|
|
10
25
|
@apply fill-text-primary;
|
|
11
26
|
}
|
|
12
27
|
|
|
13
|
-
.rsui-loader--secondary
|
|
28
|
+
.rsui-loader--secondary .rsui-loader__mark,
|
|
29
|
+
.rsui-loader--secondary .rsui-loader__accent {
|
|
14
30
|
@apply fill-text-secondary;
|
|
15
31
|
}
|
|
16
32
|
|
|
17
|
-
.rsui-loader--white
|
|
33
|
+
.rsui-loader--white .rsui-loader__mark,
|
|
34
|
+
.rsui-loader--white .rsui-loader__accent {
|
|
18
35
|
@apply fill-background-primary;
|
|
19
36
|
}
|
|
20
37
|
|
|
38
|
+
/* 417 is the length of the mask path. The stroke paints in over the first
|
|
39
|
+
half of the cycle, holds for a beat, then retraces back out. */
|
|
40
|
+
.rsui-loader__journey {
|
|
41
|
+
stroke-dasharray: 417;
|
|
42
|
+
stroke-dashoffset: 417;
|
|
43
|
+
animation: rsui-loader-paint 2.6s linear infinite;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@keyframes rsui-loader-paint {
|
|
47
|
+
0% {
|
|
48
|
+
stroke-dashoffset: 417;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
49.52% {
|
|
52
|
+
stroke-dashoffset: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
50.48% {
|
|
56
|
+
stroke-dashoffset: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
100% {
|
|
60
|
+
stroke-dashoffset: 417;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Reduced motion still needs the mark visible — the loader is the only thing
|
|
65
|
+
on screen while content loads, so hiding it would leave an empty region. */
|
|
66
|
+
@media (prefers-reduced-motion: reduce) {
|
|
67
|
+
.rsui-loader__journey {
|
|
68
|
+
animation: none;
|
|
69
|
+
stroke-dashoffset: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
21
73
|
.rsui-loader__label {
|
|
22
74
|
@apply sr-only;
|
|
23
75
|
}
|