hexo-theme-stellar 1.6.1 → 1.9.0

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 (61) hide show
  1. package/_config.yml +145 -34
  2. package/languages/zh-CN.yml +2 -2
  3. package/languages/zh-TW.yml +2 -2
  4. package/layout/404.ejs +1 -1
  5. package/layout/_partial/cover/index.ejs +12 -0
  6. package/layout/_partial/cover/post_cover.ejs +41 -0
  7. package/layout/_partial/{main/article → cover}/wiki_cover.ejs +1 -4
  8. package/layout/_partial/head.ejs +14 -2
  9. package/layout/_partial/main/article/article_footer.ejs +4 -4
  10. package/layout/_partial/main/post_list/paginator.ejs +2 -2
  11. package/layout/_partial/main/post_list/post_card.ejs +43 -5
  12. package/layout/_partial/main/post_list/wiki_card.ejs +2 -0
  13. package/layout/_partial/plugins/comments/giscus/layout.ejs +39 -0
  14. package/layout/_partial/plugins/comments/giscus/script.ejs +26 -0
  15. package/layout/_partial/plugins/comments/layout.ejs +1 -1
  16. package/layout/_partial/plugins/comments/valine/script.ejs +1 -1
  17. package/layout/_partial/plugins/comments/waline/layout.ejs +19 -0
  18. package/layout/_partial/plugins/comments/waline/script.ejs +22 -0
  19. package/layout/_partial/scripts/index.ejs +7 -1
  20. package/layout/_partial/sidebar/widgets/recent.ejs +5 -13
  21. package/layout/index.ejs +5 -2
  22. package/layout/layout.ejs +1 -1
  23. package/layout/mathjax.ejs +29 -0
  24. package/layout/page.ejs +1 -1
  25. package/layout/post.ejs +9 -2
  26. package/package.json +1 -1
  27. package/scripts/events/index.js +5 -7
  28. package/scripts/tags/grid.js +35 -0
  29. package/scripts/tags/image.js +21 -1
  30. package/scripts/tags/index.js +3 -0
  31. package/scripts/tags/lib/users.js +23 -0
  32. package/scripts/tags/note.js +7 -22
  33. package/scripts/tags/poetry.js +48 -0
  34. package/scripts/tags/quot.js +51 -0
  35. package/scripts/tags/{site.js → sites.js} +3 -0
  36. package/source/css/_common/base.styl +9 -0
  37. package/source/css/_common/cap.styl +1 -0
  38. package/source/css/_common/highlight.styl +15 -4
  39. package/source/css/_custom.styl +6 -5
  40. package/source/css/_layout/list.styl +65 -35
  41. package/source/css/_layout/main.styl +2 -2
  42. package/source/css/_layout/md.styl +38 -21
  43. package/source/css/_layout/pages/archives.styl +1 -0
  44. package/source/css/_layout/partial/article-footer.styl +0 -2
  45. package/source/css/_layout/partial/cover.styl +50 -10
  46. package/source/css/_layout/partial/footer.styl +6 -0
  47. package/source/css/_layout/partial/related.styl +1 -0
  48. package/source/css/_layout/sidebar/sidebar.styl +21 -6
  49. package/source/css/_layout/tag-plugins/folding.styl +3 -0
  50. package/source/css/_layout/tag-plugins/frame.styl +1 -1
  51. package/source/css/_layout/tag-plugins/image.styl +1 -2
  52. package/source/css/_layout/tag-plugins/inline-labels.styl +3 -0
  53. package/source/css/_layout/tag-plugins/poetry.styl +50 -0
  54. package/source/css/_layout/tag-plugins/quot.styl +82 -0
  55. package/source/css/_plugins/comments/utterances.styl +3 -0
  56. package/source/css/_plugins/comments/waline.styl +61 -0
  57. package/source/css/_plugins/fancybox.styl +5 -0
  58. package/source/css/_plugins/index.styl +4 -0
  59. package/source/js/main.js +60 -13
  60. package/source/js/plugins/friends.js +6 -5
  61. package/source/js/plugins/sites.js +2 -2
