Skip to content

Commit 92dd521

Browse files
committed
fix: move 0.875rem to html root — rem-based bootstrap components (h4/btn/forms) scale too, verified computed 14px
1 parent 270cc9f commit 92dd521

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

shared/page-base.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
src: url("../fonts/MapleMonoNL-Regular.woff2") format("woff2");
55
}
66

7+
/* rem 基于根元素:在 html 上缩放才能同时缩小 bootstrap 的 rem 组件尺寸 */
8+
html {
9+
font-size: 0.875rem;
10+
}
11+
712
body {
813
font-family: "MapleMonoNL", sans-serif;
9-
/* 等宽字体视觉偏大,基准字号略小于常规网页 */
10-
font-size: 0.875rem;
1114
}

0 commit comments

Comments
 (0)