butterfly主题魔改02:主题颜色、宽度设置、图片设置、遮罩效果
01 修改主题颜色:深紫色系
根目录下_config.butterfly.yml
文件theme_color
设置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| theme_color: enable: true main: "#6a0dad" paginator: "#9b30ff" button_hover: "#9932cc" text_selection: "#9370db" link_color: "#8a2be2" meta_color: "#9370db" hr_color: "#9932cc" code_foreground: "#4b0082" code_background: "rgba(106, 13, 173, 0.05)" toc_color: "#8a2be2" blockquote_padding_color: "#6a0dad" blockquote_background_color: "#6a0dad" scrollbar_color: "#6a0dad" meta_theme_color_light: "#f5f0fa" meta_theme_color_dark: "#2d0a3d"
|
02 页面宽度设置
根目录下themes\butterfly\source\css\_page\common.styl
文件.layout
部分
1 2 3 4 5 6 7 8
| .layout display: flex flex: 1 auto // 自动填充剩余空间 margin: 0 auto // 水平居中 padding: 40px 15px // 内边距 max-width: 70% // 最大宽度 width: 100% // 默认100%宽度
|
03 各种图片设置(背景,头像,封面等等)
博客根目录下_config.butterfly.yml
文件的图片设置
的代码如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
favicon: /img/01.png
avatar: img: /img/02.jpg effect: true disable_top_img: false default_top_img: rgba(0, 0, 0, 0) index_img: archive_img: tag_img: tag_per_img:
category_img: category_per_img:
footer_img: rgba(45, 10, 61, 0.2) background: /img/03.png
cover: index_enable: true aside_enable: true archives_enable: true default_cover: /img/04.png
error_img: flink: /img/05.jpg post_page: /img/06.jpg
error_404: enable: true subtitle: '页面不存在' background: /img/07.png
instantpage: false
lazyload: enable: false field: site placeholder: blur: false
|
04 关闭页头和页脚的遮罩效果
博客根目录下_config.butterfly.yml
文件的页头和页脚的遮罩效果
部分
1 2 3 4
| mask: header: false footer: false
|