@@ -11,15 +11,18 @@
11
11
  trans1 box-shadow
12
12
  overflow: hidden
13
13
  background: var(--card)
14
+ position: relative
14
15
  .excerpt
15
16
  margin: 1rem 0
16
17
  >p
17
18
  margin: 1rem 0
19
+ line-height: 1.5
18
20
  .meta.cap
19
21
  display: flex
20
22
  flex-wrap: wrap
21
23
  align-items: center
22
24
  margin: .5rem 0
25
+ line-height: 1.5
23
26
  span+span
24
27
  margin-left: 0.5rem
25
28
  span.pin
@@ -28,49 +31,76 @@
28
31
  object-fit: contain
29
32
  height: 1.5em
30
33
  .post-list .post-card:hover
31
- box-shadow: 0 1px 4px 0px rgba(0, 0, 0, 0.08), 0 2px 8px 0px rgba(0, 0, 0, 0.06), 0 4px 16px 0px rgba(0, 0, 0, 0.04)
34
+ box-shadow: 0 1px 4px 0px rgba(0, 0, 0, 0.1), 0 4px 16px 0px rgba(0, 0, 0, 0.1)
32
35
 
33
36
 
34
37
  // common article
35
- .post-list article
38
+ .post-list article.md
36
39
  padding: 1rem
40
+ p
41
+ color: var(--text-p2)
42
+ @media screen and (min-width: $device-mobile)
43
+ font-size: $fs-14
44
+
37
45
 
38
46
  // posts
39
- .post-list .post-card
40
- .post-cover
41
- overflow: hidden
42
- margin-left: -1rem
43
- margin-top: -1rem
44
- margin-right: -1rem
47
+ .post-list .post-card .post-cover
48
+ overflow: hidden
49
+ width: 'calc(100% + 2 * %s)' % 1rem
50
+ border-radius: 0
51
+ margin-left: -1rem
52
+ margin-top: -1rem
53
+ margin-right: -1rem
54
+ &:not(.lazy)
55
+ trans1: transform 1s
56
+ img
57
+ object-fit: cover
58
+ width: 100%
59
+ border-radius: 0
60
+ height: 280px
61
+ @media screen and (max-width: 900px)
62
+ height: 240px
63
+ @media screen and (max-width: $device-tablet)
64
+ height: 280px
65
+ @media screen and (max-width: $device-mobile)
66
+ height: 240px
67
+ @media screen and (max-width: $device-mobile-425)
68
+ height: 220px
69
+ @media screen and (max-width: $device-mobile-375)
70
+ height: 180px
71
+
72
+ .post-list .post-card.post.photo
73
+ .cover
74
+ position: relative
75
+ line-height: 0
45
76
  img
46
- object-fit: cover
47
77
  width: 100%
48
- border-radius: 0
49
- height: 280px
50
- @media screen and (max-width: 900px)
51
- height: 240px
52
- @media screen and (max-width: $device-tablet)
53
- height: 280px
54
- @media screen and (max-width: $device-mobile)
55
- height: 240px
56
- @media screen and (max-width: $device-mobile-425)
57
- height: 220px
58
- @media screen and (max-width: $device-mobile-375)
59
- height: 180px
60
- &:not(.lazy)
61
- trans1: transform 1s
62
- .post-list .post-card.post.photo .post-cover img
63
- height: 400px
64
- @media screen and (max-width: 900px)
65
- height: 320px
66
- @media screen and (max-width: $device-tablet)
67
- height: 400px
68
- @media screen and (max-width: $device-mobile)
69
- height: 320px
70
- @media screen and (max-width: $device-mobile-425)
71
- height: 280px
72
- @media screen and (max-width: $device-mobile-375)
73
- height: 240px
78
+ .cover-info
79
+ padding: 1rem
80
+ position: absolute
81
+ line-height: 1.2
82
+ width: 'calc(100% - %s * 2)' % 1rem
83
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2)
84
+ color: white
85
+ &[position=top]
86
+ top: 0
87
+ background-image: linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0.3),rgba(0,0,0,0))
88
+ &[position=bottom]
89
+ bottom: 0
90
+ background-image: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0.3),rgba(0,0,0,0.4))
91
+ div+div
92
+ margin-top: 8px
93
+ @media screen and (max-width: $device-mobile)
94
+ margin-top: 4px
95
+ .cap
96
+ color: white
97
+ font-size: $fs-13
98
+ .title
99
+ font-weight: 500
100
+ font-size: $fs-h3
101
+ h2
102
+ margin: .25rem 0
103
+ font-size: $fs-h4
74
104
 
