How do I change the background color for code block in jekyll?

 ̄綄美尐妖づ 提交于 2020-01-04 05:37:52

问题


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).

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


回答1:


_sass/base.scss and change pre, code rule :

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


来源:https://stackoverflow.com/questions/34422103/how-do-i-change-the-background-color-for-code-block-in-jekyll

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!