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,366 @@
1
+ .admonition {
2
+ margin: 1.5em 0;
3
+ padding: 0;
4
+ border-radius: var(--border-radius);
5
+ background: var(--surface-color);
6
+ backdrop-filter: var(--glass-blur);
7
+ -webkit-backdrop-filter: var(--glass-blur);
8
+ box-shadow: var(--shadow-sm);
9
+ overflow: hidden;
10
+ border: 1px solid var(--border-color);
11
+ border-left: 4px solid var(--admonition-color, var(--primary-color));
12
+ transition: all var(--transition-normal);
13
+ }
14
+
15
+ .admonition:hover {
16
+ box-shadow: var(--shadow-md);
17
+ }
18
+
19
+ .admonition-title {
20
+ display: flex;
21
+ align-items: center;
22
+ gap: 8px;
23
+ padding: 12px 16px;
24
+ background: var(--admonition-bg, rgba(var(--surface-color-rgb), 0.5));
25
+ font-weight: 600;
26
+ font-size: 0.95rem;
27
+ color: var(--admonition-color, var(--primary-color));
28
+ margin: 0;
29
+ transition: background var(--transition-fast);
30
+ }
31
+
32
+ .admonition-title:hover {
33
+ background: var(--admonition-bg-hover, rgba(var(--surface-color-rgb), 0.7));
34
+ }
35
+
36
+ .admonition-icon {
37
+ font-size: 1.1rem;
38
+ line-height: 1;
39
+ }
40
+
41
+ .admonition-content {
42
+ padding: 12px 16px;
43
+ color: var(--text-primary);
44
+ }
45
+
46
+ .admonition-content>*:first-child {
47
+ margin-top: 0;
48
+ }
49
+
50
+ .admonition-content>*:last-child {
51
+ margin-bottom: 0;
52
+ }
53
+
54
+ .admonition-content p {
55
+ margin-bottom: 0.8em;
56
+ }
57
+
58
+ .admonition-content p:last-child {
59
+ margin-bottom: 0;
60
+ }
61
+
62
+ .admonition.anote {
63
+ --admonition-color: var(--primary-color);
64
+ --admonition-bg: var(--primary-light);
65
+ --admonition-bg-hover: rgba(255, 127, 120, 0.25);
66
+ }
67
+
68
+ .admonition.anote .admonition-title {
69
+ color: var(--primary-dark);
70
+ }
71
+
72
+ .admonition.info,
73
+ .admonition.todo {
74
+ --admonition-color: #0288D1;
75
+ --admonition-bg: rgba(2, 136, 209, 0.1);
76
+ --admonition-bg-hover: rgba(2, 136, 209, 0.15);
77
+ }
78
+
79
+ .admonition.info .admonition-title,
80
+ .admonition.todo .admonition-title {
81
+ color: #01579B;
82
+ }
83
+
84
+ [data-theme="dark"] .admonition.info,
85
+ [data-theme="dark"] .admonition.todo {
86
+ --admonition-color: #4FC3F7;
87
+ --admonition-bg: rgba(79, 195, 247, 0.1);
88
+ --admonition-bg-hover: rgba(79, 195, 247, 0.15);
89
+ }
90
+
91
+ [data-theme="dark"] .admonition.info .admonition-title,
92
+ [data-theme="dark"] .admonition.todo .admonition-title {
93
+ color: #81D4FA;
94
+ }
95
+
96
+ .admonition.warning,
97
+ .admonition.attention,
98
+ .admonition.caution {
99
+ --admonition-color: #F57C00;
100
+ --admonition-bg: rgba(245, 124, 0, 0.1);
101
+ --admonition-bg-hover: rgba(245, 124, 0, 0.15);
102
+ }
103
+
104
+ .admonition.warning .admonition-title,
105
+ .admonition.attention .admonition-title,
106
+ .admonition.caution .admonition-title {
107
+ color: #E65100;
108
+ }
109
+
110
+ [data-theme="dark"] .admonition.warning,
111
+ [data-theme="dark"] .admonition.attention,
112
+ [data-theme="dark"] .admonition.caution {
113
+ --admonition-color: #FFB74D;
114
+ --admonition-bg: rgba(255, 183, 77, 0.1);
115
+ --admonition-bg-hover: rgba(255, 183, 77, 0.15);
116
+ }
117
+
118
+ [data-theme="dark"] .admonition.warning .admonition-title,
119
+ [data-theme="dark"] .admonition.attention .admonition-title,
120
+ [data-theme="dark"] .admonition.caution .admonition-title {
121
+ color: #FFCC80;
122
+ }
123
+
124
+ .admonition.error,
125
+ .admonition.failure,
126
+ .admonition.missing,
127
+ .admonition.fail,
128
+ .admonition.danger,
129
+ .admonition.bug {
130
+ --admonition-color: #E53935;
131
+ --admonition-bg: rgba(229, 57, 53, 0.1);
132
+ --admonition-bg-hover: rgba(229, 57, 53, 0.15);
133
+ }
134
+
135
+ .admonition.error .admonition-title,
136
+ .admonition.failure .admonition-title,
137
+ .admonition.missing .admonition-title,
138
+ .admonition.fail .admonition-title,
139
+ .admonition.danger .admonition-title,
140
+ .admonition.bug .admonition-title {
141
+ color: #C62828;
142
+ }
143
+
144
+ [data-theme="dark"] .admonition.error,
145
+ [data-theme="dark"] .admonition.failure,
146
+ [data-theme="dark"] .admonition.missing,
147
+ [data-theme="dark"] .admonition.fail,
148
+ [data-theme="dark"] .admonition.danger,
149
+ [data-theme="dark"] .admonition.bug {
150
+ --admonition-color: #EF5350;
151
+ --admonition-bg: rgba(239, 83, 80, 0.1);
152
+ --admonition-bg-hover: rgba(239, 83, 80, 0.15);
153
+ }
154
+
155
+ [data-theme="dark"] .admonition.error .admonition-title,
156
+ [data-theme="dark"] .admonition.failure .admonition-title,
157
+ [data-theme="dark"] .admonition.missing .admonition-title,
158
+ [data-theme="dark"] .admonition.fail .admonition-title,
159
+ [data-theme="dark"] .admonition.danger .admonition-title,
160
+ [data-theme="dark"] .admonition.bug .admonition-title {
161
+ color: #EF9A9A;
162
+ }
163
+
164
+ .admonition.success {
165
+ --admonition-color: #43A047;
166
+ --admonition-bg: rgba(67, 160, 71, 0.1);
167
+ --admonition-bg-hover: rgba(67, 160, 71, 0.15);
168
+ }
169
+
170
+ .admonition.success .admonition-title {
171
+ color: #2E7D32;
172
+ }
173
+
174
+ [data-theme="dark"] .admonition.success {
175
+ --admonition-color: #66BB6A;
176
+ --admonition-bg: rgba(102, 187, 106, 0.1);
177
+ --admonition-bg-hover: rgba(102, 187, 106, 0.15);
178
+ }
179
+
180
+ [data-theme="dark"] .admonition.success .admonition-title {
181
+ color: #A5D6A7;
182
+ }
183
+
184
+ .admonition.tip {
185
+ --admonition-color: #00897B;
186
+ --admonition-bg: rgba(0, 137, 123, 0.1);
187
+ --admonition-bg-hover: rgba(0, 137, 123, 0.15);
188
+ }
189
+
190
+ .admonition.tip .admonition-title {
191
+ color: #00695C;
192
+ }
193
+
194
+ [data-theme="dark"] .admonition.tip {
195
+ --admonition-color: #4DB6AC;
196
+ --admonition-bg: rgba(77, 182, 172, 0.1);
197
+ --admonition-bg-hover: rgba(77, 182, 172, 0.15);
198
+ }
199
+
200
+ [data-theme="dark"] .admonition.tip .admonition-title {
201
+ color: #80CBC4;
202
+ }
203
+
204
+ .admonition.question {
205
+ --admonition-color: #7CB342;
206
+ --admonition-bg: rgba(124, 179, 66, 0.1);
207
+ --admonition-bg-hover: rgba(124, 179, 66, 0.15);
208
+ }
209
+
210
+ .admonition.question .admonition-title {
211
+ color: #558B2F;
212
+ }
213
+
214
+ [data-theme="dark"] .admonition.question {
215
+ --admonition-color: #AED581;
216
+ --admonition-bg: rgba(174, 213, 129, 0.1);
217
+ --admonition-bg-hover: rgba(174, 213, 129, 0.15);
218
+ }
219
+
220
+ [data-theme="dark"] .admonition.question .admonition-title {
221
+ color: #C5E1A5;
222
+ }
223
+
224
+ .admonition.example {
225
+ --admonition-color: #7E57C2;
226
+ --admonition-bg: rgba(126, 87, 194, 0.1);
227
+ --admonition-bg-hover: rgba(126, 87, 194, 0.15);
228
+ }
229
+
230
+ .admonition.example .admonition-title {
231
+ color: #5E35B1;
232
+ }
233
+
234
+ [data-theme="dark"] .admonition.example {
235
+ --admonition-color: #9575CD;
236
+ --admonition-bg: rgba(149, 117, 205, 0.1);
237
+ --admonition-bg-hover: rgba(149, 117, 205, 0.15);
238
+ }
239
+
240
+ [data-theme="dark"] .admonition.example .admonition-title {
241
+ color: #B39DDB;
242
+ }
243
+
244
+ .admonition.quote {
245
+ --admonition-color: #78909C;
246
+ --admonition-bg: rgba(120, 144, 156, 0.1);
247
+ --admonition-bg-hover: rgba(120, 144, 156, 0.15);
248
+ }
249
+
250
+ .admonition.quote .admonition-title {
251
+ color: #546E7A;
252
+ }
253
+
254
+ [data-theme="dark"] .admonition.quote {
255
+ --admonition-color: #90A4AE;
256
+ --admonition-bg: rgba(144, 164, 174, 0.1);
257
+ --admonition-bg-hover: rgba(144, 164, 174, 0.15);
258
+ }
259
+
260
+ [data-theme="dark"] .admonition.quote .admonition-title {
261
+ color: #B0BEC5;
262
+ }
263
+
264
+ .admonition.details {
265
+ --admonition-color: #0288D1;
266
+ --admonition-bg: rgba(2, 136, 209, 0.1);
267
+ --admonition-bg-hover: rgba(2, 136, 209, 0.15);
268
+ }
269
+
270
+ .admonition.details .admonition-title {
271
+ color: #01579B;
272
+ }
273
+
274
+ [data-theme="dark"] .admonition.details {
275
+ --admonition-color: #4FC3F7;
276
+ --admonition-bg: rgba(79, 195, 247, 0.1);
277
+ --admonition-bg-hover: rgba(79, 195, 247, 0.15);
278
+ }
279
+
280
+ [data-theme="dark"] .admonition.details .admonition-title {
281
+ color: #81D4FA;
282
+ }
283
+
284
+ .admonition.collapsible .admonition-title {
285
+ cursor: pointer;
286
+ user-select: none;
287
+ }
288
+
289
+ .admonition.collapsible .admonition-title::before {
290
+ content: '▼';
291
+ margin-right: 8px;
292
+ transition: transform var(--transition-fast);
293
+ display: inline-block;
294
+ font-size: 0.8em;
295
+ }
296
+
297
+ .admonition.collapsible.collapsed .admonition-title::before {
298
+ transform: rotate(-90deg);
299
+ }
300
+
301
+ .admonition.collapsible.collapsed .admonition-content {
302
+ display: none;
303
+ }
304
+
305
+ .admonition .admonition {
306
+ margin: 0.8em 0;
307
+ }
308
+
309
+ .mdi {
310
+ display: inline-flex;
311
+ align-items: center;
312
+ justify-content: center;
313
+ width: 1.2em;
314
+ height: 1.2em;
315
+ font-style: normal;
316
+ }
317
+
318
+ .mdi-information-outline::before {
319
+ content: 'ℹ';
320
+ }
321
+
322
+ .mdi-alert-outline::before {
323
+ content: '⚠';
324
+ }
325
+
326
+ .mdi-alert-circle-outline::before {
327
+ content: '!';
328
+ }
329
+
330
+ .mdi-lightbulb-outline::before {
331
+ content: '💡';
332
+ }
333
+
334
+ .mdi-check-circle-outline::before {
335
+ content: '✓';
336
+ }
337
+
338
+ .mdi-help-circle-outline::before {
339
+ content: '?';
340
+ }
341
+
342
+ .mdi-format-quote-close::before {
343
+ content: '"';
344
+ }
345
+
346
+ .mdi-code-braces::before {
347
+ content: '</>';
348
+ }
349
+
350
+ .mdi-bug-outline::before {
351
+ content: '🐛';
352
+ }
353
+
354
+ .mdi-clipboard-check-outline::before {
355
+ content: '📋';
356
+ }
357
+
358
+ .mdi-clipboard-list-outline::before {
359
+ content: '📝';
360
+ }
361
+
362
+ .mdi:before,
363
+ .mdi-set {
364
+ display: flex !important;
365
+ line-height: normal !important;
366
+ }
@@ -0,0 +1,135 @@
1
+ .highlight {
2
+ background: #282c34;
3
+ border-radius: 10px;
4
+ margin: 1em 0;
5
+ overflow-x: auto;
6
+ position: relative;
7
+ font-family: Consolas, Menlo, 'Fira Code', monospace;
8
+ }
9
+
10
+ .highlight .gutter {
11
+ width: 20px;
12
+ border-right: 1px solid #3e4451;
13
+ }
14
+
15
+ .highlight .gutter .line {
16
+ color: #5c6370;
17
+ }
18
+
19
+ .highlight .code {
20
+ color: #abb2bf;
21
+ }
22
+
23
+ .highlight .hljs-comment,
24
+ .highlight .hljs-quote {
25
+ color: #5c6370;
26
+ font-style: italic;
27
+ }
28
+
29
+ .highlight .hljs-doctag,
30
+ .highlight .hljs-keyword,
31
+ .highlight .hljs-formula {
32
+ color: #c678dd;
33
+ }
34
+
35
+ .highlight .hljs-section,
36
+ .highlight .hljs-name,
37
+ .highlight .hljs-selector-tag,
38
+ .highlight .hljs-deletion,
39
+ .highlight .hljs-subst {
40
+ color: #e06c75;
41
+ }
42
+
43
+ .highlight .hljs-literal {
44
+ color: #56b6c2;
45
+ }
46
+
47
+ .highlight .hljs-string,
48
+ .highlight .hljs-regexp,
49
+ .highlight .hljs-addition,
50
+ .highlight .hljs-attribute,
51
+ .highlight .hljs-meta .hljs-string {
52
+ color: #98c379;
53
+ }
54
+
55
+ .highlight .hljs-attr,
56
+ .highlight .hljs-variable,
57
+ .highlight .hljs-template-variable,
58
+ .highlight .hljs-type,
59
+ .highlight .hljs-selector-class,
60
+ .highlight .hljs-selector-attr,
61
+ .highlight .hljs-selector-pseudo,
62
+ .highlight .hljs-number {
63
+ color: #d19a66;
64
+ }
65
+
66
+ .highlight .hljs-symbol,
67
+ .highlight .hljs-bullet,
68
+ .highlight .hljs-link,
69
+ .highlight .hljs-meta,
70
+ .highlight .hljs-selector-id,
71
+ .highlight .hljs-title {
72
+ color: #61aeee;
73
+ }
74
+
75
+ .highlight .hljs-built_in,
76
+ .highlight .hljs-title.class_,
77
+ .highlight .hljs-class .hljs-title {
78
+ color: #e6c07b;
79
+ }
80
+
81
+ .highlight .hljs-emphasis {
82
+ font-style: italic;
83
+ }
84
+
85
+ .highlight .hljs-strong {
86
+ font-weight: bold;
87
+ }
88
+
89
+ .highlight .hljs-link {
90
+ text-decoration: underline;
91
+ }
92
+
93
+ .highlight .hljs-meta .hljs-keyword {
94
+ color: #56b6c2;
95
+ }
96
+
97
+ .highlight .hljs-meta {
98
+ color: #61aeee;
99
+ }
100
+
101
+ .highlight .hljs-meta .hljs-string {
102
+ color: #98c379;
103
+ }
104
+
105
+ .highlight .hljs-params {
106
+ color: #abb2bf;
107
+ }
108
+
109
+ .highlight .hljs-property {
110
+ color: #e06c75;
111
+ }
112
+
113
+ .highlight .hljs-tag {
114
+ color: #e06c75;
115
+ }
116
+
117
+ .highlight .hljs-function {
118
+ color: #61aeee;
119
+ }
120
+
121
+ .highlight .hljs-title.function_ {
122
+ color: #61aeee;
123
+ }
124
+
125
+ .highlight .hljs-params {
126
+ color: #abb2bf;
127
+ }
128
+
129
+ .highlight .hljs-variable.language_ {
130
+ color: #e06c75;
131
+ }
132
+
133
+ .highlight .hljs-attr {
134
+ color: #d19a66;
135
+ }