前言

因为修改了很多内容所以感觉有必要记一下,之前也写了第一步一些基于本主题的技术问题但是因为当时是基于Sakurairo的所以实际上已经失效了,于是改用了Argon,不过Argon的可动性更高,而且网上的美化代码也更加齐全,其实反倒是不用我多动什么了,基本上所有操作都可以在主题设置中完成,有些特别花里胡哨的东西也懒得动了,所以就随便写写吧。

菜单图标

Argon支持Fontrawesome 4.0协议,可以在上面找到想要用的图标之后在自定义当中找到菜单然后放在想要的项目前面就行了,比如

1
<i class="fa fa-comment" aria-hidden="true"></i>留言板

然后就直接可以显示出来了。

页面美化

我都没有怎么自己去研究,就去套了个大佬的额外css装修空间,就先把代码放在这里好了

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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
/*网站字体*/
/*原则上你可以设置多个字体,然后在不同的部位使用不同的字体。*/
@font-face{
font-family:echo;
src:url(https://fastly.jsdelivr.net/gh/huangwb8/bloghelper@latest/fonts/13.woff2) format('woff2')
font-weight:400;
unicode-range: U+1f1e9-1f1f5;
font-display:swap;
}

body{
font-family: 'echo', Georgia, -apple-system, 'Nimbus Roman No9 L', 'PingFang SC', 'Hiragino Sans GB', 'Noto Serif SC', 'Microsoft Yahei', 'WenQuanYi Micro Hei', 'ST Heiti', sans-serif
}

/*横幅字体大小*/
.banner-title {
font-size: 3.5em;
text-shadow: 5px 5px 2px rgb(54 50 50 / 45%);
}
}
.banner-subtitle{
font-size: 30px;
-webkit-text-fill-color: transparent;
background: linear-gradient(93deg,rgb(255 181 247) 0%,rgb(172 208 249) 43.66%, rgb(253 250 253) 64.23%,rgb(209 233 212) 83.76%,rgb(195 132 133) 100%);
-webkit-background-clip: text;
}

/*文章标题字体大小*/
.post-title {
font-size: 25px
}

/*正文字体大小(不包含代码)*/
.post-content p{
font-size: 1.25rem;
}
li{
font-size: 1.2rem;

}

/*评论区字体大小*/
p {
font-size: 1.2rem

}

/*评论发送区字体大小*/
.form-control{
font-size: 1.2rem
}

/*评论勾选项目字体大小*/
.custom-checkbox .custom-control-input~.custom-control-label{
font-size: 1.2rem
}
/*评论区代码的强调色*/
code {
color: rgba(var(--themecolor-rgbstr));
}

/*说说字体大小和颜色设置*/
.shuoshuo-title {
font-size: 25px;
/* color: rgba(var(--themecolor-rgbstr)); */
}

/*尾注字体大小*/
.additional-content-after-post{
font-size: 1.2rem
}

/* 个性签名居中 */
.leftbar-banner-subtitle {
margin-top: 15px;
margin-bottom: 8px;
font-size: 13px;
opacity: 0.8;
display: block;
text-align: center;
}

/*========颜色设置===========*/

/*文章或页面的正文颜色*/
body{
color:#364863
}

/*引文属性设置*/
blockquote {
/*添加弱主题色为背景色*/
background: rgba(var(--themecolor-rgbstr), 0.1) !important;
width: 100%
}

/*引文颜色 建议用主题色*/
:root {
/*也可以用类似于--color-border-on-foreground-deeper: #009688;这样的命令*/
--color-border-on-foreground-deeper: rgba(var(--themecolor-rgbstr));
}

/*左侧菜单栏突出颜色修改*/
.leftbar-menu-item > a:hover, .leftbar-menu-item.current > a{
background-color: #f9f9f980;
}

/*站点概览分隔线颜色修改*/
.site-state-item{
border-left: 1px solid #aaa;
}
.site-friend-links-title {
border-top: 1px dotted #aaa;
}
#leftbar_tab_tools ul li {
padding-top: 3px;
padding-bottom: 3px;
border-bottom:none;
}
html.darkmode #leftbar_tab_tools ul li {
border-bottom:none;
}

