hexo-theme-gnix 5.0.0 → 5.0.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-gnix",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "author": "Efterklang <gaojiaxing0220@gmail.com>",
5
5
  "license": "MIT",
6
6
  "description": "Second generation of Hexo theme Icarus, now with Catppuccin flavor and night mode support.",
@@ -4,9 +4,9 @@
4
4
  --font-serif:
5
5
  "PT Serif", Georgia, "Times New Roman", Times, "Songti SC", "STSong", serif;
6
6
  --font-sans-serif:
7
- Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
8
- Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
9
- --font-monospace:
7
+ Avenir, system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
8
+ "Open Sans", "Helvetica Neue", sans-serif;
9
+ --font-mono:
10
10
  "Maple Mono NF CN Local", "Maple Mono NF CN", "SF Mono", "SF Pro", Monaco,
11
11
  Consolas, "Liberation Mono", "Courier New", monospace;
12
12
  --font-article:
@@ -205,39 +205,6 @@ a:hover {
205
205
  color: var(--blue);
206
206
  }
207
207
 
208
- a.header-anchor:hover::after {
209
- margin-left: 0.2em;
210
- color: var(--surface0);
211
- }
212
-
213
- a.header-anchor {
214
- color: var(--text);
215
- }
216
-
217
- h3 a.header-anchor {
218
- &:hover::after {
219
- content: "###";
220
- }
221
- }
222
-
223
- h4 a.header-anchor {
224
- &:hover::after {
225
- content: "####";
226
- }
227
- }
228
-
229
- h5 a.header-anchor {
230
- &:hover::after {
231
- content: "#####";
232
- }
233
- }
234
-
235
- h6 a.header-anchor {
236
- &:hover::after {
237
- content: "######";
238
- }
239
- }
240
-
241
208
  mark {
242
209
  background-color: var(--yellow);
243
210
  }
@@ -250,10 +217,6 @@ mark {
250
217
  accent-color: var(--mauve);
251
218
  }
252
219
 
