hexo-theme-stellar 1.26.3 → 1.26.5

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/_config.yml +24 -14
  2. package/_data/icons.yml +13 -5
  3. package/layout/_partial/cover/index.ejs +3 -3
  4. package/layout/_partial/main/article/article_footer.ejs +1 -1
  5. package/layout/_partial/main/footer.ejs +2 -2
  6. package/layout/_partial/main/navbar/article_banner.ejs +54 -0
  7. package/layout/_partial/main/navbar/article_top_area.ejs +2 -2
  8. package/layout/_partial/main/navbar/author_banner.ejs +1 -1
  9. package/layout/_partial/main/navbar/dateinfo.ejs +12 -10
  10. package/layout/_partial/main/navbar/nav_tabs_blog.ejs +2 -2
  11. package/layout/_partial/main/navbar/nav_tabs_wiki.ejs +2 -2
  12. package/layout/_partial/main/post_list/post_card.ejs +4 -3
  13. package/layout/_partial/sidebar/index.ejs +1 -1
  14. package/layout/_partial/sidebar/menu.ejs +1 -7
  15. package/layout/_partial/widgets/related.ejs +1 -1
  16. package/layout/categories.ejs +1 -1
  17. package/layout/layout.ejs +8 -0
  18. package/layout/page.ejs +1 -11
  19. package/package.json +1 -1
  20. package/scripts/events/lib/utils.js +16 -0
  21. package/scripts/helpers/icon.js +2 -13
  22. package/scripts/tags/index.js +1 -0
  23. package/scripts/tags/lib/icon.js +27 -0
  24. package/scripts/tags/lib/link.js +2 -2
  25. package/scripts/tags/lib/navbar.js +1 -1
  26. package/scripts/tags/lib/note.js +1 -1
  27. package/scripts/tags/lib/quot.js +15 -12
  28. package/source/css/_common/base.styl +3 -2
  29. package/source/css/_common/button.styl +31 -29
  30. package/source/css/_common/cap.styl +1 -1
  31. package/source/css/_common/device.styl +16 -5
  32. package/source/css/_common/html.styl +1 -0
  33. package/source/css/_common/input.styl +1 -1
  34. package/source/css/_common/title.styl +17 -15
  35. package/source/css/_common/toast.styl +1 -0
  36. package/source/css/_custom.styl +18 -10
  37. package/source/css/_defines/const.styl +2 -1
  38. package/source/css/_defines/theme.styl +6 -4
  39. package/source/css/_layout/layout.styl +3 -2
  40. package/source/css/_layout/list.styl +34 -23
  41. package/source/css/_layout/main.styl +19 -3
  42. package/source/css/_layout/md.styl +48 -92
  43. package/source/css/_layout/pages/archives.styl +12 -4
  44. package/source/css/_layout/partial/article-banner.styl +58 -0
  45. package/source/css/_layout/partial/article-footer.styl +16 -4
  46. package/source/css/_layout/partial/bread-nav.styl +22 -18
  47. package/source/css/_layout/partial/cover.styl +2 -11
  48. package/source/css/_layout/partial/footer.styl +2 -2
  49. package/source/css/_layout/partial/navbar.styl +22 -12
  50. package/source/css/_layout/partial/related.styl +7 -5
  51. package/source/css/_layout/sidebar/footer.styl +1 -0
  52. package/source/css/_layout/sidebar/logo.styl +1 -1
  53. package/source/css/_layout/sidebar/search.styl +18 -15
  54. package/source/css/_layout/sidebar/sidebar.styl +13 -10
  55. package/source/css/_layout/tag-plugins/banner.styl +41 -27
  56. package/source/css/_layout/tag-plugins/common.styl +8 -4
  57. package/source/css/_layout/tag-plugins/copy.styl +2 -1
  58. package/source/css/_layout/tag-plugins/folders.styl +4 -3
  59. package/source/css/_layout/tag-plugins/folding.styl +4 -2
  60. package/source/css/_layout/tag-plugins/hashtag.styl +2 -1
  61. package/source/css/_layout/tag-plugins/icon.styl +12 -0
  62. package/source/css/_layout/tag-plugins/image.styl +1 -1
  63. package/source/css/_layout/tag-plugins/link.styl +1 -1
  64. package/source/css/_layout/tag-plugins/mark.styl +1 -1
  65. package/source/css/_layout/tag-plugins/navbar.styl +9 -22
  66. package/source/css/_layout/tag-plugins/note.styl +5 -3
  67. package/source/css/_layout/tag-plugins/poetry.styl +5 -5
  68. package/source/css/_layout/tag-plugins/quot.styl +24 -24
  69. package/source/css/_layout/tag-plugins/tabs.styl +4 -3
  70. package/source/css/_layout/tag-plugins/timeline.styl +24 -10
  71. package/source/css/_layout/widgets/ghuser.styl +2 -2
  72. package/source/css/_layout/widgets/markdown.styl +2 -2
  73. package/source/css/_layout/widgets/timeline.styl +11 -8
  74. package/source/css/_layout/widgets/toc_common.styl +1 -5
  75. package/source/css/_layout/widgets/toc_wiki.styl +3 -3
  76. package/source/css/_layout/widgets/widgets.styl +3 -3
  77. package/source/css/_plugins/swiper.styl +1 -1
  78. package/source/css/_plugins/tianli_gpt.styl +2 -2
