blleng / hexo-theme-lx

👉 A simple & clear & elegant Hexo theme. 🔭🔭Lx——一款简洁、美观的Hexo博客主题。
https://lx.js.org
MIT License
207 stars 26 forks source link

[Help] 请问我怎么改变被``包裹的字体的颜色,还有就是菜单栏上方的颜色,谢谢 #22

Closed wang-xiaowu closed 2 years ago

wang-xiaowu commented 2 years ago

If yuo meet some problems when using lxplease make sure that you've read the README and the comment in _config.yml carefully but didn't find solution.


Description

Desciption:

Hexo version:

Lx version: latest More infomation(If needed):

blleng commented 2 years ago

未在主题配置文件中提供直接的修改途径,你可以自行修改css样式。

wang-xiaowu commented 2 years ago

未在主题配置文件中提供直接的修改途径,你可以自行修改css样式。

改完代码之后它又自动改回去了 没找到原因,方便解答下么

blleng commented 2 years ago

如果仅修改了source/css文件夹中的styl文件,lx加载的仍会是jadelivr CDN上的css文件,你需同时修改主题配置文件中的css_dir配置。

wang-xiaowu commented 2 years ago

请问下正确的配置路径是什么

image

blleng commented 2 years ago

css文件地址为 /css/main.css


也可gulp压缩后使用/dist/css/main.min.css

wang-xiaowu commented 2 years ago

/css/main.css

好的 谢谢

wang-xiaowu commented 2 years ago

css文件地址为 /css/main.css

也可gulp压缩后使用/dist/css/main.min.css

我无法通过custom.styl覆盖base.styl中变量么

blleng commented 2 years ago

我无法通过custom.styl覆盖base.styl中变量么

可以,custom.styl的优先级更高.