hexo-theme-shokax 0.3.13 → 0.3.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. package/CODE_OF_CONDUCT.md +128 -128
  2. package/CONTRIBUTING.md +58 -58
  3. package/LICENSE +660 -660
  4. package/LICENSE-shoka +21 -21
  5. package/README.md +99 -99
  6. package/README_en.MD +90 -90
  7. package/UsageRestrictions.md +25 -25
  8. package/_config.yml +370 -370
  9. package/_images.yml +9 -9
  10. package/languages/README.md +19 -19
  11. package/languages/default.yml +1 -1
  12. package/languages/en.yml +153 -153
  13. package/languages/ja.yml +153 -153
  14. package/languages/zh-CN.yml +153 -153
  15. package/languages/zh-HK.yml +153 -153
  16. package/languages/zh-TW.yml +153 -153
  17. package/layout/_alternate/atom.ejs +30 -30
  18. package/layout/_alternate/json.ejs +16 -16
  19. package/layout/_alternate/rss.ejs +34 -34
  20. package/layout/_mixin/breadcrumb.pug +33 -33
  21. package/layout/_mixin/card.pug +38 -38
  22. package/layout/_mixin/comment.pug +41 -41
  23. package/layout/_mixin/postmeta.pug +29 -29
  24. package/layout/_mixin/segment.pug +32 -32
  25. package/layout/_mixin/sidebar.pug +40 -40
  26. package/layout/_mixin/widgets.pug +33 -33
  27. package/layout/_partials/footer.pug +42 -42
  28. package/layout/_partials/head/head.pug +57 -57
  29. package/layout/_partials/head/head_com.pug +17 -17
  30. package/layout/_partials/head/pwa.pug +18 -18
  31. package/layout/_partials/header.pug +18 -18
  32. package/layout/_partials/layout.pug +139 -139
  33. package/layout/_partials/loading.pug +13 -13
  34. package/layout/_partials/pagination.pug +4 -4
  35. package/layout/_partials/post/copyright.pug +20 -20
  36. package/layout/_partials/post/footer.pug +25 -25
  37. package/layout/_partials/post/nav.pug +13 -13
  38. package/layout/_partials/post/post.pug +41 -41
  39. package/layout/_partials/post/reward.pug +18 -18
  40. package/layout/_partials/sidebar/menu.pug +37 -37
  41. package/layout/_partials/sidebar/overview.pug +42 -42
  42. package/layout/_partials/third-party/baidu-analytics.pug +11 -11
  43. package/layout/_partials/third-party/clarity.pug +8 -8
  44. package/layout/_partials/third-party/google-analytics.pug +9 -9
  45. package/layout/archive.pug +118 -118
  46. package/layout/category.pug +59 -59
  47. package/layout/index.pug +33 -33
  48. package/layout/page.pug +55 -55
  49. package/layout/post.pug +36 -36
  50. package/layout/tag.pug +43 -43
  51. package/package.json +47 -47
  52. package/scripts/helpers/asset.js +61 -61
  53. package/scripts/plugin/check.js +2 -2
  54. package/scripts/tags/links.js +4 -4
  55. package/source/assets/algolia_logo.svg +9 -9
  56. package/source/assets/logo.svg +16 -16
  57. package/source/css/_colors.styl +207 -207
  58. package/source/css/_common/components/components.styl +6 -6
  59. package/source/css/_common/components/highlight/highlight.styl +357 -357
  60. package/source/css/_common/components/highlight/operation.styl +21 -21
  61. package/source/css/_common/components/pages/collapse.styl +119 -119
  62. package/source/css/_common/components/pages/home.styl +391 -391
  63. package/source/css/_common/components/pages/pages.styl +56 -56
  64. package/source/css/_common/components/pages/tag-cloud.styl +12 -12
  65. package/source/css/_common/components/post/breadcrumb.styl +39 -39
  66. package/source/css/_common/components/post/copyright.styl +41 -41
  67. package/source/css/_common/components/post/expand.styl +263 -263
  68. package/source/css/_common/components/post/footer.styl +11 -11
  69. package/source/css/_common/components/post/header.styl +79 -79
  70. package/source/css/_common/components/post/nav.styl +63 -63
  71. package/source/css/_common/components/post/post.styl +29 -29
  72. package/source/css/_common/components/post/reward.styl +50 -50
  73. package/source/css/_common/components/post/rtl.styl +12 -12
  74. package/source/css/_common/components/post/tags.styl +39 -39
  75. package/source/css/_common/components/tags/collapse.styl +72 -72
  76. package/source/css/_common/components/tags/container.styl +49 -49
  77. package/source/css/_common/components/tags/label.styl +12 -12
  78. package/source/css/_common/components/tags/links.styl +77 -77
  79. package/source/css/_common/components/tags/list.styl +131 -131
  80. package/source/css/_common/components/tags/note.styl +70 -70
  81. package/source/css/_common/components/tags/player.styl +361 -361
  82. package/source/css/_common/components/tags/quiz.styl +200 -200
  83. package/source/css/_common/components/tags/tabs.styl +89 -89
  84. package/source/css/_common/components/tags/tags.styl +9 -9
  85. package/source/css/_common/components/third-party/loading.styl +222 -222
  86. package/source/css/_common/components/third-party/mermaid/class.styl +90 -90
  87. package/source/css/_common/components/third-party/mermaid/flowchart.styl +72 -72
  88. package/source/css/_common/components/third-party/mermaid/gantt.styl +251 -251
  89. package/source/css/_common/components/third-party/mermaid/git.styl +7 -7
  90. package/source/css/_common/components/third-party/mermaid/mermaid.styl +37 -37
  91. package/source/css/_common/components/third-party/mermaid/pie.styl +9 -9
  92. package/source/css/_common/components/third-party/mermaid/sequence.styl +95 -95
  93. package/source/css/_common/components/third-party/mermaid/state.styl +130 -130
  94. package/source/css/_common/components/third-party/pace.styl +18 -18
  95. package/source/css/_common/components/third-party/search.styl +167 -167
  96. package/source/css/_common/components/third-party/theme.styl +151 -151
  97. package/source/css/_common/components/third-party/third-party.styl +22 -22
  98. package/source/css/_common/components/third-party/widgets.styl +57 -57
  99. package/source/css/_common/outline/footer/footer.styl +69 -69
  100. package/source/css/_common/outline/header/brand.styl +77 -77
  101. package/source/css/_common/outline/header/header.styl +20 -20
  102. package/source/css/_common/outline/header/image.styl +85 -85
  103. package/source/css/_common/outline/header/menu.styl +117 -117
  104. package/source/css/_common/outline/header/nav.styl +81 -81
  105. package/source/css/_common/outline/header/right.styl +15 -15
  106. package/source/css/_common/outline/header/tool.styl +207 -207
  107. package/source/css/_common/outline/header/waves.styl +57 -57
  108. package/source/css/_common/outline/mobile.styl +46 -46
  109. package/source/css/_common/outline/outline.styl +78 -78
  110. package/source/css/_common/outline/sidebar/author.styl +59 -59
  111. package/source/css/_common/outline/sidebar/dimmer.styl +23 -23
  112. package/source/css/_common/outline/sidebar/menu.styl +63 -63
  113. package/source/css/_common/outline/sidebar/quick.styl +43 -43
  114. package/source/css/_common/outline/sidebar/related.styl +56 -56
  115. package/source/css/_common/outline/sidebar/sidebar.styl +75 -75
  116. package/source/css/_common/outline/sidebar/social.styl +69 -69
  117. package/source/css/_common/outline/sidebar/state.styl +37 -37
  118. package/source/css/_common/outline/sidebar/tab.styl +71 -71
  119. package/source/css/_common/outline/sidebar/toc.styl +47 -47
  120. package/source/css/_common/scaffolding/animate.styl +322 -322
  121. package/source/css/_common/scaffolding/base.styl +190 -190
  122. package/source/css/_common/scaffolding/buttons.styl +48 -48
  123. package/source/css/_common/scaffolding/divider.styl +36 -36
  124. package/source/css/_common/scaffolding/iconfont.styl +443 -443
  125. package/source/css/_common/scaffolding/normalize.styl +273 -273
  126. package/source/css/_common/scaffolding/pagination.styl +81 -81
  127. package/source/css/_common/scaffolding/ribbon.styl +38 -38
  128. package/source/css/_common/scaffolding/scaffolding.styl +14 -14
  129. package/source/css/_common/scaffolding/scrollbar.styl +37 -37
  130. package/source/css/_common/scaffolding/tables.styl +50 -50
  131. package/source/css/_common/scaffolding/tip.styl +19 -19
  132. package/source/css/_common/scaffolding/toggles.styl +59 -59
  133. package/source/css/_iconfont.styl +455 -455
  134. package/source/css/_mixins.styl +148 -148
  135. package/source/css/_variables.styl +89 -89
  136. package/source/css/app.styl +41 -41
  137. package/source/css/comment.styl +3 -3
  138. package/source/css/mermaid.styl +5 -5
  139. package/source/css/optimize.styl +5 -5
  140. package/source/js/_app/pjax/refresh.js +1 -1
