hexo-theme-stellar 1.18.0 → 1.18.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.
Files changed (87) hide show
  1. package/README.md +2 -2
  2. package/_config.yml +32 -34
  3. package/layout/404.ejs +1 -1
  4. package/layout/_partial/cover/wiki_cover.ejs +1 -1
  5. package/layout/_partial/plugins/comments/artalk/layout.ejs +19 -0
  6. package/layout/_partial/plugins/comments/artalk/script.ejs +25 -0
  7. package/layout/_partial/plugins/comments/layout.ejs +4 -4
  8. package/layout/_partial/scripts/index.ejs +1 -1
  9. package/layout/_partial/widgets/toc.ejs +1 -1
  10. package/package.json +1 -1
  11. package/scripts/tags/index.js +32 -6
  12. package/scripts/tags/inline-labels.js +27 -27
  13. package/scripts/tags/lib/ablock.js +33 -0
  14. package/scripts/tags/lib/about.js +48 -0
  15. package/scripts/tags/lib/checkbox.js +30 -0
  16. package/scripts/tags/{copy.js → lib/copy.js} +23 -23
  17. package/scripts/tags/lib/emoji.js +40 -0
  18. package/scripts/tags/{folders.js → lib/folders.js} +22 -22
  19. package/scripts/tags/lib/folding.js +30 -0
  20. package/scripts/tags/lib/frame.js +66 -0
  21. package/scripts/tags/lib/friends.js +53 -0
  22. package/scripts/tags/{ghcard.js → lib/ghcard.js} +18 -18
  23. package/scripts/tags/{grid.js → lib/grid.js} +20 -20
  24. package/scripts/tags/{image.js → lib/image.js} +38 -38
  25. package/scripts/tags/lib/link.js +78 -0
  26. package/scripts/tags/lib/mark.js +23 -0
  27. package/scripts/tags/lib/navbar.js +57 -0
  28. package/scripts/tags/lib/note.js +35 -0
  29. package/scripts/tags/lib/poetry.js +47 -0
  30. package/scripts/tags/{quot.js → lib/quot.js} +24 -24
  31. package/scripts/tags/lib/sites.js +57 -0
  32. package/scripts/tags/lib/swiper.js +36 -0
  33. package/scripts/tags/lib/tabs.js +33 -33
  34. package/scripts/tags/{tag.js → lib/tag.js} +13 -13
  35. package/scripts/tags/lib/timeline.js +78 -0
  36. package/scripts/tags/lib/toc.js +73 -0
  37. package/source/css/_common/base.styl +2 -2
  38. package/source/css/_common/blockquote.styl +2 -2
  39. package/source/css/_common/button.styl +38 -2
  40. package/source/css/_common/highlight.styl +11 -10
  41. package/source/css/_custom.styl +17 -8
  42. package/source/css/_defines/func.styl +1 -1
  43. package/source/css/_defines/theme.styl +5 -7
  44. package/source/css/_layout/list.styl +0 -1
  45. package/source/css/_layout/md.styl +15 -13
  46. package/source/css/_layout/pages/archives.styl +1 -1
  47. package/source/css/_layout/pages/error.styl +0 -1
  48. package/source/css/_layout/partial/related.styl +8 -6
  49. package/source/css/_layout/sidebar/header.styl +1 -1
  50. package/source/css/_layout/sidebar/sidebar.styl +2 -1
  51. package/source/css/_layout/tag-plugins/checkbox.styl +3 -4
  52. package/source/css/_layout/tag-plugins/common.styl +6 -6
  53. package/source/css/_layout/tag-plugins/copy.styl +1 -1
  54. package/source/css/_layout/tag-plugins/folders.styl +9 -9
  55. package/source/css/_layout/tag-plugins/folding.styl +5 -4
  56. package/source/css/_layout/tag-plugins/grid.styl +4 -1
  57. package/source/css/_layout/tag-plugins/link.styl +1 -1
  58. package/source/css/_layout/tag-plugins/note.styl +9 -10
  59. package/source/css/_layout/tag-plugins/quot.styl +6 -6
  60. package/source/css/_layout/tag-plugins/tabs.styl +2 -2
  61. package/source/css/_layout/tag-plugins/timeline.styl +1 -5
  62. package/source/css/_layout/tag-plugins/toc.styl +1 -1
  63. package/source/css/_layout/widgets/search.styl +28 -18
  64. package/source/css/_layout/widgets/toc_wiki.styl +1 -1
  65. package/source/css/_plugins/aplayer.styl +3 -0
  66. package/source/css/_plugins/comments/artalk.styl +4 -0
  67. package/source/css/_plugins/comments/utterances.styl +1 -1
  68. package/source/css/_plugins/index.styl +4 -0
  69. package/source/css/_plugins/swiper.styl +17 -7
  70. package/source/js/main.js +30 -6
  71. package/scripts/tags/ablock.js +0 -33
  72. package/scripts/tags/about.js +0 -48
  73. package/scripts/tags/checkbox.js +0 -38
  74. package/scripts/tags/emoji.js +0 -40
  75. package/scripts/tags/folding.js +0 -30
  76. package/scripts/tags/frame.js +0 -66
  77. package/scripts/tags/friends.js +0 -53
  78. package/scripts/tags/lib/users.js +0 -22
  79. package/scripts/tags/link.js +0 -79
  80. package/scripts/tags/mark.js +0 -23
  81. package/scripts/tags/navbar.js +0 -57
  82. package/scripts/tags/note.js +0 -35
  83. package/scripts/tags/poetry.js +0 -47
  84. package/scripts/tags/sites.js +0 -57
  85. package/scripts/tags/swiper.js +0 -38
  86. package/scripts/tags/timeline.js +0 -81
  87. package/scripts/tags/toc.js +0 -72
