hexo-theme-stellar 1.16.2 → 1.17.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 (74) hide show
  1. package/_config.yml +13 -5
  2. package/_data/widgets.yml +4 -1
  3. package/languages/en.yml +5 -0
  4. package/languages/zh-CN.yml +5 -0
  5. package/languages/zh-TW.yml +5 -0
  6. package/layout/404.ejs +1 -1
  7. package/layout/_partial/cover/wiki_cover.ejs +1 -1
  8. package/layout/_partial/main/article/article_footer.ejs +2 -2
  9. package/layout/_partial/main/post_list/paginator.ejs +5 -9
  10. package/layout/_partial/main/post_list/post_card.ejs +1 -1
  11. package/layout/_partial/main/post_list/wiki_card.ejs +1 -1
  12. package/layout/_partial/plugins/comments/layout.ejs +1 -1
  13. package/layout/_partial/scripts/index.ejs +9 -0
  14. package/layout/_partial/sidebar/index.ejs +3 -3
  15. package/layout/_partial/{sidebar/widgets → widgets}/ghissues.ejs +2 -2
  16. package/layout/_partial/{sidebar/widgets → widgets}/ghrepo.ejs +2 -2
  17. package/layout/_partial/{sidebar/widgets → widgets}/ghuser.ejs +3 -3
  18. package/layout/_partial/{sidebar/widgets → widgets}/markdown.ejs +2 -2
  19. package/layout/_partial/{sidebar/widgets → widgets}/recent.ejs +5 -6
  20. package/layout/_partial/{sidebar/widgets → widgets}/related.ejs +2 -2
  21. package/layout/_partial/widgets/search.ejs +31 -0
  22. package/layout/_partial/{sidebar/widgets → widgets}/tagcloud.ejs +2 -2
  23. package/layout/_partial/{sidebar/widgets → widgets}/timeline.ejs +2 -2
  24. package/layout/_partial/{sidebar/widgets → widgets}/toc.ejs +2 -2
  25. package/layout/page.ejs +1 -1
  26. package/layout/post.ejs +1 -1
  27. package/layout/wiki.ejs +1 -1
  28. package/package.json +1 -1
  29. package/scripts/generators/search.js +103 -0
  30. package/source/css/_common/base.styl +1 -1
  31. package/source/css/_common/highlight.styl +5 -5
  32. package/source/css/_common/span.styl +1 -0
  33. package/source/css/_layout/index.styl +1 -0
  34. package/source/css/_layout/list.styl +1 -1
  35. package/source/css/_layout/md.styl +12 -13
  36. package/source/css/_layout/pages/error.styl +2 -2
  37. package/source/css/_layout/partial/article-footer.styl +4 -4
  38. package/source/css/_layout/partial/paginator.styl +16 -5
  39. package/source/css/_layout/partial/related.styl +6 -14
  40. package/source/css/_layout/sidebar/footer.styl +1 -3
  41. package/source/css/_layout/sidebar/header.styl +112 -0
  42. package/source/css/_layout/sidebar/sidebar.styl +3 -115
  43. package/source/css/_layout/tag-plugins/about.styl +1 -1
  44. package/source/css/_layout/tag-plugins/checkbox.styl +1 -1
  45. package/source/css/_layout/tag-plugins/copy.styl +1 -1
  46. package/source/css/_layout/tag-plugins/emoji.styl +1 -1
  47. package/source/css/_layout/tag-plugins/frame.styl +5 -5
  48. package/source/css/_layout/tag-plugins/inline-labels.styl +1 -1
  49. package/source/css/_layout/tag-plugins/link.styl +6 -6
  50. package/source/css/_layout/tag-plugins/mark.styl +3 -4
  51. package/source/css/_layout/tag-plugins/navbar.styl +1 -1
  52. package/source/css/_layout/tag-plugins/note.styl +7 -7
  53. package/source/css/_layout/tag-plugins/poetry.styl +2 -2
  54. package/source/css/_layout/tag-plugins/quot.styl +7 -7
  55. package/source/css/_layout/tag-plugins/tabs.styl +1 -1
  56. package/source/css/_layout/tag-plugins/timeline.styl +3 -3
  57. package/source/css/_layout/widgets/ghrepo.styl +34 -0
  58. package/source/css/_layout/widgets/ghuser.styl +95 -0
  59. package/source/css/_layout/widgets/recent.styl +15 -0
  60. package/source/css/_layout/widgets/related.styl +8 -0
  61. package/source/css/_layout/widgets/search.styl +3 -0
  62. package/source/css/_layout/widgets/tagcloud.styl +8 -0
  63. package/source/css/_layout/widgets/timeline.styl +17 -0
  64. package/source/css/_layout/{sidebar → widgets}/toc_blog.styl +1 -1
  65. package/source/css/_layout/{sidebar → widgets}/toc_common.styl +7 -4
  66. package/source/css/_layout/{sidebar → widgets}/toc_wiki.styl +3 -7
  67. package/source/css/_layout/widgets/widgets.styl +60 -0
  68. package/source/css/_plugins/index.styl +4 -0
  69. package/source/css/_plugins/search/local-search.styl +89 -0
  70. package/source/js/main.js +42 -6
  71. package/source/js/search/local-search.js +153 -0
  72. package/source/css/_layout/sidebar/ghrepo.styl +0 -36
  73. package/source/css/_layout/sidebar/ghuser.styl +0 -98
  74. package/source/css/_layout/sidebar/widgets.styl +0 -106
