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:
@@ -78,7 +78,7 @@ Full admin panel preserved (settings, OAuth, content tools, etc).
|
||||
/* ===== 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 */
|
||||
@@ -827,7 +827,7 @@ strong, b {
|
||||
|
||||
/* 尺寸变体 */
|
||||
.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 {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -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 {
|
||||
|
||||
@@ -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 */
|
||||
|
||||
+3
-4
@@ -9784,11 +9784,10 @@ img.alignleft {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
/* AKSRT 适配:站点基础字号为 16px(--text-base),参考主题依赖 bootstrap 的
|
||||
* 14px/1.42857143,用户卡片内的 img-badge(签到书签)需钉住参考度量,
|
||||
* 否则字体与徽章整体比参考主题大约一圈。 */
|
||||
/* AKSRT 适配:站点行高(--leading-normal: 1.6)与参考主题 bootstrap
|
||||
* 的 1.42857143 不同,用户卡片内的 img-badge(签到书签)钉住参考行高;
|
||||
* 字号已随 --text-base 对齐参考主题(14px),无需单独声明。 */
|
||||
.user-card .card-content .img-badge {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.42857143;
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user