@@ -20,7 +20,8 @@ $color-text = convert(hexo-config('style.color.text'))
20
20
  // font-style: normal
21
21
 
22
22
  $ff-body = system-ui, "Microsoft Yahei", "Segoe UI", -apple-system, Roboto, Ubuntu, "Helvetica Neue", Arial, "WenQuanYi Micro Hei", sans-serif
23
- $ff-code = Menlo, Monaco, Consolas, system-ui, "Courier New", monospace, sans-serif
23
+ $ff-codeblock = Menlo, Monaco, Consolas, system-ui, "Courier New", monospace, sans-serif
24
+ $ff-code = $ff-codeblock
24
25
  $ff-logo = $ff-body
25
26
 
26
27
  if hexo-config('style.font-family.body')
@@ -29,12 +30,15 @@ if hexo-config('style.font-family.body')
29
30
  if hexo-config('style.font-family.code')
30
31
  $ff-code = convert(hexo-config('style.font-family.code'))
31
32
 
33
+ if hexo-config('style.font-family.codeblock')
34
+ $ff-codeblock = convert(hexo-config('style.font-family.codeblock'))
35
+
32
36
  if hexo-config('style.font-family.logo')
33
37
  $ff-logo = convert(hexo-config('style.font-family.logo'))
34
38
 
35
39
 
36
40
  // font size
37
- $fs-root = convert(hexo-config('style.font-size'))
41
+ $fs-root = convert(hexo-config('style.font-size.root'))
38
42
  $fs-15 = .9375rem
39
43
  $fs-14 = .875rem
40
44
  $fs-13 = .8125rem
@@ -46,19 +50,24 @@ $fs-h3 = 1.375rem // 22px
46
50
  $fs-h4 = 1.125rem // 18px
47
51
  $fs-h5 = $fs-15
48
52
  $fs-h6 = $fs-12
49
- $fs-p = $fs-15
50
- $fs-code = $fs-13
53
+ $fs-p = convert(hexo-config('style.font-size.body'))
54
+ $fs-code = convert(hexo-config('style.font-size.code'))
55
+ $fs-codeblock = convert(hexo-config('style.font-size.codeblock'))
56
+
51
57
 
