hexo-theme-stellar 1.10.0 → 1.12.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 (73) hide show
  1. package/_config.yml +39 -56
  2. package/_data/widgets.yml +70 -0
  3. package/languages/en.yml +0 -1
  4. package/languages/zh-CN.yml +4 -5
  5. package/languages/zh-TW.yml +4 -5
  6. package/layout/_partial/main/article/read_next.ejs +16 -17
  7. package/layout/_partial/main/navbar/breadcrumb.ejs +1 -1
  8. package/layout/_partial/main/navbar/list_post.ejs +2 -2
  9. package/layout/_partial/main/post_list/post_card.ejs +21 -15
  10. package/layout/_partial/main/post_list/wiki_card.ejs +1 -1
  11. package/layout/_partial/sidebar/header.ejs +2 -26
  12. package/layout/_partial/sidebar/index.ejs +6 -6
  13. package/layout/_partial/sidebar/logo.ejs +3 -3
  14. package/layout/_partial/sidebar/menu.ejs +27 -0
  15. package/layout/_partial/sidebar/widgets/ghissues.ejs +46 -0
  16. package/layout/_partial/sidebar/widgets/ghrepo.ejs +53 -0
  17. package/layout/_partial/sidebar/widgets/ghuser.ejs +9 -11
  18. package/layout/_partial/sidebar/widgets/markdown.ejs +1 -1
  19. package/layout/_partial/sidebar/widgets/recent.ejs +8 -11
  20. package/layout/_partial/sidebar/widgets/{wiki_more.ejs → related.ejs} +7 -7
  21. package/layout/_partial/sidebar/widgets/tagcloud.ejs +24 -0
  22. package/layout/_partial/sidebar/widgets/timeline.ejs +27 -0
  23. package/layout/_partial/sidebar/widgets/toc.ejs +2 -6
  24. package/layout/index.ejs +1 -1
  25. package/package.json +1 -1
  26. package/scripts/events/lib/config.js +26 -10
  27. package/scripts/events/lib/doc_tree.js +3 -0
  28. package/scripts/helpers/related_posts.js +11 -39
  29. package/scripts/tags/about.js +10 -7
  30. package/scripts/tags/{grid.js → border.js} +4 -4
  31. package/scripts/tags/folders.js +55 -0
  32. package/scripts/tags/link.js +11 -9
  33. package/scripts/tags/navbar.js +1 -1
  34. package/scripts/tags/sites.js +1 -1
  35. package/scripts/tags/split.js +51 -0
  36. package/scripts/tags/timeline.js +4 -2
  37. package/source/css/_common/base.styl +5 -2
  38. package/source/css/_common/blur.styl +3 -0
  39. package/source/css/_common/device.styl +2 -0
  40. package/source/css/_common/highlight.styl +1 -1
  41. package/source/css/_common/loading.styl +16 -3
  42. package/source/css/_common/title.styl +0 -13
  43. package/source/css/_custom.styl +23 -26
  44. package/source/css/_defines/theme.styl +12 -12
  45. package/source/css/_layout/list.styl +40 -9
  46. package/source/css/_layout/md.styl +2 -2
  47. package/source/css/_layout/partial/related.styl +62 -93
  48. package/source/css/_layout/sidebar/footer.styl +4 -2
  49. package/source/css/_layout/sidebar/ghrepo.styl +36 -0
  50. package/source/css/_layout/sidebar/ghuser.styl +19 -1
  51. package/source/css/_layout/sidebar/sidebar.styl +4 -91
  52. package/source/css/_layout/sidebar/toc_common.styl +5 -3
  53. package/source/css/_layout/sidebar/widgets.styl +104 -0
  54. package/source/css/_layout/tag-plugins/about.styl +21 -17
  55. package/source/css/_layout/tag-plugins/common.styl +36 -31
  56. package/source/css/_layout/tag-plugins/folders.styl +62 -0
  57. package/source/css/_layout/tag-plugins/link.styl +41 -27
  58. package/source/css/_layout/tag-plugins/navbar.styl +10 -4
  59. package/source/css/_layout/tag-plugins/poetry.styl +1 -1
  60. package/source/css/_layout/tag-plugins/quot.styl +8 -7
  61. package/source/css/_layout/tag-plugins/split.styl +28 -0
  62. package/source/css/_layout/tag-plugins/timeline.styl +69 -41
  63. package/source/css/_plugins/comments/twikoo.styl +12 -6
  64. package/source/css/_plugins/comments/valine.styl +4 -0
  65. package/source/css/_plugins/comments/waline.styl +2 -2
  66. package/source/js/main.js +14 -8
  67. package/source/js/plugins/friends.js +3 -2
  68. package/source/js/plugins/ghinfo.js +14 -2
  69. package/source/js/plugins/linkcard.js +124 -0
  70. package/source/js/plugins/sites.js +4 -3
  71. package/source/js/plugins/timeline.js +60 -33
  72. package/layout/_partial/sidebar/widgets/repo_info.ejs +0 -91
  73. package/source/css/_layout/sidebar/repo_info.styl +0 -31
