hexo-theme-stellar 1.11.0 → 1.13.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 (78) hide show
  1. package/README.md +7 -7
  2. package/_config.yml +22 -37
  3. package/_data/links.yml +7 -0
  4. package/_data/widgets.yml +30 -6
  5. package/languages/zh-CN.yml +4 -4
  6. package/languages/zh-TW.yml +4 -4
  7. package/layout/_partial/head.ejs +2 -0
  8. package/layout/_partial/main/article/read_next.ejs +16 -17
  9. package/layout/_partial/main/navbar/breadcrumb.ejs +1 -1
  10. package/layout/_partial/main/navbar/list_post.ejs +57 -34
  11. package/layout/_partial/main/post_list/post_card.ejs +25 -15
  12. package/layout/_partial/main/post_list/wiki_card.ejs +1 -1
  13. package/layout/_partial/scripts/index.ejs +1 -0
  14. package/layout/_partial/sidebar/header.ejs +2 -26
  15. package/layout/_partial/sidebar/logo.ejs +2 -2
  16. package/layout/_partial/sidebar/menu.ejs +27 -0
  17. package/layout/_partial/sidebar/widgets/ghissues.ejs +45 -0
  18. package/layout/_partial/sidebar/widgets/ghrepo.ejs +3 -3
  19. package/layout/_partial/sidebar/widgets/ghuser.ejs +4 -0
  20. package/layout/_partial/sidebar/widgets/markdown.ejs +1 -1
  21. package/layout/_partial/sidebar/widgets/recent.ejs +8 -11
  22. package/layout/_partial/sidebar/widgets/{wiki_more.ejs → related.ejs} +7 -7
  23. package/layout/_partial/sidebar/widgets/tagcloud.ejs +24 -0
  24. package/layout/_partial/sidebar/widgets/timeline.ejs +27 -0
  25. package/layout/_partial/sidebar/widgets/toc.ejs +1 -5
  26. package/layout/index.ejs +1 -1
  27. package/layout/page.ejs +19 -10
  28. package/package.json +1 -1
  29. package/scripts/events/lib/config.js +1 -1
  30. package/scripts/events/lib/doc_tree.js +3 -0
  31. package/scripts/helpers/related_posts.js +11 -39
  32. package/scripts/tags/about.js +10 -7
  33. package/scripts/tags/{grid.js → border.js} +4 -4
  34. package/scripts/tags/friends.js +36 -75
  35. package/scripts/tags/link.js +11 -9
  36. package/scripts/tags/navbar.js +1 -1
  37. package/scripts/tags/sites.js +40 -79
  38. package/scripts/tags/split.js +51 -0
  39. package/scripts/tags/timeline.js +6 -4
  40. package/source/css/_common/base.styl +2 -2
  41. package/source/css/_common/blur.styl +3 -0
  42. package/source/css/_common/device.styl +2 -0
  43. package/source/css/_common/highlight.styl +1 -1
  44. package/source/css/_common/loading.styl +16 -3
  45. package/source/css/_common/title.styl +0 -13
  46. package/source/css/_custom.styl +4 -4
  47. package/source/css/_layout/list.styl +40 -12
  48. package/source/css/_layout/main.styl +1 -1
  49. package/source/css/_layout/md.styl +1 -4
  50. package/source/css/_layout/partial/navbar.styl +1 -1
  51. package/source/css/_layout/partial/related.styl +62 -93
  52. package/source/css/_layout/sidebar/footer.styl +4 -2
  53. package/source/css/_layout/sidebar/ghrepo.styl +11 -5
  54. package/source/css/_layout/sidebar/ghuser.styl +19 -1
  55. package/source/css/_layout/sidebar/sidebar.styl +11 -96
  56. package/source/css/_layout/sidebar/toc_common.styl +5 -3
  57. package/source/css/_layout/sidebar/widgets.styl +103 -0
  58. package/source/css/_layout/tag-plugins/about.styl +21 -18
  59. package/source/css/_layout/tag-plugins/common.styl +36 -31
  60. package/source/css/_layout/tag-plugins/link.styl +41 -27
  61. package/source/css/_layout/tag-plugins/navbar.styl +10 -4
  62. package/source/css/_layout/tag-plugins/quot.styl +1 -1
  63. package/source/css/_layout/tag-plugins/split.styl +32 -0
  64. package/source/css/_layout/tag-plugins/timeline.styl +40 -14
  65. package/source/css/_plugins/comments/twikoo.styl +11 -5
  66. package/source/css/_plugins/comments/waline.styl +5 -1
  67. package/source/css/_plugins/index.styl +0 -2
  68. package/source/js/main.js +15 -9
  69. package/source/js/plugins/fcircle.js +92 -0
  70. package/source/js/plugins/friends.js +3 -2
  71. package/source/js/plugins/ghinfo.js +14 -2
  72. package/source/js/plugins/linkcard.js +124 -0
  73. package/source/js/plugins/sites.js +4 -3
  74. package/source/js/plugins/timeline.js +58 -40
  75. package/layout/_partial/plugins/comments/valine/layout.ejs +0 -19
  76. package/layout/_partial/plugins/comments/valine/script.ejs +0 -48
  77. package/scripts/tags/issues.js +0 -30
  78. package/source/css/_plugins/comments/valine.styl +0 -218