52
- $border-card = 12px
53
- $border-block = 6px
54
- $border-image = 6px
58
+ $border-card = convert(hexo-config('style.border-radius.card'))
59
+ $border-block = convert(hexo-config('style.border-radius.block'))
60
+ $border-bar = convert(hexo-config('style.border-radius.bar'))
61
+ $border-image = convert(hexo-config('style.border-radius.image'))
62
+ $border-button = 4px
55
63
 
56
64
  // 可以动态变化的属性
57
65
  :root
58
66
  --width-left: 288px
59
67
  --width-main: 720px
60
68
  --gap-l: 16px
61
- --gap-p: .75rem // gap for paragraph
69
+ --gap-p: 1rem // gap for paragraph
70
+ --gap-p-compact: 0.75rem
62
71
  // desktop 2k or larger
63
72
  @media screen and (min-width: $device-2k)
64
73
  --gap-l: 32px
@@ -83,7 +83,7 @@ scrollbar-codeblock($height = 4px)
83
83
  &::-webkit-scrollbar-thumb
84
84
  background: transparent
85
85
  cursor: pointer
86
- border-radius: $border-block
86
+ border-radius: $border-bar
87
87
  &:hover
88
88
  &::-webkit-scrollbar-thumb
89
89
  background: var(--text-meta)
@@ -33,24 +33,22 @@ set_text_light()
33
33
  --text-code: hsl($color-code-h, $color-code-s, $color-code-l * 1.25)
34
34
 
35
35
  :root
36
- --site-bg: hsl($color-background-h, $color-background-s, 98)
36
+ --site-bg: hsl($color-background-h, $color-background-s, $color-background-l)
37
37
  --card: hsl($color-block-h, $color-block-s, 100)
38
38
  --block: hsl($color-block-h, $color-block-s, 95)
39
39
  --block-border: hsl($color-block-h, $color-block-s, 90)
40
40
  --block-hover: hsl($color-block-h, $color-block-s, 92)
41
- --block-lighten: hsl($color-block-h, $color-block-s, 100)
42
41
  set_text_dark()
43
42
  --theme-bg2: $color-theme
44
43
  --theme-link: $color-link
45
44
 
46
45
  set_darkmode()
47
46
  :root
48
- --site-bg: hsl($color-background-h, $color-background-s / 2, 16)
49
- --card: hsl($color-block-h, $color-block-s * 1.5, 25)
50
- --block: hsl($color-block-h, $color-block-s, 12)
47
+ --site-bg: hsl($color-background-h, $color-background-s * 0.5, (100 - $color-background-l) * 2 + 8)
48
+ --card: hsl($color-block-h, $color-block-s * 1.2, 24)
49
+ --block: hsl($color-block-h, $color-block-s, 16)
51
50
  --block-border: hsl($color-block-h, $color-block-s, 24)
52
- --block-hover: hsl($color-block-h, $color-block-s, 9)
53
- --block-lighten: hsl($color-block-h, $color-block-s, 30)
51
+ --block-hover: hsl($color-block-h, $color-block-s, 20)
54
52
  set_text_light()
55
53
  @media screen and (max-width: $device-mobile-max)
56
54
  --site-bg: black
@@ -55,7 +55,6 @@
55
55
 
56
56
  .post-list .post-card:hover
57
57
  box-shadow: 0 1px 4px 0px rgba(0, 0, 0, 0.1), 0 4px 16px 0px rgba(0, 0, 0, 0.1)
58
- transform: translateY(-1px)
59
58
  img
60
59
  transform: scale(1.02)
61
60
  filter: brightness(80%)
@@ -1,7 +1,6 @@
1
1
  .md-text
2
2
  max-width: 100%
3
- padding: 0 1rem
4
- margin-top: 1rem
3
+ padding: 1rem
5
4
  &:first-child
6
5
  margin-top: 0
