hexo-theme-stellar 1.17.2 → 1.18.1

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 (88) hide show
  1. package/README.md +2 -2
  2. package/_config.yml +35 -57
  3. package/_data/widgets.yml +0 -15
  4. package/layout/_partial/plugins/comments/artalk/layout.ejs +19 -0
  5. package/layout/_partial/plugins/comments/artalk/script.ejs +25 -0
  6. package/layout/_partial/plugins/comments/layout.ejs +4 -4
  7. package/layout/_partial/scripts/index.ejs +1 -1
  8. package/layout/_partial/sidebar/header.ejs +4 -4
  9. package/layout/_partial/sidebar/index.ejs +4 -4
  10. package/layout/_partial/widgets/search.ejs +1 -0
  11. package/layout/_partial/widgets/toc.ejs +1 -1
  12. package/package.json +1 -1
  13. package/scripts/generators/search.js +2 -0
  14. package/scripts/tags/index.js +32 -6
  15. package/scripts/tags/inline-labels.js +27 -27
  16. package/scripts/tags/lib/ablock.js +33 -0
  17. package/scripts/tags/lib/about.js +48 -0
  18. package/scripts/tags/lib/checkbox.js +30 -0
  19. package/scripts/tags/{copy.js → lib/copy.js} +23 -23
  20. package/scripts/tags/lib/emoji.js +40 -0
  21. package/scripts/tags/{folders.js → lib/folders.js} +22 -22
  22. package/scripts/tags/lib/folding.js +30 -0
  23. package/scripts/tags/lib/frame.js +66 -0
  24. package/scripts/tags/lib/friends.js +53 -0
  25. package/scripts/tags/{ghcard.js → lib/ghcard.js} +18 -18
  26. package/scripts/tags/lib/grid.js +49 -0
  27. package/scripts/tags/{image.js → lib/image.js} +38 -38
  28. package/scripts/tags/lib/link.js +78 -0
  29. package/scripts/tags/lib/mark.js +23 -0
  30. package/scripts/tags/lib/navbar.js +57 -0
  31. package/scripts/tags/lib/note.js +35 -0
  32. package/scripts/tags/lib/poetry.js +47 -0
  33. package/scripts/tags/lib/quot.js +55 -0
  34. package/scripts/tags/lib/sites.js +57 -0
  35. package/scripts/tags/lib/swiper.js +36 -0
  36. package/scripts/tags/lib/tabs.js +33 -33
  37. package/scripts/tags/lib/tag.js +35 -0
  38. package/scripts/tags/lib/timeline.js +78 -0
  39. package/scripts/tags/lib/toc.js +73 -0
  40. package/source/css/_common/highlight.styl +0 -3
  41. package/source/css/_custom.styl +13 -27
  42. package/source/css/_defines/theme.styl +47 -34
  43. package/source/css/_layout/md.styl +14 -12
  44. package/source/css/_layout/partial/paginator.styl +2 -1
  45. package/source/css/_layout/partial/related.styl +8 -6
  46. package/source/css/_layout/sidebar/header.styl +2 -2
  47. package/source/css/_layout/tag-plugins/common.styl +51 -65
  48. package/source/css/_layout/tag-plugins/folders.styl +8 -8
  49. package/source/css/_layout/tag-plugins/folding.styl +10 -11
  50. package/source/css/_layout/tag-plugins/{split.styl → grid.styl} +4 -4
  51. package/source/css/_layout/tag-plugins/link.styl +1 -1
  52. package/source/css/_layout/tag-plugins/mark.styl +2 -2
  53. package/source/css/_layout/tag-plugins/navbar.styl +1 -1
  54. package/source/css/_layout/tag-plugins/note.styl +3 -1
  55. package/source/css/_layout/tag-plugins/poetry.styl +26 -25
  56. package/source/css/_layout/tag-plugins/quot.styl +45 -58
  57. package/source/css/_layout/tag-plugins/tag.styl +13 -0
  58. package/source/css/_layout/widgets/ghuser.styl +19 -15
  59. package/source/css/_layout/widgets/search.styl +102 -1
  60. package/source/css/_layout/widgets/toc_common.styl +1 -1
  61. package/source/css/_plugins/aplayer.styl +3 -0
  62. package/source/css/_plugins/comments/artalk.styl +4 -0
  63. package/source/css/_plugins/comments/twikoo.styl +0 -1
  64. package/source/css/_plugins/comments/utterances.styl +1 -1
  65. package/source/css/_plugins/index.styl +4 -3
  66. package/source/css/_plugins/swiper.styl +7 -4
  67. package/source/js/main.js +7 -5
  68. package/source/js/plugins/weibo.js +116 -0
  69. package/scripts/tags/about.js +0 -48
  70. package/scripts/tags/border.js +0 -35
  71. package/scripts/tags/checkbox.js +0 -38
  72. package/scripts/tags/emoji.js +0 -40
  73. package/scripts/tags/folding.js +0 -30
  74. package/scripts/tags/frame.js +0 -66
  75. package/scripts/tags/friends.js +0 -53
  76. package/scripts/tags/lib/users.js +0 -22
  77. package/scripts/tags/link.js +0 -79
  78. package/scripts/tags/mark.js +0 -23
  79. package/scripts/tags/navbar.js +0 -57
  80. package/scripts/tags/note.js +0 -37
  81. package/scripts/tags/poetry.js +0 -48
  82. package/scripts/tags/quot.js +0 -51
  83. package/scripts/tags/sites.js +0 -57
  84. package/scripts/tags/split.js +0 -49
  85. package/scripts/tags/swiper.js +0 -38
  86. package/scripts/tags/timeline.js +0 -81
  87. package/scripts/tags/toc.js +0 -72
  88. package/source/css/_plugins/search/local-search.styl +0 -87