@@ -2,16 +2,19 @@
2
2
  .widget-body
3
3
  a.repo
4
4
  display: block
5
- border: 1px solid var(--block-border)
5
+ padding: 0.75rem 0.5rem
6
6
  color: var(--text-p2)
7
- background: var(--block)
7
+ background: var(--card)
8
8
  border-radius: $border-block
9
- >div
10
- margin: 0.75rem 0.5rem
9
+ box-shadow: $boxshadow-card
10
+ trans2 box-shadow transform
11
+ >div+div
12
+ margin-top: 0.5rem
11
13
  span
12
14
  color: var(--text-p2)
13
15
  &:hover
14
- background: var(--block-hover)
16
+ box-shadow: $boxshadow-card-float
17
+ transform: translateY(-1px)
15
18
  a.repo
16
19
  svg
17
20
  margin-right: 4px
@@ -21,8 +24,11 @@
21
24
  .repo-name
22
25
  font-size: $fs-14
23
26
  font-weight: 700
27
+ color: var(--text-p1)
24
28
  .repo-desc
25
29
  font-size: $fs-13
30
+ margin-left: 2px
31
+ margin-right: 2px
26
32
  .grid
27
33
  font-size: $fs-13
28
34
  display: grid
@@ -6,6 +6,7 @@
6
6
  background: var(--card)
7
7
  border-radius: $border-card
8
8
  padding: 1rem
9
+ box-shadow: $boxshadow-card
9
10
 
10
11
  .widget-wrap#github-user .widget-body .avatar
11
12
  display: block
@@ -47,7 +48,24 @@
47
48
  &:hover
48
49
  background: $color-hover
49
50
 
50
-
51
+ .widget-wrap#github-user .widget-body .menu
52
+ margin-bottom: 0
53
+ background: none
54
+ a:hover
55
+ box-shadow: none
56
+ background: var(--block)
57
+ a.active
58
+ box-shadow: none
59
+ position: relative
60
+ &:after
61
+ content: ''
62
+ position: absolute
63
+ height: 3px
64
+ bottom: 0
65
+ width: 32px
66
+ left: 'calc(50% - 0.5 * %s)' % @width
67
+ border-radius: 4px
68
+ background: $color-theme
51
69
 
52
70
  .widget-wrap#github-user .widget-body .buttons
53
71
  margin: 1rem 0
@@ -3,18 +3,21 @@
3
3
  flex-direction: column
4
4
  word-break: break-all
5
5
  text-align: justify
6
- padding: var(--gap-l)
7
- padding-top: "calc(2 * %s)" % var(--gap-l)
8
- height: "calc(100vh - 3 * %s)" % var(--gap-l)
6
+ height: "calc(100vh - 1 * %s)" % var(--gap-l)
7
+ .header
8
+ margin: var(--gap-l) var(--gap-l) 0
9
+ @media screen and (min-width: $device-mobile-max)
10
+ >.widgets:first-child>.widget-wrap:first-child
11
+ margin-top: "calc(2 * %s)" % var(--gap-l)
9
12
  @media screen and (max-width: $device-mobile-max)
10
- padding-top: "calc(1 * %s)" % var(--gap-l)
11
- height: "calc(100% - 2 * %s)" % var(--gap-l)
13
+ height: 100vh
14
+
12
15
 
13
16
  .l_left[layout=wiki]
14
17
  padding-bottom: 0
15
- height: "calc(100vh - 2 * %s)" % var(--gap-l)
18
+ height: 100vh
16
19
  @media screen and (max-width: $device-mobile-max)
17
- height: "calc(100% - 1 * %s)" % var(--gap-l)
20
+ height: 100vh
18
21
  .widgets >:last-child
