@aortl/admin-css 0.5.1 → 0.6.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/dist/admin.css +67 -31
- package/dist/admin.min.css +1 -1
- package/dist/admin.scoped.css +570 -586
- package/dist/admin.scoped.min.css +544 -10
- package/package.json +6 -3
- package/src/components/card.css +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aortl/admin-css",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Pre-built CSS design system. Drop in via <link> and use semantic class names.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -42,13 +42,16 @@
|
|
|
42
42
|
"@tailwindcss/cli": "4.3.0",
|
|
43
43
|
"postcss": "8.5.15",
|
|
44
44
|
"postcss-selector-parser": "6.1.2",
|
|
45
|
-
"tailwindcss": "4.3.0"
|
|
45
|
+
"tailwindcss": "4.3.0",
|
|
46
|
+
"vitest": "4.1.6"
|
|
46
47
|
},
|
|
47
48
|
"scripts": {
|
|
48
49
|
"build": "pnpm build:dev && pnpm build:min && pnpm build:scoped",
|
|
49
50
|
"build:dev": "tailwindcss -i ./src/admin.css -o ./dist/admin.css",
|
|
50
51
|
"build:min": "tailwindcss -i ./src/admin.css -o ./dist/admin.min.css --minify",
|
|
51
52
|
"build:scoped": "node ./scripts/wrap-scoped.mjs",
|
|
52
|
-
"dev": "tailwindcss -i ./src/admin.css -o ./dist/admin.css --watch"
|
|
53
|
+
"dev": "tailwindcss -i ./src/admin.css -o ./dist/admin.css --watch",
|
|
54
|
+
"test": "vitest run",
|
|
55
|
+
"test:watch": "vitest"
|
|
53
56
|
}
|
|
54
57
|
}
|
package/src/components/card.css
CHANGED
|
@@ -16,6 +16,19 @@
|
|
|
16
16
|
@apply flex items-center gap-2 text-lg font-semibold leading-tight;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
/* Header row: title on the left, toolbar pushed to the trailing edge. */
|
|
20
|
+
.card-header {
|
|
21
|
+
@apply flex items-center gap-2;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Trailing cluster of header controls (close, edit, …). The title's bold,
|
|
25
|
+
descender-less type sits visually high in its line box, so geometric
|
|
26
|
+
centering reads slightly low — nudge the controls up to the optical centre.
|
|
27
|
+
`card-title` is always `text-lg`, so this offset is constant. */
|
|
28
|
+
.card-toolbar {
|
|
29
|
+
@apply flex items-center gap-1 ml-auto -mt-0.5;
|
|
30
|
+
}
|
|
31
|
+
|
|
19
32
|
.card-description {
|
|
20
33
|
@apply text-sm text-text-muted;
|
|
21
34
|
}
|