@@ -1,46 +1,59 @@
1
- set_text_light()
2
- --text-p0: $dark-title
3
- --text-p1: mix($dark-text, $dark-background, 85)
4
- --text-p2: mix($dark-text, $dark-background, 70)
5
- --text-p3: mix($dark-text, $dark-background, 45)
6
- --text-p4: mix($dark-text, $dark-background, 35)
7
- --text-meta: mix($dark-text, $dark-background, 30)
8
- --text-code: $dark-code
1
+ $color-background-h = hue($color-background)
2
+ $color-background-s = saturation($color-background)
3
+ $color-background-l = lightness($color-background)
4
+
5
+ $color-block-h = hue($color-block)
6
+ $color-block-s = saturation($color-block)
7
+ $color-block-l = lightness($color-block)
8
+
9
+ $color-code-h = hue($color-code)
10
+ $color-code-s = saturation($color-code)
11
+ $color-code-l = lightness($color-code)
12
+
13
+ $color-text-h = hue($color-text)
14
+ $color-text-s = saturation($color-text)
15
+ $color-text-l = lightness($color-text)
16
+
9
17
  set_text_dark()
10
- --text-p0: $light-title
11
- --text-p1: $light-text
12
- --text-p2: mix($light-text, $light-background, 80)
13
- --text-p3: mix($light-text, $light-background, 60)
14
- --text-p4: mix($light-text, $light-background, 35)
15
- --text-meta: mix($light-text, $light-background, 20)
16
- --text-code: $light-code
18
+ --text-p0: hsl($color-text-h, $color-text-s, 0)
19
+ --text-p1: hsl($color-text-h, $color-text-s, $color-text-l)
20
+ --text-p2: hsl($color-text-h, $color-text-s, $color-text-l / 0.5 * 0.75)
21
+ --text-p3: hsl($color-text-h, $color-text-s, $color-text-l / 0.5 * 1.25)
22
+ --text-p4: hsl($color-text-h, $color-text-s, $color-text-l / 0.5 * 1.5)
23
+ --text-meta: hsl($color-text-h, $color-text-s, $color-text-l / 0.5 * 2)
24
+ --text-code: hsl($color-code-h, $color-code-s, $color-code-l * 1)
25
+
26
+ set_text_light()
27
+ --text-p0: hsl($color-text-h, $color-text-s, 100)
28
+ --text-p1: hsl($color-text-h, $color-text-s, 100 - $color-text-l / 0.5 * 0.5)
29
+ --text-p2: hsl($color-text-h, $color-text-s, 100 - $color-text-l / 0.5 * 0.75)
30
+ --text-p3: hsl($color-text-h, $color-text-s, 100 - $color-text-l / 0.5 * 1.2)
31
+ --text-p4: hsl($color-text-h, $color-text-s, 100 - $color-text-l / 0.5 * 1.4)
32
+ --text-meta: hsl($color-text-h, $color-text-s, 100 - $color-text-l / 0.5 * 1.75)
33
+ --text-code: hsl($color-code-h, $color-code-s, $color-code-l * 1.25)
34
+
17
35
  :root
