更改字体大小

你好,感谢你们出色的 DISCOURSE 平台。
我刚刚搭建了自己的新 Discourse 站点,但主页上的默认标题字体太小且颜色太浅。
该如何调整标题的字体大小和颜色呢?
顺便一提,该平台功能非常完善且细节丰富,因此找不到这些选项确实令人有些意外。
已附上图片

谢谢

没有相关设置,但您可以将此 CSS 添加到您的主题中:

.topic-list th {
    font-size: 1.2em;
}
1 个赞

非常感谢 @Canapin,除了分类标签页的标题外,其他功能都很完美。
https://meta.discourse.org/categories
如果您能再提供一段代码来修复这个问题,我将不胜感激 :smiley:

编辑:提供 @Arkshine 的代码,因为这是完整的可用 CSS:

.topic-list th, 
.category-list th, 
.latest-topic-list > .table-heading  {
    font-size: 1.2em;
}

再次感谢 @Canapin,问题已解决!但不知为何,右侧的标题“Latest”仍然是灰色的……您有解决办法吗?:folded_hands:

.topic-list th, 
.category-list th, 
.latest-topic-list > .table-heading  {
    font-size: 1.2em;
}
1 个赞

感谢您的专业分享
希望这些选项未来能集成到平台设置中

1 个赞

你好 @Yariv_Cohen,我看到你已经得到了答复,但想补充一个可能有用但不那么明显的小提示:在

偏好设置 → 界面

中,每位用户都可以选择自己偏好的文字大小。

https://meta.discourse.org/my/preferences/interface

(也可通过用户菜单访问)

2 个赞

是的,正如 @4ong 指出的,这也是一个用户偏好设置:

1 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.