hexo-theme-shokax 0.0.1-alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE-shoka +21 -0
  3. package/README.md +47 -0
  4. package/_config.yml +353 -0
  5. package/_images.yml +99 -0
  6. package/languages/README.md +19 -0
  7. package/languages/default.yml +1 -0
  8. package/languages/en.yml +151 -0
  9. package/languages/ja.yml +146 -0
  10. package/languages/zh-CN.yml +154 -0
  11. package/languages/zh-HK.yml +146 -0
  12. package/languages/zh-TW.yml +146 -0
  13. package/layout/_alternate/atom.ejs +30 -0
  14. package/layout/_alternate/json.ejs +16 -0
  15. package/layout/_alternate/rss.ejs +34 -0
  16. package/layout/_mixin/breadcrumb.pug +33 -0
  17. package/layout/_mixin/card.pug +37 -0
  18. package/layout/_mixin/comment.pug +10 -0
  19. package/layout/_mixin/postmeta.pug +30 -0
  20. package/layout/_mixin/segment.pug +32 -0
  21. package/layout/_mixin/sidebar.pug +36 -0
  22. package/layout/_mixin/widgets.pug +29 -0
  23. package/layout/_partials/footer.pug +61 -0
  24. package/layout/_partials/head/head.pug +54 -0
  25. package/layout/_partials/head/head_com.pug +17 -0
  26. package/layout/_partials/head/pwa.pug +17 -0
  27. package/layout/_partials/header.pug +19 -0
  28. package/layout/_partials/layout.pug +143 -0
  29. package/layout/_partials/loading.pug +13 -0
  30. package/layout/_partials/pagination.pug +4 -0
  31. package/layout/_partials/post/copyright.pug +20 -0
  32. package/layout/_partials/post/footer.pug +13 -0
  33. package/layout/_partials/post/nav.pug +13 -0
  34. package/layout/_partials/post/post.pug +26 -0
  35. package/layout/_partials/post/reward.pug +18 -0
  36. package/layout/_partials/sidebar/menu.pug +37 -0
  37. package/layout/_partials/sidebar/overview.pug +40 -0
  38. package/layout/_partials/third-party/baidu-analytics.pug +11 -0
  39. package/layout/_partials/third-party/clarity.pug +8 -0
  40. package/layout/_partials/third-party/qweather.pug +35 -0
  41. package/layout/archive.pug +31 -0
  42. package/layout/category.pug +66 -0
  43. package/layout/index.pug +33 -0
  44. package/layout/page.pug +56 -0
  45. package/layout/post.pug +35 -0
  46. package/layout/tag.pug +43 -0
  47. package/package.json +35 -0
  48. package/scripts/filters/locals.js +57 -0
  49. package/scripts/filters/post.js +23 -0
  50. package/scripts/generaters/archive.js +141 -0
  51. package/scripts/generaters/config.js +43 -0
  52. package/scripts/generaters/images.js +26 -0
  53. package/scripts/generaters/index.js +110 -0
  54. package/scripts/generaters/pages.js +19 -0
  55. package/scripts/generaters/script.js +81 -0
  56. package/scripts/helpers/asset.js +237 -0
  57. package/scripts/helpers/engine.js +183 -0
  58. package/scripts/helpers/list_categories.js +140 -0
  59. package/scripts/helpers/symbols_count_time.js +76 -0
  60. package/scripts/tags/links.js +86 -0
  61. package/scripts/tags/media.js +19 -0
  62. package/source/assets/404.png +0 -0
  63. package/source/assets/algolia_logo.svg +9 -0
  64. package/source/assets/apple-touch-icon.png +0 -0
  65. package/source/assets/beian.webp +0 -0
  66. package/source/assets/failure.ico +0 -0
  67. package/source/assets/favicon.ico +0 -0
  68. package/source/assets/logo.svg +16 -0
  69. package/source/assets/play_disc.png +0 -0
  70. package/source/assets/play_needle.png +0 -0
  71. package/source/assets/search.png +0 -0
  72. package/source/css/_colors.styl +207 -0
  73. package/source/css/_common/components/components.styl +6 -0
  74. package/source/css/_common/components/highlight/highlight.styl +353 -0
  75. package/source/css/_common/components/highlight/operation.styl +21 -0
  76. package/source/css/_common/components/pages/collapse.styl +119 -0
  77. package/source/css/_common/components/pages/home.styl +385 -0
  78. package/source/css/_common/components/pages/pages.styl +56 -0
  79. package/source/css/_common/components/pages/tag-cloud.styl +12 -0
  80. package/source/css/_common/components/post/breadcrumb.styl +39 -0
  81. package/source/css/_common/components/post/copyright.styl +41 -0
  82. package/source/css/_common/components/post/expand.styl +264 -0
  83. package/source/css/_common/components/post/footer.styl +11 -0
  84. package/source/css/_common/components/post/header.styl +79 -0
  85. package/source/css/_common/components/post/nav.styl +63 -0
  86. package/source/css/_common/components/post/post.styl +29 -0
  87. package/source/css/_common/components/post/reward.styl +50 -0
  88. package/source/css/_common/components/post/rtl.styl +12 -0
  89. package/source/css/_common/components/post/tags.styl +39 -0
  90. package/source/css/_common/components/tags/collapse.styl +72 -0
  91. package/source/css/_common/components/tags/container.styl +49 -0
  92. package/source/css/_common/components/tags/label.styl +12 -0
  93. package/source/css/_common/components/tags/links.styl +77 -0
  94. package/source/css/_common/components/tags/list.styl +131 -0
  95. package/source/css/_common/components/tags/note.styl +70 -0
  96. package/source/css/_common/components/tags/player.styl +361 -0
  97. package/source/css/_common/components/tags/quiz.styl +200 -0
  98. package/source/css/_common/components/tags/tabs.styl +83 -0
  99. package/source/css/_common/components/tags/tags.styl +9 -0
  100. package/source/css/_common/components/third-party/loading.styl +222 -0
  101. package/source/css/_common/components/third-party/mermaid/class.styl +90 -0
  102. package/source/css/_common/components/third-party/mermaid/flowchart.styl +72 -0
  103. package/source/css/_common/components/third-party/mermaid/gantt.styl +251 -0
  104. package/source/css/_common/components/third-party/mermaid/git.styl +7 -0
  105. package/source/css/_common/components/third-party/mermaid/mermaid.styl +37 -0
  106. package/source/css/_common/components/third-party/mermaid/pie.styl +9 -0
  107. package/source/css/_common/components/third-party/mermaid/sequence.styl +95 -0
  108. package/source/css/_common/components/third-party/mermaid/state.styl +130 -0
  109. package/source/css/_common/components/third-party/pace.styl +18 -0
  110. package/source/css/_common/components/third-party/search.styl +167 -0
  111. package/source/css/_common/components/third-party/theme.styl +151 -0
  112. package/source/css/_common/components/third-party/third-party.styl +22 -0
  113. package/source/css/_common/components/third-party/valine.styl +548 -0
  114. package/source/css/_common/components/third-party/widgets.styl +57 -0
  115. package/source/css/_common/outline/footer/footer.styl +69 -0
  116. package/source/css/_common/outline/header/brand.styl +77 -0
  117. package/source/css/_common/outline/header/header.styl +20 -0
  118. package/source/css/_common/outline/header/image.styl +79 -0
  119. package/source/css/_common/outline/header/menu.styl +117 -0
  120. package/source/css/_common/outline/header/nav.styl +81 -0
  121. package/source/css/_common/outline/header/right.styl +15 -0
  122. package/source/css/_common/outline/header/tool.styl +207 -0
  123. package/source/css/_common/outline/header/waves.styl +50 -0
  124. package/source/css/_common/outline/mobile.styl +46 -0
  125. package/source/css/_common/outline/outline.styl +78 -0
  126. package/source/css/_common/outline/sidebar/author.styl +59 -0
  127. package/source/css/_common/outline/sidebar/dimmer.styl +23 -0
  128. package/source/css/_common/outline/sidebar/menu.styl +63 -0
  129. package/source/css/_common/outline/sidebar/quick.styl +43 -0
  130. package/source/css/_common/outline/sidebar/related.styl +56 -0
  131. package/source/css/_common/outline/sidebar/sidebar.styl +75 -0
  132. package/source/css/_common/outline/sidebar/social.styl +69 -0
  133. package/source/css/_common/outline/sidebar/state.styl +37 -0
  134. package/source/css/_common/outline/sidebar/tab.styl +71 -0
  135. package/source/css/_common/outline/sidebar/toc.styl +47 -0
  136. package/source/css/_common/scaffolding/animate.styl +318 -0
  137. package/source/css/_common/scaffolding/base.styl +172 -0
  138. package/source/css/_common/scaffolding/buttons.styl +48 -0
  139. package/source/css/_common/scaffolding/divider.styl +36 -0
  140. package/source/css/_common/scaffolding/iconfont.styl +443 -0
  141. package/source/css/_common/scaffolding/normalize.styl +289 -0
  142. package/source/css/_common/scaffolding/pagination.styl +81 -0
  143. package/source/css/_common/scaffolding/ribbon.styl +38 -0
  144. package/source/css/_common/scaffolding/scaffolding.styl +14 -0
  145. package/source/css/_common/scaffolding/scrollbar.styl +37 -0
  146. package/source/css/_common/scaffolding/tables.styl +50 -0
  147. package/source/css/_common/scaffolding/tip.styl +19 -0
  148. package/source/css/_common/scaffolding/toggles.styl +59 -0
  149. package/source/css/_iconfont.styl +451 -0
  150. package/source/css/_mixins.styl +146 -0
  151. package/source/css/_variables.styl +89 -0
  152. package/source/css/app.styl +27 -0
  153. package/source/css/comment.styl +5 -0
  154. package/source/css/mermaid.styl +5 -0
  155. package/source/css/plugin.styl +174 -0
  156. package/source/css/twikoo.css +2002 -0
  157. package/source/js/_app/components.js +330 -0
  158. package/source/js/_app/global.js +317 -0
  159. package/source/js/_app/library.js +302 -0
  160. package/source/js/_app/page.js +623 -0
  161. package/source/js/_app/player.js +748 -0
  162. package/source/js/_app/vue.js +43 -0
