@Lonyu #6 我找天才程序员写了点,看起来效果不错,你再改改:
/* ===== NodeSeek 首页字体放大 =====
* 只需修改下面的 --ns-scale 一个数字:
* 1.10 = 微调 1.15 = 推荐 1.25 = 明显 1.40 = 很大
*/
:root {
--ns-scale: 1.15;
}
/* ---------- 全局基准 ----------
* 原为 body{font-size:small}(≈13px)。站点 reset 让绝大多数元素
* font-size:inherit,所以这一条会带动版块面板、排序栏、右侧栏等
* 所有未写死字号的文字。 */
body {
font-size: calc(13px * var(--ns-scale)) !important;
}
/* ---------- 顶部导航 ---------- */
header .site-title { font-size: calc(24px * var(--ns-scale)) !important; } /* NodeSeek 标题 */
header .beta-icon { font-size: calc(11px * var(--ns-scale)) !important; } /* beta 角标 */
#nsk-head .search-box input[type="text"] { /* 搜索框(表单控件不继承) */
font-size: calc(13px * var(--ns-scale)) !important;
height: calc(30px * var(--ns-scale)) !important;
}
@media screen and (max-width: 500px) {
.nav-menu { font-size: calc(14px * var(--ns-scale)) !important; }
}
/* ---------- 左侧「所有版块」面板 ---------- */
#nsk-left-panel-container .category-list {
font-size: calc(14px * var(--ns-scale)) !important;
width: calc(100px * var(--ns-scale)) !important; /* 同步放宽,避免版块名换行 */
}
/* ---------- 帖子列表(首页主体) ---------- */
#nsk-body-left .post-list .post-list-item .post-title {
font-size: calc(14px * var(--ns-scale)) !important;
}
#nsk-body-left .post-list .post-list-item .post-info {
font-size: calc(11px * var(--ns-scale)) !important; /* 作者/浏览/评论/时间/分类 */
}
/* ---------- 分页器 ---------- */
.nsk-pager .pager-pos,
.nsk-pager .pager-prev,
.nsk-pager .pager-next {
font-size: calc(16px * var(--ns-scale)) !important;
min-width: calc(18px * var(--ns-scale)) !important; /* 盒子同步放大,否则数字会挤出来 */
height: calc(18px * var(--ns-scale)) !important;
line-height: calc(18px * var(--ns-scale)) !important;
}
/* ---------- 右侧「欢迎新用户」 ---------- */
.nsk-new-member-board .new-member-item {
font-size: calc(12px * var(--ns-scale)) !important;
width: calc(60px * var(--ns-scale)) !important; /* 同步放宽,减少用户名被截断 */
}
/* ---------- 页脚 ---------- */
footer .col .group-head-link { font-size: calc(14px * var(--ns-scale)) !important; }
footer .col ul li { font-size: calc(13px * var(--ns-scale)) !important; }
/* ===== 可选:图标同步放大 =====
* 站点图标固定 12px,字大了会显得图标偏小。想让图标跟着长,
* 就取消下面这段的注释。
*/
/*
.iconpark-icon { width: 1em !important; height: 1em !important; }
.nav-menu .iconpark-icon { width: 1.1em !important; height: 1.1em !important; }
*/