Hexo搭建butterfly博客---(四)渐变背景

Hexo搭建butterfly博客---(四)渐变背景

预览地址

https://blog.ffing.fun

  • 1.创建css
  • 2.引入到_config.butterfly.yml

一,创建bg_color.css

[data-theme="light"] 
body {
  background: linear-gradient(-45deg, #fbede8, #b4cef7, #b7f9b8, #f6ced8);
  background-size: 400% 400%;

  height: 100vh;
  background-attachment:fixed;
}    


[data-theme="dark"]
body {
  background: linear-gradient(-45deg, #6f1b01, #113878, #016801, #540818);
  background-size: 400% 400%;

  height: 100vh;
  background-attachment:fixed;
}    

二,引入到_config.butterfly.yml

编辑_config.butterfly.yml,引入背景css

inject:
  head:
    #渐变背景
    - <link rel="stylesheet" href="/css/bg_color.css">
https://qnimg.ffing.cn/wp-content/uploads/2023/03/image-39.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
good good study, day day up!

发表评论

textsms
account_circle
email

Hexo搭建butterfly博客---(四)渐变背景
预览地址 https://blog.ffing.fun 1.创建css2.引入到_config.butterfly.yml 一,创建bg_color.css [data-theme="light"] body { background: linear-gradient…
扫描二维码继续阅读
2023-03-11