@@ -1,4 +1,4 @@
1
- .tag-plugin.banner
1
+ .banner
2
2
  border-radius: $border-card
3
3
  position: relative
4
4
  overflow: hidden
@@ -24,24 +24,34 @@
24
24
  align-items: center
25
25
  line-height: 1
26
26
  margin: 1rem
27
- .navbar
27
+ .tag-plugin.navbar
28
28
  margin: 0
29
- nav.cap
30
- border-radius: 6px
31
- background: rgba(black, 0.2)
29
+ border-radius: 6px
30
+ padding: 2px
31
+ background: rgba(black, 0.2)
32
+ overflow: hidden
33
+ &:after
34
+ content: none
32
35
  .link
36
+ margin: 0
37
+ border-radius: 4px
33
38
  color: rgba(white, 0.8)
34
39
  padding: 2px 6px
35
- border-radius: 4px
36
40
  background: none
37
41
  line-height: 1.5
38
42
  font-size: $fs-15
39
- &.active
43
+ text-shadow: 0 0 1px rgba(0,0,0,0.12)
44
+ &+.link
45
+ margin-left: 2px
46
+ &:after
47
+ content: none
48
+ &:hover
40
49
  color: white
41
50
  background: rgba(white, 0.25)
42
- &:hover
51
+ &.active
43
52
  color: white
44
- background: rgba(black, 0.5) !important
53
+ background: rgba(white, 0.25)
54
+
45
55
  .back
46
56
  background: none
47
57
  padding: 0
@@ -82,25 +92,26 @@
82
92
  padding: 1rem
83
93
  width: 100%
84
94
  box-sizing: border-box
85
- .title
86
- font-size: 1.5rem
87
- font-weight: 600
88
- .avatar+.text-area
89
- margin-left: 0.75rem
90
- .text-area .text
91
- line-height: 1.2
92
- margin-top: 0.25rem
93
- margin-bottom: 0.25rem
94
- .avatar+.text-area .title
95
- font-size: 1.2rem
96
- .subtitle
97
- font-size: $fs-14
95
+ .title
96
+ font-size: 1.5rem
97
+ font-weight: 600
98
+ .avatar+.text-area
99
+ margin-left: 0.75rem
100
+ .text-area .text
101
+ line-height: 1.2
102
+ margin-top: 0.25rem
103
+ margin-bottom: 0.25rem
104
+ .avatar+.text-area .title
105
+ font-size: 1.2rem
106
+ .subtitle
107
+ font-size: $fs-14
98
108
  .content:only-child
99
109
  color: var(--text-p1)
100
110
  .bg+.content
101
111
  color: white
102
112
  .avatar
103
113
  border: 2px solid white
114
+ margin: 0
104
115
  .bottom
105
116
  background-image: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0.2))
106
117
  text-shadow: 0 0 1px rgba(0,0,0,0.12)
@@ -114,10 +125,13 @@
114
125
  .tag-plugin.banner .navbar a.active