@@ -3,12 +3,14 @@
3
3
  flex-direction: column
4
4
  word-break: break-all
5
5
  text-align: justify
6
- padding: var(--gap-l)
6
+ padding: var(--gap-l) 0
7
7
  padding-top: "calc(2 * %s)" % var(--gap-l)
8
8
  height: "calc(100vh - 3 * %s)" % var(--gap-l)
9
9
  @media screen and (max-width: $device-mobile-max)
10
10
  padding-top: "calc(1 * %s)" % var(--gap-l)
11
11
  height: "calc(100% - 2 * %s)" % var(--gap-l)
12
+ .header
13
+ margin: 0 var(--gap-l)
12
14
 
13
15
  .l_left[layout=wiki]
14
16
  padding-bottom: 0
@@ -75,7 +77,6 @@
75
77
  font-weight: 900
76
78
  color: inherit
77
79
  line-height: 1.2
78
- font-family: $ff-logo
79
80
  display: block
80
81
  position: relative
81
82
  .main
@@ -135,7 +136,7 @@ nav.menu
135
136
  font-size: $fs-14
136
137
  font-weight: 500
137
138
  overflow: hidden
138
- padding: 0.375rem 0.75rem
139
+ padding: 0.375rem 0.5rem
139
140
  color: var(--text-p3)
140
141
  text-align: center
141
142
  &.active, &:hover
@@ -146,91 +147,3 @@ nav.menu
146
147
  .l_left .menu a.nav-item
147
148
  flex-grow: 1
148
149
 
149
- .l_left .widgets
150
- overflow: scroll
151
- flex-grow: 1
152
- scrollbar-width: none
153
- scrollbar(0, 0)
154
- z-index: 1
155
- .widget-wrap
156
- margin: 1rem 0 3rem 0
157
- .widget-header
158
- display: flex
159
- justify-content: space-between
160
- align-items: center
161
- font-weight: 500
162
- position: sticky
163
- position: -webkit-sticky
164
- top: -2px
165
- background: var(--site-bg)
166
- padding-top: 2px
167
- z-index 1
168
- line-height: 2
169
- color: var(--text-p4)
170
- font-size: $fs-14
171
- &:empty
172
- display: none
173
- .cap-action
174
- hover-block 4px 4px
175
- line-height: 0
176
- color: var(--text-meta)
177
- trans2: color background
178
- .icon
179
- fill: var(--text-meta)
180
- &:hover
181
- color: $color-hover
182
- .icon
183
- fill: $color-hover
184
-
185
- .widget-body
186
- margin: 0.5rem 0
187
- color: var(--text-p1)
188
- p
189
- margin-top: .5em
190
- margin-bottom: .5em
191
- line-height: 1.5
192
- .widget-header+.widget-body
193
- margin-top: 0
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
209
- >a
210
- padding 0.5rem
211
- display: block
212
- line-height: 1.2
213
- color: var(--text-p2)
214
- font-weight: 500
215
- border: 1px solid var(--block-border)
216
- border-radius: $border-block
217
- margin: 4px 0
218
- background: var(--block)
219
- div.cap
220
- margin-bottom: 0.25rem
221
- color: var(--text-p4)
222
- display: flex
223
- justify-content: space-between
224
- &:hover
225
- background: var(--block-hover)
226
- &.wiki
227
- font-weight: 700
228
- div.excerpt
229
- margin-top: .5rem
230
- color: var(--text-p3)
231
- font-size: $fs-12
232
- font-weight: 400
233
- display: -webkit-box
234
- -webkit-box-orient: vertical
235
- overflow: hidden
236
- -webkit-line-clamp: 5
@@ -1,8 +1,10 @@
1
- .widget-wrap#toc .widget-header
2
- line-height: 2.4
1
+ .widget-wrap.single#toc .widget-header
2
+ font-weight: 500
3
+ font-size: $fs-12
4
+ >span
5
+ margin: 0.5rem 0
3
6
 
