创建一个样式

以butterfly主题为例。可以在.\themes\butterfly\source\css\目录下新建_custom文件夹,在文件夹中创建一个或者多个.css文件,例如:custom.css、custom1.css。

引入主题配置文件

当前版本butterfly主题自动引入,不需要手动添加。
旧版本butterfly主题在 _config.butterfly.yml的inject配置项中引入自定义样式文件。

1
- <link rel="stylesheet" href="/css/_custom/*.css"  media="defer" onload="this.media='all'">

最后将自定义样式内容,写入custom.css中

如修改默认鼠标指针样式:

1
2
3
4
body,
html{
cursor: url(/img/cursor/XXXX.cur) 16 16,auto !important;
}

如修改页脚透明:

1
2
3
4
#footer{
background: transparent!important;
color: #000000;
}