@@ -0,0 +1,451 @@
1
+ .i-cloud:before {
2
+ content: "\e659";
3
+ }
4
+
5
+ .i-bilibili:before {
6
+ content: "\e652";
7
+ }
8
+
9
+ .i-volume-off:before {
10
+ content: "\e61e";
11
+ }
12
+
13
+ .i-volume-on:before {
14
+ content: "\e62c";
15
+ }
16
+
17
+ .i-circle-play:before {
18
+ content: "\e647";
19
+ }
20
+
21
+ .i-forward:before {
22
+ content: "\e648";
23
+ }
24
+
25
+ .i-backward:before {
26
+ content: "\e649";
27
+ }
28
+
29
+ .i-circle-pause:before {
30
+ content: "\e64a";
31
+ }
32
+
33
+ .i-loop:before {
34
+ content: "\e64b";
35
+ }
36
+
37
+ .i-order:before {
38
+ content: "\e64c";
39
+ }
40
+
41
+ .i-random:before {
42
+ content: "\e64d";
43
+ }
44
+
45
+ .i-douban:before {
46
+ content: "\e75f";
47
+ }
48
+
49
+ .i-linux:before {
50
+ content: "\f1e8";
51
+ }
52
+
53
+ .i-opera:before {
54
+ content: "\f205";
55
+ }
56
+
57
+ .i-qq:before {
58
+ content: "\f216";
59
+ }
60
+
61
+ .i-safari:before {
62
+ content: "\f229";
63
+ }
64
+
65
+ .i-snapchat-ghost:before {
66
+ content: "\f234";
67
+ }
68
+
69
+ .i-weixin:before {
70
+ content: "\f262";
71
+ }
72
+
73
+ .i-windows:before {
74
+ content: "\f266";
75
+ }
76
+
77
+ .i-stars:before {
78
+ content: "\e8c4";
79
+ }
80
+
81
+ .i-apple:before {
82
+ content: "\e600";
83
+ }
84
+
85
+ .i-blackberry:before {
86
+ content: "\e601";
87
+ }
88
+
89
+ .i-centos:before {
90
+ content: "\e602";
91
+ }
92
+
93
+ .i-fedora:before {
94
+ content: "\e603";
95
+ }
96
+
97
+ .i-redhat:before {
98
+ content: "\e604";
99
+ }
100
+
101
+ .i-ubuntu:before {
102
+ content: "\e605";
103
+ }
104
+
105
+ .i-suse:before {
106
+ content: "\e606";
107
+ }
108
+
109
+ .i-mobile-alt:before {
110
+ content: "\f052";
111
+ }
112
+
113
+ .i-paw:before {
114
+ content: "\f06b";
115
+ }
116
+
117
+ .i-android:before {
118
+ content: "\f161";
119
+ }
120
+
121
+ .i-chrome:before {
122
+ content: "\f178";
123
+ }
124
+
125
+ .i-edge:before {
126
+ content: "\f195";
127
+ }
128
+
129
+ .i-firefox:before {
130
+ content: "\f1a1";
131
+ }
132
+
133
+ .i-internet-explorer:before {
134
+ content: "\f1d4";
135
+ }
136
+
137
+ .i-markdown:before {
138
+ content: "\f1eb";
139
+ }
140
+
141
+ .i-smile:before {
142
+ content: "\f2a5";
143
+ }
144
+
145
+ .i-preview:before {
146
+ content: "\e901";
147
+ }
148
+
149
+ .i-share:before {
150
+ content: "\e61b";
151
+ }
152
+
153
+ .i-link-circle:before {
154
+ content: "\e67b";
155
+ }
156
+
157
+ .i-person:before {
158
+ content: "\e69d";
159
+ }
160
+
161
+ .i-sun:before {
162
+ content: "\e6d1";
163
+ }
164
+
165
+ .i-moon:before {
166
+ content: "\e71e";
167
+ }
168
+
169
+ .i-compress:before {
170
+ content: "\ef82";
171
+ }
172
+
173
+ .i-expand:before {
174
+ content: "\efb4";
175
+ }
176
+
177
+ .i-align-justify:before {
178
+ content: "\ef13";
179
+ }
180
+
181
+ .i-align-left:before {
182
+ content: "\ef14";
183
+ }
184
+
185
+ .i-eye:before {
186
+ content: "\efb8";
187
+ }
188
+
189
+ .i-pen:before {
190
+ content: "\f071";
191
+ }
192
+
193
+ .i-clock:before {
194
+ content: "\ef75";
195
+ }
196
+
197
+ .i-flag:before {
198
+ content: "\e680";
199
+ }
200
+
201
+ .i-at:before {
202
+ content: "\e619";
203
+ }
204
+
205
+ .i-file:before {
206
+ content: "\e68d";
207
+ }
208
+
209
+ .i-clipboard:before {
210
+ content: "\e651";
211
+ }
212
+
213
+ .i-feather:before {
214
+ content: "\efbd";
215
+ }
216
+
217
+ .i-music:before {
218
+ content: "\f059";
219
+ }
220
+
221
+ .i-pause:before {
222
+ content: "\f06a";
223
+ }
224
+
225
+ .i-comments:before {
226
+ content: "\ef7f";
227
+ }
228
+
229
+ .i-play:before {
230
+ content: "\f07f";
231
+ }
232
+
233
+ .i-calendar-check:before {
234
+ content: "\ef5b";
235
+ }
236
+
237
+ .i-angle-up:before {
238
+ content: "\ef1b";
239
+ }
240
+
241
+ .i-facebook:before {
242
+ content: "\f19d";
243
+ }
244
+
245
+ .i-instagram:before {
246
+ content: "\f1d3";
247
+ }
248
+
249
+ .i-skype:before {
250
+ content: "\f231";
251
+ }
252
+
253
+ .i-stack-overflow:before {
254
+ content: "\f239";
255
+ }
256
+
257
+ .i-youtube:before {
258
+ content: "\f274";
259
+ }
260
+
261
+ .i-list-alt:before {
262
+ content: "\e6c1";
263
+ }
264
+
265
+ .i-star:before {
266
+ content: "\f0d4";
267
+ }
268
+
269
+ .i-link-alt:before {
270
+ content: "\f037";
271
+ }
272
+
273
+ .i-paper-plane:before {
274
+ content: "\f063";
275
+ }
276
+
277
+ .i-user:before {
278
+ content: "\f2dd";
279
+ }
280
+
281
+ .i-link:before {
282
+ content: "\e8fc";
283
+ }
284
+
285
+ .i-angle-down:before {
286
+ content: "\ef1a";
287
+ }
288
+
289
+ .i-calendar:before {
290
+ content: "\e812";
291
+ }
292
+
293
+ .i-home:before {
294
+ content: "\e8ed";
295
+ }
296
+
297
+ .i-magic:before {
298
+ content: "\f03e";
299
+ }
300
+
301
+ .i-sakura:before {
302
+ content: "\e695";
303
+ }
304
+
305
+ .i-tag:before {
306
+ content: "\e759";
307
+ }
308
+
309
+ .i-angle-left:before {
310
+ content: "\ef19";
311
+ }
312
+
313
+ .i-arrow-circle-right:before {
314
+ content: "\ef23";
315
+ }
316
+
317
+ .i-check-circle:before {
318
+ content: "\ef66";
319
+ }
320
+
321
+ .i-exclamation-circle:before {
322
+ content: "\efb5";
323
+ }
324
+
325
+ .i-info-circle:before {
326
+ content: "\f02b";
327
+ }
328
+
329
+ .i-minus-circle:before {
330
+ content: "\f050";
331
+ }
332
+
333
+ .i-plus-circle:before {
334
+ content: "\f082";
335
+ }
336
+
337
+ .i-file-word:before {
338
+ content: "\f299";
339
+ }
340
+
341
+ .i-check:before {
342
+ content: "\ef65";
343
+ }
344
+
345
+ .i-times:before {
346
+ content: "\f109";
347
+ }
348
+
349
+ .i-list-ol:before {
350
+ content: "\f039";
351
+ }
352
+
353
+ .i-archive:before {
354
+ content: "\ef1c";
355
+ }
356
+
357
+ .i-angle-right:before {
358
+ content: "\ef1f";
359
+ }
360
+
361
+ .i-arrow-down:before {
362
+ content: "\ef25";
363
+ }
364
+
365
+ .i-arrow-up:before {
366
+ content: "\ef2a";
367
+ }
368
+
369
+ .i-chart-area:before {
370
+ content: "\ef64";
371
+ }
372
+
373
+ .i-chevron-left:before {
374
+ content: "\ef6e";
375
+ }
376
+
377
+ .i-chevron-right:before {
378
+ content: "\ef6f";
379
+ }
380
+
381
+ .i-coffee:before {
382
+ content: "\ef7a";
383
+ }
384
+
385
+ .i-envelope:before {
386
+ content: "\efae";
387
+ }
388
+
389
+ .i-external-link-alt:before {
390
+ content: "\efb6";
391
+ }
392
+
393
+ .i-heart:before {
394
+ content: "\f013";
395
+ }
396
+
397
+ .i-heartbeat:before {
398
+ content: "\f017";
399
+ }
400
+
401
+ .i-search:before {
402
+ content: "\f0a8";
403
+ }
404
+
405
+ .i-sitemap:before {
406
+ content: "\f0bd";
407
+ }
408
+
409
+ .i-tags:before {
410
+ content: "\f0f3";
411
+ }
412
+
413
+ .i-th:before {
414
+ content: "\f0fc";
415
+ }
416
+
417
+ .i-thumbtack:before {
418
+ content: "\f107";
419
+ }
420
+
421
+ .i-times-circle:before {
422
+ content: "\f10a";
423
+ }
424
+
425
+ .i-creative-commons:before {
426
+ content: "\f17e";
427
+ }
428
+
429
+ .i-github:before {
430
+ content: "\f1b4";
431
+ }
432
+
433
+ .i-twitter:before {
434
+ content: "\f24d";
435
+ }
436
+
437
+ .i-weibo:before {
438
+ content: "\f261";
439
+ }
440
+
441
+ .i-address-card:before {
442
+ content: "\f278";
443
+ }
444
+
445
+ .i-zhihu:before {
446
+ content: "\e765";
447
+ }
448
+
449
+ .i-cloud-music:before {
450
+ content: "\e76a";
451
+ }
@@ -0,0 +1,146 @@
1
+ the-transition(duration = .2s, function = ease-in-out, delay = 0s, property = all) {
2
+ transition:property duration function delay;
3
+ }
4
+
5
+ mobile-smallest() {
6
+ @media (max-width: 413px) {
7
+ {block};
8
+ }
9
+ }
10
+
11
+ mobile-small() {
12
+ @media (max-width: 567px) {
13
+ {block};
14
+ }
15
+ }
16
+
17
+ mobile() {
18
+ @media (max-width: 820px) {
19
+ {block};
20
+ }
21
+ }
22
+
23
+ tablet-mobile() {
24
+ @media (max-width: 991px) {
25
+ {block};
26
+ }
27
+ }
28
+
29
+ tablet-desktop() {
30
+ @media (min-width: 820px) {
31
+ {block};
32
+ }
33
+ }
34
+
35
+ tablet() {
36
+ @media (min-width: 820px) and (max-width: 1043px) {
37
+ {block};
38
+ }
39
+ }
40
+
41
+ desktop() {
42
+ @media (min-width: 1044px) {
43
+ {block};
44
+ }
45
+ }
46
+
47
+ desktop-large() {
48
+ @media (min-width: 1200px) {
49
+ {block};
50
+ }
51
+ }
52
+
53
+ desktop-largest() {
54
+ @media (min-width: 1600px) {
55
+ {block};
56
+ }
57
+ }
58
+
59
+ random-color($min, $max) {
60
+ return floor(math(0, 'random') * ($max - $min + 1) + $min);
61
+ }
62
+
63
+ word-wrap() {
64
+ overflow-wrap: break-word;
65
+ word-wrap: break-word;
66
+ }
67
+
68
+ disable-user-select() {
69
+ -moz-user-select: none;
70
+ -ms-user-select: none;
71
+ -webkit-user-select: none;
72
+ user-select: none;
73
+ }
74
+
75
+ sidebar-inline-links-item() {
76
+ margin: .3125rem 0 0;
77
+
78
+ a {
79
+ box-sizing: border-box;
80
+ display: inline-block;
81
+ margin-bottom: 0;
82
+ margin-right: 0;
83
+ max-width: 13.5rem;
84
+ overflow: hidden;
85
+ padding: 0 .3125rem;
86
+ text-overflow: ellipsis;
87
+ white-space: nowrap;
88
+ }
89
+ }
90
+
91
+ the-flex(direction = column, justify = center, align = center) {
92
+ display: flex;
93
+ flex-direction: direction if direction == column;
94
+ justify-content: justify;
95
+ align-items: align;
96
+ }
97
+
98
+ font-family-icons() {
99
+ font-family: 'ic';
100
+ font-weight: normal;
101
+ }
102
+
103
+ shadow-box(border = true, radius = .5rem) {
104
+ border-radius: radius;
105
+ border: .0625rem solid var(--grey-2) if border == true;
106
+ box-shadow: 0 .625rem 1.875rem -.9375rem var(--box-bg-shadow);
107
+ }
108
+
109
+ li-nodot() {
110
+ width: auto;
111
+ height: auto;
112
+ background: none !important;
113
+ border: none !important;
114
+ position: relative;
115
+ top: 0 !important;
116
+ left: 0 !important;
117
+ }
118
+
119
+ $hover-underline {
120
+ &::before {
121
+ content: "";
122
+ position: absolute;
123
+ width: 0;
124
+ height: .1875rem;
125
+ bottom: 0;
126
+ border-radius: .125rem;
127
+ left: 50%;
128
+ transform: translateX(-50%);
129
+ background-color: currentColor;
130
+ }
131
+ }
132
+
133
+ $color-btn {
134
+ color: var(--grey-0);
135
+ background-image: linear-gradient(to right,var(--color-pink) 0,var(--color-orange) 100%);
136
+ box-shadow: 0 0 .75rem var(--color-pink-a3);
137
+ }
138
+
139
+ $fix-fullscreen {
140
+ position: fixed;
141
+ left: 0;
142
+ right: 0;
143
+ top: 0;
144
+ bottom: 0;
145
+ z-index: $zindex-5;
146
+ }
@@ -0,0 +1,89 @@
1
+ // 变量区
2
+
3
+ get_font_family(config) {
4
+ $custom-family = hexo-config('font.' + config + '.family');
5
+ return $custom-family is a 'string' ? $custom-family : null;
6
+ }
7
+
8
+ // Font families.
9
+ $font-family-chinese = -apple-system, "PingFang SC", "Microsoft YaHei";
10
+
11
+ $font-family-base = $font-family-chinese, sans-serif;
12
+ $font-family-base = get_font_family('global'), $font-family-base if get_font_family('global');
13
+
14
+ $font-family-logo = $font-family-base;
15
+ $font-family-logo = get_font_family('logo'), $font-family-base if get_font_family('title');
16
+
17
+ $font-family-title = $font-family-base;
18
+ $font-family-title = get_font_family('title'), $font-family-base if get_font_family('title');
19
+
20
+ $font-family-headings = $font-family-base;
21
+ $font-family-headings = get_font_family('headings'), $font-family-title if get_font_family('headings');
22
+ $font-family-headings = get_font_family('global'), $font-family-headings if get_font_family('global');
23
+ $font-family-title = get_font_family('title'), get_font_family('headings'), $font-family-base if get_font_family('headings');
24
+ $font-family-title = get_font_family('global'), $font-family-title if get_font_family('global');
25
+
26
+ $font-family-posts = $font-family-base;
27
+ $font-family-posts = get_font_family('posts'), $font-family-base if get_font_family('posts');
28
+
29
+ $font-family-monospace = consolas, Menlo, $font-family-chinese;
30
+ $font-family-monospace = get_font_family('codes'), consolas, Menlo, $font-family-chinese if get_font_family('codes');
31
+
32
+ $iconfont = hexo-config('iconfont');
33
+
34
+ // Font size
35
+ $font-size-base = (hexo-config('font.enable') and hexo-config('font.global.size') is a 'unit') ? unit(hexo-config('font.global.size'), em) : 1em;
36
+ $font-size-smallest = .75em;
37
+ $font-size-smaller = .8125em;
38
+ $font-size-small = .875em;
39
+ $font-size-medium = 1em;
40
+ $font-size-large = 1.125em;
41
+ $font-size-larger = 1.25em;
42
+ $font-size-largest = 1.5em;
43
+
44
+
45
+ // Headings font size
46
+ $font-size-headings-step = .125em;
47
+ $font-size-headings-base = (hexo-config('font.enable') and hexo-config('font.headings.size') is a 'unit') ? unit(hexo-config('font.headings.size'), em) : 1.625em;
48
+
49
+
50
+ // Global line height
51
+ $line-height-base = 2;
52
+ $line-height-code-block = 1.6; // Can't be less than 1.3;
53
+
54
+
55
+ // Z-index master list
56
+ // --------------------------------------------------
57
+ $zindex-0 = -1;
58
+ $zindex-1 = 1;
59
+ $zindex-2 = 9;
60
+ $zindex-3 = 99;
61
+ $zindex-4 = 999;
62
+ $zindex-5 = 9999;
63
+
64
+
65
+ // Pagination
66
+ // --------------------------------------------------
67
+
68
+
69
+ // Layout sizes
70
+ // --------------------------------------------------
71
+ $sidebar-width = 15;
72
+ $sidebar-desktop = unit($sidebar-width, 'rem');
73
+ $content-offset = .75rem;
74
+ $content-wrap = 'calc(100% - %s)' % unit($sidebar-width + $content-offset, 'rem');
75
+
76
+ $content-desktop-padding = 1.25rem;
77
+ $content-tablet-padding = .625rem;
78
+ $content-mobile-padding = .5rem;
79
+
80
+ $content-desktop = 'calc(100% - %s)' % unit($content-desktop-padding / 2, 'rem');
81
+ $content-desktop-large = 72.5rem;
82
+ $content-desktop-largest = 73%;
83
+
84
+
85
+
86
+ // Site Meta
87
+ $font-size-title = (hexo-config('font.enable') and hexo-config('font.title.size') is a 'unit') ? unit(hexo-config('font.title.size'), em) : 2em;
88
+ $font-size-subtitle = $font-size-small;
89
+ $font-size-logo = (hexo-config('font.enable') and hexo-config('font.logo.size') is a 'unit') ? unit(hexo-config('font.logo.size'), em) : 3.5em;
@@ -0,0 +1,27 @@
1
+ @import "_variables";
2
+
3
+ @import "_mixins";
4
+
5
+ if $colors = hexo-config('style.colors')
6
+ @import $colors;
7
+ else
8
+ @import "_colors";
9
+
10
+ if $_iconfont = hexo-config('style.iconfont')
11
+ @import $_iconfont;
12
+ else
13
+ @import "_iconfont";
14
+
15
+ // Scaffolding
16
+ @import "_common/scaffolding";
17
+
18
+ // Layout
19
+ @import "_common/outline";
20
+
21
+ // Components
22
+ @import "_common/components";
23
+
24
+ if $custom = hexo-config('style.custom')
25
+ @import $custom;
26
+
27
+ @import "plugin.styl"
@@ -0,0 +1,5 @@
1
+ @import "_variables.styl";
2
+
3
+ @import "_mixins.styl";
4
+
5
+ @import "_common/components/third-party/valine";
@@ -0,0 +1,5 @@
1
+ @import "_variables.styl";
2
+
3
+ @import "_mixins.styl";
4
+
5
+ @import "_common/components/third-party/mermaid";