4
7
  #toc .widget-body
5
- line-height: 1.2
6
8
  margin-top: 0
7
9
  ul ul, ul ol
8
10
  padding-left: 0
@@ -0,0 +1,104 @@
1
+ .widgets .loading-wrap
2
+ margin: 0.5rem 0
3
+
4
+ .l_left .widgets
5
+ overflow: scroll
6
+ flex-grow: 1
7
+ scrollbar-width: none
8
+ scrollbar(0, 0)
9
+ z-index: 1
10
+ line-height: 1.2
11
+ .widget-wrap
12
+ margin: 1rem var(--gap-l) 3rem var(--gap-l)
13
+ .widget-header
14
+ display: flex
15
+ justify-content: space-between
16
+ align-items: center
17
+ font-weight: 500
18
+ position: sticky
19
+ top: -2px
20
+ background: var(--site-bg)
21
+ padding-top: 2px
22
+ z-index 1
23
+ .item
24
+ display: block
25
+ >span
26
+ margin: 0.25rem 0
27
+ text-align: left
28
+ &:empty
29
+ display: none
30
+ .cap-action
31
+ hover-block 4px 4px
32
+ line-height: 0
33
+ color: var(--text-meta)
34
+ trans2: color background
35
+ .icon
36
+ fill: var(--text-meta)
37
+ &:hover
38
+ color: $color-hover
39
+ .icon
40
+ fill: $color-hover
41
+
42
+ .widget-body
43
+ margin: 0.5rem 0
44
+ color: var(--text-p1)
45
+ p
46
+ margin-top: .5em
47
+ margin-bottom: .5em
48
+ line-height: 1.5
49
+ .widget-header+.widget-body
50
+ margin-top: 0
51
+
52
+
53
+
54
+ .l_left .widgets
55
+ .widget-wrap#recent .widget-body
56
+ display: flex
57
+ flex-direction: column
58
+ align-items: flex-start
59
+ margin-top: 0.25rem
60
+ a
61
+ line-height: 1.2
62
+ font-size: $fs-13
63
+ margin: 0.25rem 0
64
+ padding: 2px 0
65
+ .title
66
+ font-size: $fs-13
67
+ color: var(--text-p2)
68
+ &:hover
69
+ color: $color-hover
70
+ .widget-wrap#related .widget-body a
71
+ margin-top: 0.5rem
72
+ margin-bottom: 1rem
73
+ .title
74
+ font-weight: 700
75
+ font-size: $fs-14
76
+ .excerpt
77
+ -webkit-line-clamp: 3
78
+
79
+ .widget-wrap#tagcloud .widget-body
80
+ margin-top: 0.25rem
81
+ a
82
+ word-break: break-word
83
+ color: var(--text-p2)
84
+ line-height: 1.5
85
+ &:hover
86
+ color: $color-hover
87
+
88
+ .widget-wrap#timeline .widget-body
89
+ margin-top: 0.5rem
90
+ .tag-plugin.timeline .timenode
91
+ .header
92
+ margin-bottom: 0.5rem
93
+ txt-ellipsis()
94
+ .user-info
95
+ background: var(--block)
96
+ &:hover
97
+ background: $color-hover
98
+ color: var(--card)
99
+ &:before
100
+ display: none
101
+ &+.timenode
102
+ margin-top: 0.75rem
103
+ .body
104
+ max-height: 40vh
@@ -2,11 +2,25 @@
2
2
  background: var(--block)
3
3
  border-radius: $border-card
4
4
  padding: 2rem
5
+ position: relative
6
+ .nav-back
7
+ display: none
8
+ position: absolute
9
+ line-height: 1
10
+ overflow: hidden
11
+ left: 0.75rem
12
+ top: 0.75rem
13
+ align-items: center
14
+ @media screen and (max-width: $device-mobile-max)
15
+ display: flex
16
+ svg
17
+ width: 1rem
18
+ height: 1rem
5
19
  .about-header
6
20
  display flex
7
21
  justify-content: center
8
22
  flex-wrap: wrap
9
- margin: 1.5rem 0 3rem
23
+ margin: 1.5rem 0
10
24
  img
11
25
  object-fit: contain
12
26
  >img
@@ -27,26 +41,16 @@
27
41
  .about-body
28
42
  >p
29
43
  line-height: 1.5
