Skip to content

Commit b97af84

Browse files
committed
change theme colors
1 parent 4f372ce commit b97af84

File tree

3 files changed

+35
-21
lines changed

3 files changed

+35
-21
lines changed

themes/butterfly/_config.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -452,21 +452,21 @@ site_verification:
452452
# Theme color for customize
453453
# Notice: color value must in double quotes like "#000" or may cause error!
454454

455-
# theme_color:
456-
# enable: true
457-
# main: "#49B1F5"
458-
# paginator: "#00c4b6"
459-
# button_hover: "#FF7242"
460-
# text_selection: "#00c4b6"
461-
# link_color: "#99a9bf"
462-
# meta_color: "#858585"
463-
# hr_color: "#A4D8FA"
464-
# code_foreground: "#F47466"
465-
# code_background: "rgba(27, 31, 35, .05)"
466-
# toc_color: "#00c4b6"
467-
# blockquote_padding_color: "#49b1f5"
468-
# blockquote_background_color: "#49b1f5"
469-
# scrollbar_color: "#49b1f5"
455+
theme_color:
456+
enable: true
457+
main: "#286b97"
458+
paginator: "#536499"
459+
button_hover: "#14214f"
460+
text_selection: "#536499"
461+
link_color: "#4040b4"
462+
meta_color: "#858585"
463+
hr_color: "#A4D8FA"
464+
code_foreground: "#F47466"
465+
code_background: "rgba(27, 31, 35, .05)"
466+
toc_color: "#787878"
467+
blockquote_padding_color: "#2f81b7"
468+
blockquote_background_color: "#3079a9"
469+
scrollbar_color: "#474853"
470470

471471
# The top_img settings of home page
472472
# default: top img - full screen, site info - middle (默認top_img全屏,site_info在中間)
@@ -697,7 +697,7 @@ readmode: true
697697

698698
# dark mode
699699
darkmode:
700-
enable: true
700+
enable: false
701701
# Toggle Button to switch dark/light mode
702702
button: true
703703
# Switch dark/light mode automatically (自動切換 dark mode和 light mode)
@@ -820,7 +820,8 @@ css_prefix: true
820820
# 插入代码到头部 </head> 之前 和 底部 </body> 之前
821821
inject:
822822
head:
823-
# - <link rel="stylesheet" href="/xxx.css">
823+
- <link rel="stylesheet" href="/css/background.css">
824+
824825
bottom:
825826
# - <script src="xxxx"></script>
826827

themes/butterfly/source/css/_layout/post.styl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,31 +191,32 @@ beautify()
191191
position: relative
192192
margin: 40px 0 10px
193193
padding: 10px 16px
194-
border: 1px solid var(--light-grey)
194+
border: 2px solid var(--light-grey)
195195
transition: box-shadow .3s ease-in-out
196196

197197
&:before
198198
@extend .fontawesomeIcon
199199
position: absolute
200200
top: 2px
201201
right: 12px
202-
color: $theme-color
202+
color: '#223254'
203203
content: '\f1f9'
204204
font-size: 1.3em
205205

206206
&:hover
207-
box-shadow: 0 0 8px 0 rgba(232, 237, 250, .6), 0 2px 4px 0 rgba(232, 237, 250, .5)
207+
box-shadow: 0 0 16px 0 rgba(255, 255, 255, 1), 0 4px 8px 0 rgba(255, 255, 255, 1)
208208

209209
.post-copyright
210210
&-meta
211-
color: $light-blue
211+
color: $black
212212
font-weight: bold
213213

214214
&-info
215215
padding-left: 6px
216216

217217
a
218218
text-decoration: underline
219+
color: #223254
219220
word-break: break-word
220221

221222
&:hover
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* 首页 卡片文章背景透明 */
2+
#recent-posts>.recent-post-item,.layout>div:first-child:not(.recent-posts),.layout_post>#page,.layout_post>#post,.read-mode .layout_post>#post{
3+
/* 白色透明度 */
4+
background: rgba(255,255,255,.9);
5+
color: #222;
6+
}
7+
8+
/* 侧边栏设置 */
9+
#aside-content>.card-widget,.sticky_layout>.card-widget{
10+
/* 白色透明度 */
11+
background: rgba(255,255,255,.95) !important;
12+
}

0 commit comments

Comments
 (0)