7
6
  color: var(--text-p1)
@@ -21,9 +20,8 @@ h1.article-title
21
20
 
22
21
  .md-text.content
23
22
  position: relative
24
- margin-bottom: 2rem
25
- // display: flex
26
- // flex-direction: column
23
+ padding-bottom: 2rem
24
+ overflow: hidden
27
25
  &.indent
28
26
  >p:not([class])
29
27
  text-indent: 'calc(%s * 2)' % $fs-p
@@ -33,25 +31,25 @@ h1.article-title
33
31
  h1,h2,h3,h4,h5,h6
34
32
  text-align: center
35
33
  >h2:not([class])
36
- align-self: center
37
- border-bottom-style: dashed
38
- border-bottom-color: $color-accent
34
+ border-bottom: none
39
35
  >:first-child:not(h1)
40
36
  margin-top: 0
41
37
  h1:not(:first-child)
42
38
  margin-top: 2em
43
- h2:first-child
44
- margin-top: 0
39
+ h2
40
+ margin-bottom: 1rem
41
+ h3,h4,h5,h6
42
+ margin-bottom: .5rem
45
43
  h2,h3,h4,h5,h6
46
44
  color: var(--text-p0)
47
45
  padding-top: 1rem
48
- margin-bottom: .5rem
49
46
  line-height: 1.8
50
47
  &:hover
51
48
  a.headerlink:before
52
49
  opacity: 1
53
50
 
54
-
51
+ .md-text.content:first-child
52
+ padding-top: 0
55
53
 
56
54
  .md-text
57
55
  ul:not(:last-child),
@@ -62,9 +60,13 @@ h1.article-title
62
60
  p,ul,ol
63
61
  font-size: $fs-14
64
62
  line-height: 1.5
63
+ code
64
+ font-size: inherit
65
+ padding: 0
66
+ background: none
65
67
  p,blockquote,.tag-plugin,ul,ol,.highlight,table
66
68
  *
67
- --gap-p: .5rem
69
+ --gap-p: var(--gap-p-compact)
68
70
  p,ul,ol
69
71
  margin-top: 'calc(%s - 4px)' % var(--gap-p)
70
72
  margin-bottom: 'calc(%s - 4px)' % var(--gap-p)
@@ -47,7 +47,7 @@
47
47
  &.child
48
48
  padding-left: 2rem
49
49
  padding: .5em 1rem
50
- border-radius: $border-block
50
+ border-radius: $border-bar
51
51
  color: var(--text-p2)
52
52
  align-items: center
53
53
  justify-content: space-between
@@ -17,7 +17,6 @@
17
17
  display: inline-block
18
18
  background: #FDB62F
19
19
  color: black
20
- border-radius: 4px
21
20
  border: 2px solid black
22
21
 
23
22
  @media screen and (max-width: $device-tablet)
@@ -1,6 +1,6 @@
1
1
  .related-wrap
2
- padding: 1rem
3
- margin: 2rem 0
2
+ padding: 0 1rem
3
+ margin: 4rem 0
4
4
  &:empty
5
5
  display: none
6
6
  section.header
@@ -14,10 +14,11 @@
14
14
 
15
15
  a.more
16
16
  padding: 0.25rem 0.5rem
17
- border-radius: $border-block
17
+ border-radius: $border-bar
18
18
  color: var(--text-p1)
19
19
 
20
-
20
+ article.md-text.content+.related-wrap
21
+ margin-top: 0
21
22
 
22
23
  .related-posts
23
24
  max-width: 100%
@@ -82,7 +83,8 @@
82
83
 
83
84
 
84
85
  .related-wrap#comments
85
- div.cmt-title
86
+ padding: 0 1rem
87
+ .cmt-title
86
88
  p
87
89
  margin: 0
88
90
  font-size: inherit
@@ -93,7 +95,7 @@
93
95
  color: $color-hover
94
96
  &:before
95
97
  display: none
96
- div.cmt-body
98
+ .cmt-body
97
99
  min-height: 150px