75
105
 
76
106
  // wiki
@@ -1,9 +1,9 @@
1
1
  .l_main
2
2
  position: relative
3
3
  padding-bottom: "calc(1 * %s)" % var(--gap-l)
4
- @media screen and (min-width: 1200px)
4
+ @media screen and (min-width: 1400px)
5
5
  margin-left: "calc(2 * %s)" % var(--gap-l)
6
- margin-right: "calc(0.75 * %s)" % var(--width-left)
6
+ margin-right: "calc(2 * %s + %s)" % (var(--gap-l) var(--width-left))
7
7
  @media screen and (min-width: $device-tablet)
8
8
  padding-top: "calc(2 * %s)" % var(--gap-l)
9
9
  header
@@ -10,16 +10,29 @@ article.md.excerpt
10
10
  font-size: $fs-14
11
11
  margin: 1em 0
12
12
 
13
+ h1.article-title
14
+ margin-top: .5em
15
+ margin-bottom: 1em
16
+ line-height: 1.2
17
+ color: var(--text-p0)
18
+
13
19
  article.md.content
14
20
  position: relative
15
21
  margin-bottom: 2rem
22
+ display: flex
23
+ flex-direction: column
24
+ &.indent
25
+ >p:not([class])
26
+ text-indent: 'calc(%s * 2)' % $fs-p
27
+ text-align: justify
28
+ h1,h2,h3,h4,h5,h6
29
+ text-align: center
30
+ >h2:not([class])
31
+ align-self: center
32
+ border-bottom-style: dashed
33
+ border-bottom-color: $color-highlight
16
34
  >:first-child
17
- margin-top: 0
18
- h1.article-title
19
- margin-top: .5em
20
- margin-bottom: 1em
21
- line-height: 1.2
22
- color: var(--text-p0)
35
+ margin-top: 1rem
23
36
  h1:not(:first-child)
24
37
  margin-top: 2em
25
38
  h2:first-child
@@ -27,12 +40,14 @@ article.md.content
27
40
  h2,h3,h4,h5,h6
28
41
  color: var(--text-p0)
29
42
  padding-top: 1rem
30
- margin-bottom: 1em
43
+ margin-bottom: .5rem
31
44
  line-height: 1.8
32
45
  &:hover
33
46
  a.headerlink:before
34
47
  opacity: 1
35
48
 
49
+
50
+
36
51
  .md
37
52
  ul:not(:last-child),
38
53
  ol:not(:last-child)
@@ -45,11 +60,17 @@ article.md.content
45
60
  p,blockquote,.tag-plugin,ul,ol,.highlight,table
46
61
  *
47
62
  --gap-p: .5rem
48
- p,.tag-plugin
63
+ p,>ul:not(:last-child),>ol:not(:last-child)
64
+ margin-top: 'calc(%s - 4px)' % var(--gap-p)
65
+ margin-bottom: 'calc(%s - 4px)' % var(--gap-p)
66
+ .tag-plugin,iframe
49
67
  margin-top: var(--gap-p)
50
68
  margin-bottom: var(--gap-p)
69
+ p,.tag-plugin
51
70
  .highlight,table
52
71
  --gap-p: 1rem
72
+ iframe
73
+ display: block
53
74
 
54
75
  // titles
55
76
  article.md.content
@@ -59,7 +80,7 @@ article.md.content
59
80
  position: absolute
60
81
  margin-left: -0.75em