253
- blockquote::before {
254
- color: var(--red);
255
- }
256
-
257
220
  .article-licensing {
258
221
  color: var(--subtext1);
259
222
  border-top: 0.1px dashed var(--surface0);
@@ -369,7 +332,6 @@ input:-webkit-autofill {
369
332
 
370
333
  /* #endregion */
371
334
 
372
- blockquote,
373
335
  body,
374
336
  dd,
375
337
  dl,
@@ -442,7 +404,7 @@ body {
442
404
 
443
405
  .breadcrumb {
444
406
  white-space: nowrap;
445
- font-family: "Monaspace Radon", var(--font-monospace);
407
+ font-family: "Monaspace Radon", var(--font-mono);
446
408
  }
447
409
 
448
410
  .breadcrumb a {
@@ -612,7 +574,7 @@ body {
612
574
  .theme-selector-hint {
613
575
  font-size: 0.875rem;
614
576
  color: var(--subtext0);
615
- font-family: var(--font-monospace);
577
+ font-family: var(--font-mono);
616
578
  }
617
579
 
618
580
  .theme-selector-list {
@@ -882,6 +844,14 @@ body {
882
844
  text-decoration-color: var(--mauve);
883
845
  }
884
846
 
847
+ a.header-anchor {
848
+ color: var(--text);
849
+ &:hover::after {
850
+ margin-left: 0.2em;
851
+ color: var(--surface0);
852
+ }
853
+ }
854
+
885
855
  h2 {
886
856
  font-size: 2.25em;
887
857
  font-weight: 700;
@@ -890,9 +860,7 @@ body {
890
860
  margin: 1rem 0 1rem;
891
861
  border-bottom: 0.8px solid var(--surface0);
892
862
 
893
- a.header-anchor {
894
- color: var(--text);
895
-
863
+ > a.header-anchor {
896
864
  &:hover::after {
897
865
  content: "##";
898
866
  }
@@ -905,6 +873,11 @@ body {
905
873
  line-height: 1.25;
906
874
  letter-spacing: -0.015em;
907
875
  margin: 1.2rem 0 1rem;
876
+ > a.header-anchor {
877
+ &:hover::after {
878
+ content: "###";
879
+ }
880
+ }
908
881
  }
909
882
 
910
883
  h4 {
@@ -913,6 +886,11 @@ body {
913
886
  line-height: 1.25;
914
887
  letter-spacing: -0.01em;
915
888
  margin: 1.2rem 0 1rem;
889
+ > a.header-anchor {
890
+ &:hover::after {
891
+ content: "####";
892
+ }
893
+ }
916
894
  }
917
895
 
918
896
  h5 {
@@ -921,6 +899,11 @@ body {
921
899
  line-height: 1.25;
922
900
  letter-spacing: -0.005em;
923
901
  margin: 1.2rem 0 1rem;
902
+ > a.header-anchor {
903
+ &:hover::after {
904
+ content: "#####";
905
+ }
906
+ }
924
907
  }
925
908
 
926
909
  h6 {
@@ -928,6 +911,11 @@ body {
928
911
  font-weight: 600;
929
912
  line-height: 1.25;
930
913
  margin: 1.2rem 0 1rem;
914
+ > a.header-anchor {
915
+ &:hover::after {
916
+ content: "######";
917
+ }
918
+ }
931
919
  }
932
920
 
933
921
  .p:not(:last-child) {
@@ -935,31 +923,23 @@ body {
935
923
  }
936
924
 
937
925
  p,
938
- blockquote,
939
926
  ol,
940
927
  dl,
941
928
  pre,
942
929
  details {
943
- margin-top: 0;
944
930
  margin-bottom: 1rem;
945
931
  }
946
932
 
947
933
  p:last-child,
948
- ul:last-child,
949
- ol:last-child,
950
934
  .tabs-tabs-wrapper:last-child {
951
935
  margin-bottom: 0;
952
936
  }
953
937
 
954
- li + li {
955
- margin-top: 0.25em;
956
- }
957
-
958
938
  img,
959
939
  video {
960
940
  display: block;
961
941
  max-width: 100%;
962
- margin: 0 auto 0 auto;
942
+ margin: 1em auto;
963
943
 
964
944
  &:hover {
965
945
  cursor: pointer;
@@ -1035,14 +1015,12 @@ body {
1035
1015
 
1036
1016
  code {
1037
1017
  font-size: 0.85em;
1038
- font-weight: 400;
1039
- font-family: var(--font-monospace);
1040
- padding: 0 0.15em;
1041
- margin: 0 0.1em;
1018
+ font-family: var(--font-mono);
1019
+ padding: 0 0.25em;
1042
1020
  background-color: var(--base);
1043
1021
  color: var(--subtext1);
1044
1022
  border: 1px solid var(--surface0);
1045
- border-radius: 6px;
1023
+ border-radius: 4px;
1046
1024
  }
1047
1025
 
1048
1026
  sub,
@@ -1060,7 +1038,7 @@ body {
1060
1038
  a[href*="github"]::before,
1061
1039
  a[href*="wikipedia"]::before,
1062
1040
  a[href*="youtube"]::before {
1063
- font-family: var(--font-monospace);
1041
+ font-family: var(--font-mono);
1064
1042
  font-size: 1em;
1065
1043
  padding-left: 0.5em;
1066
1044
  color: var(--lavender);
@@ -1089,6 +1067,8 @@ body {
1089
1067
  }
1090
1068
 
1091
1069
  table {
1070
+ table-layout: fixed;
1071
+ word-wrap: break-word;
1092
1072
  width: 100%;
1093
1073
  border-collapse: separate;
1094
1074
  border-spacing: 0;
@@ -1131,20 +1111,17 @@ blockquote {
1131
1111
  border-left: 2px solid var(--red);
1132
1112
  border-radius: 0 8px 8px 0;
1133
1113
  font-family: var(--font-serif);
1134
- font-style: italic;
1135
- font-size: 1rem;
1136
- line-height: 1.5;
1137
- }
1138
-
1139
- blockquote:before {
1140
- content: "”";
1141
- position: absolute;
1142
- left: 0.5rem;
1143
- top: 0.2rem;
1144
- font-size: 3rem;
1145
- font-weight: 700;
1146
- opacity: 0.3;
1147
- line-height: 1;
1114
+ &:before {
1115
+ content: "”";
1116
+ color: var(--red);
1117
+ position: absolute;
1118
+ left: 0.5rem;
1119
+ top: 0.2rem;
1120
+ font-size: 3rem;
1121
+ font-weight: 700;
1122
+ opacity: 0.3;
1123
+ line-height: 1;
1124
+ }
1148
1125
  }
1149
1126
 
1150
1127
  ul.contains-task-list {
@@ -1172,7 +1149,7 @@ input.task-list-item-checkbox {
1172
1149
 
1173
1150
  input.task-list-item-checkbox:checked::before {
1174
1151
  content: "";
1175
- font-family: var(--font-monospace);
1152
+ font-family: var(--font-mono);
1176
1153
  color: var(--base);
1177
1154
  position: absolute;
1178
1155
  top: 50%;
@@ -1237,7 +1214,6 @@ small {
1237
1214
 
1238
1215
  article :target {
1239
1216
  scroll-margin-top: 5rem;
1240
- scroll-behavior: smooth;
1241
1217
  }
1242
1218
 
1243
1219
  article,
@@ -1265,14 +1241,13 @@ section {
1265
1241
  margin-bottom: 0.3em;
1266
1242
  color: var(--text);
1267
1243
  word-break: break-word;
1268
- }
1269
-
1270
- .article-title a {
1271
- color: inherit;
1244
+ > a {
1245
+ color: inherit;
1246
+ }
1272
1247
  }
1273
1248
 
1274
1249
  .article-header-meta {
1275
- font-family: var(--font-monospace);
1250
+ font-family: var(--font-mono);
1276
1251
  overflow: auto;
1277
1252
  padding-bottom: 0.5em;
1278
1253
  margin-bottom: 1rem;
@@ -1371,7 +1346,7 @@ section {
1371
1346
  width: 100%;
1372
1347
  height: 100%;
1373
1348
  z-index: 100;
1374
- font-family: monospace, var(--font-monospace);
1349
+ font-family: monospace, var(--font-mono);
1375
1350
  line-height: 0;
1376
1351
  opacity: 0;
1377
1352
  visibility: hidden;
@@ -1496,4 +1471,4 @@ input.searchbox-input {
1496
1471
  object-fit: cover;
1497
1472
  }
1498
1473
 
1499
- /* #endregion Article Cover */
1474
+ /* #endregion Article Cover */
@@ -1,5 +1,5 @@
1
1
  .code-title {
2
- font-size: .75em;
2
+ font-size: 0.75em;
3
3
  font-style: italic;
4
4
  }
5
5
 
@@ -33,7 +33,7 @@ code span {
33
33
  }
34
34
 
35
35
  figure.shiki {
36
- margin: 0 0 24px;
36
+ margin: 0.5em 0;
37
37
  border-radius: 8px;
38
38
  border: 0.5px solid var(--surface0);
39
39
  overflow: auto;
@@ -45,7 +45,7 @@ figure.shiki {
45
45
  display: flex;
46
46
  min-height: 1.5em;
47
47
  justify-content: space-between;
48
- font-family: var(--font-monospace);
48
+ font-family: var(--font-mono);
49
49
  padding: 0 15px;
50
50
  user-select: none;
51
51
  overflow: hidden;
@@ -140,7 +140,6 @@ figure.shiki {
140
140
  }
141
141
 
142
142
  @keyframes code-expand-pulse {
143
-
144
143
  0%,
145
144
  to {
146
145
  opacity: 0.6;
@@ -186,7 +185,7 @@ pre.shiki {
186
185
  border: none !important;
187
186
  width: 100%;
188
187
  margin: 0;
189
- font-family: var(--font-monospace);
188
+ font-family: var(--font-mono);
190
189
 
191
190
  > span.line {
192
191
  display: block;
@@ -225,10 +224,12 @@ figure.shiki[data-collapsible="true"]:not(.expanded) > pre.shiki:after {
225
224
  height: 80px;
226
225
  pointer-events: none;
227
226
  z-index: 1;
228
- background: linear-gradient(transparent 0%,
229
- hsl(from var(--mantle) h s l / 0.8),
230
- 30%,
231
- var(--mantle) 100%);
227
+ background: linear-gradient(
228
+ transparent 0%,
229
+ hsl(from var(--mantle) h s l / 0.8),
230
+ 30%,
231
+ var(--mantle) 100%
232
+ );
232
233
  opacity: 1;
233
234
  }
234
235
 
@@ -1655,4 +1656,5 @@ pre.shiki.has-focused > code {
1655
1656
  --shiki-nord-font-weight: inherit;
1656
1657
  --shiki-tokyo: #89ddff;
1657
1658
  --shiki-tokyo-font-weight: bold;
1658
- }
1659
+ }
1660
+
@@ -120,6 +120,7 @@
120
120
  const maxIndex = themeOptions.length - 1;
121
121
 
122
122
  switch (event.key) {
123
+ case "j":
123
124
  case "ArrowDown":
124
125
  case "Down":
125
126
  event.preventDefault();
@@ -127,6 +128,7 @@
127
128
  updateFocus(themeOptions);
128
129
  break;
129
130
 
131
+ case "k":
130
132
  case "ArrowUp":
131
133
  case "Up":
132
134
  event.preventDefault();