@@ -62,7 +62,7 @@
62
62
 
63
63
 
64
64
  // common article
65
- .post-list article.md
65
+ .post-list .md-text
66
66
  padding: 1rem
67
67
  @media screen and (max-width: $device-mobile)
68
68
  padding: 0.5rem 1rem
@@ -1,4 +1,4 @@
1
- article.md
1
+ .md-text
2
2
  max-width: 100%
3
3
  padding: 0 1rem
4
4
  margin-top: 1rem
@@ -8,7 +8,7 @@ article.md
8
8
  line-height: 1.7
9
9
  word-break: break-word
10
10
 
11
- article.md.excerpt
11
+ .md-text.excerpt
12
12
  p
13
13
  font-size: $fs-14
14
14
  margin: 1em 0
@@ -19,7 +19,7 @@ h1.article-title
19
19
  line-height: 1.2
20
20
  color: var(--text-p0)
21
21
 
22
- article.md.content
22
+ .md-text.content
23
23
  position: relative
24
24
  margin-bottom: 2rem
25
25
  display: flex
@@ -53,7 +53,7 @@ article.md.content
53
53
 
54
54
 
55
55
 
56
- article.md
56
+ .md-text
57
57
  ul:not(:last-child),
58
58
  ol:not(:last-child)
59
59
  padding-bottom: .5rem
@@ -65,7 +65,7 @@ article.md
65
65
  p,blockquote,.tag-plugin,ul,ol,.highlight,table
66
66
  *
67
67
  --gap-p: .5rem
68
- p,>ul:not(:last-child),>ol:not(:last-child)
68
+ p,ul,ol
69
69
  margin-top: 'calc(%s - 4px)' % var(--gap-p)
70
70
  margin-bottom: 'calc(%s - 4px)' % var(--gap-p)
71
71
  .tag-plugin,iframe
@@ -75,7 +75,7 @@ article.md
75
75
  display: block
76
76
 
77
77
  // titles
78
- article.md.content
78
+ .md-text.content
79
79
  a.headerlink:before
80
80
  opacity: 0
81
81
  content: '#'
@@ -101,35 +101,34 @@ article.md.content
101
101
  h5+h6
102
102
  margin-top: -0.5rem
103
103
 
104
- article.md p
104
+ .md-text p
105
105
  font-size: $fs-p
106
106
 
107
- article.md pre
107
+ .md-text pre
108
108
  -webkit-font-smoothing: auto
109
109
  -moz-osx-font-smoothing: auto