19
22
  margin-bottom: 6rem
20
23
 
@@ -134,7 +137,7 @@ nav.menu
134
137
  font-size: $fs-14
135
138
  font-weight: 500
136
139
  overflow: hidden
137
- padding: 0.375rem 0.75rem
140
+ padding: 0.375rem 0.5rem
138
141
  color: var(--text-p3)
139
142
  text-align: center
140
143
  &.active, &:hover
@@ -145,91 +148,3 @@ nav.menu
145
148
  .l_left .menu a.nav-item
146
149
  flex-grow: 1
147
150
 
148
- .l_left .widgets
149
- overflow: scroll
150
- flex-grow: 1
151
- scrollbar-width: none
152
- scrollbar(0, 0)
153
- z-index: 1
154
- .widget-wrap
155
- margin: 1rem 0 3rem 0
156
- .widget-header
157
- display: flex
158
- justify-content: space-between
159
- align-items: center
160
- font-weight: 500
161
- position: sticky
162
- position: -webkit-sticky
163
- top: -2px
164
- background: var(--site-bg)
165
- padding-top: 2px
166
- z-index 1
167
- line-height: 2
168
- color: var(--text-p4)
169
- font-size: $fs-14
170
- &:empty
171
- display: none
172
- .cap-action
173
- hover-block 4px 4px
174
- line-height: 0
175
- color: var(--text-meta)
176
- trans2: color background
177
- .icon
178
- fill: var(--text-meta)
179
- &:hover
180
- color: $color-hover
181
- .icon
182
- fill: $color-hover
183
-
184
- .widget-body
185
- margin: 0.5rem 0
186
- color: var(--text-p1)
187
- p
188
- margin-top: .5em
189
- margin-bottom: .5em
190
- line-height: 1.5
191
- .widget-header+.widget-body
192
- margin-top: 0
193
-
194
- .widget-wrap .widget-body
195
- .more-item
196
- margin: .5rem 0
197
- .cap
198
- margin-bottom: .25rem
199
- .widget-wrap#recent .widget-body
200
- a
201
- line-height: 1.2
202
- font-weight: 500
203
- color: var(--text-p2)
204
- font-size: $fs-13
205
- &:hover
206
- color: $color-hover
207
- .widget-wrap#related .widget-body
208
- >a
209
- padding 0.5rem
210
- display: block
211
- line-height: 1.2
212
- color: var(--text-p2)
213
- font-weight: 500
214
- border: 1px solid var(--block-border)
215
- border-radius: $border-block
216
- margin: 4px 0
217
- background: var(--block)
218
- div.cap
219
- margin-bottom: 0.25rem
220
- color: var(--text-p4)
221
- display: flex
222
- justify-content: space-between
223
- &:hover
224
- background: var(--block-hover)
225
- &.wiki
226
- font-weight: 700
227
- div.excerpt
228
- margin-top: .5rem
229
- color: var(--text-p3)
230
- font-size: $fs-12
231
- font-weight: 400
232
- display: -webkit-box
233
- -webkit-box-orient: vertical
234
- overflow: hidden
235
- -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,103 @@
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
+
@@ -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,27 +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
43
- color: var(--text-p1)
44
+ &:first-child
45
+ margin-top: 2.5rem
46
+ p+.tag-plugin.navbar .cap
47
+ margin-top: 1rem
44
48
  .about-header+.about-body
45
- margin-top: 1.5rem
49
+ margin-top: 2rem
46
50
 
47
51
  @media screen and (max-width: $device-mobile)
48
52
  .tag-plugin.about
49
- padding: 1.5rem 1rem
53
+ padding: 2rem 1rem
50
54
  .about-header
51
- margin: 2.5rem 0 3rem
52
55
  p
53
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()
@@ -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)
@@ -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
@@ -0,0 +1,32 @@
1
+ .tag-plugin.split
2
+ display: grid
3
+ grid-gap: 16px
4
+ grid-template-columns: repeat(auto-fill, "calc((100% - 1 * %s) / 2)" % 16px)
5
+ >.cell
6
+ margin: 1rem 0
7
+ >.cell>
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
+ @media screen and (max-width: $device-tablet)
22
+ display: block
23
+
24
+ .tag-plugin.split
25
+ &[bg]>.cell
26
+ padding: 1rem
27
+ border-radius: $border-card
28
+ &[bg='block']>.cell
29
+ background: var(--block)
30
+ &[bg='card']>.cell
31
+ background: var(--card)
32
+ box-shadow: $boxshadow-card