feat(theme): adopt reference base font size (14px)

Set --text-base to 0.875rem to match the reference bootstrap body
metrics; em-based reference components (.img-badge, em utilities) now
render at reference scale site-wide. Compensate .btn-lg with
--text-md (18px, bootstrap btn-lg) to keep the size hierarchy. Simplify
the user-card badge rule to the line-height pin only.
This commit is contained in:
kate522 committed 2026-09-19 14:13:05 +08:00
1 parent c4662acdf0
commit c289016324
6 files changed
+9 -10

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@
/* 尺寸变体 */
.btn-sm { --btn-h: 28px; --btn-px: 8px; font-size: var(--text-xs); }
.btn-lg { --btn-h: 44px; --btn-px: 18px; font-size: var(--text-base); }
.btn-lg { --btn-h: 44px; --btn-px: 18px; font-size: var(--text-md); }
/* === Default (gray background, like legacy .but default) === */
.btn {
+1 -1
View File
@@ -53,7 +53,7 @@
/* ===== Type scale ===== */
--text-xs: 0.75rem; /* 12 */
--text-sm: 0.875rem; /* 14 */
--text-base: 1rem; /* 16 */
--text-base: 0.875rem; /* 14 — 对齐参考主题 bootstrap 基础字号 */
--text-md: 1.125rem; /* 18 */
--text-lg: 1.25rem; /* 20 */
--text-xl: 1.5rem; /* 24 */