115
126
  blur-effect()
116
127
 
117
-
118
- .tag-plugin.banner.author
119
- @media screen and (min-width: $device-mobile-max)
128
+ @media screen and (min-width: $device-mobile-max)
129
+ .banner.author.top
120
130
  margin-left: var(--gap-l)
121
131
  margin-right: var(--gap-l)
122
- @media screen and (max-width: $device-mobile-max)
123
- border-radius: 0
132
+
133
+ @media screen and (max-width: $device-mobile-max)
134
+ .banner.top
135
+ border-radius: 0
136
+ .md-text.content:first-child .tag-plugin.banner:first-child
137
+ margin-top: 1rem
@@ -1,11 +1,11 @@
1
1
  set_text_white()
2
- --text-p0: white
2
+ --text: white
3
3
  --text-p1: white
4
4
  --text-p2: hsl(0 0 88%)
5
5
  --text-p3: #ddd
6
6
  --text-code: white
7
7
  set_text_black()
8
- --text-p0: black
8
+ --text: black
9
9
  --text-p1: #111
10
10
  --text-p2: hsl(0 0 12%)
11
11
  --text-p3: #555
@@ -16,7 +16,7 @@ set_dynamic_color($theme)
16
16
  --theme-border: hsl(hue($theme), 50, 80)
17
17
  --theme-block: hsl(hue($theme), 90, 92)
18
18
  --theme-codeblock: hsl(hue($theme), 50, 95)
19
- --text-p0: hsl(hue($theme), 55, 16)
19
+ --text: hsl(hue($theme), 55, 16)
20
20
  --text-p1: hsl(hue($theme), 55, 20)
21
21
  --text-p2: hsl(hue($theme), 90, 24)
22
22
 
@@ -40,6 +40,10 @@ set_dynamic_color($theme)
40
40
  set_dynamic_color($c-blue)
41
41
  .colorful[color='purple']
42
42
  set_dynamic_color($c-purple)
43
+ .colorful[color='theme']
44
+ set_dynamic_color($color-theme)
45
+ .colorful[color='accent']
46
+ set_dynamic_color($color-accent)
43
47
 
44
48
  .colorful[color='light']
45
49
  --theme-block: white
@@ -68,7 +72,7 @@ set_darkmode_tags()
68
72
  --theme-border: hsl(hue($theme), 50, 24)
69
73
  --theme-block: hsl(hue($theme), 16, 16)
70
74
  --theme-codeblock: hsl(hue($theme), 12, 18)
71
- --text-p0: hsl(hue($theme), 100, 85)
75
+ --text: hsl(hue($theme), 100, 85)
72
76
  --text-p1: hsl(hue($theme), 50, 75)
73
77
  --text-p2: hsl(hue($theme), 80, 72)
74
78
  .tag-plugin.tag
@@ -7,6 +7,7 @@
7
7
  border: 1px solid var(--block-border)
8
8
  overflow: hidden
9
9
  width: 100%
10
+ min-width: 200px
10
11
  span
11
12
  line-height: 3
12
13
  padding: 0 1rem
@@ -14,7 +15,7 @@
14
15
  border-right: 1px solid var(--block-border)
15
16
  color: var(--text-p3)
16
17
  font-family: $ff-code
17
- font-size: $fs-12
18
+ font-size: $fs-13
18
19
  font-weight: 700
19
20
  flex-shrink: 0
20
21
  input.copy-area
@@ -1,6 +1,7 @@
1
1
  .tag-plugin.folders
2
2
  margin: var(--gap-p) 0
3
- font-size: $fs-14
3
+ --fsp: $fsp2
4
+ font-size: var(--fsp)
4
5
  border-top: 1px solid var(--block-border)
5
6
  overflow: hidden
6
7
  .folder
@@ -24,7 +25,7 @@
24
25
  display: inline
25
26
  border-bottom: none !important
26
27
  &:hover
27
- color: var(--text-p0)
28
+ color: var(--text)
28
29
  &:after
29
30
  position: absolute
30
31
  content: '+'
@@ -42,7 +43,7 @@
42
43
  content: '-'
43
44
 
44
45
  >div.body