61
82
  h2
62
- margin-top: 3rem
83
+ margin-top: 2rem
63
84
  border-bottom: 1px solid var(--block-border)
64
85
  font-weight: 400
65
86
  h3
@@ -70,21 +91,13 @@ article.md.content
70
91
  h1+h2
71
92
  margin-top: -0.5rem
72
93
  h2+h3
73
- margin-top: -1rem
94
+ margin-top: -0.5rem
74
95
  h3+h4
75
- margin-top: -1rem
96
+ margin-top: -0.5rem
76
97
  h4+h5
77
- margin-top: -1rem
98
+ margin-top: -0.5rem
78
99
  h5+h6
79
- margin-top: -1rem
80
-
81
- // a
82
- article.md
83
- p, li:not([class])
84
- >a:not([class])
85
- font-weight: 500
86
- &:hover
87
- text-decoration: underline
100
+ margin-top: -0.5rem
88
101
 
89
102
  article.md p
90
103
  font-size: $fs-p
@@ -93,6 +106,10 @@ article.md pre
93
106
  -webkit-font-smoothing: auto
94
107
  -moz-osx-font-smoothing: auto
95
108
 
109
+ article.md
110
+ .center
111
+ align-self: center
112
+
96
113
  // div
97
114
  article.md>div
98
115
  margin: var(--gap-p) 0
@@ -1,4 +1,5 @@
1
1
  .post-list #archive
2
+ padding: 1rem
2
3
  .archive-header
3
4
  display: inline-block
4
5
  font-family: $ff-code
@@ -23,8 +23,6 @@
23
23
  ul
24
24
  margin: 0
25
25
  overflow: hidden
26
- a:hover
27
- text-decoration: underline
28
26
  .post-title
29
27
  margin: 0.5rem 0
30
28
  line-height: 1.2
@@ -5,9 +5,59 @@
5
5
  flex-direction: column
6
6
  justify-content: center
7
7
  align-items: center
8
+ position: relative
9
+ &.post
10
+ height: inherit
11
+
8
12
 
9
13
  .l_cover .cover-wrap
10
14
  margin-bottom: 0
15
+ display: flex
16
+ flex-direction: column
17
+ justify-content: center
18
+ align-items: center
19
+ .cover-title
20
+ font-weight: 700
21
+ font-size: 1.5rem
22
+ margin: 1rem 0
23
+ line-height: 1.2
24
+ .description
25
+ margin: 1rem 0
26
+ .start-wrap
27
+ margin: 2rem 0
28
+ flex-shrink: 0
29
+ a.start
30
+ display: inline-block
31
+
32
+ .l_cover.post
33
+ .cover
34
+ z-index: -1
35
+ width: 100%
36
+ height: 30vh
37
+ max-width: $device-2k
38
+ min-height: 150px
39
+ max-height: 400px
40
+ @media screen and (max-width: $device-tablet)
41
+ height: 25vh
42
+ @media screen and (max-width: $device-mobile)
43
+ height: 20vh
44
+ @media screen and (min-width: $device-2k)
45
+ margin-top: 4rem
46
+ .img
47
+ border-radius: 2rem
48
+
49
+
50
+ .l_cover.post .cover-wrap
51
+ z-index: 1
52
+ .article-title
53
+ text-align: center
54
+ padding: 1rem
55
+ margin: 1em 0 0 0
56
+ @media screen and (min-width: $device-2k)
57
+ font-size: 3rem
58
+
59
+
60
+ .l_cover.wiki .cover-wrap
11
61
  max-width: $device-mobile
12
62
  .preview
13
63
  margin-bottom: 2rem
@@ -18,15 +68,5 @@
18
68
  @media screen and (max-width: $device-mobile)
19
69
  max-width: 60%
20
70
  .cover-title
21
- font-weight: 700
22
- font-size: 1.5rem
23
- margin: 1rem 0
24
71
  &:first-child
25
72
  font-size: 3rem