30
- .tag-plugin.navbar:last-child
31
- text-align: center
32
- nav.cap
33
- margin-top: 1rem
34
- background: var(--card)
35
- box-shadow: $boxshadow-button
36
- a
37
- color: var(--text-p2)
38
- &:hover
39
- background: var(--block)
40
- &.active
41
- background: var(--block)
42
- box-shadow: none
44
+ &:first-child
45
+ margin-top: 2.5rem
46
+ p+.tag-plugin.navbar .cap
47
+ margin-top: 1rem
43
48
  .about-header+.about-body
44
- margin-top: 1.5rem
49
+ margin-top: 2rem
45
50
 
46
51
  @media screen and (max-width: $device-mobile)
47
52
  .tag-plugin.about
48
- padding: 1.5rem 1rem
53
+ padding: 2rem 1rem
49
54
  .about-header
50
- margin: 2.5rem 0 3rem
51
55
  p
52
56
  width 100%
@@ -47,43 +47,48 @@
47
47
  --theme-bg: #444
48
48
  color: var(--card) !important
49
49
 
50
- if hexo-config('style.darkmode') == 'auto'
51
- @media (prefers-color-scheme: dark)
52
- .tag-plugin[color='red']
53
- --theme-border: mix($c-red, $dark-card, 80)
54
- --theme-bg: mix($c-red, $dark-card, 10)
50
+ set_darkmode_tags()
51
+ .tag-plugin[color='red']
52
+ --theme-border: mix($c-red, $dark-card, 80)
53
+ --theme-bg: mix($c-red, $dark-card, 10)
54
+
55
+ .tag-plugin[color='orange']
56
+ --theme-border: mix($c-orange, $dark-card, 80)
57
+ --theme-bg: mix($c-orange, $dark-card, 10)
55
58
 
56
- .tag-plugin[color='orange']
57
- --theme-border: mix($c-orange, $dark-card, 80)
58
- --theme-bg: mix($c-orange, $dark-card, 10)
59
+ .tag-plugin[color='yellow']
60
+ --theme-border: mix($c-yellow, $dark-card, 80)
61
+ --theme-bg: mix($c-yellow, $dark-card, 10)
59
62
 
60
- .tag-plugin[color='yellow']
61
- --theme-border: mix($c-yellow, $dark-card, 80)
62
- --theme-bg: mix($c-yellow, $dark-card, 10)
63
+ .tag-plugin[color='green']
64
+ --theme-border: mix($c-green, $dark-card, 80)
65
+ --theme-bg: mix($c-green, $dark-card, 10)
63
66
 
64
- .tag-plugin[color='green']
65
- --theme-border: mix($c-green, $dark-card, 80)
66
- --theme-bg: mix($c-green, $dark-card, 10)
67
+ .tag-plugin[color='cyan']
68
+ --theme-border: mix($c-cyan, $dark-card, 80)
69
+ --theme-bg: mix($c-cyan, $dark-card, 10)
67
70
 
68
- .tag-plugin[color='cyan']
69
- --theme-border: mix($c-cyan, $dark-card, 80)
70
- --theme-bg: mix($c-cyan, $dark-card, 10)
71
+ .tag-plugin[color='blue']
72
+ --theme-border: mix($c-blue, $dark-card, 80)
73
+ --theme-bg: mix($c-blue, $dark-card, 10)
71
74
 
72
- .tag-plugin[color='blue']
73
- --theme-border: mix($c-blue, $dark-card, 80)
74
- --theme-bg: mix($c-blue, $dark-card, 10)
75
+ .tag-plugin[color='purple']
76
+ --theme-border: mix($c-purple, $dark-card, 80)
77
+ --theme-bg: mix($c-purple, $dark-card, 10)
75
78
 
76
- .tag-plugin[color='purple']
77
- --theme-border: mix($c-purple, $dark-card, 80)
78
- --theme-bg: mix($c-purple, $dark-card, 10)
79
+ .tag-plugin[color='light']
80
+ --theme-border: white
81
+ --theme-bg: #ddd
82
+ color: var(--card) !important
79
83
 
84
+ .tag-plugin[color='dark']
85
+ --theme-border: black
86
+ --theme-bg: #222
87
+ color: var(--text-p1) !important
80
88
 
81
- .tag-plugin[color='light']
82
- --theme-border: white
83
- --theme-bg: #ddd
84
- color: var(--card) !important
89
+ if hexo-config('style.darkmode') == 'auto'
90
+ @media (prefers-color-scheme: dark)
91
+ set_darkmode_tags()
85
92
 