45
- font-size: $fs-15
46
+ --fsp: $fsp1
46
47
  >:first-child
47
48
  margin-top: 1rem
48
49
  >:last-child
@@ -11,7 +11,8 @@ details.folding
11
11
  margin: -1rem
12
12
  color: var(--text-p2)
13
13
  font-weight: 500
14
- font-size: $fs-14
14
+ --fsp: $fsp2
15
+ font-size: var(--fsp)
15
16
  position: relative
16
17
  line-height: 1.2
17
18
  outline: none
@@ -22,7 +23,7 @@ details.folding
22
23
  display: inline
23
24
  border-bottom: none !important
24
25
  &:hover
25
- color: var(--text-p0)
26
+ color: var(--text)
26
27
  &:after
27
28
  position: absolute
28
29
  content: '+'
@@ -44,6 +45,7 @@ details.folding[open]
44
45
  padding: 0 1rem 1rem
45
46
  margin: 0 -1rem -1rem
46
47
  color: var(--text-p1)
48
+ --fsp: $fsp1
47
49
  >:first-child
48
50
  margin-top: 1rem
49
51
  >:last-child
@@ -6,7 +6,8 @@
6
6
  margin: 2px 0
7
7
  display: inline-flex
8
8
  align-items: center
9
- font-size: $fs-13
9
+ --fsp: $fsp2
10
+ font-size: var(--fsp)
10
11
  font-weight: 500
11
12
  trans2 background color
12
13
  span
@@ -0,0 +1,12 @@
1
+ span.tag-plugin.icon
2
+ display: inline-block
3
+ margin: -4px 1px 0
4
+ vertical-align: middle
5
+ svg,img
6
+ display: block
7
+ height: 1.5em
8
+ width: auto
9
+ svg
10
+ color: var(--theme)
11
+ img
12
+ object-fit: contain
@@ -31,7 +31,7 @@
31
31
  padding: 0.5rem 0
32
32
  .image-caption
33
33
  display: inline-block
34
- font-size: $fs-12
34
+ font-size: $fs-13
35
35
  color: var(--text-p2)
36
36
  line-height: 1.5
37
37
  text-align: justify
@@ -9,7 +9,7 @@
9
9
  justify-content: space-between
10
10
  align-items: center
11
11
  cursor: pointer
12
- width: 340px
12
+ width: 300px
13
13
  max-width: 100%
14
14
  box-shadow: $boxshadow-card
15
15
  border-radius: $border-bar
@@ -2,4 +2,4 @@
2
2
  padding: 1px 2px
3
3
  border-radius: 2px
4
4
  background: var(--theme-block)
5
- color: var(--text-p0)
5
+ color: var(--text)
@@ -1,22 +1,9 @@
1
- .md-text .tag-plugin.navbar
2
- text-align: center
3
- nav.cap
4
- margin: 0
5
- padding: 1px
6
- background: var(--card)
7
- box-shadow: $boxshadow-button
8
- border-radius: 6px
9
- display: inline-flex
10
- max-width: 100%
11
- a
12
- margin: 1px
13
- padding: 0.25em 0.75rem
14
- color: var(--text-p2)
15
- &:after
16
- display: none
17
- &:hover
18
- background: var(--block)
19
- &.active
20
- background: var(--block)
21
- box-shadow: none
22
- color: var(--text-p1)
1
+ .tag-plugin.navbar
2
+ padding: 0
3
+ &:after
4
+ left: 0
5
+ right: 0
6
+
7
+ @media screen and (min-width: $device-mobile-max)
8
+ .tag-plugin.navbar nav a
9
+ margin-top: 2px
@@ -8,14 +8,16 @@
8
8
  border: 1px solid var(--theme-border)
9
9
  color: var(--text-p1)
10
10
  >.title
11
- font-size: $fs-15
11
+ --fsp: $fsp1
12
+ font-size: var(--fsp)
12
13
  line-height: 1.5
13
14
  margin-top: var(--gap-p-compact)
14
15
  font-weight: 500
15
- color: var(--text-p0)
16
+ color: var(--text)
16
17
  >.body
17
18
  &,p
18
- font-size: $fs-14
19
+ --fsp: $fsp2
20
+ font-size: var(--fsp)
19
21
  line-height: 1.5
