Skip to content

Commit ca5c5ff

Browse files
committed
修改预览问题
攻击tyyz
1 parent 01e1bbb commit ca5c5ff

File tree

10 files changed

+159
-122
lines changed

10 files changed

+159
-122
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ kramdown:
3636
syntax_highlighter_opts:
3737
guess_lang: true
3838

39-
syntax_highlighter_style: molokai
39+
syntax_highlighter_style: magritte
4040

4141
markdown_ext: markdown,mkdown,mkdn,mkd,md
4242

_includes/head.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
<script src="/assets/js/image-preview.js"></script>
2+
<link rel="stylesheet" href="/assets/css/image-preview.css">
3+
<script>
4+
// 检查是否已经存在字体设置
5+
if (!localStorage.getItem(':fontState')) {
6+
// 如果不存在,则设置为深色模式
7+
var defaultState = {
8+
size: 2,
9+
family: 1,
10+
theme: 2
11+
};
12+
localStorage.setItem(':fontState', JSON.stringify(defaultState));
13+
}
14+
</script>
15+
116
<meta charset="UTF-8">
217
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
318

@@ -21,7 +36,6 @@
2136
<meta name="author" content="{{ site.author | escape }}">
2237
{%- endif -%}
2338

24-
<link rel="stylesheet" href="/assets/css/image-preview.css">
2539

2640
<link rel="stylesheet" href="{{site.baseurl}}/assets/gitbook/style.css">
2741
<link rel="stylesheet" href="{{site.baseurl}}/assets/gitbook/gitbook-plugin-back-to-top-button/plugin.css">
@@ -73,17 +87,3 @@
7387
{%- endif -%}
7488

7589
{%- endif -%}
76-
77-
<script>
78-
// 检查是否已经存在字体设置
79-
if (!localStorage.getItem(':fontState')) {
80-
// 如果不存在,则设置为深色模式
81-
var defaultState = {
82-
size: 2,
83-
family: 1,
84-
theme: 2
85-
};
86-
localStorage.setItem(':fontState', JSON.stringify(defaultState));
87-
}
88-
</script>
89-
<script src="/assets/js/image-preview.js"></script>