/*左侧栏搜索框的颜色*/
button#leftbar_search_container {
background-color: transparent;
}

/*========透明设置===========*/

/*白天卡片背景透明*/
.card{
background-color:rgba(255, 255, 255, 0.9) !important;
/*backdrop-filter:blur(6px);*//*毛玻璃效果主要属性*/
-webkit-backdrop-filter:blur(6px);
}

/*小工具栏背景完全透明*/
/*小工具栏是card的子元素,如果用同一个透明度会叠加变色,故改为完全透明*/
.card .widget,.darkmode .card .widget,#post_content > div > div > div.argon-timeline-card.card.bg-gradient-secondary.archive-timeline-title{
background-color:#ffffff00 !important;
backdrop-filter:none;
-webkit-backdrop-filter:none;
}
.emotion-keyboard,#fabtn_blog_settings_popup{
background-color:rgba(255, 255, 255, 0.95) !important;
}

/*分类卡片透明*/
.bg-gradient-secondary{
background:rgba(255, 255, 255, 0.1) !important;
backdrop-filter: blur(10px);
-webkit-backdrop-filter:blur(10px);
}

/*夜间透明*/
html.darkmode.bg-white,html.darkmode .card,html.darkmode #footer{
background:rgba(66, 66, 66, 0.9) !important;
}
html.darkmode #fabtn_blog_settings_popup{
background:rgba(66, 66, 66, 0.95) !important;
}

/*标签背景
.post-meta-detail-tag {
background:rgba(255, 255, 255, 0.5)!important;
}*/


/*========排版设置===========*/

/*左侧栏层级置于上层*/
#leftbar_part1 {
z-index: 1;
}

/*分类卡片文本居中*/
#content > div.page-information-card-container > div > div{
text-align:center;
}

/*子菜单对齐及样式调整*/
.dropdown-menu .dropdown-item>i{
width: 10px;
}
.dropdown-menu>a {
color:var(--themecolor);
}
.dropdown-menu{
min-width:max-content;
}
.dropdown-menu .dropdown-item {
padding: .5rem 1.5rem 0.5rem 1rem;
}
.leftbar-menu-subitem{
min-width:max-content;
}
.leftbar-menu-subitem .leftbar-menu-item>a{
padding: 0rem 1.5rem 0rem 1rem;
}

/*左侧栏边距修改*/
.tab-content{
padding:10px 0px 0px 0px !important;
}
.site-author-links{
padding:0px 0px 0px 10px ;
}
/*目录位置偏移修改*/
#leftbar_catalog{
margin-left: 0px;
}
/*目录条目边距修改*/
#leftbar_catalog .index-link{
padding: 4px 4px 4px 4px;
}
/*左侧栏小工具栏字体缩小*/
#leftbar_tab_tools{
font-size: 14px;
}

/*正文图片边距修改*/
article figure {margin:0;}
/*正文图片居中显示*/
.fancybox-wrapper {
margin: auto;
}
/*正文表格样式修改*/
article table > tbody > tr > td,
article table > tbody > tr > th,
article table > tfoot > tr > td,
article table > tfoot > tr > th,
article table > thead > tr > td,
article table > thead > tr > th{
padding: 8px 10px;
border: 1px solid;
}
/*表格居中样式*/
.wp-block-table.aligncenter{margin:10px auto;}

/*回顶图标放大*/
button#fabtn_back_to_top, button#fabtn_go_to_comment, button#fabtn_toggle_blog_settings_popup, button#fabtn_toggle_sides, button#fabtn_open_sidebar{
font-size: 1.2rem;
}

/*顶栏菜单放大*/
/*这里也可以设置刚刚我们设置的btfFont字体。试试看!*/

.navbar-nav .nav-link {
   font-size: 0.25rem;
font-family: 'echo';

}
.navbar-brand {
font-family: 'echo';
font-size: 1.2rem;
margin-right: 1.0 rem;
padding-bottom: 0.2 rem;

-webkit-text-fill-color: transparent;
background: linear-gradient(94.75deg,rgb(141 202 243) 0%,rgb(203 196 230) 43.66%, rgb(228 179 167) 64.23%,rgb(232 209 162) 83.76%,rgb(180 156 120) 100%);
-webkit-background-clip: text;
}