20
22
  margin-top: var(--gap-p-compact)
21
23
  margin-bottom: var(--gap-p-compact)
@@ -5,11 +5,11 @@
5
5
  .content
6
6
  >.title
7
7
  font-weight: 500
8
- font-size: 1rem
9
8
  margin-top: var(--gap-p)
10
9
  >.meta
11
10
  color: var(--text-p2)
12
- font-size: $fs-12
11
+ --fsp: $fsp3
12
+ font-size: var(--fsp)
13
13
  font-weight: 500
14
14
  span+span
15
15
  margin-left: 4px
@@ -17,13 +17,13 @@
17
17
  margin: var(--gap-p) 0
18
18
  border-top: 1px dashed var(--block-border)
19
19
  border-bottom: 1px dashed var(--block-border)
20
- p
21
- font-size: $fs-14
20
+ line-height: 2
22
21
  >.footer
23
22
  font-style: italic
24
23
  color: var(--text-p4)
25
24
  margin: var(--gap-p) 0
26
- font-size: $fs-12
25
+ --fsp: $fsp3
26
+ font-size: var(--fsp)
27
27
 
28
28
  // 描边修饰
29
29
  .md-text .tag-plugin.poetry .content
@@ -3,37 +3,35 @@
3
3
  align-items: center
4
4
  display: flex
5
5
  flex-direction: column
6
-
6
+ --gap-p: 2rem
7
+ margin: var(--gap-p) 1rem
7
8
  .content
8
9
  display: flex
9
10
  align-items: center
10
11
  border-bottom: none
11
12
  font-weight: 700
12
- padding: 16px 24px
13
- a.headerlink:before
14
- content: ''
13
+ padding: 0 24px
14
+ a.headerlink
15
+ display: none
15
16
  @media screen and (max-width: $device-mobile)
16
- padding: 12px 20px
17
+ padding: 0 20px
17
18
  line-height: 1.2
18
19
 
19
20
  .md-text .tag-plugin.quot .content
20
- max-width 500px
21
21
  position: relative
22
22
  // override
23
23
  .md-text.content .tag-plugin.quot
24
- h1
25
- font-size: $fs-h1
24
+ h1,h2
25
+ font-size: $fsh2
26
26
  font-weight: 900
27
- padding: 20px 32px 12px 32px
27
+ padding: 4px 32px 0
28
28
  @media screen and (max-width: $device-mobile)
29
- padding: 20px 24px 12px
30
- h2,h3,h4,h5,h6
31
- font-size: $fs-h3
32
- margin-top: 1em
33
- margin-bottom: 0
29
+ padding: 4px 24px 0
30
+ h3,h4,h5,h6
31
+ font-size: $fsh3
34
32
  p
35
- font-size: $fs-h4
36
- color: var(--text-p0)
33
+ --fsp: $fsh4
34
+ color: var(--text)
37
35
 
38
36
  // type=text
39
37
  .md-text .tag-plugin.quot
@@ -44,13 +42,13 @@
44
42
  width: 8px
45
43
  height: 14px
46
44
  &:before
47
- top: 8px
45
+ top: -8px
48
46
  left: 0
49
47
  border-top: 6px solid $color-accent
50
48
  border-left: 6px solid $color-accent
51
49
  &:after
52
50
  right: 0
53
- bottom: 8px
51
+ bottom: -8px
54
52
  border-right: 6px solid $color-accent
55
53
  border-bottom: 6px solid $color-accent
56
54
  h1.content[type=text]
@@ -61,13 +59,15 @@
61
59
 
62
60
  // type=icon
63
61
  .md-text .tag-plugin.quot .content[type=icon]
64
- .icon
62
+ img,svg
65
63
  height: 1.5em
66
64
  display: inline-block
67
65
  color: $color-accent
68
66
  border-radius: 0
69
- &.prefix
70
- margin-left: -0.5rem
71
- margin-right: .5rem
72
- &.suffix
73
- margin-left: .5rem
67
+ flex-shrink: 0
68
+ span.text
69
+ margin: 0 .5rem
70
+ padding-top: 1px
71
+ span.empty
72
+ padding: 0 8px
73
+
@@ -42,7 +42,8 @@
42
42
  display: block