110
110
 
111
- article.md
111
+ .md-text
112
112
  .center
113
113
  align-self: center
114
114
 
115
115
  // div
116
- article.md>div
116
+ .md-text>div
117
117
  margin: var(--gap-p) 0
118
118
 
119
119
 
120
- article.md img
120
+ .md-text img
121
121
  border-radius: $border-image
122
122
  margin: auto
123
123
  display: block
124
124
 
125
- article.md
125
+ .md-text
126
126
  p:not([class]), li:not([class])
127
127
  a:not([class])
128
128
  position: relative
129
129
  padding: 2px 0
130
130
  text-decoration: none
131
131
  line-height: 1.2
132
- word-break: keep-all
133
132
  &:after
134
133
  content: ''
135
134
  position: absolute
@@ -1,4 +1,4 @@
1
- article.md.error-page
1
+ .md-text.error-page
2
2
  text-align: center
3
3
  margin-top: 2rem
4
4
  img#error
@@ -21,5 +21,5 @@ article.md.error-page
21
21
  border: 2px solid black
22
22
 
23
23
  @media screen and (max-width: $device-tablet)
24
- article.md.error-page
24
+ .md-text.error-page
25
25
  margin-top: 4rem
@@ -1,4 +1,4 @@
1
- .md .article-footer
1
+ .md-text .article-footer
2
2
  margin-top: 4rem
3
3
  padding: 1rem
4
4
  background: var(--block)
@@ -32,11 +32,11 @@
32
32
  padding-top: 1rem
33
33
  border-top: 1px solid var(--block-border)
34
34
 
35
- .md .article-footer .social-wrap
35
+ .md-text .article-footer .social-wrap
36
36
  grid-gap: 0.5rem 1rem
37
37
  margin: 0
38
38
 
39
- .md .article-footer .qrcode
39
+ .md-text .article-footer .qrcode
40
40
  width: 128px
41
41
  padding: 4px
42
42
  background: white
@@ -47,7 +47,7 @@
47
47
  img
48
48
  object-fit: contain
49
49
 
50
- .md .article-footer .qrcode.display
50
+ .md-text .article-footer .qrcode.display
51
51
  margin: 2rem auto 1rem
52
52
  height: 128px !important
53
53
  visibility: visible !important
@@ -9,17 +9,27 @@
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
- &:hover
13
- .paginator
12
+ .page-number
13
+ padding: 4px 8px
14
+ border-radius: 8px
15
+ background: var(--block)
16
+ .extend
14
17
  text-align: center
18
+ background-size: contain
19
+ width: 1rem
20
+ height: 1rem
21
+ background-origin: content-box
22
+ background-clip: content-box
15
23
  &.next
16
24
  border-left: 1px dashed var(--block-border)
25
+ background-image: url('https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/arrow/064b95430caf4.svg')
17
26
  &.prev
18
27
  border-right: 1px dashed var(--block-border)
28
+ background-image: url('https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/arrow/f049bbd4e88ec.svg')
19
29
  .current
20
30
  font-family: $ff-code
21
31
  color: var(--text-p3)
22
- a.paginator
32
+ .extend
23
33
  color: var(--text-p3)
24
34
  padding: 1rem
25
35
  line-height: 0
@@ -28,6 +38,7 @@
28
38
  height: 1rem
29
39
  &.disable
30
40
  pointer-events: none
31
- opacity: 0.25
32
- a.paginator:hover
41
+ span.extend
42
+ opacity: 0.25
43
+ a.extend:hover
33
44
  filter: unset
@@ -31,19 +31,11 @@
31
31
  color: var(--text-p1)
32
32
  font-weight: 500
33
33
  font-size: 1rem
34
- trans1 color
34
+ trans2 color border
35
35
  position: relative
36
- padding-bottom: 4px
37
- &:after
38
- content: ''
39
- position: absolute
40
- left: 0
41
- width: 0
42
- height: 2px
43
- bottom: 0
44
- border-radius: 2px
45
- background: $color-hover
46
- trans1 width
36
+ padding-bottom: 2px
37
+ border-bottom: 1px dashed var(--text-meta)
38
+ line-height: 1.6
47
39
  .excerpt
