hexo-theme-linen 1.0.17 → 1.0.18

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/README.md CHANGED
@@ -39,10 +39,8 @@ hexo clean && hexo serve
39
39
 
40
40
  Full documentation and examples:
41
41
 
42
- EN: https://lynanbreeze.github.io/hexo-theme-linen-doc/
43
-
44
- 简体中文: https://lynanbreeze.github.io/hexo-theme-linen-doc-zh-CN/
42
+ [EN](https://lynanbreeze.github.io/hexo-theme-linen-doc/) | [中文](https://lynanbreeze.github.io/hexo-theme-linen-doc-zh-CN/)
45
43
 
46
44
  ## License
47
45
 
48
- MIT
46
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-linen",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "A clean Hexo theme",
5
5
  "main": "index.js",
6
6
  "homepage": "https://github.com/lynanbreeze/hexo-theme-linen",
@@ -633,7 +633,7 @@ body {
633
633
  display: inline-block;
634
634
  width: 1em;
635
635
  height: 1em;
636
- background-image: url("/img/icons/redirect.svg");
636
+ background-image: url("../img/icons/redirect.svg");
637
637
  background-size: cover;
638
638
  vertical-align: middle;
639
639
  margin-bottom: 0.25em;
@@ -642,6 +642,14 @@ body {
642
642
  }
643
643
  }
644
644
 
645
+ del {
646
+ a:not([class]):not(:has(.shared-link)) {
647
+ &::after {
648
+ display: none;
649
+ }
650
+ }
651
+ }
652
+
645
653
  hr {
646
654
  background-color: #f5f5f5;
647
655
  border: none;
@@ -1273,6 +1281,21 @@ body {
1273
1281
  &:nth-child(2) {
1274
1282
  margin-top: $postItemGap;
1275
1283
  }
1284
+ .logo {
1285
+ width: 36px;
1286
+ height: 36px;
1287
+ display: inline-block;
1288
+ margin: 0;
1289
+ vertical-align: middle;
1290
+ border-radius: 1px;
1291
+ }
1292
+ .site-name {
1293
+ margin-left: 10px;
1294
+ display: inline-block;
1295
+ line-height: 36px;
1296
+ color: $darkText;
1297
+ font-size: 18px;
1298
+ }
1276
1299
  .author {
1277
1300
  display: flex;
1278
1301
  align-items: center;
@@ -1312,9 +1335,6 @@ body {
1312
1335
  color: #d8d8d8;
1313
1336
  }
1314
1337
  }
1315
- &:last-child {
1316
- margin-bottom: 10px;
1317
- }
1318
1338
  }
1319
1339
  }
1320
1340
  }
@@ -1401,7 +1421,8 @@ body {
1401
1421
  }
1402
1422
  #post {
1403
1423
  margin: 0 auto;
1404
- padding: min(calc(3vw - 6px), 9px) $commonPadding;
1424
+ padding: 0 $commonPadding;
1425
+ padding-top: min(calc(3vw - 6px), 9px);
1405
1426
  h1:first-child {
1406
1427
  margin-top: 0;
1407
1428
  }
@@ -1424,6 +1445,28 @@ body {
1424
1445
  .gt-comment-date {
1425
1446
  font-size: 0.83em;
1426
1447
  }
1448
+ .gt-comments {
1449
+ padding-top: $commonPadding;
1450
+ a:not([class]) {
1451
+ color: $green;
1452
+ font-weight: bold;
1453
+ text-decoration: none;
1454
+ &:after {
1455
+ content: "";
1456
+ display: inline-block;
1457
+ width: 1em;
1458
+ height: 1em;
1459
+ background-image: url("../img/icons/redirect.svg");
1460
+ background-size: cover;
1461
+ vertical-align: middle;
1462
+ margin-bottom: 0.25em;
1463
+ }
1464
+ &:hover {
1465
+ opacity: 0.85;
1466
+ border-bottom: solid 1px $green;
1467
+ }
1468
+ }
1469
+ }
1427
1470
  .gt-comments-null {
1428
1471
  display: none;
1429
1472
  }
@@ -1438,14 +1481,20 @@ body {
1438
1481
  .gt-comment-username {
1439
1482
  color: $darkText;
1440
1483
  }
1441
- .gt-comment {
1442
- &:last-child {
1443
- padding-bottom: max(1.35em, min(3vw, 26px));
1444
- }
1484
+ .user-mention {
1485
+ color: $darkText;
1486
+ text-decoration: underline;
1487
+ @include defaultFont;
1488
+ text-underline-offset: 0.2rem;
1489
+ font-weight: 500;
1490
+ font-size: 14px;
1445
1491
  }
1446
1492
  .user-mention {
1447
1493
  color: $darkText;
1448
1494
  }
1495
+ .gt-comments-controls {
1496
+ margin-top: 0.625em;
1497
+ }
1449
1498
  .gt-link-counts {
1450
1499
  color: $darkText;
1451
1500
  }
@@ -205,6 +205,7 @@
205
205
  background-color: rgb(229, 229, 229);
206
206
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
207
207
  transition: box-shadow ease 0.3s;
208
+ overflow: hidden;
208
209
  &:hover {
209
210
  box-shadow: rgba(149, 157, 165, 0.4) 0px 8px 24px;
210
211
  }
@@ -389,10 +389,11 @@ function handleClick(e) {
389
389
  }
390
390
  return;
391
391
  } else if (
392
- target.className === "series-name" ||
393
- target?.parentElement?.className === "series-name" ||
394
- target.className === "series-name-content" ||
395
- target?.parentElement?.className === "series-name-content"
392
+ target.tagName !== "H1" &&
393
+ (target.className === "series-name" ||
394
+ target?.parentElement?.className === "series-name" ||
395
+ target.className === "series-name-content" ||
396
+ target?.parentElement?.className === "series-name-content")
396
397
  ) {
397
398
  seriesElement?.classList?.add("visible");
398
399
  maskElement?.classList?.add("visible");