Skip to content

Commit a7b1d60

Browse files
author
wu-kan
committed
修复#waifu-toggle被遮挡的问题;live2d移动到右边
1 parent 50aa951 commit a7b1d60

File tree

2 files changed

+35
-19
lines changed

2 files changed

+35
-19
lines changed

_config.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ script: # 需要在正文前调用的脚本或者插件的autoloader
147147
value: //cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget/autoload.min.js # live2d
148148
- var:
149149
- key: src
150-
value: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@1788f1b6c2e12cca626b85f25749f99ca0c7aad0/public/js/mermaid.min.js
150+
value: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@d28a045f0b270ca015c3fa3adcc12fa4a7efbebd/public/js/mermaid.min.js
151151
- key: js
152152
value: //cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js
153153
- key: stylesheet
@@ -156,7 +156,7 @@ script: # 需要在正文前调用的脚本或者插件的autoloader
156156
value: true
157157
- var:
158158
- key: src
159-
value: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@1788f1b6c2e12cca626b85f25749f99ca0c7aad0/public/js/prism.min.js
159+
value: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@d28a045f0b270ca015c3fa3adcc12fa4a7efbebd/public/js/prism.min.js
160160
#- var: mathjax
161161
# - key: src
162162
# value: //cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
@@ -173,7 +173,7 @@ script: # 需要在正文前调用的脚本或者插件的autoloader
173173
value: true
174174
- var:
175175
- key: src
176-
value: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@1788f1b6c2e12cca626b85f25749f99ca0c7aad0/public/js/baidu_push.min.js
176+
value: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@d28a045f0b270ca015c3fa3adcc12fa4a7efbebd/public/js/baidu_push.min.js
177177

178178
sidebar:
179179
avatar: # 侧边栏显示的头像
@@ -218,13 +218,13 @@ sidebar:
218218
simple_jekyll_search:
219219
enable: true
220220
autoloader: /public/simple-jekyll-search/autoloader.js
221-
stylesheet: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@1788f1b6c2e12cca626b85f25749f99ca0c7aad0/public/simple-jekyll-search/search_box.min.css
221+
stylesheet: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@d28a045f0b270ca015c3fa3adcc12fa4a7efbebd/public/simple-jekyll-search/search_box.min.css
222222
src: //cdn.jsdelivr.net/npm/simple-jekyll-search/dest/simple-jekyll-search.min.js
223223
placeholder: 搜索博文
224224
json: /public/simple-jekyll-search/search.json
225225
jekyll_table_of_contents:
226226
enable: true
227-
autoloader: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@1788f1b6c2e12cca626b85f25749f99ca0c7aad0/public/js/jekyll_table_of_contents.min.js
227+
autoloader: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@d28a045f0b270ca015c3fa3adcc12fa4a7efbebd/public/js/jekyll_table_of_contents.min.js
228228
busuanzi:
229229
enable: true
230230
src: //cdn.jsdelivr.net/npm/busuanzi/bsz.pure.mini.min.js
@@ -279,13 +279,13 @@ post:
279279
text: 如果这篇博客帮助到你,可以请我喝一杯咖啡~
280280
img: # 万一真的有人打赏呢~
281281
- id: wechat
282-
src: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@1788f1b6c2e12cca626b85f25749f99ca0c7aad0/public/image/wechatpay.jpg
282+
src: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@d28a045f0b270ca015c3fa3adcc12fa4a7efbebd/public/image/wechatpay.jpg
283283
- id: wechatappreciate
284-
src: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@1788f1b6c2e12cca626b85f25749f99ca0c7aad0/public/image/wechatappreciate.jpg
284+
src: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@d28a045f0b270ca015c3fa3adcc12fa4a7efbebd/public/image/wechatappreciate.jpg
285285
- id: qq
286-
src: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@1788f1b6c2e12cca626b85f25749f99ca0c7aad0/public/image/qqpay.jpg
286+
src: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@d28a045f0b270ca015c3fa3adcc12fa4a7efbebd/public/image/qqpay.jpg
287287
- id: alipay
288-
src: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@1788f1b6c2e12cca626b85f25749f99ca0c7aad0/public/image/alipay.jpg
288+
src: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@d28a045f0b270ca015c3fa3adcc12fa4a7efbebd/public/image/alipay.jpg
289289

290290
valine:
291291
enable: true

public/css/wu-kan.css

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@media (min-width: 70em) {
22
body {
3-
background-image: url(/public/image/background.jpg);
3+
background-image: url(//cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@d28a045f0b270ca015c3fa3adcc12fa4a7efbebd/public/image/background.jpg);
44
background-size: 100%;
55
background-repeat: no-repeat;
66
background-attachment: fixed;
@@ -18,12 +18,28 @@ pre {
1818
max-height: 50vh;
1919
overflow: auto;
2020
}
21-
h1, h2, h3, h4, h5, h6 {
21+
h1,
22+
h2,
23+
h3,
24+
h4,
25+
h5,
26+
h6 {
2227
font-family: Menlo, Monaco, "Courier New", Microsoft JhengHei, monospace;
2328
}
2429
.wrap {
2530
font-family: Menlo, Monaco, "Courier New", Microsoft JhengHei, monospace;
26-
background-color: rgba(255,255,255,.7);
31+
background-color: rgba(255, 255, 255, 0.7);
32+
}
33+
#waifu-toggle {
34+
z-index: 9;
35+
}
36+
#waifu-tool {
37+
left: 0;
38+
right: auto !important;
39+
}
40+
#waifu {
41+
right: 0;
42+
left: auto !important;
2743
}
2844
.masthead {
2945
margin-bottom: 0rem;
@@ -51,12 +67,12 @@ h1, h2, h3, h4, h5, h6 {
5167
}
5268
.sidebar-social {
5369
text-align: center;
54-
font-size: .7rem;
70+
font-size: 0.7rem;
5571
}
5672
.sidebar-social a:hover,
5773
.sidebar-social a:focus {
5874
text-decoration: none;
59-
background-color: rgba(255,255,255,.1);
75+
background-color: rgba(255, 255, 255, 0.1);
6076
}
6177
/* Hide the sidebar checkbox that we toggle with `.sidebar-toggle` */
6278
.sidebar-checkbox {
@@ -175,7 +191,7 @@ h1, h2, h3, h4, h5, h6 {
175191
.ih-item.circle .img:before {
176192
position: absolute;
177193
display: block;
178-
content: '';
194+
content: "";
179195
width: 100%;
180196
height: 100%;
181197
border-radius: 50%;
@@ -198,18 +214,18 @@ h1, h2, h3, h4, h5, h6 {
198214
backface-visibility: hidden;
199215
}
200216
@media all and (max-width: 780px) {
201-
.ih-item.circle .img {
217+
.ih-item.circle .img {
202218
position: relative;
203219
width: 100px;
204220
height: 100px;
205221
/*margin-top: 20px;*/
206222
border-radius: 50%;
207-
}
208-
.ih-item.circle {
223+
}
224+
.ih-item.circle {
209225
position: relative;
210226
width: 100px;
211227
height: 100px;
212228
border-radius: 50%;
213-
}
229+
}
214230
}
215231
/*头像效果-end*/

0 commit comments

Comments
 (0)