首行缩进

还是通过workskin实现,首行缩进2em符合中文缩进2个字符的习惯。

代码:

1
2
3
4
#workskin #chapters > .userstuff p,
#workskin #chapters > .chapter > .userstuff p {
text-indent: 2em;
}

成就框:

我自己用的。

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
#workskin .box {
text-align: justify;
color: black;
background: #e5e5e5;
padding: 1em;
border-radius: 20px 20px 20px 20px;
width: fit-content;
max-width: 80%;
margin: 0 auto 15px;
}

#workskin .gtc-gradient-linear-90-stops-415067-0-91c20c-50-2651c7-100 {
background: linear-gradient(90deg, #415067 0%, #91c20c 50%, #2651c7 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
display: inline-block;
margin: 0;
padding: 0;
letter-spacing: normal;
word-spacing: normal;
}

#workskin .box p {
text-indent: 0 !important;
}

聊天模拟

📢有大佬已经实现了代码的可视化diy:

https://lovewich.neocities.org/widgets/text-threads

通过简单的输入自动将想要的内容输出为有格式的代码块,但是用了这种以后在ao3的编辑器里修改会特别困难,或许要导入专业的编程软件查看。

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
#workskin .discord {
text-rendering: optimizeLegibility;
word-break: break-word;
}

#workskin .discord dd.msg {
margin-left: unset;
}

#workskin .discord tt.time,
#workskin .discord code.time,
#workskin small {
font-size: 10px;
}

#workskin .message-thread.discord {
background: #545454;
font-family: "Whitney", "Open Sans", "Helvetica Neue", Verdana, Helvetica, Arial, sans-serif;
min-width: 300px;
max-width: 80vw;
width: 350px;
padding: 1rem;
margin: auto;
border-radius: 2px;
}

#workskin .discord.message-thread p {
margin: unset;
line-height: undefined;
}

#workskin .discord .message-b,
#workskin .discord .message-a {
display: block;
min-width: 100%;
width: min-content;
max-width: 100%;
}

#workskin .discord .message-b {
margin: 0;
margin-left: 0;
}

#workskin .discord .message-a {
margin: 0;
margin-left: 0;
color: #dbdbdb;
}

#workskin .discord .msg {
margin-top: 0.4em;
font-size: 13px;
}

#workskin .discord .body {
padding: 0.5rem;
border-radius: 2px;
position: relative;
}

#workskin .discord center.timestamp {
font-size: 11px;
font-weight: 600;
margin: 0.25rem;
}

#workskin .discord .message-a>.body.typing,
#workskin .discord .message-b>.body.typing,
#workskin .discord .message-a.v2>.body.typing,
#workskin .discord .message-b.v2>.body.typing {
width: 50px;
font-size: 24px;
text-align: center;
padding: 0.25rem;
}

#workskin .discord .typing {
font-size: 13px;
}

#workskin .discord .message-b>.body.typing,
#workskin .discord .message-b.v2>.body.typing {
margin-left: 78%;
}

#workskin .discord .message-a>.body {
border-bottom-left-radius: 2px;
}

#workskin .discord .message-b>.body {
border-bottom-right-radius: 2px;
}

#workskin .discord .message-a .body {
border: 1px solid;
background: transparent;
}

#workskin .discord .body {
border-width: 1px;
border-style: solid;
}

#workskin .discord .message-b .body {
border-color: transparent;
background: transparent;
}

#workskin .discord .message-b {
color: rgba(219, 219, 219, 1);
}

#workskin .discord dl,
#workskin .discord dd {
margin: unset;
}

#workskin .discord .head {
width: 100%;
display: flex;
font-size: 10px;
line-height: 1;
}

#workskin .discord .message-a .head {
color: rgba(0, 68, 255, 1);
}

#workskin .discord .message-b .head {
color: rgba(255, 247, 97, 1);
}

#workskin .discord .msg {
text-align: left;
}

#workskin .discord .time {
text-align: right;
width: fill-available;
}

#workskin .discord .author {
width: fill-available;
font-size: 12px;
font-weight: 600;
text-align: start;
min-width: 65%;
}

#workskin .discord .time,
#workskin .discord .time>small,
#workskin .discord .time>small>code,
#workskin .discord .time>small {
font-family: monospace;
font-size: 10px;
margin: unset;
}

#workskin .discord .avatar {
display: flex;
flex-direction: column;
flex-shrink: 0;
justify-content: flex-end;
margin: -0.1em auto;
height: 100%;
}

#workskin .discord .avatar-placeholder {
display: flex;
justify-content: center;
align-items: center;
width: 2em;
height: 2em;
border-radius: 50%;
background-color: #ccc;
color: #000;
font-weight: 600;
border: none;
}

#workskin .discord .avatar img,
#workskin .discord .avatar-placeholder {
border-radius: 50%;
width: 2em;
margin-top: 0.5em;
}

#workskin .discord .message-a,
#workskin .discord .message-b {
display: flex;
}

#workskin .discord .message-a .avatar {
margin-right: 0.5rem;
}

#workskin .discord .message-b .avatar {
margin-left: 0.5rem;
}

#workskin .discord .message-b {
flex-direction: row-reverse;
}

#workskin .discord .body {
width: fill-available;
}

#workskin .message-thread.discord {
padding: 0.2rem;
width: 100%;
max-width: 600px;
min-width: 350px;
overflow-x: hidden;
box-shadow: 0 0 4px currentColor;
}

#workskin .discord.message-thread .author {
font-size: 14px;
width: fit-content;
}

#workskin .discord.message-thread .author {
width: fit-content;
min-width: fit-content;
line-height: 20px;
vertical-align: baseline;
}

#workskin .discord.message-thread .time,
#workskin .discord.message-thread .time>small,
#workskin .discord.message-thread .time>small>code,
#workskin .discord.message-thread .time>small {
font-size: 11px;
font-family: unset;
color: #8e939a;
width: fit-content;
margin-left: 2px;
vertical-align: baseline;
line-height: 20px;
}

#workskin .discord .avatar {
justify-content: flex-start;
margin: unset;
padding-top: 0.2rem;
}

#workskin .discord .avatar img,
#workskin .discord .avatar-placeholder {
width: 2.5em;
}

#workskin .discord .avatar-placeholder {
height: 2.5em;
color: #313338;
background-color: #8e939a;
}

#workskin .discord .message-a body:hover,
#workskin .discord .message-b body:hover {
background: black !important;
}

#workskin .message-thread.discord .message-a .avatar,
#workskin .message-thread.discord .message-b .avatar {
margin-left: unset;
margin-right: 0.2rem;
}

#workskin .discord.message-thread .message-b {
flex-direction: row;
}

#workskin .discord.message-thread .msg {
margin-top: unset;
font-size: 14px;
}

#workskin .discord.message-thread .body {
background: unset;
border: unset;
}

#workskin .discord.message-thread .message-a,
#workskin .discord.message-thread .message-b {
display: flex;
padding: 0 0.5rem;
margin: 0.2rem 0;
}

#workskin .discord.message-thread .body {
width: fill-available;
}

#workskin .discord.message-thread .message-a:hover,
#workskin .discord.message-thread .message-b:hover {
background: rgba(0, 0, 0, 0.1) !important;
}

#workskin .message-thread.discord .message-a .avatar,
#workskin .message-thread.discord .message-b .avatar {
margin-left: unset;
margin-right: 0.2rem;
}

#workskin .discord .msg p {
text-indent: 0 !important;
}