48
40
  color: var(--text-p3)
49
41
  font-size: $fs-12
@@ -55,8 +47,7 @@
55
47
  &:hover
56
48
  .title
57
49
  color: $color-hover
58
- &:after
59
- width: 100%
50
+ border-bottom: 1px solid $color-hover
60
51
 
61
52
 
62
53
  .related-wrap#read-next
@@ -94,6 +85,7 @@
94
85
  div.cmt-title
95
86
  p
96
87
  margin: 0
88
+ font-size: inherit
97
89
  a
98
90
  color: inherit
99
91
  text-decoration: underline
@@ -1,7 +1,5 @@
1
1
  .l_left>.footer
2
- margin: 0.5rem var(--gap-l) 0
3
- @media screen and (max-width: $device-tablet)
4
- margin-bottom: 1rem
2
+ margin: 0.5rem var(--gap-l) 1rem
5
3
 
6
4
  .social-wrap
7
5
  display: grid
@@ -0,0 +1,112 @@
1
+ .l_left
2
+ nav.menu
3
+ margin-bottom: 0
4
+
5
+ nav.menu
6
+ margin: 1rem 0
7
+ background: var(--block)
8
+ border-radius: 6px
9
+ display: flex
10
+ padding: 1px
11
+ flex-wrap: wrap
12
+ &::-webkit-scrollbar
13
+ display: none
14
+ &::-webkit-scrollbar-track-piece
15
+ background: transparent
16
+ &::-webkit-scrollbar-thumb
17
+ display: none
18
+ a.nav-item
19
+ text-overflow: ellipsis
20
+ word-break: keep-all
21
+ margin: 1px
22
+ border-radius: 4px
23
+ font-size: $fs-14
24
+ font-weight: 500
25
+ overflow: hidden
26
+ padding: 0.375rem 0.5rem
27
+ color: var(--text-p3)
28
+ text-align: center
29
+ &.active, &:hover
30
+ color: var(--text-p1)
31
+ background: var(--card)
32
+ box-shadow: $boxshadow-button
33
+
34
+ .l_left .menu a.nav-item
35
+ flex-grow: 1
36
+
37
+
38
+ .logo-wrap
39
+ display: flex
40
+ align-items: center
41
+ overflow: hidden
42
+ a
43
+ color: inherit
44
+ display: flex
45
+ align-items: center
46
+ a.avatar
47
+ display: block
48
+ position: relative
49
+ width: 50px
50
+ height: 50px
51
+ flex-shrink: 0
52
+ border-radius: 50px
53
+ overflow: hidden
54
+ margin-right: 1rem
55
+ div.bg
56
+ width: 100%
57
+ height: 100%
58
+ background-size: cover
59
+ img.avatar
60
+ margin: 2px
61
+ object-fit: cover
62
+ width: "calc(100% - 2 * %s)" % @margin
63
+ height: "calc(100% - 2 * %s)" % @margin
64
+ border-radius: @width
65
+ if hexo-config('style.animated_avatar.animate')
66
+ div.bg
67
+ trans1: opacity
68
+ position: absolute
69
+ opacity: 0 !important
70
+ z-index: -1
71
+ @keyframes spin
72
+ from
73
+ transform:rotate(0deg)
74
+ to
75
+ transform:rotate(360deg)
76
+ if hexo-config('style.animated_avatar.animate') == 'always'
77
+ div.bg
78
+ opacity: 1 !important
79
+ animation: spin infinite 4s
80
+ animation-timing-function: linear
81
+ if hexo-config('style.animated_avatar.animate') == 'auto'
82
+ &:hover
83
+ div.bg
84
+ opacity: 1 !important
85
+ animation: spin infinite 4s
86
+ animation-timing-function: linear
87
+
88
+ a.title
89
+ font-size: 1.75rem
90
+ font-weight: 900
91
+ color: inherit
92
+ line-height: 1.2
93
+ display: block
94
+ position: relative
95
+ .main
96
+ color: var(--text-p0)
97
+ .sub
98
+ color: var(--text-p1)
99
+ trans2 opacity transform
100
+ white-space: nowrap
101
+ .hover
102
+ position: absolute
103
+ bottom: 0
104
+ transform: translateY(8px)
105
+ overflow: visible
106
+ &:hover
107
+ .normal
108
+ opacity: 0
109
+ transform: translateY(-8px)
110
+ .hover
111
+ transform: translateY(0)
112
+ opacity: 1 !important
@@ -3,12 +3,12 @@
3
3
  flex-direction: column