/*菜单大小*/
.nav-link-inner--text {
font-size: 1.25em;
}
.navbar-nav .nav-item {
margin-right:0;
}
.mr-lg-5, .mx-lg-5 {
margin-right:1rem !important;
}
.navbar-toggler-icon {
width: 1.8rem;
height: 1.8rem;
}
/*菜单间距*/
.navbar-expand-lg .navbar-nav .nav-link {
padding-right: 1.4em;
padding-left: 1.4em;
}

/*隐藏wp-SEO插件带来的线条阴影(不一定要装)*/
*[style='position: relative; z-index: 99998;'] {
display: none;
}

/* Github卡片样式*/
.github-info-card-header a {
/*Github卡片抬头颜色*/
color: black !important;
font-size: 1.5rem;
}
.github-info-card {
/*Github卡片文字(非链接)*/
font-size: 1rem;
color: black !important;
}
.github-info-card.github-info-card-full.card.shadow-sm {
/*Github卡片背景色*/
background-color: rgba(var(--themecolor-rgbstr), 0.1) !important;
}

/* 左侧栏外观CSS */

/* 头像 */
#leftbar_overview_author_image {
width: 100px;
height: 100px;
margin: auto;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-color: rgba(127, 127, 127, 0.1);
overflow: hidden;
transition: transform 0.3s ease;
}

/* 头像亮暗 */
#leftbar_overview_author_image:hover {
transform: scale(1.23);
filter: brightness(150%);
}

/* 名称 */
#leftbar_overview_author_name {
margin-top: 15px;
font-size: 18px;align-content;
color:#b79685;
text-shadow: 2px 3px 4px #c9ce9c;
}

/* 简介 */
#leftbar_overview_author_description {
font-size: 14px;
margin-top: -4px;
opacity: 0.8;
color:#887375;
}

/* 标题,链接等 */
a, .btn-neutral {
color:#AF7AC5 ;

}

/* 页脚透明 */
#footer {
background: var(--themecolor-gradient);
color: #fff;
width: 100%;
float: right;
margin-bottom: 25px;
text-align: center;
padding: 25px 20px;
line-height: 1.8;
transition: none;
opacity: 0;
}

/*评论区按钮文字*/
.btn-outline-primary {
color: #9d6c6c;
}

/*分享按钮文字*/
.btn-primary {
color: #dbe9e8;
background-color: #cb9c9c;
border-color: #a36a2c;
}

感想是Argon确实好用,要是Sakurairo这么搞指不定哪个方向的css就不起作用了。

相框和气泡特效插件

相框这个问题在看少女癌那个博客的时候就在馋了,最后发现居然真的有免费的插件方案我真的服气了,之前看有一句话确实说得好,在wordpress上你很难遇到前人没有踩过的坑,对于我这种对美化有要求但同时不怎么熟悉代码的人来讲确实太有必要了。

提到的插件是:

  • Essential Blocks:相框特效,只要会设置,大力出奇迹,其实好看的特效基本上也就那么几种,主要图片选得好就事半功倍了
  • Image Gallery Block:给相框的二级页面添加效果
  • VK Block Patterns:气泡效果,不知道为什么圆角图片总是无效,可能又遇到博客封装问题了,郁闷,不过还好影响也不是很大

其他插件

密码类插件和明暗内容交界线的插件我使用了很多个,作为一个怀疑论者对于安全的要求此刻又体现得淋漓尽致。

  • Password Protect WordPress Lite:测试了一下,目前可以完全替代Passster的功能,包括部分内容锁定、页面锁定和全站锁定,所以把其他密码插件都卸载掉了
  • Ultimate Category Excluder:可以把特定类型的内容排除在首页之外,之前用主题的特殊排除法都不起效果,所以我选择不信任Argon(这都是你的错啊,Sakurairo!)
  • Advanced Database Cleaner:清除冗余的修改记录等数据内容,如果感觉博客越来越大了可以用这个稍微清理一下。
  • WordPress Hide Posts:可以把某文章或者某页面藏起来,做暗页和彩蛋很方便。
  • Include Mastodon Feed:如果不想在主页上写说说希望在长毛象bb的可以用这个插件,按照说明页设置好之后就行。

