主题
主题是butterfly
持续更新
自定义博客样式是一个渐进的过程…
这篇文章主要用来记录美化网站样式的过程
有好的建议欢迎留言~
修改主题源文件
修改卡片颜色
theme/butterfly/source/css/var.styl
| 12
 
 | - $card-bg = $white+ $card-bg = rgba(255, 255, 255, .75)
 
 | 
修改 hover 颜色
| 12
 
 | - $text-bg-hover = $theme-color+ $text-bg-hover = #00c4b6
 
 | 
修改夜间模式卡片颜色
theme/butterfly/source/css/_mode/darkmode.styl
| 12
 
 | - --card-bg: alpha(#121212, .7)+ --card-bg: alpha(#121212, .7)
 
 | 
自定义 CSS
自定义 css 的方法
| 12
 3
 4
 5
 6
 7
 8
 9
 
 | 
 
 
 inject:
 head:
 - <link rel="stylesheet" href="/static/css/custom.css">
 bottom:
 
 
 | 
custom.css
| 12
 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
 
 | #footer {
 background: linear-gradient(0deg, #fff, transparent);
 }
 #footer-wrap {
 color: #4c4948;
 }
 #footer-wrap .framework-info a {
 color: #4c4948;
 }
 
 ::-webkit-scrollbar-thumb {
 background: #00c4b6;
 border-radius: 5px;
 }
 
 #rightside > div > button,
 #rightside > div > a {
 background: #00c4b6;
 }
 
 #recent-posts > .recent-post-item > .recent-post-info > .article-title:hover {
 color: #00c4b6;
 }
 
 #nav .site-page:not(.child):after {
 background: #00c4b6;
 }
 #page-header.nav-fixed #nav a:hover,
 #page-header.nav-fixed #nav #site-name:hover,
 #page-header.nav-fixed #nav #toggle-menu:hover {
 color: #00c4b6;
 }
 
 #aside-content .aside-list > .aside-list-item .content > .title:hover,
 #aside-content .aside-list > .aside-list-item .content > .comment:hover {
 color: #00c4b6;
 }
 #aside-content .card-tag-cloud a:hover {
 color: #00c4b6 !important;
 }
 
 #page-header {
 background-color: transparent !important;
 }
 
 |