98
100
  position: relative
99
101
  svg.loading
@@ -28,7 +28,7 @@ nav.menu
28
28
  text-align: center
29
29
  &.active, &:hover
30
30
  color: var(--text-p1)
31
- background: var(--block-lighten)
31
+ background: var(--card)
32
32
  box-shadow: $boxshadow-button
33
33
 
34
34
  .l_left .menu a.nav-item
@@ -23,7 +23,8 @@
23
23
  margin-bottom: 6rem
24
24
 
25
25
 
26
- .l_left .widgets .widget-wrapper.logo-wrap.wiki
26
+ .l_left .widgets .widget-wrapper.logo-wrap.wiki .widget-body
27
+ display: flex
27
28
  margin-bottom: 1.5rem
28
29
  flex-direction: column
29
30
  align-items: flex-start
@@ -1,8 +1,9 @@
1
- .md-text .checkbox
1
+ .md-text .tag-plugin.checkbox
2
2
  display: flex
3
+ align-items: center
3
4
  font-size: $fs-15
4
5
  line-height: 1.2
5
- --gap-p: .25rem
6
+ --gap-p: 'calc(%s / 2)' % var(--gap-p-compact)
6
7
  input
7
8
  -webkit-appearance: none
8
9
  -moz-appearance: none
@@ -20,8 +21,6 @@
20
21
  margin-right: 8px
21
22
  if hexo-config('tag_plugins.checkbox.interactive') != true
22
23
  pointer-events: none
23
- span
24
- margin-top: 1px
25
24
  /* Checkbox */
26
25
  input[type=checkbox]
27
26
  &:before, &:after
@@ -16,8 +16,8 @@ set_dynamic_color($theme)
16
16
  --theme-bg1: hsl(hue($theme), 90, 90)
17
17
  --theme-bg2: hsl(hue($theme), 80, 95)
18
18
  --theme-border: hsl(hue($theme), 50, 80)
19
- --text-p0: hsl(hue($theme), 60, 16)
20
- --text-p1: hsl(hue($theme), 50, 24)
19
+ --text-p0: hsl(hue($theme), 55, 16)
20
+ --text-p1: hsl(hue($theme), 55, 20)
21
21
  --text-p2: hsl(hue($theme), 90, 24)
22
22
 
23
23
  .tag-plugin
@@ -69,11 +69,11 @@ set_dynamic_color($theme)
69
69
  set_darkmode_tags()
70
70
  set_dynamic_color($theme)
71
71
  --theme: $theme
72
- --theme-bg1: hsl(hue($theme), 80, 20)
73
- --theme-bg2: hsl(hue($theme), 16, 16)
72
+ --theme-bg1: hsl(hue($theme), 50, 16)
73
+ --theme-bg2: hsl(hue($theme), 32, 16)
74
74
  --theme-border: hsl(hue($theme), 50, 24)
75
- --text-p0: hsl(hue($theme), 80, 80)
76
- --text-p1: hsl(hue($theme), 64, 80)
75
+ --text-p0: hsl(hue($theme), 100, 85)
76
+ --text-p1: hsl(hue($theme), 50, 75)
77
77
  --text-p2: hsl(hue($theme), 80, 72)
78
78
  .tag-plugin.tag
79
79
  set_dynamic_color($color-theme)
@@ -3,7 +3,7 @@
3
3
  justify-content: space-between
4
4
  box-sizing: border-box
5
5
  background: var(--block)
6
- border-radius: $border-block
6
+ border-radius: $border-bar
7
7
  border: 1px solid var(--block-border)
8
8
  overflow: hidden
9
9
  width: 320px
@@ -1,7 +1,7 @@
1
1
  .tag-plugin.folders
2
2
  display: block
3
3
  margin: 1rem 0
4
- border-radius: $border-block
4
+ border-radius: $border-bar
5
5
  font-size: $fs-14
6
6
  border: 1px solid var(--theme-border)