86
- .tag-plugin[color='dark']
87
- --theme-border: black
88
- --theme-bg: #222
89
- color: var(--text-p1) !important
93
+ if hexo-config('style.darkmode') == 'always'
94
+ set_darkmode_tags()
@@ -0,0 +1,62 @@
1
+ .tag-plugin.folders
2
+ display: block
3
+ margin: 1rem 0
4
+ border-radius: $border-block
5
+ font-size: $fs-14
6
+ border: 1px solid var(--theme-border)
7
+ overflow: hidden
8
+ .folder
9
+ display: block
10
+ font-size: $fs-14
11
+ background: var(--block)
12
+ &:last-child summary
13
+ border-bottom: none
14
+ summary
15
+ display: block
16
+ cursor: pointer
17
+ color: var(--text-p2)
18
+ font-weight: 500
19
+ position: relative
20
+ line-height: 1.2
21
+ outline: none
22
+ padding: 0.75rem 1rem
23
+ border-bottom: 1px solid var(--theme-border)
24
+ &:last-child
25
+ border-bottom: none
26
+ >
27
+ p,h1,h2,h3,h4,h5,h6
28
+ display: inline
29
+ border-bottom: none !important
30
+ &:hover
31
+ color: var(--text-p0)
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
40
+
41
+
42
+ .tag-plugin.folders details[open]
43
+ background: none
44
+ &:last-child
45
+ summary
46
+ border-bottom: 1px solid var(--theme-border)
47
+ .body
48
+ border-bottom: none
49
+ >summary
50
+ color: var(--text-p1)
51
+ background: var(--block-hover)
52
+ &:hover:after
53
+ content: '-'
54
+
55
+ >div.body
56
+ padding: 1rem
57
+ border-bottom: 1px solid var(--theme-border)
58
+ font-size: $fs-15
59
+ >:first-child
60
+ margin-top: 0
61
+ >:last-child
62
+ margin-bottom: 0
@@ -14,8 +14,8 @@
14
14
  cursor: pointer
15
15
  min-width 280px
16
16
  max-width: 100%
17
- width: 320px
18
- @media screen and (max-width: $device-mobile-375)
17
+ width: 350px
18
+ @media screen and (max-width: $device-mobile-425)
19
19
  width: 100%
20
20
  box-shadow: $boxshadow-card
21
21
  border-radius: $border-block
@@ -35,54 +35,68 @@
35
35
  text-align: justify
36
36
 
37
37
  .md .link-card
38
- line-height: 1.2
39
- > div
40
- pointer-events: none
38
+ >.left
39
+ overflow: hidden
40
+ margin: 0.75rem 0 0.75rem 0.75rem
41
+ .title
42
+ font-size: $fs-14
43
+ span+span
44
+ margin-top: 0.25rem
45
+ >.right
46
+ width: 2.75rem
47
+ height: 2.75rem
48
+ margin: 0.75rem
49
+ overflow: hidden
50
+ flex-shrink: 0
41
51
  >.top
42
52
  display: flex
43
- margin: .75rem 1rem .25rem
53
+ margin: .75rem 0.75rem .25rem
44
54
  overflow: hidden
45
55
  max-width: 'calc(100% - %s * 2)' % 1rem
46
56
  align-items: center
47
57
  .img
48
58
  line-height: 0
49
59
  height: 16px
50
- width: 20px
51
- margin-right: 4px
60
+ width: 16px
61
+ border-radius: 16px
62
+ margin-right: 8px
52
63
  background-repeat: no-repeat
53
64
  background-size: contain
54
65
  background-position: left center
55
- .desc
56
- opacity: .75
57
- line-height: 1.5
58
66
  span
59
67
  txt-ellipsis()
60
68
  max-width: 100%
61
69
  >.bottom
62
- margin: 0 1rem .75rem 1rem
70
+ margin: 0 0.75rem 0.75rem 0.75rem
63
71
  .title
64
72
  font-size: $fs-15
65
73
  margin: 4px 0 8px 0
66
- >.right
67
- width: 2.5rem
68
- height: 2.5rem
69
- margin: .75rem
74
+
75
+ .md .link-card
76
+ line-height: 1.2
77
+ .title
78
+ display: -webkit-box
79
+ -webkit-box-orient: vertical
70
80
  overflow: hidden
81
+ -webkit-line-clamp: 2
82
+ .cap
71
83
  flex-shrink: 0
72
- >.left
84
+ color: var(--text-p3)
85
+ .link
86
+ line-height: 1.5
87
+ opacity: .75
88
+ txt-ellipsis()
89
+ .desc
90
+ display: -webkit-box
91
+ -webkit-box-orient: vertical
73
92
  overflow: hidden