4
4
  word-break: break-all
5
5
  text-align: justify
6
- height: "calc(100vh - 1 * %s)" % var(--gap-l)
6
+ height: 100vh
7
7
  .header
8
8
  margin: var(--gap-l) var(--gap-l) 0
9
9
  margin-top: "calc(2 * %s)" % var(--gap-l)
10
10
  @media screen and (min-width: $device-mobile-max)
11
- >.widgets:first-child>.widget-wrap:first-child
11
+ >.widgets:first-child>.widget-wrapper:first-child
12
12
  margin-top: "calc(2 * %s)" % var(--gap-l)
13
13
  @media screen and (max-width: $device-mobile-max)
14
14
  height: 100vh
@@ -23,84 +23,7 @@
23
23
  margin-bottom: 6rem
24
24
 
25
25
 
26
- .logo-wrap
27
- display: flex
28
- align-items: center
29
- overflow: hidden
30
- a
31
- color: inherit
32
- display: flex
33
- align-items: center
34
- a.avatar
35
- display: block
36
- position: relative
37
- width: 50px
38
- height: 50px
39
- flex-shrink: 0
40
- border-radius: 50px
41
- overflow: hidden
42
- margin-right: 1rem
43
- div.bg
44
- width: 100%
45
- height: 100%
46
- background-size: cover
47
- img.avatar
48
- margin: 2px
49
- object-fit: cover
50
- width: "calc(100% - 2 * %s)" % @margin
51
- height: "calc(100% - 2 * %s)" % @margin
52
- border-radius: @width
53
- if hexo-config('style.animated_avatar.animate')
54
- div.bg
55
- trans1: opacity
56
- position: absolute
57
- opacity: 0 !important
58
- z-index: -1
59
- @keyframes spin
60
- from
61
- transform:rotate(0deg)
62
- to
63
- transform:rotate(360deg)
64
- if hexo-config('style.animated_avatar.animate') == 'always'
65
- div.bg
66
- opacity: 1 !important
67
- animation: spin infinite 4s
68
- animation-timing-function: linear
69
- if hexo-config('style.animated_avatar.animate') == 'auto'
70
- &:hover
71
- div.bg
72
- opacity: 1 !important
73
- animation: spin infinite 4s
74
- animation-timing-function: linear
75
-
76
- a.title
77
- font-size: 1.75rem
78
- font-weight: 900
79
- color: inherit
80
- line-height: 1.2
81
- display: block
82
- position: relative
83
- .main
84
- color: var(--text-p0)
85
- .sub
86
- color: var(--text-p1)
87
- trans2 opacity transform
88
- white-space: nowrap
89
- .hover
90
- position: absolute
91
- bottom: 0
92
- transform: translateY(8px)
93
- overflow: visible
94
- &:hover
95
- .normal
96
- opacity: 0
97
- transform: translateY(-8px)
98
- .hover
99
- transform: translateY(0)
100
- opacity: 1 !important
101
-
102
-
103
- .l_left .widgets .widget-wrap.logo-wrap.wiki
26
+ .l_left .widgets .widget-wrapper.logo-wrap.wiki
104
27
  margin-bottom: 1.5rem
105
28
  flex-direction: column
106
29
  align-items: flex-start