18
- --site-bg: $light-background
19
- --card: $light-card
20
- --block: $light-block
21
- --block-border: darken($light-block, 5)
22
- --block-hover: darken($light-block, 2)
36
+ --site-bg: hsl($color-background-h, $color-background-s, $color-background-l)
37
+ --card: hsl($color-block-h, $color-block-s, 100)
38
+ --block: hsl($color-block-h, $color-block-s, 95)
39
+ --block-border: hsl($color-block-h, $color-block-s, 90)
40
+ --block-hover: hsl($color-block-h, $color-block-s, 92)
41
+ --block-lighten: hsl($color-block-h, $color-block-s, 100)
23
42
  set_text_dark()
24
- --theme-highlight: darken($color-theme, 5)
25
- --theme-bg: mix($color-theme, $light-card, 10)
43
+ --theme-bg2: $color-theme
26
44
  --theme-link: $color-link
27
45
 
28
46
  set_darkmode()
29
47
  :root
30
- --site-bg: $dark-background
31
- --card: $dark-card
32
- --block: $dark-block
33
- --block-border: lighten($dark-block, 6)
34
- --block-hover: darken($dark-block, 4)
48
+ --site-bg: hsl($color-background-h, $color-background-s * 0.5, (100 - $color-background-l) * 2 + 8)
49
+ --card: hsl($color-block-h, $color-block-s * 1.5, 24)
50
+ --block: hsl($color-block-h, $color-block-s, 16)
51
+ --block-border: hsl($color-block-h, $color-block-s, 24)
52
+ --block-hover: hsl($color-block-h, $color-block-s, 20)
53
+ --block-lighten: hsl($color-block-h, $color-block-s, 32)
35
54
  set_text_light()
36
- --theme-highlight: $color-theme
37
- --theme-bg: mix($color-theme, $dark-card, 10)
38
55
  @media screen and (max-width: $device-mobile-max)
39
- --site-bg: $dark-background-mobile
40
- --card: darken($dark-card, 6)
41
- --block: darken($dark-block, 4)
42
- --block-border: lighten($dark-block, 2)
43
- --block-hover: darken($dark-block,8)
56
+ --site-bg: black
44
57
 
45
58
  if hexo-config('style.darkmode') == 'auto'
46
59
  // 系统的dark模式
@@ -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,27 @@ 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
39
  h2:first-child
44
40
  margin-top: 0
41
+ h2
42
+ margin-bottom: 1rem
43
+ h3,h4,h5,h6
44
+ margin-bottom: .5rem
45
45
  h2,h3,h4,h5,h6
46
46
  color: var(--text-p0)
47
47
  padding-top: 1rem
48
- margin-bottom: .5rem
49
48
  line-height: 1.8
50
49
  &:hover
51
50
  a.headerlink:before
52
51
  opacity: 1
53
52
 
54
-
53
+ .md-text.content:first-child
54
+ padding-top: 0
55
55
 
56
56
  .md-text
57
57
  ul:not(:last-child),
@@ -129,7 +129,7 @@ h1.article-title
129
129
  padding: 2px 0
130
130
  text-decoration: none
131
131
  line-height: 1.2
132
- &:after
132
+ &:before
133
133
  content: ''
134
134
  position: absolute
135
135
  border-radius: 2px
@@ -143,9 +143,11 @@ h1.article-title
143
143
  &:hover
144
144
  border-bottom: none
145
145
  color: var(--theme-link)
146
- &:after
146
+ z-index 0
147
+ &:before
147
148
  height: 100%
148
149
  opacity: 0.2
150
+ z-index -1
149
151
  bottom: 0
150
152
  left: -2px
151
153
  right: -2px
@@ -9,10 +9,11 @@
9
9
  border-radius: $border-card
10
10
  overflow: hidden
11
11
  box-shadow: 0 2px 8px 0px rgba(0, 0, 0, 0.03)
12
- .page-number
12
+ .page-number
13
13
  padding: 4px 8px
14
14
  border-radius: 8px
15
15
  background: var(--block)
16
+ margin: 2px
16
17
  .extend
17
18
  text-align: center
18
19
  background-size: contain
@@ -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
@@ -17,7 +17,8 @@
17
17
  border-radius: $border-block
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
@@ -91,9 +93,9 @@
91
93
  text-decoration: underline
92
94
  &:hover