鼠标特效

切换到Argon主题设置之后,在页头脚本输入以下内容(我抄的)

1
2
3
4
5
<!--鼠标指针特效2 开始-->
<style type="text/css">
.main-content img,body{cursor:url(https://cdn.jsdelivr.net/gh/huangwb8/bloghelper@latest/mouse/halo-dream/cursor/breeze/Arrow.cur),auto}.actions>div,.expand-done,.main-content figure>figcaption div,.navbar-above .navbar-nav .item,.navbar-searchicon,.navbar-slideicon,.photos .picture-details,.widget .ad-tag .click-close,a,button{cursor:url(https://cdn.jsdelivr.net/gh/huangwb8/bloghelper@latest/mouse/halo-dream/cursor/breeze/Hand.cur),auto}blockquote,code,h1,h2,h3,h4,h5,h6,hr,input[type=text],li,p,td,textarea,th{cursor:url(https://cdn.jsdelivr.net/gh/huangwb8/bloghelper@latest/mouse/halo-dream/cursor/breeze/IBeam.cur),auto}
</style>
<!--鼠标指针特效2 结束-->

之前试过想做点击一下出现各种字体的内容,不过我这页面已经被拖得有点慢了这种东西还是算了吧,花里胡哨的也用不着。

电脑端时间进度特效

翻开Argon布局选择为三栏模式,然后点开自定义设置小工具(随便你开左边还是右边,我觉得右边比较美观就放在右边了),模块选简码,然后输入以下内容

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
49
50
<div class="progress-wrapper" style="padding: 0">
<div class="progress-info">
<div class="progress-label">
<span id="yearprogress_yearname"></span>
</div>
<div id="yearprogress_text_container" class="progress-percentage">
<span id="yearprogress_progresstext"></span>
<span id="yearprogress_progresstext_full"></span>
</div>
</div>
<div class="progress">
<div id="yearprogress_progressbar" class="progress-bar bg-primary"></div>
</div>
</div>
<script no-pjax="">
function yearprogress_refresh() {
let year = new Date().getFullYear();
$("#yearprogress_yearname").text(year);
let from = new Date(year, 0, 1, 0, 0, 0);
let to = new Date(year, 11, 31, 23, 59, 59);
let now = new Date();
let progress = (((now - from) / (to - from + 1)) * 100).toFixed(7);
let progressshort = (((now - from) / (to - from + 1)) * 100).toFixed(2);
$("#yearprogress_progresstext").text(progressshort + "%");
$("#yearprogress_progresstext_full").text(progress + "%");
$("#yearprogress_progressbar").css("width", progress + "%");
}
yearprogress_refresh();
if (typeof yearProgressIntervalHasSet == "undefined") {
var yearProgressIntervalHasSet = true;
setInterval(function () {
yearprogress_refresh();
}, 500);
}
</script>
<style>
#yearprogress_text_container {
width: 100%;
height: 22px;
overflow: hidden;
user-select: none;
}
#yearprogress_text_container > span {
transition: all 0.3s ease;
display: block;
}
#yearprogress_text_container:hover > span {
transform: translateY(-45px);
}
</style>

目前就是这些了,之前的微语界面我也撤销掉了因为感觉每次都写一通代码真的很烦,又不是程序员,再加上之前折腾Hexo已经有了厌烦情绪,作为一个本质上是写手不是程序员的人只想躺平。

我估计很多打字的跟我是一个概念,做得出漂亮博客的人往往其实不怎么会打字,不像我一天一个人都能bb几万字且成章成句只恨自己时间不够多手不够快,所以写手更喜欢借助一些搭建好的平台,但是第三方平台的可控性又很低,到最后要么在舒适美观上放弃体验,要么就是屈从于运营商的淫威,而我嘛……我选择全都要,只多一点点(才不是)