@@ -113,38 +36,3 @@
113
36
  color: $color-hover
114
37
  filter: unset !important
115
38
 
116
- .l_left nav.menu
117
- margin-bottom: 1.5rem
118
-
119
- nav.menu
120
- margin: 1rem 0
121
- background: var(--block)
122
- border-radius: 6px
123
- display: flex
124
- padding: 1px
125
- flex-wrap: wrap
126
- &::-webkit-scrollbar
127
- display: none
128
- &::-webkit-scrollbar-track-piece
129
- background: transparent
130
- &::-webkit-scrollbar-thumb
131
- display: none
132
- a.nav-item
133
- text-overflow: ellipsis
134
- word-break: keep-all
135
- margin: 1px
136
- border-radius: 4px
137
- font-size: $fs-14
138
- font-weight: 500
139
- overflow: hidden
140
- padding: 0.375rem 0.5rem
141
- color: var(--text-p3)
142
- text-align: center
143
- &.active, &:hover
144
- color: var(--text-p1)
145
- background: var(--card)
146
- box-shadow: $boxshadow-button
147
-
148
- .l_left .menu a.nav-item
149
- flex-grow: 1
150
-
@@ -17,7 +17,7 @@
17
17
  width: 1rem
18
18
  height: 1rem
19
19
  .about-header
20
- display flex
20
+ display: flex
21
21
  justify-content: center
22
22
  flex-wrap: wrap
23
23
  margin: 1.5rem 0
@@ -1,4 +1,4 @@
1
- .md .checkbox
1
+ .md-text .checkbox
2
2
  display: flex
3
3
  font-size: $fs-15
4
4
  line-height: 1.2
@@ -1,4 +1,4 @@
1
- .md .tag-plugin.copy
1
+ .md-text .tag-plugin.copy
2
2
  display: flex
3
3
  justify-content: space-between
4
4
  box-sizing: border-box
@@ -1,4 +1,4 @@
1
- .md .tag-plugin.emoji
1
+ .md-text .tag-plugin.emoji
2
2
  display: inline-block
3
3
  margin: -4px 2px 0
4
4
  vertical-align: middle
@@ -1,4 +1,4 @@
1
- .md .frame-wrap
1
+ .md-text .frame-wrap
2
2
  position: relative
3
3
  overflow: hidden
4
4
  margin: 0 auto
@@ -8,7 +8,7 @@
8
8
  align-items: center
9
9
  img,video
10
10
  border-radius: 0
11
- .md .frame-wrap .frame
11
+ .md-text .frame-wrap .frame
12
12
  z-index: 1
13
13
  display: block
14
14
  position: absolute;
@@ -16,11 +16,11 @@
16
16
  background-repeat: no-repeat;
17
17
  overflow: hidden;
18
18
 
19
- .md .tag-plugin.img-wrap .frame-wrap
19
+ .md-text .tag-plugin.img-wrap .frame-wrap
20
20
  &[focus]
21
21
  height: auto
22
22
 
23
- .md .frame-wrap
23
+ .md-text .frame-wrap
24
24
  &#iphone11
25
25
  img,video
26
26
  width: 287px
@@ -44,7 +44,7 @@
44
44
  bottom: 0
45
45
 
46
46
  @media screen and (max-width: $device-mobile)
47
- .md .frame-wrap
47
+ .md-text .frame-wrap
48
48
  &#iphone11
49
49
  img,video
50
50
  width: 208px
@@ -1,4 +1,4 @@
1
- .md
1
+ .md-text
2
2
  u
3
3
  text-decoration: none
4
4
  border-bottom: 2px solid $color-hover
@@ -1,4 +1,4 @@
1
- .md .tag-plugin.link
1
+ .md-text .tag-plugin.link
2
2
  max-width: 100%
3
3
  margin: 1em auto
4
4
  display: flex
@@ -6,7 +6,7 @@
6
6
  @media screen and (max-width: $device-mobile-375)
7
7
  width: 100%
8
8
 