43
43
  cursor: pointer
44
44
  padding: .25rem .75rem
45
- font-size: $fs-13
45
+ --fsp: $fsp3
46
+ font-size: var(--fsp)
46
47
  line-height: inherit
47
48
  font-weight: 500
48
49
  color: var(--text-p3)
@@ -82,7 +83,7 @@
82
83
  .tab-content:has(.grid-box)
83
84
  width: 100%
84
85
 
85
- .l_body[text-indent] .md-text .tag-plugin.tabs .tab-content p:not([class])
86
- text-indent: 'calc(%s * 2)' % var(--fs-p)
86
+ .l_body[text-indent] .md-text .tag-plugin.tabs .tab-content .tab-pane>p:not([class])
87
+ text-indent: 'calc(%s * 2)' % var(--fsp)
87
88
  a
88
89
  text-indent: 0
@@ -1,6 +1,5 @@
1
1
  .md-text .tag-plugin.timeline
2
2
  position: relative
3
- margin-top: 0
4
3
  padding-left: 16px
5
4
  &:before
6
5
  content: ''
@@ -49,11 +48,11 @@
49
48
  align-items: center
50
49
  position: relative
51
50
  margin: 0.25rem 0
52
- font-size: $fs-12
51
+ font-size: $fs-13
53
52
  .user-info
54
53
  display: flex
55
54
  align-items: center
56
- font-size: $fs-12
55
+ font-size: $fs-13
57
56
  font-weight: 500
58
57
  color: var(--text-p1)
59
58
  margin-right: 4px
@@ -77,7 +76,7 @@
77
76
  line-height: 1
78
77
  p
79
78
  margin: 0 !important
80
- font-size: $fs-12 !important
79
+ font-size: $fs-13 !important
81
80
  a
82
81
  color: inherit
83
82
  font-weight: inherit
@@ -102,7 +101,7 @@
102
101
  margin-top: 4px
103
102
  box-shadow: $boxshadow-block
104
103
  p
105
- font-size: $fs-14
104
+ --fsp: $fsp1
106
105
  img
107
106
  display: block
108
107
  &:empty
@@ -123,11 +122,12 @@
123
122
  color: var(--text-p1)
124
123
  line-height: 1.25
125
124
  padding: 0.75rem 1rem
125
+ --fsp: $fsp1
126
+ font-size: var(--fsp)
126
127
 
127
128
 
128
129
  .tag-plugin.timeline[api] .body
129
130
  p.title
130
- font-size: 1rem
131
131
  font-weight: 700
132
132
  margin: 0.5rem 0 0.75rem
133
133
  line-height: 1.25
@@ -136,8 +136,22 @@
136
136
  font-weight: 500
137
137
  a
138
138
  color: inherit
139
+ text-decoration: none
140
+ border-bottom: 2px solid $color-theme
141
+ trans1 all
139
142
  &:hover
140
- color: $color-hover
143
+ border-bottom: 2px solid $color-hover
144
+ >p:first-child:not([class]) a:not([class])
145
+ padding: 0
146
+ margin: 0
147
+ color: inherit
148
+ text-decoration: none
149
+ border-bottom: 2px solid $color-theme
150
+ trans1 all
151
+ &:hover
152
+ border-bottom: 2px solid $color-hover
153
+
154
+
141
155
  a
142
156
  &:has(img):after
143
157
  display: none
@@ -146,7 +160,7 @@
146
160
  img
147
161
  margin: 0.5rem auto
148
162
  pre code
149
- font-size: $fs-12
163
+ font-size: $fs-13
150
164
 
151
165
  .tag-plugin.timeline[api] .body .footer
152
166
  margin: 0 0 -0.5rem
@@ -165,7 +179,7 @@
165
179
  .flex
166
180
  display: flex
167
181
  flex-wrap: wrap
168
- font-size: $fs-12
182
+ font-size: $fs-13
169
183
  align-items: stretch
170
184
 
171
185
  .tag-plugin.timeline[api] .body .footer
@@ -190,7 +204,7 @@
190
204
  padding: 0 0.5rem
