@aortl/admin-css 0.13.1 → 0.13.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/dist/admin.css +32 -10
- package/dist/admin.min.css +1 -1
- package/dist/admin.scoped.css +32 -10
- package/dist/admin.scoped.min.css +14 -11
- package/dist/admin.utilities.css +4 -3
- package/dist/admin.utilities.min.css +1 -1
- package/package.json +1 -1
- package/src/components/alert.css +10 -1
- package/src/components/property-list.css +8 -0
- package/src/fonts.css +42 -13
- package/src/theme.css +4 -3
package/package.json
CHANGED
package/src/components/alert.css
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.alert {
|
|
3
3
|
@apply flex flex-col gap-1 w-full px-3 py-2 rounded-md border text-sm text-text;
|
|
4
|
+
/* Inherited by the title, description, and any bare-text body so long
|
|
5
|
+
words/URLs break instead of overflowing the (often grid-tracked) body. */
|
|
6
|
+
overflow-wrap: break-word;
|
|
4
7
|
}
|
|
5
8
|
|
|
6
9
|
/* Leading icon as a direct child switches the layout to a two-column grid:
|
|
@@ -9,7 +12,9 @@
|
|
|
9
12
|
or any other inline SVG. */
|
|
10
13
|
.alert:has(> :is(i, svg):first-child) {
|
|
11
14
|
display: grid;
|
|
12
|
-
|
|
15
|
+
/* `minmax(0, 1fr)` (not the default `minmax(auto, 1fr)`) lets the text
|
|
16
|
+
column shrink below its longest word so the body wraps. */
|
|
17
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
13
18
|
column-gap: 0.5rem;
|
|
14
19
|
row-gap: 0.25rem;
|
|
15
20
|
align-items: center;
|
|
@@ -33,8 +38,12 @@
|
|
|
33
38
|
grid-row: 1 / -1;
|
|
34
39
|
}
|
|
35
40
|
|
|
41
|
+
/* Grid items default to `min-width: auto` and won't shrink below their
|
|
42
|
+
longest word; `min-width: 0` lets the title/description wrap inside the
|
|
43
|
+
text column. */
|
|
36
44
|
.alert > :is(.alert-title, .alert-description) {
|
|
37
45
|
grid-column: 2;
|
|
46
|
+
min-width: 0;
|
|
38
47
|
}
|
|
39
48
|
|
|
40
49
|
.alert-info {
|
|
@@ -28,13 +28,21 @@
|
|
|
28
28
|
@apply text-text-muted;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/* `min-width: 0` lets the value's grid track shrink below its content; pair
|
|
32
|
+
it with `overflow-wrap` so long unbreakable values (IDs, hashes, emails,
|
|
33
|
+
URLs, file paths) break instead of overflowing the column. */
|
|
31
34
|
.property-list-value {
|
|
32
35
|
gap: 0.5rem;
|
|
33
36
|
min-width: 0;
|
|
37
|
+
overflow-wrap: break-word;
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
/* Compact density — tighter rows for sidebar info blocks or very many
|
|
37
41
|
short attributes. */
|
|
42
|
+
.property-list-compact .property-list-title {
|
|
43
|
+
@apply mb-1;
|
|
44
|
+
}
|
|
45
|
+
|
|
38
46
|
.property-list-compact .property-list-label,
|
|
39
47
|
.property-list-compact .property-list-value {
|
|
40
48
|
padding: 0.125rem 0.5rem;
|
package/src/fonts.css
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* IBM Plex Sans + Mono — the default UI typeface for this design system.
|
|
3
3
|
*
|
|
4
|
-
* Hosted on Google's CDN (fonts.gstatic.com), latin + latin-ext subsets
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Hosted on Google's CDN (fonts.gstatic.com), latin + latin-ext subsets only.
|
|
5
|
+
* Plex Sans is served as a variable font (one file covers weights 400–600 via
|
|
6
|
+
* the wght axis); Plex Mono ships as discrete weight files.
|
|
7
7
|
*
|
|
8
|
-
* `font-display:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* `font-display: swap` paints text immediately. Layout shift on swap is
|
|
9
|
+
* neutralised by the metric-matched fallback faces below ("IBM Plex Sans
|
|
10
|
+
* Fallback" / "IBM Plex Mono Fallback"): they alias a local system font but
|
|
11
|
+
* override its metrics to occupy Plex's exact box, so the swap changes glyph
|
|
12
|
+
* shapes without moving anything. The fallback families are wired into
|
|
13
|
+
* `--font-sans` / `--font-mono` in theme.css, ahead of the generic stack.
|
|
12
14
|
*
|
|
13
15
|
* Opt out by overriding `--font-sans` / `--font-mono`, or by importing
|
|
14
16
|
* admin-css's source files individually and skipping this one.
|
|
@@ -19,7 +21,7 @@
|
|
|
19
21
|
font-family: "IBM Plex Sans";
|
|
20
22
|
font-style: normal;
|
|
21
23
|
font-weight: 400 600;
|
|
22
|
-
font-display:
|
|
24
|
+
font-display: swap;
|
|
23
25
|
src: url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxQKYbABA.woff2)
|
|
24
26
|
format("woff2");
|
|
25
27
|
unicode-range:
|
|
@@ -31,7 +33,7 @@
|
|
|
31
33
|
font-family: "IBM Plex Sans";
|
|
32
34
|
font-style: normal;
|
|
33
35
|
font-weight: 400 600;
|
|
34
|
-
font-display:
|
|
36
|
+
font-display: swap;
|
|
35
37
|
src: url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYY.woff2)
|
|
36
38
|
format("woff2");
|
|
37
39
|
unicode-range:
|
|
@@ -44,7 +46,7 @@
|
|
|
44
46
|
font-family: "IBM Plex Mono";
|
|
45
47
|
font-style: normal;
|
|
46
48
|
font-weight: 400;
|
|
47
|
-
font-display:
|
|
49
|
+
font-display: swap;
|
|
48
50
|
src: url(https://fonts.gstatic.com/s/ibmplexmono/v20/-F63fjptAgt5VM-kVkqdyU8n1iEq129k.woff2)
|
|
49
51
|
format("woff2");
|
|
50
52
|
unicode-range:
|
|
@@ -56,7 +58,7 @@
|
|
|
56
58
|
font-family: "IBM Plex Mono";
|
|
57
59
|
font-style: normal;
|
|
58
60
|
font-weight: 400;
|
|
59
|
-
font-display:
|
|
61
|
+
font-display: swap;
|
|
60
62
|
src: url(https://fonts.gstatic.com/s/ibmplexmono/v20/-F63fjptAgt5VM-kVkqdyU8n1i8q1w.woff2)
|
|
61
63
|
format("woff2");
|
|
62
64
|
unicode-range:
|
|
@@ -67,7 +69,7 @@
|
|
|
67
69
|
font-family: "IBM Plex Mono";
|
|
68
70
|
font-style: normal;
|
|
69
71
|
font-weight: 500;
|
|
70
|
-
font-display:
|
|
72
|
+
font-display: swap;
|
|
71
73
|
src: url(https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3twJwl5FgtIU.woff2)
|
|
72
74
|
format("woff2");
|
|
73
75
|
unicode-range:
|
|
@@ -79,10 +81,37 @@
|
|
|
79
81
|
font-family: "IBM Plex Mono";
|
|
80
82
|
font-style: normal;
|
|
81
83
|
font-weight: 500;
|
|
82
|
-
font-display:
|
|
84
|
+
font-display: swap;
|
|
83
85
|
src: url(https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgg.woff2)
|
|
84
86
|
format("woff2");
|
|
85
87
|
unicode-range:
|
|
86
88
|
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
87
89
|
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
88
90
|
}
|
|
91
|
+
|
|
92
|
+
/*
|
|
93
|
+
* Metric-matched fallbacks — a local system font rewritten to Plex's box so
|
|
94
|
+
* the swap above causes no layout shift. The override numbers were computed
|
|
95
|
+
* once from font metrics with @capsizecss/core (`createFontStack`); the project
|
|
96
|
+
* doesn't depend on capsize, so if the primary font ever changes, recompute
|
|
97
|
+
* them with capsize rather than hand-editing. size-adjust holds in every
|
|
98
|
+
* engine; the ascent/descent overrides are ignored by Safari/WebKit, but
|
|
99
|
+
* line-gap is 0 so the residual vertical shift there is negligible.
|
|
100
|
+
*/
|
|
101
|
+
/* IBM Plex Sans -> Arial */
|
|
102
|
+
@font-face {
|
|
103
|
+
font-family: "IBM Plex Sans Fallback";
|
|
104
|
+
src: local("Arial"), local("ArialMT");
|
|
105
|
+
ascent-override: 101.3184%;
|
|
106
|
+
descent-override: 27.183%;
|
|
107
|
+
line-gap-override: 0%;
|
|
108
|
+
size-adjust: 101.1663%;
|
|
109
|
+
}
|
|
110
|
+
/* IBM Plex Mono -> Courier New */
|
|
111
|
+
@font-face {
|
|
112
|
+
font-family: "IBM Plex Mono Fallback";
|
|
113
|
+
src: local("Courier New"), local("CourierNewPSMT");
|
|
114
|
+
ascent-override: 102.5167%;
|
|
115
|
+
descent-override: 27.5045%;
|
|
116
|
+
size-adjust: 99.9837%;
|
|
117
|
+
}
|
package/src/theme.css
CHANGED
|
@@ -179,10 +179,11 @@
|
|
|
179
179
|
* indirection. Override `--font-sans` to swap the entire UI font.
|
|
180
180
|
*/
|
|
181
181
|
--font-sans:
|
|
182
|
-
"IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
|
|
182
|
+
"IBM Plex Sans", "IBM Plex Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
|
|
183
|
+
Roboto, sans-serif;
|
|
183
184
|
--font-mono:
|
|
184
|
-
"IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
|
|
185
|
-
monospace;
|
|
185
|
+
"IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
|
|
186
|
+
Consolas, "Liberation Mono", monospace;
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
@theme static {
|