如何更改jekyll中代码块的背景颜色? [英] How do I change the background color for code block in jekyll?

查看:148
本文介绍了如何更改jekyll中代码块的背景颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与Jekyll一起玩,并且能够更改我网站的背景颜色。但是,无论我在 _syntax-highlighting.scss 中更改了哪种背景或背景颜色属性,我仍然得到相同的浅灰色背景(即使重新启动jekyll服务器)

I'm playing with Jekyll, and have been able to change the background colour for my site. However, no matter which background or background-color properties I change in _syntax-highlighting.scss, I still get the same light grey background (even if I restart the jekyll server).

对此,css / sass默认文件都不是显而易见的。

None of the css/sass default files seem obvious to me for this, either.

推荐答案

_sass / base.scss 并更改 pre,code 规则:

pre,
code {
    ...
    background-color: #eef;
}

这篇关于如何更改jekyll中代码块的背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