26
- .description
27
- margin: 1rem 0
28
- .start-wrap
29
- margin: 2rem 0
30
- flex-shrink: 0
31
- a.start
32
- display: inline-block
@@ -9,6 +9,7 @@
9
9
  .page-footer .sitemap
10
10
  margin: .5rem 0 2rem
11
11
  display: grid
12
+ scrollbar-width: none
12
13
  grid-gap: 1rem 1rem
13
14
  grid-auto-flow: column dense
14
15
  overflow: scroll
@@ -36,3 +37,8 @@
36
37
  line-height: 1.2
37
38
  a
38
39
  text-decoration: underline
40
+ font-weight: 500
41
+ margin: inherit
42
+ padding: inherit
43
+ &:hover
44
+ background: inherit
@@ -42,6 +42,7 @@
42
42
  width: 40vw
43
43
  max-width: 460px
44
44
  border: 1px solid var(--block-hover)
45
+ z-index: 1
45
46
  .img
46
47
  min-width: 100%
47
48
  min-height: 140px
@@ -61,13 +61,13 @@
61
61
  if hexo-config('style.animated_avatar.animate') == 'always'
62
62
  div.bg
63
63
  opacity: 1 !important
64
- animation: spin infinite 1s
64
+ animation: spin infinite 4s
65
65
  animation-timing-function: linear
66
66
  if hexo-config('style.animated_avatar.animate') == 'auto'
67
67
  &:hover
68
68
  div.bg
69
69
  opacity: 1 !important
70
- animation: spin infinite 1s
70
+ animation: spin infinite 4s
71
71
  animation-timing-function: linear
72
72
 
73
73
  a.title
@@ -149,6 +149,7 @@ nav.menu
149
149
  .l_left .widgets
150
150
  overflow: scroll
151
151
  flex-grow: 1
152
+ scrollbar-width: none
152
153
  scrollbar(0, 0)
153
154
  z-index: 1
154
155
  .widget-wrap
@@ -164,7 +165,9 @@ nav.menu
164
165
  background: var(--site-bg)
165
166
  padding-top: 2px
166
167
  z-index 1
167
- line-height: 2.4
168
+ line-height: 2
169
+ color: var(--text-p4)
170
+ font-size: $fs-14
168
171
  &:empty
169
172
  display: none
170
173
  .cap-action
@@ -186,11 +189,23 @@ nav.menu
186
189
  margin-top: .5em
187
190
  margin-bottom: .5em
188
191
  line-height: 1.5
189
- >a:hover
190
- text-decoration: underline
191
192
  .widget-header+.widget-body
192
193
  margin-top: 0
193
- .widget-wrap#recent .widget-body, .widget-wrap#related .widget-body
194
+
195
+ .widget-wrap .widget-body
196
+ .more-item
197
+ margin: .5rem 0
198
+ .cap
199
+ margin-bottom: .25rem
200
+ .widget-wrap#recent .widget-body
201
+ a
202
+ line-height: 1.2
203
+ font-weight: 500
204
+ color: var(--text-p2)
205
+ font-size: $fs-13
206
+ &:hover
207
+ color: $color-hover
208
+ .widget-wrap#related .widget-body
194
209
  >a
195
210
  padding 0.5rem
196
211
  display: block
@@ -42,6 +42,8 @@ details.folding[open]
42
42
  &:after
43
43
  content: '-'
44
44
  >div.body
45
+ display: flex;
46
+ flex-direction: column;
45
47
  padding: 1rem
46
48
  margin: 0 - 1rem
47
49
  margin-top: 0
@@ -57,6 +59,7 @@ details.folding[open]
57
59
  details.folding[child=codeblock]>div.body
58
60
  padding: 0
59
61
  background: transparent
62
+ overflow: hidden
60
63
  .highlight
61
64
  border: none
62
65
  border-radius: 0
@@ -27,7 +27,7 @@
27
27
  margin-top: 19px
28
28
  margin-bottom: 20px
29
29
  .frame
30
- background-image: url(https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/frame/iphone11.svg);
30
+ background-image: url(https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/frame/iphone11.svg);
31
31
  width: 329px