93
95
  color: $color-hover
94
- &:after
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
@@ -5,9 +5,9 @@
5
5
  nav.menu
6
6
  margin: 1rem 0
7
7
  background: var(--block)
8
+ border: 1px solid var(--block-border)
8
9
  border-radius: 6px
9
10
  display: flex
10
- padding: 1px
11
11
  flex-wrap: wrap
12
12
  &::-webkit-scrollbar
13
13
  display: none
@@ -28,7 +28,7 @@ nav.menu
28
28
  text-align: center
29
29
  &.active, &:hover
30
30
  color: var(--text-p1)
31
- background: var(--card)
31
+ background: var(--block-lighten)
32
32
  box-shadow: $boxshadow-button
33
33
 
34
34
  .l_left .menu a.nav-item
@@ -1,120 +1,106 @@
1
1
  set_text_white()
2
2
  --text-p0: white
3
3
  --text-p1: white
4
- --text-p2: #eee
4
+ --text-p2: hsl(0 0 88%)
5
5
  --text-p3: #ddd
6
6
  --text-code: white
7
- --card: $dark-card
8
- --block: $dark-block
9
- --block-border: lighten($dark-block, 6)
10
- --block-hover: darken($dark-block, 4)
11
7
  set_text_black()
12
8
  --text-p0: black
13
9
  --text-p1: #111
14
- --text-p2: #333
10
+ --text-p2: hsl(0 0 12%)
15
11
  --text-p3: #555
16
12
  --text-code: white
17
- --card: $light-card
18
- --block: $light-block
19
- --block-border: darken($light-block, 5)
20
- --block-hover: darken($light-block, 2)
13
+
14
+ set_dynamic_color($theme)
15
+ --theme: $theme
16
+ --theme-bg1: hsl(hue($theme), 90, 90)
17
+ --theme-bg2: hsl(hue($theme), 80, 95)
18
+ --theme-border: hsl(hue($theme), 50, 80)
19
+ --text-p0: hsl(hue($theme), 60, 16)
20
+ --text-p1: hsl(hue($theme), 50, 24)
21
+ --text-p2: hsl(hue($theme), 90, 24)
21
22
 
22
23
  .tag-plugin
23
24
  --theme: var(--text-p1)
24
25
  --theme-border: var(--block-border)
25
- --theme-bg: var(--block)
26
+ --theme-bg1: hsl(hue($color-theme), 90, 90)
27
+ --theme-bg2: var(--block)
28
+ &.tag
29
+ --text-p2: hsl(hue($color-theme), 90, 24)
26
30
 
27
31
  .tag-plugin[color='red']
28
- --theme: $c-red
29
- --theme-border: mix($c-red, white, 60)
30
- --theme-bg: mix($c-red, white, 15)
31
-
32
+ set_dynamic_color($c-red)
32
33
  .tag-plugin[color='orange']
33
- --theme: $c-orange
34
- --theme-border: mix($c-orange, white, 60)
35
- --theme-bg: mix($c-orange, white, 15)
36
-
34
+ set_dynamic_color($c-orange)
37
35
  .tag-plugin[color='yellow']
38
- --theme: $c-yellow
39
- --theme-border: mix($c-yellow, white, 60)
40
- --theme-bg: mix($c-yellow, white, 20)
41
-
36
+ set_dynamic_color($c-yellow)
42
37
  .tag-plugin[color='green']
43
- --theme: $c-green
44
- --theme-border: mix($c-green, white, 60)
45
- --theme-bg: mix($c-green, white, 15)
46
-
38
+ set_dynamic_color($c-green)
47
39
  .tag-plugin[color='cyan']
48
- --theme: $c-cyan
49
- --theme-border: mix($c-cyan, white, 60)
50
- --theme-bg: mix($c-cyan, white, 15)
51
-
40
+ set_dynamic_color($c-cyan)
52
41
  .tag-plugin[color='blue']
53
- --theme: $c-blue
54
- --theme-border: mix($c-blue, white, 60)
55
- --theme-bg: mix($c-blue, white, 15)
56
-
42
+ set_dynamic_color($c-blue)
57
43
  .tag-plugin[color='purple']
58
- --theme: $c-purple
59
- --theme-border: mix($c-purple, white, 60)
60
- --theme-bg: mix($c-purple, white, 15)
44
+ set_dynamic_color($c-purple)
61
45
 
62
46
  .tag-plugin[color='light']