_others/Me.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ layout: post
1818
<th colspan=2>疯狂星期四,v我50</th>
1919
</tr>
2020
<tr>
21-
<th><a href="/images/wxlll.jpg" target="_blank"><img width="50" height="50" src="/images/wechatpay.png"></a></th>
21+
<th><figure class="image-preview">
22+
<a href="/images/wxlll.jpg" class="preview-link">
23+
<img src="/images/wechatpay.png" alt="" width="70px">
24+
</a>
25+
</figure></th>
2226
<th>我,Mt 打钱 懂?</th>
2327
</tr>
2428
</table>
@@ -31,7 +35,11 @@ layout: post
3135
QQ、B站、知乎、X通通不想跟人辩经(哎哲逼怎么这么坏),说实话我觉得互联网辩经从来没谁说服谁过,除了制造更多的网络垃圾信息没有更多的意义,下一次又是一样的吵,加上我自身理论水平也是聊胜于无,不过我倒是很乐意交流的(顺便说一下我选的物化生
3236

3337
鉴证大舞台有种你就来,我是主张应该交流政治的,至于代价?反正我是没什么...随便吧
34-
<img src="/images/mhyyyy.png" alt="沉痛悼念米指导" height="240px">
38+
<figure class="image-preview">
39+
<a href="/images/mhyyyy.png" alt="沉痛悼念米指导" class="preview-link">
40+
<img src="/images/mhyyyy.png" alt="" width="300px">
41+
</a>
42+
</figure>
3543

3644
<hr />
3745

@@ -49,11 +57,10 @@ All in One, All in Boom ?拜托别再制造焦虑了好吗,又不是什么大
4957
<img src="/images/psc.jpg" alt="喜报" width="150px">
5058
5159
不曾熟练掌握任何计算机语言,极不熟练使用JavaScript
52-
无论写什么都要De一周Bug
53-
60+
反正我是菜的出奇的(你知道我是AI生成的吗?
5461
Ctrl+C太好用了你知道吗 (哎\u{200b}怎么这么坏)
5562

56-
> <b>重大提示
63+
> <b>提示
5764
> <i>不是小男娘,不混OD圈,也不会改花刀</i></b>
5865
<img src="https://raw.githubusercontent.com/ALRCMt/MtAIO-Build/cb99109050678a8dc9f7933bb70bc5681e4f1084/photo/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202025-08-16%20161707.png" width="280px">
5966

_pages/ShitFucking.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ cover: \images\hero.gif
1414
<h4>哦,对了 桃源一中,你也是™个东西</h4>
1515
<img src="/images/tyyz.jpg" alt="TYYZSM">
1616

17-
这就是湖南省“第五”吗?宿舍环境已经超越天堂了
17+
这就是湖南省“第五”吗?那真是已经超越天堂了,不然为什么有人不留在人间?
18+
不是故意攻击宿舍哦,只是要攻击的太多了,随便挑一个“不痛不痒”的
19+
<figure class="image-preview">
20+
<a href="/images/jianyu.png" class="preview-link">
21+
<img src="/images/jianyu.png" alt="" >
22+
</a>
23+
</figure>
1824

19-
<img src="/images/jianyu.png" alt="SM" >
2025

2126
还有某位尾号**3218**的人物噢,你永远是最唐的唐太宗
2227

_posts/2025-06-19-ApplyR300A.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ layout: post
2323
创建网络,添加硬件成员 R300A
2424
添加网络成员,然后在需要连接的设备上下载贝锐蒲公英客户端,登录添加的网络成员账号,即可开启组网
2525

26-
<img src="https://github.com/ALRCMt/MtAIO-Build/raw/main/photo/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202025-08-09%20150111.png" alt="" width="700px"/>
26+
<figure class="image-preview">
27+
<a href="https://github.com/ALRCMt/MtAIO-Build/raw/main/photo/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202025-08-09%20150111.png" class="preview-link">
28+
<img src="https://github.com/ALRCMt/MtAIO-Build/raw/main/photo/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202025-08-09%20150111.png" alt="" width="700px">
29+
</a>
30+
</figure>
2731

2832
贝锐蒲公英客户端下载:[https://pgy.oray.com/download#visitor](https://pgy.oray.com/download#visitor)

assets/css/image-preview.css

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,4 @@
1-
1+
/* 保留这部分 */
22
.image-preview .preview-link {
33
cursor: zoom-in;
44
}
5-
6-
/* 遮罩层样式:全屏、半透明背景、置顶 */
7-
.preview-overlay {
8-
position: fixed !important;
9-
top: 0 !important;
10-
left: 0 !important;
11-
width: 100% !important;
12-
height: 100% !important;
13-
background-color: rgba(0, 0, 0, 0.85) !important;
14-
display: flex !important;
15-
align-items: center !important;
16-
justify-content: center !important;
17-
z-index: 9999 !important; /* 最上层? */
18-
cursor: zoom-out !important;
19-
}
20-
21-
/* 遮罩层内放大图片 */
22-
.preview-overlay img {
23-
max-width: 90% !important;
24-
max-height: 90% !important;
25-
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
26-
animation: fadeIn 0.3s ease-out;
27-
}
28-
29-
/* 淡入动画 */
30-
@keyframes fadeIn {
31-
from { opacity: 0; transform: scale(0.95); }
32-
to { opacity: 1; transform: scale(1); }
33-
}

assets/gitbook/rouge/gruvbox.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
1313
color: #928374;
14-
font-style: italic;
14+
font-style: bold;
1515
}
1616
.highlight .cp {
1717
color: #8ec07c;
@@ -51,15 +51,15 @@
5151
}
5252
.highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
5353
color: #b8bb26;
54-
font-style: italic;
54+
font-style: bold;
5555
}
5656
.highlight .si {
5757
color: #b8bb26;
58-
font-style: italic;
58+
font-style: bold;
5959
}
6060
.highlight .sr {
6161
color: #b8bb26;
62-
font-style: italic;
62+
font-style: bold;
6363
}
6464
.highlight .sa {
6565
color: #fb4934;

assets/gitbook/rouge/magritte.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
1212
color: #006c6c;
13-
font-style: italic;
13+
font-weight: bold;
1414
}
1515
.highlight .cp {
1616
color: #920241;
@@ -23,7 +23,7 @@
2323
.highlight .gr {
2424
color: #f22700;
2525
font-weight: bold;
26-
font-style: italic;
26+
font-style: ;
2727
}
2828
.highlight .k, .highlight .kd, .highlight .kv {
2929
color: #19003a;
@@ -43,7 +43,7 @@
4343
color: #007500;
4444
}
4545
.highlight .ge {
46-
font-style: italic;
46+
font-style: ;
4747
}
4848
.highlight .gs {
4949
font-weight: bold;

assets/gitbook/rouge/molokai.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424
.highlight .err {
2525
color: #f8f8f2;
26-
background-color: #403d3d;
26+
background-color: #d9534f;
2727
}
2828
.highlight .gi {
2929
color: #a6e22e;
@@ -169,34 +169,34 @@
169169
color: #66d9ef;
170170
}
171171
.highlight .bp {
172-
color: #f8f8f2;
172+
color: #4a90e2;
173173
}
174174
.highlight .nb {
175-
color: #f8f8f2;
175+
color: #4a90e2;
176176
}
177177
.highlight .ni {
178-
color: #f8f8f2;
178+
color: #4a90e2;
179179
}
180180
.highlight .nn {
181-
color: #f8f8f2;
181+
color: #4a90e2;
182182
}
183183
.highlight .vc {
184-
color: #f8f8f2;
184+
color: #4a90e2;
185185
}
186186
.highlight .vg {
187-
color: #f8f8f2;
187+
color: #4a90e2;
188188
}
189189
.highlight .vi {
190-
color: #f8f8f2;
190+
color: #4a90e2;
191191
}
192192
.highlight .nv, .highlight .vm {
193-
color: #f8f8f2;
193+
color: #4a90e2;
194194
}
195195
.highlight .w {
196-
color: #f8f8f2;
196+
color: #4a90e2;
197197
}
198198
.highlight .nl {
199-
color: #f8f8f2;
199+
color: #4a90e2;
200200
font-weight: bold;
201201
}
202202
.highlight .nt {

0 commit comments

Comments
 (0)