hexo-theme-nblog 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,454 @@
1
+ .post-body {
2
+ font-size: 16px;
3
+ line-height: 1.8;
4
+ color: var(--text-primary);
5
+ }
6
+
7
+ .post-body h1,
8
+ .post-body h2,
9
+ .post-body h3,
10
+ .post-body h4,
11
+ .post-body h5,
12
+ .post-body h6 {
13
+ margin-top: 1.5em;
14
+ margin-bottom: 0.5em;
15
+ font-weight: 600;
16
+ line-height: 1.4;
17
+ display: flex;
18
+ align-items: center;
19
+ }
20
+
21
+ .post-body h1 .headerlink,
22
+ .post-body h2 .headerlink,
23
+ .post-body h3 .headerlink,
24
+ .post-body h4 .headerlink,
25
+ .post-body h5 .headerlink,
26
+ .post-body h6 .headerlink {
27
+ color: var(--primary-color);
28
+ font-weight: normal;
29
+ opacity: 1;
30
+ transition: opacity var(--transition-fast);
31
+ border-bottom: none;
32
+ margin-right: 0.3em;
33
+ position: relative;
34
+ overflow: hidden;
35
+ font-size: larger;
36
+ }
37
+
38
+ .post-body h1 .headerlink::before,
39
+ .post-body h2 .headerlink::before,
40
+ .post-body h3 .headerlink::before,
41
+ .post-body h4 .headerlink::before,
42
+ .post-body h5 .headerlink::before,
43
+ .post-body h6 .headerlink::before {
44
+ content: '#';
45
+ }
46
+
47
+ .post-body h1 .headerlink::after,
48
+ .post-body h2 .headerlink::after,
49
+ .post-body h3 .headerlink::after,
50
+ .post-body h4 .headerlink::after,
51
+ .post-body h5 .headerlink::after,
52
+ .post-body h6 .headerlink::after {
53
+ content: '';
54
+ position: absolute;
55
+ bottom: 0;
56
+ left: 0;
57
+ width: 100%;
58
+ height: 0;
59
+ background: var(--btn-plain-bg-hover);
60
+ border-radius: 4px;
61
+ transition: height var(--transition-fast);
62
+ transform-origin: bottom;
63
+ z-index: -1;
64
+ }
65
+
66
+ .post-body h1 .headerlink:hover::after,
67
+ .post-body h2 .headerlink:hover::after,
68
+ .post-body h3 .headerlink:hover::after,
69
+ .post-body h4 .headerlink:hover::after,
70
+ .post-body h5 .headerlink:hover::after,
71
+ .post-body h6 .headerlink:hover::after {
72
+ height: 100%;
73
+ }
74
+
75
+ .post-body h1 a::before,
76
+ .post-body h2 a::before,
77
+ .post-body h3 a::before,
78
+ .post-body h4 a::before,
79
+ .post-body h5 a::before,
80
+ .post-body h6 a::before {
81
+ position: relative;
82
+ background: unset;
83
+ }
84
+
85
+ .post-body h1 {
86
+ font-size: 1.8em;
87
+ padding-bottom: 0.3em;
88
+ border-bottom: 2px solid var(--border-color);
89
+ }
90
+
91
+ .post-body h2 {
92
+ font-size: 1.5em;
93
+ padding-bottom: 0.3em;
94
+ border-bottom: 1px solid var(--border-color);
95
+ }
96
+
97
+ .post-body h3 {
98
+ font-size: 1.25em;
99
+ }
100
+
101
+ .post-body h4 {
102
+ font-size: 1.1em;
103
+ }
104
+
105
+ .post-body p {
106
+ margin-bottom: 1em;
107
+ display: flex;
108
+ flex-wrap: wrap;
109
+ align-items: center;
110
+ }
111
+
112
+ .post-body a {
113
+ color: var(--primary-color);
114
+ text-decoration: none;
115
+ position: relative;
116
+ z-index: 1;
117
+ white-space: nowrap;
118
+ transition: color var(--transition-fast);
119
+ }
120
+
121
+ .post-body a::before {
122
+ position: absolute;
123
+ bottom: 0;
124
+ left: 0;
125
+ width: 100%;
126
+ height: 0;
127
+ background: var(--btn-plain-bg-hover);
128
+ border-radius: 4px;
129
+ transition: height var(--transition-fast);
130
+ transform-origin: bottom;
131
+ z-index: -1;
132
+ }
133
+
134
+ .post-body a:hover::before {
135
+ height: 100%;
136
+ }
137
+
138
+ .post-body strong {
139
+ font-weight: 600;
140
+ color: var(--text-primary);
141
+ }
142
+
143
+ .post-body em {
144
+ font-style: italic;
145
+ }
146
+
147
+ .post-body ul,
148
+ .post-body ol {
149
+ margin-bottom: 1em;
150
+ padding-left: 2em;
151
+ }
152
+
153
+ .post-body li {
154
+ margin-bottom: 0.5em;
155
+ }
156
+
157
+ .post-body li::marker {
158
+ color: var(--primary-color);
159
+ }
160
+
161
+ .post-body li>strong,
162
+ .post-body li>a {
163
+ display: inline-flex;
164
+ align-items: center;
165
+ }
166
+
167
+ .post-body blockquote {
168
+ margin: 1em 0;
169
+ padding: 1em 1.5em;
170
+ border-left: 4px solid var(--primary-color);
171
+ background: var(--primary-light);
172
+ border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
173
+ color: var(--text-secondary);
174
+ }
175
+
176
+ .post-body blockquote p:last-child {
177
+ margin-bottom: 0;
178
+ }
179
+
180
+ .post-body code {
181
+ font-family: Consolas, Menlo, 'Fira Code', monospace;
182
+ font-size: 0.9em;
183
+ padding: 0.2em 0.4em;
184
+ margin: 0em 0.4em;
185
+ background: var(--border-color);
186
+ border-radius: 10px;
187
+ color: var(--primary-color);
188
+ }
189
+
190
+ .post-body pre {
191
+ margin: 1em 0;
192
+ padding: 0;
193
+ background: #282c34;
194
+ border-radius: 10px;
195
+ overflow: hidden;
196
+ font-family: Consolas, Menlo, 'Fira Code', monospace;
197
+ }
198
+
199
+ .post-body pre code {
200
+ padding: 0;
201
+ background: transparent;
202
+ font-size: 0.9em;
203
+ line-height: 1.6;
204
+ color: inherit;
205
+ font-family: Consolas, Menlo, 'Fira Code', monospace;
206
+ }
207
+
208
+ .post-body .highlight {
209
+ margin: 1em 0;
210
+ border-radius: 10px;
211
+ overflow-x: auto;
212
+ background: #282c34;
213
+ padding: 1em;
214
+ position: relative;
215
+ font-family: Consolas, Menlo, 'Fira Code', monospace;
216
+ }
217
+
218
+ .post-body .highlight pre {
219
+ margin: 0;
220
+ padding: 0;
221
+ background: transparent;
222
+ font-family: Consolas, Menlo, 'Fira Code', monospace;
223
+ white-space: pre;
224
+ }
225
+
226
+ .post-body .highlight code {
227
+ padding: 0;
228
+ background: transparent;
229
+ color: inherit;
230
+ font-family: Consolas, Menlo, 'Fira Code', monospace;
231
+ white-space: pre;
232
+ }
233
+
234
+ .post-body .highlight table {
235
+ margin: 0;
236
+ border: none;
237
+ }
238
+
239
+ .post-body .highlight table tr {
240
+ background: transparent;
241
+ }
242
+
243
+ .post-body .highlight table td {
244
+ padding: 0;
245
+ border: none;
246
+ }
247
+
248
+ .post-body .highlight .gutter {
249
+ width: 20px;
250
+ padding-right: 5px;
251
+ border-right: 1px solid #3e4451;
252
+ text-align: right;
253
+ user-select: none;
254
+ }
255
+
256
+ .post-body .highlight .gutter pre {
257
+ padding: 0 0.5em 0 0.5em;
258
+ }
259
+
260
+ .post-body .highlight .gutter .line {
261
+ color: #5c6370;
262
+ }
263
+
264
+ .post-body .highlight .code pre {
265
+ padding: 0 0 0 0.5em;
266
+ }
267
+
268
+ .post-body .highlight .line {
269
+ height: 1.6em;
270
+ line-height: 1.6;
271
+ }
272
+
273
+ .post-body .highlight-wrap {
274
+ position: relative;
275
+ margin: 1em 0;
276
+ border-radius: 10px;
277
+ background: #282c34;
278
+ overflow-x: auto;
279
+ }
280
+
281
+ .post-body .highlight-wrap .highlight {
282
+ margin: 0;
283
+ padding: 5px;
284
+ overflow-x: auto;
285
+ }
286
+
287
+ .post-body .highlight-wrap .copy-btn {
288
+ position: absolute;
289
+ top: 8px;
290
+ right: 8px;
291
+ padding: 6px 12px;
292
+ font-size: 12px;
293
+ font-family: var(--font-family);
294
+ color: #abb2bf;
295
+ background: rgba(255, 255, 255, 0.1);
296
+ border: 1px solid rgba(255, 255, 255, 0.2);
297
+ border-radius: 6px;
298
+ cursor: pointer;
299
+ opacity: 0;
300
+ transition: all var(--transition-fast);
301
+ z-index: 10;
302
+ }
303
+
304
+ .post-body .highlight-wrap:hover .copy-btn {
305
+ opacity: 1;
306
+ }
307
+
308
+ .post-body .highlight-wrap .copy-btn:hover {
309
+ background: rgba(255, 255, 255, 0.2);
310
+ color: #fff;
311
+ }
312
+
313
+ .post-body .highlight-wrap .copy-btn.copied {
314
+ color: #98c379;
315
+ border-color: #98c379;
316
+ }
317
+
318
+ .post-body .highlight .code,
319
+ .post-body .highlight .gutter {
320
+ user-select: none;
321
+ }
322
+
323
+ .post-body .highlight .code pre {
324
+ user-select: text;
325
+ }
326
+
327
+ .post-body img {
328
+ max-width: 100%;
329
+ height: auto;
330
+ border-radius: var(--border-radius-sm);
331
+ margin: 1em 0;
332
+ }
333
+
334
+ .post-body figure {
335
+ margin: 1em 0;
336
+ text-align: center;
337
+ }
338
+
339
+ .post-body figure img {
340
+ margin: 0;
341
+ }
342
+
343
+ .post-body figcaption {
344
+ margin-top: 0.5em;
345
+ font-size: 0.9em;
346
+ color: var(--text-secondary);
347
+ }
348
+
349
+ .post-body table {
350
+ width: 100%;
351
+ margin: 1em 0;
352
+ border-collapse: collapse;
353
+ border-radius: var(--border-radius-sm);
354
+ overflow: hidden;
355
+ }
356
+
357
+ .post-body th,
358
+ .post-body td {
359
+ padding: 12px 16px;
360
+ text-align: left;
361
+ border: 1px solid var(--border-color);
362
+ }
363
+
364
+ .post-body th {
365
+ background: rgba(var(--surface-color-rgb), 0.5);
366
+ font-weight: 600;
367
+ }
368
+
369
+ .post-body tr:nth-child(even) {
370
+ background: rgba(var(--surface-color-rgb), 0.3);
371
+ }
372
+
373
+ .post-body hr {
374
+ margin: 2em 0;
375
+ border: none;
376
+ height: 1px;
377
+ background: var(--border-color);
378
+ }
379
+
380
+ .post-body .task-list-item {
381
+ list-style: none;
382
+ margin-left: -1.5em;
383
+ }
384
+
385
+ .post-body .task-list-item input[type="checkbox"] {
386
+ margin-right: 0.5em;
387
+ accent-color: var(--primary-color);
388
+ }
389
+
390
+ .post-body .video-container {
391
+ position: relative;
392
+ padding-bottom: 56.25%;
393
+ height: 0;
394
+ overflow: hidden;
395
+ margin: 1em 0;
396
+ border-radius: var(--border-radius-sm);
397
+ }
398
+
399
+ .post-body .video-container iframe {
400
+ position: absolute;
401
+ top: 0;
402
+ left: 0;
403
+ width: 100%;
404
+ height: 100%;
405
+ }
406
+
407
+ .post-body .toc {
408
+ background: rgba(var(--surface-color-rgb), 0.5);
409
+ padding: 1em 1.5em;
410
+ border-radius: var(--border-radius-sm);
411
+ margin-bottom: 1em;
412
+ }
413
+
414
+ .post-body .toc .toc-title {
415
+ font-weight: 600;
416
+ margin-bottom: 0.5em;
417
+ }
418
+
419
+ .post-body .toc ol {
420
+ padding-left: 1.5em;
421
+ margin-bottom: 0;
422
+ }
423
+
424
+ .post-body .toc li {
425
+ margin-bottom: 0.3em;
426
+ }
427
+
428
+ .post-body .toc a {
429
+ color: var(--text-secondary);
430
+ border-bottom: none;
431
+ }
432
+
433
+ .post-body .toc a:hover {
434
+ color: var(--primary-color);
435
+ }
436
+
437
+ @media (max-width: 768px) {
438
+ .post-body {
439
+ font-size: 15px;
440
+ }
441
+
442
+ .post-body pre {
443
+ font-size: 0.85em;
444
+ }
445
+
446
+ .post-body table {
447
+ display: block;
448
+ overflow-x: auto;
449
+ }
450
+
451
+ .post-body .highlight-wrap .copy-btn {
452
+ opacity: 1;
453
+ }
454
+ }
@@ -0,0 +1,105 @@
1
+ #twikoo {
2
+ max-width: 800px;
3
+ margin: 0 auto;
4
+ padding: 40px 0;
5
+ }
6
+
7
+ .tk-footer {
8
+ display: flex;
9
+ flex-direction: row;
10
+ align-items: center;
11
+ justify-content: flex-end;
12
+ }
13
+
14
+ .post-comments {
15
+ margin-top: 48px;
16
+ padding-top: 32px;
17
+ border-top: 1px solid var(--border-color);
18
+ }
19
+
20
+ .post-comments #twikoo-comment {
21
+ background: var(--surface-color);
22
+ backdrop-filter: var(--glass-blur);
23
+ -webkit-backdrop-filter: var(--glass-blur);
24
+ border-radius: var(--border-radius);
25
+ padding: 24px;
26
+ border: 1px solid var(--border-color);
27
+ box-shadow: var(--shadow-md);
28
+ }
29
+
30
+ #twikoo .el-button.el-button--primary {
31
+ background: var(--primary-color);
32
+ border-color: var(--primary-color);
33
+ color: white;
34
+ }
35
+
36
+ #twikoo .el-button.el-button--primary:hover,
37
+ #twikoo .el-button.el-button--primary:focus {
38
+ background: var(--primary-dark);
39
+ border-color: var(--primary-dark);
40
+ }
41
+
42
+ #twikoo .el-button.el-button--primary.is-disabled,
43
+ #twikoo .el-button.el-button--primary.is-disabled:hover,
44
+ #twikoo .el-button.el-button--primary.is-disabled:focus {
45
+ background: var(--primary-color);
46
+ border-color: var(--primary-color);
47
+ opacity: 0.5;
48
+ cursor: not-allowed;
49
+ }
50
+
51
+ #twikoo .el-button.el-button--default:hover,
52
+ #twikoo .el-button.el-button--default:focus {
53
+ color: var(--primary-color);
54
+ border-color: var(--primary-color);
55
+ background: var(--primary-light);
56
+ }
57
+
58
+ #twikoo .tk-icon.__comments {
59
+ color: var(--text-secondary);
60
+ }
61
+
62
+ #twikoo .tk-icon.__comments:hover {
63
+ color: var(--primary-color);
64
+ }
65
+
66
+ #twikoo .tk-icon svg,
67
+ #twikoo .OwO-logo svg,
68
+ #twikoo .tk-submit-action-icon svg,
69
+ #twikoo .tk-icon.__comments svg {
70
+ fill: currentColor;
71
+ }
72
+
73
+ [data-theme="dark"] #twikoo .el-button.el-button--primary {
74
+ background: var(--primary-color);
75
+ border-color: var(--primary-color);
76
+ }
77
+
78
+ [data-theme="dark"] #twikoo .el-button.el-button--primary:hover,
79
+ [data-theme="dark"] #twikoo .el-button.el-button--primary:focus {
80
+ background: var(--primary-light);
81
+ border-color: var(--primary-light);
82
+ }
83
+
84
+ [data-theme="dark"] #twikoo .el-button.el-button--primary.is-disabled,
85
+ [data-theme="dark"] #twikoo .el-button.el-button--primary.is-disabled:hover,
86
+ [data-theme="dark"] #twikoo .el-button.el-button--primary.is-disabled:focus {
87
+ background: var(--primary-color);
88
+ border-color: var(--primary-color);
89
+ opacity: 0.5;
90
+ }
91
+
92
+ [data-theme="dark"] #twikoo .el-button.el-button--default:hover,
93
+ [data-theme="dark"] #twikoo .el-button.el-button--default:focus {
94
+ color: var(--primary-color);
95
+ border-color: var(--primary-color);
96
+ background: var(--primary-light);
97
+ }
98
+
99
+ [data-theme="dark"] #twikoo .tk-icon.__comments {
100
+ color: var(--text-secondary);
101
+ }
102
+
103
+ [data-theme="dark"] #twikoo .tk-icon.__comments:hover {
104
+ color: var(--primary-color);
105
+ }
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1033 1105">
2
+ <path fill="#FF7F78" d="m530.5 55c-3.6 0-7.7 0.6-9.3 1.4-1.5 0.8-3.6 2.4-4.7 3.6-2 2.2-2 3.6-2 76.4 0 57.5 0.2 74.8 1.2 77.3 0.8 1.9 2.7 4 4.6 5 3 1.7 11.4 1.8 144.7 1.4 102.6-0.3 143.1-0.1 147.3 0.8 3.3 0.6 7 2.1 8.7 3.6 2 1.7 3.5 4.4 4.7 8.2 1.5 5.3 1.6 19.4 0.9 174.3-0.5 135.3-0.4 169 0.7 171 0.7 1.4 2.6 3.2 4.2 4 2.6 1.4 13.2 1.7 79.5 2.2 69.5 0.5 76.9 0.4 80.9-1.1 2.4-0.9 5.2-2.8 6.3-4.4 1.7-2.6 1.8-11.7 1.8-259.4 0-243.4-0.1-256.9-1.7-259.2-1-1.4-3.3-3.1-5.1-3.8-2.6-1.1-42.9-1.3-216.7-1.3-146.1 0-236.1 0.1-226.5 0 9.6-0.1-15.9 0-19.5 0zm-487.6 461.9c-2 0.3-4.9 1.7-6.3 3.1-1.5 1.4-3.2 4.3-3.8 6.5-0.7 2.8-1 78.5-0.9 259.5l0.7 255.2c0.1 0.8 0.4 1.8 0.6 2 3.9 3.9 6 4.3 7.8 4.8 1.9 0.6 7.2 1 11.8 1 4.8 0 7.6 0.2 8.2 0.1 3.5-0.1 5.9 0.2 12.9 0.2 7 0 12.2-0.1 10.3 0-0.6 0 63-0.1 187.3-0.3 125-0.2 185.6 0 188.4 0.2 2.2 0.1 4.3 0.1 11.3 0 7 0 9.2-0.1 10.6 0 0.6 0.1 4.1-0.2 10-0.2 5.3 0 11.4-0.5 13.5-1 2.3-0.6 4.8-2.4 6.7-4.8l2.1-3.6c-0.5-144-0.6-145.8-1.6-149.4-0.6-2-3.6-4-5.5-4.8-3.2-1.5-15.3-1.6-140-0.7-75.1 0.6-139.4 0.7-143 0.3-3.6-0.4-8-1.4-9.7-2.3-1.8-1-4.2-2.9-5.4-4.5-1.1-1.5-2.5-4.5-3.2-6.7-0.8-2.7-1.1-16-1.2-41.5 0-20.6 0.1-97.1 0.3-170 0.2-124.8 0.1-132.7-1.5-136-1-1.9-3.2-4.2-4.8-5.1-2.7-1.5-10.6-1.7-77.5-2.2-41-0.3-76.1-0.2-78.1 0.2zm233.5-230.7c-3 0.5-5.8 1.6-7.2 3-1.5 1.6-2.5 4.3-3.2 8.8-0.6 3.8-1 48-1 106.5 0 98.3 0 100.1 2 105 1.3 3.3 3.1 5.7 5.3 7 3.1 1.9 5.1 1.9 115.2 1.7 64.9-0.2 113.6-0.7 115.8-1.3 2-0.5 4.8-1.9 6.1-3.2 1.2-1.2 2.7-3.8 3.2-5.7 0.6-2.1 0.9-46 0.8-107-0.1-56.9-0.5-104.6-0.9-106-0.4-1.4-1.7-3.6-2.9-4.9-1.1-1.3-3.2-2.8-4.6-3.4-1.7-0.8-35.9-1.1-113.1-1.1-60.8-0.1-112.7 0.2-115.5 0.6zm254.1 297.8c-5.3 0.3-9 1.1-10.8 2.2-1.5 1-3.3 2.8-4 4-0.9 1.8-1.3 25.3-1.5 105.8-0.2 56.9 0 106 0.4 109 0.5 4.3 0.8 7.2 3.4 9.9l4 2 231.7 0.4c5.6-3.5 6.8-7.4 7.3-9.3 0.6-2.1 0.9-44.5 0.7-109.5-0.2-99.1-0.3-106.3-1.9-108.8-1-1.5-3.3-3.3-5-4.1-2.8-1.3-19.9-1.5-109.8-1.8-58.6-0.2-110.1-0.1-114.5 0.2z"/>
3
+ </svg>