7
7
  overflow: hidden
@@ -30,13 +30,13 @@
30
30
  &:hover
31
31
  color: var(--text-p0)
32
32
  background: var(--block-hover)
33
- &:after
34
- position: absolute
35
- content: '+'
36
- text-align: center
37
- top: 50%
38
- transform: translateY(-50%)
39
- right: 1rem
33
+ &:after
34
+ position: absolute
35
+ content: '+'
36
+ text-align: center
37
+ top: 50%
38
+ transform: translateY(-50%)
39
+ right: 1rem
40
40
 
41
41
 
42
42
  .tag-plugin.folders details[open]
@@ -49,7 +49,7 @@
49
49
  >summary
50
50
  color: var(--text-p1)
51
51
  background: var(--block-hover)
52
- &:hover:after
52
+ &:after
53
53
  content: '-'
54
54
 
55
55
  >div.body
@@ -2,7 +2,7 @@ details.folding
2
2
  display: block
3
3
  padding: 1rem
4
4
  margin: 1rem 0
5
- border-radius: $border-block
5
+ border-radius: $border-bar
6
6
  font-size: $fs-14
7
7
  background: var(--theme-bg2)
8
8
  border: 1px solid var(--theme-border)
@@ -10,7 +10,7 @@ details.folding
10
10
  cursor: pointer
11
11
  padding: .75rem 1rem
12
12
  margin: 0 - 1rem
13
- border-radius: $border-block
13
+ border-radius: $border-bar
14
14
  color: var(--text-p2)
15
15
  font-weight: 500
16
16
  position: relative
@@ -29,6 +29,7 @@ details.folding
29
29
  top: 50%
30
30
  transform: translateY(-50%)
31
31
  right: 1rem
32
+ line-height: 1
32
33
 
33
34
 
34
35
  details.folding[open]
@@ -47,8 +48,8 @@ details.folding[open]
47
48
  margin: 0 - 1rem
48
49
  margin-top: 0
49
50
  background: var(--card)
50
- border-bottom-left-radius: 'calc(%s - 1px)' % $border-block
51
- border-bottom-right-radius: 'calc(%s - 1px)' % $border-block
51
+ border-bottom-left-radius: 'calc(%s - 1px)' % $border-bar
52
+ border-bottom-right-radius: 'calc(%s - 1px)' % $border-bar
52
53
  font-size: $fs-15
53
54
  >:first-child
54
55
  margin-top: 0
@@ -17,7 +17,10 @@
17
17
  margin-top: -0.25em
18
18
  p:last-child
19
19
  margin-bottom: -0.25em
20
-
20
+
21
+ .md-text .tag-plugin.grid
22
+ margin-top: -0.5rem
23
+ margin-bottom: -0.5rem
21
24
 
22
25
  .tag-plugin.grid
23
26
  @media screen and (max-width: $device-tablet)
@@ -18,7 +18,7 @@
18
18
  @media screen and (max-width: $device-mobile-375)
19
19
  width: 100%
20
20
  box-shadow: $boxshadow-card
21
- border-radius: $border-block
21
+ border-radius: $border-bar
22
22
  trans2: box-shadow transform
23
23
  &:hover
24
24
  box-shadow: $boxshadow-card-float
@@ -1,26 +1,26 @@
1
1
  .md-text .tag-plugin.note
2
2
  position: relative
3
- margin-top: 1rem
4
- margin-bottom: 1rem
5
- padding: 0 1rem
3
+ padding: 0.25rem 1rem
6
4
  border-radius: $border-block
7
5
  background: var(--theme-bg2)
8
- border: 1px solid var(--theme-border)
6
+ overflow: hidden
7
+ if hexo-config('tag_plugins.note.border') == true
8
+ border: 1px solid var(--theme-border)
9
9
  color: var(--text-p1)
10
10
  >.title
11
11
  font-size: $fs-15
