主题优化 - 文章排版
一、调整代码块
修改 themes/theme-hao/templates/assets/zhheo/zhheoblog.css
:root {
/* 添加样式 */
--heo-code-text: #0D6EFD;
}
[data-theme=light] {
/* 添加样式 */
--heo-blue-op: #0d6efd1a;
}
[data-theme=dark] {
/* 添加样式 */
--heo-blue-op: #334052fc;
}
code:not([class]) {
/* 修改此项 */
color: var(--heo-code-text);
padding: 0.25rem 0.5rem;
background: var(--heo-bule-op);
line-height: 1.25rem;
font-size: 15px;
border-radius: 0.375rem;
/* 删除此项 */
margin: 0px 4px;
}
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 程序员小航
评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果