9
- .md .link-card
9
+ .md-text .link-card
10
10
  background: var(--card)
11
11
  display: inline-flex
12
12
  justify-content: space-between
@@ -24,17 +24,17 @@
24
24
  box-shadow: $boxshadow-card-float
25
25
  transform: translateY(-1px)
26
26
 
27
- .md .link-card.plain
27
+ .md-text .link-card.plain
28
28
  flex-direction: row
29
29
  align-items: center
30
30
 
31
- .md .link-card.rich
31
+ .md-text .link-card.rich
32
32
  flex-direction: column
33
33
  align-items: stretch
34
34
  width: 460px
35
35
  text-align: justify
36
36
 
37
- .md .link-card
37
+ .md-text .link-card
38
38
  >.left
39
39
  overflow: hidden
40
40
  margin: 0.75rem 0 0.75rem 0.75rem
@@ -72,7 +72,7 @@
72
72
  font-size: $fs-15
73
73
  margin-bottom: 0.5rem
74
74
 
75
- .md .link-card
75
+ .md-text .link-card
76
76
  line-height: 1.2
77
77
  .title
78
78
  display: -webkit-box
@@ -1,7 +1,6 @@
1
- .md .tag-plugin.mark
2
- margin: 0 1px
3
- padding: 1px 2px
4
- border-radius: 4px
1
+ .md-text .tag-plugin.mark
2
+ padding: 0 1px
3
+ border-radius: 2px
5
4
  background: var(--theme-bg)
6
5
  border: 1px solid var(--theme-border)
7
6
  color: var(--text-p0)
@@ -1,4 +1,4 @@
1
- .md .tag-plugin.navbar
1
+ .md-text .tag-plugin.navbar
2
2
  text-align: center
3
3
  nav.cap
4
4
  margin: 0
@@ -1,4 +1,4 @@
1
- .md .tag-plugin.note
1
+ .md-text .tag-plugin.note
2
2
  position: relative
3
3
  margin-top: 1rem
4
4
  margin-bottom: 1rem
@@ -21,13 +21,13 @@
21
21
  margin: 1rem 0
22
22
 
23
23
 
24
- .md .tag-plugin.note[color]
24
+ .md-text .tag-plugin.note[color]
25
25
  code
26
26
  background: none
27
- .md .tag-plugin.note:not([color])
27
+ .md-text .tag-plugin.note:not([color])
28
28
  .highlight
29
29
  background: var(--block-hover)
30
- .md .tag-plugin.note[child=codeblock]
30
+ .md-text .tag-plugin.note[child=codeblock]
31
31
  padding: 0
32
32
  >.title, >.body:only-child
33
33
  margin-top: 0
@@ -38,13 +38,13 @@
38
38
  border: none
39
39
  background: none
40
40
 
41
- .md .tag-plugin.note[child=tabs]
41
+ .md-text .tag-plugin.note[child=tabs]
42
42
  >.body
43
43
  margin: 0
44
44
  >.tabs
45
45
  margin-top: .5rem
46
46
 
47
- .md .tag-plugin.note[child=iframe]
47
+ .md-text .tag-plugin.note[child=iframe]
48
48
  overflow: hidden
49
49
  padding: 0
50
50
  >.body
@@ -52,5 +52,5 @@
52
52
  iframe
53
53
  margin: 0
54
54
 
55
- .md .tag-plugin .tag-plugin.note
55
+ .md-text .tag-plugin .tag-plugin.note
56
56
  --gap-p: 1rem
@@ -1,4 +1,4 @@
1
- .md .tag-plugin.poetry
1
+ .md-text .tag-plugin.poetry
2
2
  align-self: center
3
3
  &[align=center]
4
4
  align-items: center
@@ -25,7 +25,7 @@
25
25
  font-size: $fs-12
26
26
 
27
27
  // 描边修饰
28
- .md .tag-plugin.poetry
28
+ .md-text .tag-plugin.poetry
29
29
  padding-left: 1rem
30
30
  position: relative
31
31
  &:before