12
- line-height: 1.2
13
- margin-top: 1rem
12
+ line-height: 1.5
13
+ margin-top: var(--gap-p-compact)
14
14
  font-weight: 500
15
15
  color: var(--text-p0)
16
16
  >.body
17
17
  &,p
18
18
  font-size: $fs-14
19
19
  line-height: 1.5
20
- margin-top: .5rem
21
- margin-bottom: 1rem
20
+ margin-top: var(--gap-p-compact)
21
+ margin-bottom: var(--gap-p-compact)
22
22
  >.body:only-child
23
- margin: 1rem 0
23
+ margin: 'calc(%s - 0.25rem)' % var(--gap-p) 0
24
24
 
25
25
 
26
26
  .md-text .tag-plugin.note[color]
@@ -47,7 +47,6 @@
47
47
  margin-top: .5rem
48
48
 
49
49
  .md-text .tag-plugin.note[child=iframe]
50
- overflow: hidden
51
50
  padding: 0
52
51
  >.body
53
52
  margin: 0
@@ -9,20 +9,18 @@
9
9
  align-items: center
10
10
  border-bottom: none
11
11
  font-weight: 700
12
- &:first-child
13
- margin-top: 1.5rem
12
+ padding: 16px 24px
14
13
  a.headerlink:before
15
14
  content: ''
16
- padding: 16px 24px 8px 24px
17
15
  @media screen and (max-width: $device-mobile)
18
- padding: 16px 20px 8px
16
+ padding: 12px 20px
19
17
  line-height: 1.2
20
18
 
21
19
  .md-text .tag-plugin.quot .content
22
20
  max-width 400px
23
21
  position: relative
24
22
  // override
25
- .tag-plugin.quot
23
+ .md-text.content .tag-plugin.quot
26
24
  h1
27
25
  font-size: $fs-h1
28
26
  font-weight: 900
@@ -31,6 +29,8 @@
31
29
  padding: 20px 24px 12px
32
30
  h2,h3,h4,h5,h6
33
31
  font-size: $fs-h3
32
+ margin-top: 1em
33
+ margin-bottom: 0
34
34
  p
35
35
  font-size: $fs-h4
36
36
  color: var(--text-p0)
@@ -50,7 +50,7 @@
50
50
  border-left: 6px solid $color-accent
51
51
  &:after
52
52
  right: 0
53
- bottom: 0
53
+ bottom: 8px
54
54
  border-right: 6px solid $color-accent
55
55
  border-bottom: 6px solid $color-accent
56
56
  h1.content[type=text]
@@ -16,7 +16,7 @@
16
16
  align-self: flex-end
17
17
 
18
18
  .tag-plugin.tabs
19
- ul.nav-tabs
19
+ .nav-tabs
20
20
  display: flex
21
21
  align-self: center
22
22
  overflow: scroll visible
@@ -36,7 +36,7 @@
36
36
  bottom: 0
37
37
  left: 0
38
38
  border-radius: 2px
39
- li.tab
39
+ .tab
40
40
  list-style-type: none
41
41
  a
42
42
  display: block
@@ -99,15 +99,11 @@
99
99
 
100
100
  .tag-plugin.timeline .body
101
101
  background: var(--card)
102
- border-radius: 12px
102
+ border-radius: $border-card
103
103
  border-top-left-radius: 2px
104
104
  padding: 0.5rem 1rem
105
105
  margin-top: 4px
106
106
  box-shadow: $boxshadow-block
107
- trans2: transform box-shadow
108
- &:hover
109
- transform: translateY(-1px)
110
- box-shadow: $boxshadow-card-float
111
107
  p
112
108
  font-size: $fs-14
113
109
  img
@@ -1,7 +1,7 @@
1
1
  details.toc
2
2
  background: var(--block)
3
3
  border: 1px solid var(--block-border)
4
- border-radius: $border-block
4
+ border-radius: $border-bar
5
5
  overflow: hidden
6
6
  color: var(--text-p2)
7
7
  summary
@@ -10,22 +10,36 @@
10
10
  display: flex