@@ -1,263 +1,263 @@
1
-
2
- @keyframes rainbow {
3
- to {
4
- background-position: -2000vw;
5
- }
6
- }
7
-
8
- .md {
9
- p,
10
- table,
11
- pre,
12
- blockquote,
13
- img,
14
- .tabs,
15
- .links {
16
- &:last-child {
17
- margin-bottom: 0;
18
- }
19
- }
20
-
21
- ul, dd, ol {
22
- ul, ol {
23
- margin-top: 0;
24
- }
25
- }
26
-
27
- a {
28
- color: var(--primary-color); //原始链接颜色
29
-
30
- &:hover {
31
- color: var(--color-blue); //鼠标经过颜色
32
- }
33
- }
34
-
35
- for headline in (1 .. 6) {
36
- h{headline} {
37
- font-size: $font-size-headings-base - $font-size-headings-step * headline;
38
- }
39
- }
40
-
41
- h1,
42
- h2,
43
- h3,
44
- h4,
45
- h5,
46
- h6 {
47
- position: relative;
48
- padding-top: .625rem;
49
-
50
- &:hover .anchor {
51
- &::before, &::after {
52
- color: var(--primary-color);
53
- }
54
- }
55
- }
56
-
57
- h1::after {
58
- content: "";
59
- display: block;
60
- box-sizing: unset;
61
- width: 100%;
62
- height: .0625rem;
63
- background: var(--grey-3);
64
- padding-right: 1.25rem;
65
- margin-left: -1.25rem;
66
- margin-top: .3125rem;
67
- }
68
-
69
- .anchor {
70
- border-bottom-style: none;
71
- color: var(--grey-4);
72
- float: right;
73
- margin-left: .625rem;
74
-
75
- &:hover {
76
- color: inherit;
77
- }
78
- }
79
-
80
- .anchor::before,
81
- .anchor::after {
82
- color: var(--grey-4);
83
- position: absolute;
84
- font-weight: normal;
85
- the-transition(, ease-out);
86
- }
87
-
88
- .active .anchor::before,
89
- .active .anchor::after {
90
- color: var(--primary-color);
91
- }
92
-
93
- p {
94
- margin: 0 0 .8rem;
95
- }
96
-
97
- blockquote {
98
- font-size: 90%;
99
- background-color: var(--grey-2);
100
- margin: 1.25rem 0;
101
- border-radius: .1875rem;
102
-
103
- ul {
104
- margin: .625rem 0 !important;
105
- }
106
-
107
- ul > li::before {
108
- width: .375rem !important;
109
- height: .375rem !important;
110
- top: .6875rem !important;
111
- }
112
-
113
- p, ol, ul {
114
- &:last-child {
115
- margin-bottom: 0!important;
116
- }
117
- }
118
- }
119
-
120
- >blockquote {
121
- border-left-color: var(--primary-color);
122
- }
123
-
124
- iframe {
125
- margin-bottom: 1.25rem;
126
- }
127
-
128
- .image-info {
129
- display: block;
130
- text-align: center;
131
- font-size: $font-size-smaller;
132
- color: var(--grey-4);
133
- }
134
-
135
- .video-container {
136
- height: 0;
137
- margin-bottom: 1.25rem;
138
- overflow: hidden;
139
- padding-top: 75%;
140
- position: relative;
141
- width: 100%;
142
-
143
- iframe,
144
- object,
145
- embed {
146
- height: 100%;
147
- left: 0;
148
- margin: 0;
149
- position: absolute;
150
- top: 0;
151
- width: 100%;
152
- }
153
- }
154
-
155
- .kbd, kbd {
156
- background-color: var(--grey-1);
157
- background-image: linear-gradient(var(--grey-2), var(--grey-0), var(--grey-2));
158
- border: .0625rem solid var(--grey-4);
159
- border-radius: .2rem;
160
- box-shadow: .1rem .1rem .2rem var(--grey-9-a1);
161
- font-family: inherit;
162
- padding: .1rem .3rem;
163
- white-space: nowrap;
164
- }
165
-
166
- mark {
167
- background-color: #dbfdad;
168
- }
169
-
170
- ins {
171
- --line-color: var(--note-hover, var(--primary-color));
172
- text-decoration: none;
173
- border-bottom: .125rem solid var(--line-color);
174
-
175
- &.wavy {
176
- text-decoration-style: wavy;
177
- text-decoration-line: underline;
178
- text-decoration-color: var(--line-color);
179
- border-bottom: none;
180
- }
181
-
182
- &.dot {
183
- border-bottom: .2rem dotted var(--line-color);
184
- }
185
- }
186
-
187
- s {
188
- color: var(--grey-5);
189
- text-decoration-color: var(--note-hover, var(--grey-5));
190
- }
191
-
192
- ruby {
193
- padding: 0 .3125rem;
194
- }
195
-
196
- .katex-display {
197
- overflow-x: scroll;
198
- overflow-y: hidden;
199
- }
200
-
201
- .spoiler:not(.bulr) {
202
- background-color: var(--text-color);
203
- color: var(--text-color);
204
- text-shadow: none;
205
- transition: color .3s;
206
- padding:0 .1875rem;
207
-
208
- &:hover {
209
- color: #FFF;
210
- }
211
- }
212
-
213
- .bulr {
214
- text-shadow: rgba(0, 0, 0, .7) 0rem 0rem .625rem;
215
- color: transparent;
216
- }
217
-
218
- .rainbow {
219
- background-image: linear-gradient( to left, orangered, orange, gold, lightgreen, cyan, dodgerblue, mediumpurple, hotpink, orangered);
220
- background-size: 110vw;
221
- background-clip: text;
222
- color: transparent;
223
- animation: rainbow 60s linear infinite;
224
- }
225
- }
226
-
227
-
228
- .article .md {
229
-
230
- .anchor::before,
231
- .anchor::after {
232
- content: "H";
233
- font-family: $font-family-posts;
234
- left: -1.875rem;
235
- top: 1rem;
236
- width: 1.25rem;
237
- height: 1.5625rem;
238
- text-align: right;
239
- visibility: visible;
240
- font-size: 80%;
241
-
242
- +mobile-small() {
243
- left: -.625rem;
244
- }
245
- }
246
-
247
- .anchor::after {
248
- font-size: 50%;
249
- left: -1.375rem;
250
- line-height: 3;
251
-
252
- +mobile-small() {
253
- left: -.1875rem;
254
- }
255
- }
256
-
257
- for headline in (1 .. 6) {
258
- h{headline} .anchor::after {
259
- content: \"headline\";
260
- }
261
- }
262
- }
263
-
1
+
2
+ @keyframes rainbow {
3
+ to {
4
+ background-position: -2000vw;
5
+ }
6
+ }
7
+
8
+ .md {
9
+ p,
10
+ table,
11
+ pre,
12
+ blockquote,
13
+ img,
14
+ .tabs,
15
+ .links {
16
+ &:last-child {
17
+ margin-bottom: 0;
18
+ }
19
+ }
20
+
21
+ ul, dd, ol {
22
+ ul, ol {
23
+ margin-top: 0;
24
+ }
25
+ }
26
+
27
+ a {
28
+ color: var(--primary-color); //原始链接颜色
29
+
30
+ &:hover {
31
+ color: var(--color-blue); //鼠标经过颜色
32
+ }
33
+ }
34
+
35
+ for headline in (1 .. 6) {
36
+ h{headline} {
37
+ font-size: $font-size-headings-base - $font-size-headings-step * headline;
38
+ }
39
+ }
40
+
41
+ h1,
42
+ h2,
43
+ h3,
44
+ h4,
45
+ h5,
46
+ h6 {
47
+ position: relative;
48
+ padding-top: .625rem;
49
+
50
+ &:hover .anchor {
51
+ &::before, &::after {
52
+ color: var(--primary-color);
53
+ }
54
+ }
55
+ }
56
+
57
+ h1::after {
58
+ content: "";
59
+ display: block;
60
+ box-sizing: unset;
61
+ width: 100%;
62
+ height: .0625rem;
63
+ background: var(--grey-3);
64
+ padding-right: 1.25rem;
65
+ margin-left: -1.25rem;
66
+ margin-top: .3125rem;
67
+ }
68
+
69
+ .anchor {
70
+ border-bottom-style: none;
71
+ color: var(--grey-4);
72
+ float: right;
73
+ margin-left: .625rem;
74
+
75
+ &:hover {
76
+ color: inherit;
77
+ }
78
+ }
79
+
80
+ .anchor::before,
81
+ .anchor::after {
82
+ color: var(--grey-4);
83
+ position: absolute;
84
+ font-weight: normal;
85
+ the-transition(, ease-out);
86
+ }
87
+
88
+ .active .anchor::before,
89
+ .active .anchor::after {
90
+ color: var(--primary-color);
91
+ }
92
+
93
+ p {
94
+ margin: 0 0 .8rem;
95
+ }
96
+
97
+ blockquote {
98
+ font-size: 90%;
99
+ background-color: var(--grey-2);
100
+ margin: 1.25rem 0;
101
+ border-radius: .1875rem;
102
+
103
+ ul {
104
+ margin: .625rem 0 !important;
105
+ }
106
+
107
+ ul > li::before {
108
+ width: .375rem !important;
109
+ height: .375rem !important;
110
+ top: .6875rem !important;
111
+ }
112
+
113
+ p, ol, ul {
114
+ &:last-child {
115
+ margin-bottom: 0!important;
116
+ }
117
+ }
118
+ }
119
+
120
+ >blockquote {
121
+ border-left-color: var(--primary-color);
122
+ }
123
+
124
+ iframe {
125
+ margin-bottom: 1.25rem;
126
+ }
127
+
128
+ .image-info {
129
+ display: block;
130
+ text-align: center;
131
+ font-size: $font-size-smaller;
132
+ color: var(--grey-4);
133
+ }
134
+
135
+ .video-container {
136
+ height: 0;
137
+ margin-bottom: 1.25rem;
138
+ overflow: hidden;
139
+ padding-top: 75%;
140
+ position: relative;
141
+ width: 100%;
142
+
143
+ iframe,
144
+ object,
145
+ embed {
146
+ height: 100%;
147
+ left: 0;
148
+ margin: 0;
149
+ position: absolute;
150
+ top: 0;
151
+ width: 100%;
152
+ }
153
+ }
154
+
155
+ .kbd, kbd {
156
+ background-color: var(--grey-1);
157
+ background-image: linear-gradient(var(--grey-2), var(--grey-0), var(--grey-2));
158
+ border: .0625rem solid var(--grey-4);
159
+ border-radius: .2rem;
160
+ box-shadow: .1rem .1rem .2rem var(--grey-9-a1);
161
+ font-family: inherit;
162
+ padding: .1rem .3rem;
163
+ white-space: nowrap;
164
+ }
165
+
166
+ mark {
167
+ background-color: #dbfdad;
168
+ }
169
+
170
+ ins {
171
+ --line-color: var(--note-hover, var(--primary-color));
172
+ text-decoration: none;
173
+ border-bottom: .125rem solid var(--line-color);
174
+
175
+ &.wavy {
176
+ text-decoration-style: wavy;
177
+ text-decoration-line: underline;
178
+ text-decoration-color: var(--line-color);
179
+ border-bottom: none;
180
+ }
181
+
182
+ &.dot {
183
+ border-bottom: .2rem dotted var(--line-color);
184
+ }
185
+ }
186
+
187
+ s {
188
+ color: var(--grey-5);
189
+ text-decoration-color: var(--note-hover, var(--grey-5));
190
+ }
191
+
192
+ ruby {
193
+ padding: 0 .3125rem;
194
+ }
195
+
196
+ .katex-display {
197
+ overflow-x: scroll;
198
+ overflow-y: hidden;
199
+ }
200
+
201
+ .spoiler:not(.bulr) {
202
+ background-color: var(--text-color);
203
+ color: var(--text-color);
204
+ text-shadow: none;
205
+ transition: color .3s;
206
+ padding:0 .1875rem;
207
+
208
+ &:hover {
209
+ color: #FFF;
210
+ }
211
+ }
212
+
213
+ .bulr {
214
+ text-shadow: rgba(0, 0, 0, .7) 0rem 0rem .625rem;
215
+ color: transparent;
216
+ }
217
+
218
+ .rainbow {
219
+ background-image: linear-gradient( to left, orangered, orange, gold, lightgreen, cyan, dodgerblue, mediumpurple, hotpink, orangered);
220
+ background-size: 110vw;
221
+ background-clip: text;
222
+ color: transparent;
223
+ animation: rainbow 60s linear infinite;
224
+ }
225
+ }
226
+
227
+
228
+ .article .md {
229
+
230
+ .anchor::before,
231
+ .anchor::after {
232
+ content: "H";
233
+ font-family: $font-family-posts;
234
+ left: -1.875rem;
235
+ top: 1rem;
236
+ width: 1.25rem;
237
+ height: 1.5625rem;
238
+ text-align: right;
239
+ visibility: visible;
240
+ font-size: 80%;
241
+
242
+ +mobile-small() {
243
+ left: -.625rem;
244
+ }
245
+ }
246
+
247
+ .anchor::after {
248
+ font-size: 50%;
249
+ left: -1.375rem;
250
+ line-height: 3;
251
+
252
+ +mobile-small() {
253
+ left: -.1875rem;
254
+ }
255
+ }
256
+
257
+ for headline in (1 .. 6) {
258
+ h{headline} .anchor::after {
259
+ content: \"headline\";
260
+ }
261
+ }
262
+ }
263
+
@@ -1,11 +1,11 @@
1
- .post footer {
2
- &::before {
3
- content: "";
4
- width: 100%;
5
- height: .0625rem;
6
- background: var(--grey-3);
7
- display: block;
8
- margin: 1.25rem auto 0;
9
- }
10
-
11
- }
1
+ .post footer {
2
+ &::before {
3
+ content: "";
4
+ width: 100%;
5
+ height: .0625rem;
6
+ background: var(--grey-3);
7
+ display: block;
8
+ margin: 1.25rem auto 0;
9
+ }
10
+
11
+ }