63
- --theme-bg: white
47
+ --theme-bg1: hsl(0 0 88%)
48
+ --theme-bg2: white
49
+ set_text_black()
64
50
 
65
51
  .tag-plugin[color='dark']
66
- --theme-bg: #333
52
+ --theme-bg1: hsl(0 0 12%)
53
+ --theme-bg2: #333
67
54
  set_text_white()
68
55
 
69
56
  .tag-plugin[color='warning']
70
57
  --theme: $c-yellow
71
58
  --theme-border: #ffe659
72
- --theme-bg: #ffe659
59
+ --theme-bg2: #ffe659
73
60
  --theme-link: #ff453a
74
61
 
75
62
  .tag-plugin[color='error']
76
63
  --theme: $c-yellow
77
64
  --theme-border: #ff453a
78
- --theme-bg: #ff453a
65
+ --theme-bg2: #ff453a
79
66
  --theme-link: #ffe659
80
67
  set_text_white()
81
68
 
82
69
  set_darkmode_tags()
70
+ set_dynamic_color($theme)
71
+ --theme: $theme
72
+ --theme-bg1: hsl(hue($theme), 80, 20)
73
+ --theme-bg2: hsl(hue($theme), 16, 16)
74
+ --theme-border: hsl(hue($theme), 50, 24)
75
+ --text-p0: hsl(hue($theme), 80, 80)
76
+ --text-p1: hsl(hue($theme), 64, 80)
77
+ --text-p2: hsl(hue($theme), 80, 72)
78
+ .tag-plugin.tag
79
+ set_dynamic_color($color-theme)
83
80
  .tag-plugin[color='red']
84
- --theme-border: mix($c-red, black, 70)
85
- --theme-bg: mix($c-red, black, 35)
86
-
81
+ set_dynamic_color($c-red)
87
82
  .tag-plugin[color='orange']
88
- --theme-border: mix($c-orange, black, 70)
89
- --theme-bg: mix($c-orange, black, 35)
90
-
83
+ set_dynamic_color($c-orange)
91
84
  .tag-plugin[color='yellow']
92
- --theme-border: mix($c-yellow, black, 70)
93
- --theme-bg: mix($c-yellow, black, 30)
94
-
85
+ set_dynamic_color($c-yellow)
95
86
  .tag-plugin[color='green']
96
- --theme-border: mix($c-green, black, 70)
97
- --theme-bg: mix($c-green, black, 30)
98
-
87
+ set_dynamic_color($c-green)
99
88
  .tag-plugin[color='cyan']
100
- --theme-border: mix($c-cyan, black, 70)
101
- --theme-bg: mix($c-cyan, black, 30)
102
-
89
+ set_dynamic_color($c-cyan)
103
90
  .tag-plugin[color='blue']
104
- --theme-border: mix($c-blue, black, 70)
105
- --theme-bg: mix($c-blue, black, 35)
106
-
91
+ set_dynamic_color($c-blue)
107
92
  .tag-plugin[color='purple']
108
- --theme-border: mix($c-purple, black, 70)
109
- --theme-bg: mix($c-purple, black, 40)
110
-
93
+ set_dynamic_color($c-purple)
111
94
  .tag-plugin[color='light']
112
95
  --theme-border: white
113
- --theme-bg: #fff
96
+ --theme-bg1: hsl(0 0 88%)
97
+ --theme-bg2: #fff
98
+ set_text_black()
114
99
 
115
100
  .tag-plugin[color='dark']
116
101
  --theme-border: black
117
- --theme-bg: #111
102
+ --theme-bg1: hsl(0 0 12%)
103
+ --theme-bg2: #111
118
104
  set_text_white()
119
105
 
120
106
  .tag-plugin[color='warning'],.tag-plugin[color='light']
@@ -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
@@ -4,7 +4,7 @@ details.folding
4
4
  margin: 1rem 0
5
5
  border-radius: $border-block
6
6
  font-size: $fs-14
7
- background: var(--theme-bg)
7
+ background: var(--theme-bg2)
8
8
  border: 1px solid var(--theme-border)
9
9
  summary
10
10
  cursor: pointer
@@ -22,13 +22,13 @@ details.folding
22
22
  border-bottom: none !important
23
23
  &:hover
24
24
  color: var(--text-p0)