11
11
  flex-direction: row
12
12
  align-items: center
13
+ transition: 0.38s ease-out
14
+ z-index: 0
15
+ &:after
16
+ content: ''
17
+ position absolute
18
+ left: 0
19
+ right: 0
20
+ bottom: 0
21
+ height: 2px
22
+ border-radius: 4px
23
+ background: convert(hexo-config('style.gradient.search'))
24
+ background-size: 200%
25
+ animation: glow 10s linear infinite
26
+ @keyframes glow {
27
+ from {
28
+ background-position: 0%
29
+ }
30
+ to {
31
+ background-position: 200%
32
+ }
33
+ }
13
34
  .search-input
14
35
  width: 100%
15
- padding: 0.5rem
36
+ padding: 0.5rem 0
16
37
  line-height: 1
17
38
  box-sizing: border-box
18
- border-radius: $border-block
19
- background-color: var(--card)
39
+ font-family: $ff-body
20
40
  color: var(--text-p0)
21
- border: 1px solid var(--block-border)
22
- &:focus
23
- trans1 border-color
24
41
 
25
- &.noresult
26
- .search-input
27
- &:focus
28
- border: 1px solid $c-red
42
+ &.noresult
29
43
  .search-icon
30
44
  color: $c-red
31
45
 
@@ -37,7 +51,7 @@
37
51
  font-size: $fs-14
38
52
  padding: 2rem
39
53
  background: var(--block)
40
- border-radius: $border-block
54
+ border-radius: $border-bar
41
55
 
42
56
  #search-result
43
57
  ul.search-result-list
@@ -83,20 +97,16 @@
83
97
  top: 0
84
98
  background: var(--site-bg)
85
99
  .search-input
86
- margin-top: 1rem
87
- margin-bottom: -1rem
88
- padding-left: 1.75rem
100
+ padding-left: 1.5rem
89
101
  .search-icon
90
- margin-top: 1rem
91
- margin-bottom: -1rem
92
102
  position: absolute
93
- margin-left: 0.5rem
103
+ margin-left: 0.25rem
94
104
  left: 0
95
105
  pointer-events: none
96
106
  color: var(--text-p2)
97
107
 
98
108
  #search-result,.search-no-result
99
- margin-top: 2rem
109
+ margin-top: 1rem
100
110
 
101
111
  .widget-wrapper:not(:first-child)
102
112
  .search-wrapper
@@ -5,7 +5,7 @@
5
5
 
6
6
  // 其它分页链接
7
7
  .widget-wrapper.toc.multi .doc-tree
8
- border-radius: $border-block
8
+ border-radius: $border-bar
9
9
  background: var(--block)
10
10
  overflow: hidden
11
11
  border: 1px solid var(--block-border)
@@ -0,0 +1,3 @@
1
+ .md-text
2
+ .aplayer
3
+ border-radius: $border-block
@@ -0,0 +1,4 @@
1
+ .cmt-body.artalk .artalk
2
+ --at-color-main: $color-theme
3
+ .atk-main-editor
4
+ border-radius: $border-block
@@ -2,5 +2,5 @@
2
2
  margin: 0 -4px
3
3
  width: 'calc(100% + %s)' % 8px
4
4
 
5
- .related-wrap#comments div.cmt-body svg.loading
5
+ .related-wrap#comments .cmt-body svg.loading
6
6
  top: 62px
@@ -1,3 +1,5 @@
1
+ @import 'aplayer'
2
+
1
3
  // 根据主题配置加载
2
4
  if hexo-config('plugins.lazyload.enable')
3
5
  @import 'lazyload'
@@ -18,3 +20,5 @@ if hexo-config('comments.service') == 'utterances'
18
20
  @import 'comments/utterances'
19
21
  if hexo-config('comments.service') == 'waline'
20
22
  @import 'comments/waline'
23
+ if hexo-config('comments.service') == 'artalk'
24
+ @import 'comments/artalk'