191
205
  margin: 0.75rem 0
192
206
  p
193
- font-size: $fs-13
207
+ --fsp: $fsp2
194
208
  margin: 0.25rem
195
209
 
196
210
  .tag-plugin.timeline .body
@@ -22,8 +22,8 @@
22
22
 
23
23
  p.username
24
24
  font-weight: 900
25
- font-size: $fs-h2
26
- color: var(--text-p0)
25
+ font-size: $fsh2
26
+ color: var(--text)
27
27
  margin: 0
28
28
  p.bio
29
29
  font-size: $fs-13
@@ -6,8 +6,8 @@
6
6
 
7
7
  a:not([class])
8
8
  trans1 all
9
- border-bottom: 1px solid var(--text-p0)
10
- color: var(--text-p0)
9
+ border-bottom: 1px solid var(--text)
10
+ color: var(--text)
11
11
  &:hover
12
12
  color: $color-hover
13
13
  border-bottom: 1px solid $color-hover
@@ -1,6 +1,15 @@
1
1
  .widget-wrapper.timeline
2
2
  .widget-body
3
3
  margin-top: 0.5rem
4
+ .body
5
+ a
6
+ trans1 all
7
+ border-bottom: 1px solid var(--text)
8
+ color: var(--text-p1)
9
+ --fsp: $fsp2
10
+ &:hover
11
+ color: $color-hover
12
+ border-bottom: 1px solid $color-hover
4
13
  .tag-plugin.timeline .timenode
5
14
  .header
6
15
  margin: 0.5rem 16px
@@ -20,14 +29,8 @@
20
29
  border-radius: $border-card
21
30
  background: var(--alpha50)
22
31
  box-shadow: none
23
-
24
- a
25
- trans1 all
26
- border-bottom: 1px solid var(--text-p0)
27
- color: var(--text-p1)
28
- &:hover
29
- color: $color-hover
30
- border-bottom: 1px solid $color-hover
32
+ p,li
33
+ --fsp: $fsp3
31
34
  code
32
35
  background: none
33
36
  padding: 0
@@ -1,8 +1,4 @@
1
1
 
2
- .widget-wrapper.toc.single .widget-header
3
- font-weight: 500
4
- font-size: $fs-12
5
-
6
2
  .toc-item
7
3
  margin-top: 2px
8
4
  .toc-child
@@ -60,7 +56,7 @@
60
56
  bottom: 'calc(50% - %s)' % 6px
61
57
  width: 2px
62
58
  border-radius: 2px
63
- background: var(--text-p0)
59
+ background: var(--text)
64
60
  visibility: hidden
65
61
  &.active
66
62
  background: var(--alpha50)
@@ -10,7 +10,7 @@
10
10
 
11
11
  // 其它分页链接
12
12
  .widget-wrapper.toc.multi .doc-tree
13
- border-radius: $border-card
13
+ border-radius: $border-bar
14
14
  overflow: hidden
15
15
  a.doc-tree-link
16
16
  color: var(--text-p1)
@@ -52,8 +52,8 @@
52
52
  padding: 4px 10px
53
53
  border: 1px solid var(--alpha50)
54
54
  background: var(--alpha20)
55
- border-bottom-left-radius: $border-card
56
- border-bottom-right-radius: $border-card
55
+ border-bottom-left-radius: $border-bar
56
+ border-bottom-right-radius: $border-bar
57
57
  a.toc-link:before
58
58
  left: -7px
59
59
  width: 4px
@@ -17,10 +17,10 @@
17
17
  padding-right: var(--gap-l)
18
18
  display: flex
19
19
  justify-content: space-between
20
- align-items: center
20
+ align-items: baseline
21
21
  line-height: 28px
22
22
  font-weight: 500
23
- font-size: $fs-12
23
+ font-size: $fs-13
24
24
  color: var(--text-p1)
25
25
  .item
26
26
  display: block
@@ -36,7 +36,7 @@
36
36
  trans2: opacity background
37
37
  border-radius: 4px
38
38
  padding: 6px
39
- margin-right: -5px
39
+ margin-right: -6px
40
40
  svg
41
41
  height: 1em
42
42
  width: auto