74
- margin: .5rem 0 .5rem 1rem
75
- .title
76
- font-size: $fs-14
77
- margin: 1px 0 5px 0
78
- .desc
79
- flex-shrink: 0
80
- txt-ellipsis()
93
+ -webkit-line-clamp: 3
94
+ .img
95
+ border-radius: 4px
96
+
81
97
  span
82
98
  margin: 0
83
99
  display: block
84
- span.title
100
+ .title
85
101
  font-weight: 500
86
102
  color: var(--text-p1)
87
- span.desc
88
- color: var(--text-p3)
@@ -1,16 +1,22 @@
1
1
  .md .tag-plugin.navbar
2
+ text-align: center
2
3
  nav.cap
3
4
  margin: 0
4
5
  padding: 1px
5
- background: var(--block)
6
+ background: var(--card)
7
+ box-shadow: $boxshadow-button
6
8
  border-radius: 6px
7
9
  display: inline-flex
8
10
  max-width: 100%
9
11
  a
10
12
  margin: 1px
11
13
  padding: 0.25em 0.75rem
14
+ color: var(--text-p2)
12
15
  &:after
13
16
  display: none
14
- &:hover,&.active
15
- background: var(--card)
16
- color: var(--text-p1)
17
+ &:hover
18
+ background: var(--block)
19
+ &.active
20
+ background: var(--block)
21
+ box-shadow: none
22
+ color: var(--text-p1)
@@ -47,4 +47,4 @@
47
47
  top: 6px
48
48
  bottom: 6px
49
49
  border-radius: 4px
50
- background: $color-highlight
50
+ background: $color-accent
@@ -3,7 +3,7 @@
3
3
  position: relative
4
4
  align-items: center
5
5
  .md .tag-plugin.quot:not(span)
6
- display: flex
6
+ display: inline-flex
7
7
  align-self: center
8
8
  border-bottom: none
9
9
  font-weight: 700
@@ -41,13 +41,13 @@ article.md.content
41
41
  &:before
42
42
  top: 8px
43
43
  left: 0
44
- border-top: 6px solid $color-highlight
45
- border-left: 6px solid $color-highlight
44
+ border-top: 6px solid $color-accent
45
+ border-left: 6px solid $color-accent
46
46
  &:after
47
47
  right: 0
48
48
  bottom: 0
49
- border-right: 6px solid $color-highlight
50
- border-bottom: 6px solid $color-highlight
49
+ border-right: 6px solid $color-accent
50
+ border-bottom: 6px solid $color-accent
51
51
  article.md.content h1.quot[type=text]
52
52
  &:before,&:after
53
53
  width: 12px
@@ -59,9 +59,10 @@ article.md.content h1.quot[type=text]
59
59
  .icon
60
60
  height: 1.5em
61
61
  display: inline-block
62
- color: $color-highlight
62
+ color: $color-accent
63
63
  border-radius: 0
64
64
  &.prefix
65
+ margin-left: -0.5rem
65
66
  margin-right: .5rem
66
67
  &.suffix
67
68
  margin-left: .5rem
@@ -70,7 +71,7 @@ article.md.content h1.quot[type=text]
70
71
  .md span.tag-plugin.quot
71
72
  font-weight: 500
72
73
  &:before,&:after
73
- color: $color-highlight
74
+ color: $color-accent
74
75
  font-weight: 900
75
76
  &:before
76
77
  content: "「"
@@ -0,0 +1,28 @@
1
+ .md .tag-plugin.split
2
+ margin: 0.5rem 0
3
+ .tag-plugin.split
4
+ display: grid
5
+ grid-gap: 16px
6
+ grid-template-columns: repeat(auto-fill, "calc((100% - 1 * %s) / 2)" % 16px)
7
+ >div>
8
+ p
9
+ line-height: 1.5
10
+ :first-child
11
+ margin-top: 0
12
+ :last-child
13
+ margin-bottom: 0
14
+ p:first-child
15
+ margin-top: -0.25em
16
+ p:last-child
17
+ margin-bottom: -0.25em
18
+
19
+
20
+ .tag-plugin.split
21
+ &[bg]>div
22
+ padding: 1rem
23
+ border-radius: $border-card
24
+ &[bg='block']>div
25
+ background: var(--block)
26
+ &[bg='card']>div
27
+ background: var(--card)
28
+ box-shadow: $boxshadow-card