25
- &:after
26
- position: absolute
27
- content: '+'
28
- text-align: center
29
- top: 50%
30
- transform: translateY(-50%)
31
- right: 1rem
25
+ &:after
26
+ position: absolute
27
+ content: '+'
28
+ text-align: center
29
+ top: 50%
30
+ transform: translateY(-50%)
31
+ right: 1rem
32
32
 
33
33
 
34
34
  details.folding[open]
@@ -38,9 +38,8 @@ details.folding[open]
38
38
  border-bottom-right-radius: 0
39
39
  color: var(--text-p1)
40
40
  margin-bottom: 0
41
- &:hover
42
- &:after
43
- content: '-'
41
+ &:after
42
+ content: '-'
44
43
  >div.body
45
44
  display: flex;
46
45
  flex-direction: column;
@@ -1,11 +1,11 @@
1
- .tag-plugin.split
1
+ .tag-plugin.grid
2
2
  display: grid
3
3
  grid-gap: 16px
4
4
  grid-template-columns: repeat(auto-fill, "calc((100% - 1 * %s) / 2)" % 16px)
5
5
  >.cell
6
6
  margin: 1rem 0
7
7
  p:first-child>strong:only-child
8
- font-size: $fs-h4
8
+ font-size: 1rem
9
9
  >.cell>
10
10
  p
11
11
  line-height: 1.5
@@ -19,11 +19,11 @@
19
19
  margin-bottom: -0.25em
20
20
 
21
21
 
22
- .tag-plugin.split
22
+ .tag-plugin.grid
23
23
  @media screen and (max-width: $device-tablet)
24
24
  display: block
25
25
 
26
- .tag-plugin.split
26
+ .tag-plugin.grid
27
27
  &[bg]>.cell
28
28
  padding: 1rem
29
29
  border-radius: $border-card
@@ -69,7 +69,7 @@
69
69
  >.bottom
70
70
  margin: 0 1rem 1rem
71
71
  .title
72
- font-size: $fs-15
72
+ font-size: 1rem
73
73
  margin-bottom: 0.5rem
74
74
 
75
75
  .md-text .link-card
@@ -1,8 +1,8 @@
1
1
  .md-text .tag-plugin.mark
2
2
  padding: 0 1px
3
3
  border-radius: 2px
4
- background: var(--theme-bg)
4
+ background: var(--theme-bg2)
5
5
  border: 1px solid var(--theme-border)
6
6
  color: var(--text-p0)
7
7
  &[color=dark]
8
- border-color: var(--theme-bg)
8
+ border-color: var(--theme-bg2)
@@ -16,7 +16,7 @@
16
16
  display: none
17
17
  &:hover
18
18
  background: var(--block)
19
- &.active
19
+ &.active
20
20
  background: var(--block)
21
21
  box-shadow: none
22
22
  color: var(--text-p1)
@@ -4,13 +4,15 @@
4
4
  margin-bottom: 1rem
5
5
  padding: 0 1rem
6
6
  border-radius: $border-block
7
- background: var(--theme-bg)
7
+ background: var(--theme-bg2)
8
8
  border: 1px solid var(--theme-border)
9
9
  color: var(--text-p1)
10
10
  >.title
11
11
  font-size: $fs-15
12
12
  line-height: 1.2
13
13
  margin-top: 1rem
14
+ font-weight: 500
15
+ color: var(--text-p0)
14
16
  >.body
15
17
  &,p
16
18
  font-size: $fs-14
@@ -1,31 +1,32 @@
1
1
  .md-text .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
2
+ display: flex
3
+ flex-direction: column
4
+ align-items: center
5
+ .content
6
+ >.title
7
+ font-weight: 500
8
+ font-size: 1rem
9
+ margin-top: var(--gap-p)
10
+ >.meta
11
+ color: var(--text-p2)
12
+ font-size: $fs-12
13
+ font-weight: 500
14
+ span+span
15
+ margin-left: 4px
16
+ >.body
17
+ margin: var(--gap-p) 0
18
+ border-top: 1px dashed var(--block-border)
19
+ border-bottom: 1px dashed var(--block-border)
20
+ p
21
+ font-size: $fs-14
22
+ >.footer
23
+ font-style: italic
24
+ color: var(--text-p4)
25
+ margin: var(--gap-p) 0
26
+ font-size: $fs-12
26
27
 
27
28
  // 描边修饰
28
- .md-text .tag-plugin.poetry
29
+ .md-text .tag-plugin.poetry .content
29
30
  padding-left: 1rem
30
31
  position: relative
31
32
  &:before