32
32
  height: 658px
33
33
  &[focus='top']
@@ -2,7 +2,6 @@
2
2
  margin-top: 1rem
3
3
  margin-bottom: 1rem
4
4
  .image-bg
5
- line-height: 0
6
5
  text-align: center
7
6
  border-radius: $border-image
8
7
  position: relative
@@ -11,7 +10,7 @@
11
10
  .image-download
12
11
  opacity: 1 !important
13
12
  img
14
- display: inline-block
13
+ display: block
15
14
  object-fit: cover
16
15
  .image-download
17
16
  position: absolute
@@ -32,3 +32,6 @@
32
32
  line-height: 1
33
33
  font-weight: 700
34
34
  font-family: $ff-code
35
+ h1,h2,h3,h4
36
+ sup,sub
37
+ font-size: .85rem
@@ -0,0 +1,50 @@
1
+ .md .tag-plugin.poetry
2
+ align-self: center
3
+ &[align=center]
4
+ align-items: center
5
+ >.title
6
+ font-weight: 500
7
+ font-size: 1rem
8
+ margin-top: var(--gap-p)
9
+ >.meta
10
+ color: var(--text-p2)
11
+ font-size: $fs-12
12
+ font-weight: 500
13
+ span+span
14
+ margin-left: 4px
15
+ >.body
16
+ margin: var(--gap-p) 0
17
+ border-top: 1px dashed var(--block-border)
18
+ border-bottom: 1px dashed var(--block-border)
19
+ p
20
+ font-size: $fs-14
21
+ >.footer
22
+ font-style: italic
23
+ color: var(--text-p4)
24
+ margin: var(--gap-p) 0
25
+ font-size: $fs-12
26
+
27
+ // 描边修饰
28
+ .md .tag-plugin.poetry
29
+ padding-left: 1rem
30
+ position: relative
31
+ &:before
32
+ content: ''
33
+ position: absolute
34
+ width: 4px
35
+ left: -4px
36
+ top: 4px
37
+ bottom: 4px
38
+ border-radius: 4px
39
+ background: var(--block)
40
+ >.title
41
+ position: relative
42
+ &:before
43
+ content: ''
44
+ position: absolute
45
+ width: 4px
46
+ left: calc(-1rem - 4px)
47
+ top: 6px
48
+ bottom: 6px
49
+ border-radius: 4px
50
+ background: $color-highlight
@@ -0,0 +1,82 @@
1
+ .md .tag-plugin.quot
2
+ text-align: center
3
+ position: relative
4
+ align-items: center
5
+ .md .tag-plugin.quot:not(span)
6
+ display: flex
7
+ align-self: center
8
+ border-bottom: none
9
+ font-weight: 700
10
+ &:first-child
11
+ margin-top: 1.5rem
12
+ a.headerlink:before
13
+ content: ''
14
+ padding: 16px 24px 8px 24px
15
+ @media screen and (max-width: $device-mobile)
16
+ padding: 16px 20px 8px
17
+ line-height: 1.2
18
+
19
+ // override
20
+ article.md.content
21
+ .quot:not(span)
22
+ color: var(--text-p0)
23
+ h1.quot
24
+ font-size: $fs-h1
25
+ font-weight: 900
26
+ padding: 20px 32px 12px 32px
27
+ @media screen and (max-width: $device-mobile)
28
+ padding: 20px 24px 12px
29
+ h2.quot,h3.quot,h4.quot,h5.quot,h6.quot
30
+ font-size: $fs-h3
31
+ p.quot
32
+ font-size: $fs-h4
33
+
34
+ // type=text
35
+ .md .tag-plugin.quot[type=text]:not(span)
36
+ &:before,&:after
37
+ content: ""
38
+ position: absolute
39
+ width: 8px
40
+ height: 14px
41
+ &:before
42
+ top: 8px
43
+ left: 0
44
+ border-top: 6px solid $color-highlight
45
+ border-left: 6px solid $color-highlight
46
+ &:after
47
+ right: 0
48
+ bottom: 0
49
+ border-right: 6px solid $color-highlight
50
+ border-bottom: 6px solid $color-highlight
51
+ article.md.content h1.quot[type=text]
52
+ &:before,&:after
53
+ width: 12px
54
+ height: 20px
55
+ border-width: 8px
56
+
57
+ // type=icon
58
+ .md .tag-plugin.quot[type=icon]:not(span)
59
+ .icon
60
+ height: 1.5em
61
+ display: inline-block
62
+ color: $color-highlight
63
+ border-radius: 0
64
+ &.prefix
65
+ margin-right: .5rem
66
+ &.suffix
67
+ margin-left: .5rem
68
+
69
+ // inline quot
70
+ .md span.tag-plugin.quot
71
+ font-weight: 500
72
+ &:before,&:after
73
+ color: $color-highlight
74
+ font-weight: 900
75
+ &:before
76
+ content: "「"
77
+ margin-left: -0.125em
78
+ margin-right: 0.125em
79
+ &:after
80
+ content: "」"
81
+ margin-left: 0.125em
82
+ margin-right: -0.125em
@@ -1,3 +1,6 @@
1
1
  .cmt-body.utterances
2
2
  margin: 0 -4px
3
3
  width: 'calc(100% + %s)' % 8px
4
+
5
+ .related-wrap#comments div.cmt-body svg.loading
6
+ top: 62px
@@ -0,0 +1,61 @@
1
+ .cmt-body.waline
2
+ --waline-font-size: 0.9375rem;
3
+ /* 常规颜色 */
4
+ --waline-white: #fff;
5
+ --waline-light-grey: #999;
6
+ --waline-dark-grey: #666;
7
+ /* 主题色 */
8
+ --waline-theme-color: #3498db;
9
+ --waline-active-color: #2ecc71;
10
+ /* 布局颜色 */
11
+ --waline-color: #444;
12
+ --waline-bgcolor: #fff;
13
+ --waline-bgcolor-light: #f8f8f8;
14
+ --waline-bgcolor-hover: #f0f0f0;
15
+ --waline-border-color: #ddd;
16
+ --waline-disable-bgcolor: #f8f8f8;
17
+ --waline-disable-color: #bbb;
18
+ --waline-code-bgcolor: #282c34;
19
+ /* 特殊颜色 */
20
+ --waline-bq-color: #f0f0f0;
21
+ /* 头像 */
22
+ --waline-avatar-size: 3.25rem;
23
+ --waline-m-avatar-size: calc(var(--waline-avatar-size) * 9 / 13);
24
+ /* 徽章 */
25
+ --waline-badge-color: #3498db;
26
+ --waline-badge-font-size: 0.725em;
27
+ /* 信息 */
28
+ --waline-info-bgcolor: #f8f8f8;
29
+ --waline-info-color: #999;
30
+ --waline-info-font-size: 0.725em;
31
+ /* 渲染选择 */
32
+ --waline-border: 1px solid var(--waline-border-color);
33
+ --waline-avatar-radius: 50%;
34
+ --waline-box-shadow: none;
35
+
36
+
37
+ @media (prefers-color-scheme: dark)
38
+ --waline-white: #000;
39
+ --waline-light-grey: #666;
40
+ --waline-dark-grey: #999;
41
+ /* 布局颜色 */
42
+
43
+ --waline-color: #fff;
44
+ --waline-bgcolor: var(--block);
45
+ --waline-bgcolor-light: #272727;
46
+ --waline-border-color: #333;
47
+ --waline-disable-bgcolor: #444;
48
+ --waline-disable-color: #272727;
49
+ /* 特殊颜色 */
50
+ --waline-bq-color: #272727;
51
+ /* 其他颜色 */
52
+ --waline-info-bgcolor: #272727;
53
+ --waline-info-color: #666;
54
+
55
+ .wl-count
56
+ @media (prefers-color-scheme: dark)
57
+ padding: .375em;
58
+ font-weight: bold;
59
+ font-size: 1.25em;
60
+ color: #fff;
61
+