hexo-theme-stellar 1.25.0 → 1.26.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 (117) hide show
  1. package/_config.yml +80 -32
  2. package/_data/icons.yml +33 -0
  3. package/_data/widgets.yml +2 -16
  4. package/languages/zh-CN.yml +1 -1
  5. package/languages/zh-TW.yml +1 -1
  6. package/layout/404.ejs +2 -2
  7. package/layout/_partial/cover/index.ejs +5 -5
  8. package/layout/_partial/cover/post_cover.ejs +1 -1
  9. package/layout/_partial/cover/wiki_cover.ejs +2 -2
  10. package/layout/_partial/head.ejs +5 -8
  11. package/layout/_partial/main/article/article_footer.ejs +7 -15
  12. package/layout/_partial/main/article/read_next.ejs +6 -6
  13. package/layout/_partial/main/article/related_posts.ejs +1 -1
  14. package/layout/_partial/main/footer.ejs +1 -1
  15. package/layout/_partial/main/navbar/article_top_area.ejs +35 -0
  16. package/layout/_partial/main/navbar/author_banner.ejs +1 -3
  17. package/layout/_partial/main/navbar/breadcrumb/blog.ejs +34 -0
  18. package/layout/_partial/main/navbar/breadcrumb/page.ejs +10 -0
  19. package/layout/_partial/main/navbar/breadcrumb/wiki.ejs +20 -0
  20. package/layout/_partial/main/navbar/dateinfo.ejs +32 -0
  21. package/layout/_partial/main/navbar/ghinfo.ejs +25 -0
  22. package/layout/_partial/main/navbar/nav_tabs_blog.ejs +3 -3
  23. package/layout/_partial/main/navbar/nav_tabs_wiki.ejs +2 -2
  24. package/layout/_partial/main/post_list/paginator.ejs +1 -1
  25. package/layout/_partial/main/post_list/post_card.ejs +3 -3
  26. package/layout/_partial/menubtn.ejs +1 -1
  27. package/layout/_partial/plugins/ai/tianli_gpt.ejs +4 -3
  28. package/layout/_partial/plugins/comments/artalk/layout.ejs +1 -1
  29. package/layout/_partial/plugins/comments/artalk/script.ejs +1 -1
  30. package/layout/_partial/plugins/comments/beaudar/layout.ejs +1 -1
  31. package/layout/_partial/plugins/comments/giscus/layout.ejs +1 -1
  32. package/layout/_partial/plugins/comments/layout.ejs +3 -3
  33. package/layout/_partial/plugins/comments/twikoo/layout.ejs +1 -1
  34. package/layout/_partial/plugins/comments/utterances/layout.ejs +1 -1
  35. package/layout/_partial/plugins/comments/waline/layout.ejs +1 -1
  36. package/layout/_partial/sidebar/index.ejs +72 -71
  37. package/layout/_partial/sidebar/logo.ejs +87 -0
  38. package/layout/_partial/sidebar/menu.ejs +23 -18
  39. package/layout/_partial/sidebar/search.ejs +42 -0
  40. package/layout/_partial/widgets/components/link.ejs +21 -0
  41. package/layout/_partial/widgets/components/linklist.ejs +27 -0
  42. package/layout/_partial/widgets/ghissues.ejs +7 -9
  43. package/layout/_partial/widgets/ghrepo.ejs +10 -12
  44. package/layout/_partial/widgets/ghuser.ejs +2 -6
  45. package/layout/_partial/widgets/linklist.ejs +17 -0
  46. package/layout/_partial/widgets/markdown.ejs +5 -2
  47. package/layout/_partial/widgets/recent.ejs +12 -8
  48. package/layout/_partial/widgets/related.ejs +13 -9
  49. package/layout/_partial/widgets/search.ejs +0 -40
  50. package/layout/_partial/widgets/tagcloud.ejs +2 -2
  51. package/layout/_partial/widgets/timeline.ejs +2 -2
  52. package/layout/_partial/widgets/toc.ejs +24 -24
  53. package/layout/archive.ejs +2 -2
  54. package/layout/categories.ejs +1 -1
  55. package/layout/index.ejs +4 -20
  56. package/layout/index_topic.ejs +1 -1
  57. package/layout/index_wiki.ejs +2 -2
  58. package/layout/layout.ejs +53 -21
  59. package/layout/page.ejs +59 -12
  60. package/layout/tags.ejs +1 -1
  61. package/package.json +2 -2
  62. package/scripts/events/lib/config.js +28 -24
  63. package/scripts/events/lib/doc_tree.js +27 -19
  64. package/scripts/events/lib/merge_posts.js +0 -1
  65. package/scripts/generators/topic.js +3 -3
  66. package/scripts/generators/wiki.js +5 -4
  67. package/scripts/helpers/category_color.js +1 -1
  68. package/scripts/helpers/icon.js +16 -0
  69. package/scripts/helpers/parse_config.js +18 -16
  70. package/scripts/helpers/scrollreveal.js +6 -6
  71. package/scripts/tags/lib/toc.js +1 -1
  72. package/source/css/_common/blur.styl +1 -8
  73. package/source/css/_common/cap.styl +1 -1
  74. package/source/css/_common/device.styl +2 -2
  75. package/source/css/_common/highlight.styl +2 -2
  76. package/source/css/_common/layout.styl +6 -0
  77. package/source/css/_common/svg.styl +3 -0
  78. package/source/css/_custom.styl +9 -2
  79. package/source/css/_defines/theme.styl +10 -0
  80. package/source/css/_layout/layout.styl +17 -4
  81. package/source/css/_layout/list.styl +5 -2
  82. package/source/css/_layout/main.styl +5 -4
  83. package/source/css/_layout/md.styl +12 -11
  84. package/source/css/_layout/partial/paginator.styl +2 -2
  85. package/source/css/_layout/sidebar/footer.styl +4 -31
  86. package/source/css/_layout/sidebar/{header.styl → logo.styl} +11 -41
  87. package/source/css/_layout/sidebar/menu.styl +53 -0
  88. package/source/css/_layout/sidebar/nav-area.styl +2 -0
  89. package/source/css/_layout/{widgets → sidebar}/search.styl +51 -50
  90. package/source/css/_layout/sidebar/sidebar.styl +21 -31
  91. package/source/css/_layout/tag-plugins/banner.styl +9 -10
  92. package/source/css/_layout/tag-plugins/okr.styl +0 -1
  93. package/source/css/_layout/tag-plugins/tabs.styl +2 -2
  94. package/source/css/_layout/tag-plugins/toc.styl +1 -1
  95. package/source/css/_layout/widgets/components.styl +49 -0
  96. package/source/css/_layout/widgets/ghrepo.styl +0 -1
  97. package/source/css/_layout/widgets/ghuser.styl +0 -23
  98. package/source/css/_layout/widgets/list.styl +28 -0
  99. package/source/css/_layout/widgets/markdown.styl +20 -0
  100. package/source/css/_layout/widgets/related.styl +36 -5
  101. package/source/css/_layout/widgets/timeline.styl +21 -2
  102. package/source/css/_layout/widgets/toc_blog.styl +1 -1
  103. package/source/css/_layout/widgets/toc_common.styl +12 -12
  104. package/source/css/_layout/widgets/toc_wiki.styl +38 -25
  105. package/source/css/_layout/widgets/widgets.styl +25 -20
  106. package/source/css/_plugins/comments/twikoo.styl +9 -9
  107. package/source/css/_plugins/scrollreveal.styl +1 -1
  108. package/source/css/_plugins/tianli_gpt.styl +12 -14
  109. package/source/js/main.js +5 -2
  110. package/source/js/plugins/copycode.js +3 -3
  111. package/layout/_partial/main/header/index.ejs +0 -3
  112. package/layout/_partial/main/navbar/breadcrumb.ejs +0 -161
  113. package/layout/_partial/sidebar/header.ejs +0 -58
  114. package/layout/post.ejs +0 -33
  115. package/layout/topic.ejs +0 -28
  116. package/layout/wiki.ejs +0 -32
  117. package/source/css/_layout/widgets/recent.styl +0 -15
@@ -5,7 +5,7 @@
5
5
  margin-left: "calc(2 * %s)" % var(--gap-l)
6
6
  margin-right: "calc(2 * %s + %s / 2)" % (var(--gap-l) var(--width-left))
7
7
  @media screen and (min-width: $device-mobile-max)
8
- padding-top: "calc(2 * %s)" % var(--gap-l)
8
+ padding-top: 8px
9
9
  @media screen and (max-width: $device-mobile-max)
10
10
  padding-top: 1rem
11
11
  header
@@ -13,6 +13,7 @@
13
13
  .logo-wrap
14
14
  margin: 0
15
15
 
16
- .l_main.list
17
- @media screen and (max-width: $device-mobile-max)
18
- padding-top: 0
16
+ .l_body.index
17
+ .l_main
18
+ @media screen and (max-width: $device-mobile-max)
19
+ padding-top: 0
@@ -22,16 +22,6 @@ h1.article-title
22
22
  position: relative
23
23
  padding-bottom: 2rem
24
24
  overflow: hidden
25
- &.indent
26
- >p:not([class])
27
- text-indent: 'calc(%s * 2)' % $fs-p
28
- text-align: convert(hexo-config('style.text-align'))
29
- a
30
- text-indent: 0
31
- h1,h2,h3,h4,h5,h6
32
- text-align: center
33
- >h2:not([class])
34
- border-bottom: none
35
25
  >:first-child:not(h1)
36
26
  margin-top: 0
37
27
  h1:not(:first-child)
@@ -53,6 +43,17 @@ h1.article-title
53
43
  margin-bottom: 0.25em
54
44
  padding-top: 0
55
45
 
46
+ .l_body[text-indent] .md-text.content
47
+ >p:not([class])
48
+ text-indent: 'calc(%s * 2)' % var(--fs-p)
49
+ text-align: convert(hexo-config('style.text-align'))
50
+ a
51
+ text-indent: 0
52
+ h1,h2,h3,h4,h5,h6
53
+ text-align: center
54
+ >h2:not([class])
55
+ border-bottom: none
56
+
56
57
  .md-text.content:first-child
57
58
  padding-top: 0
58
59
 
@@ -109,7 +110,7 @@ h1.article-title
109
110
  margin-top: -0.5rem
110
111
 
111
112
  .md-text p
112
- font-size: $fs-p
113
+ font-size: var(--fs-p)
113
114
 
114
115
  .md-text pre
115
116
  -webkit-font-smoothing: auto
@@ -28,10 +28,10 @@
28
28
  background-clip: content-box
29
29
  &.next
30
30
  border-left: 1px dashed var(--block-border)
31
- background-image: url('https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/arrow/064b95430caf4.svg')
31
+ background-image: url(hexo-config('style.paginator.next'))
32
32
  &.prev
33
33
  border-right: 1px dashed var(--block-border)
34
- background-image: url('https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/arrow/f049bbd4e88ec.svg')
34
+ background-image: url(hexo-config('style.paginator.prev'))
35
35
  .current
36
36
  font-family: $ff-code
37
37
  background: var(--block)
@@ -1,47 +1,20 @@
1
- .l_left>.footer
1
+ .l_left footer.footer
2
2
  margin: 0.5rem var(--gap-l) 1rem
3
3
 
4
4
  .social-wrap
5
5
  display: grid
6
6
  grid-gap: 0.25rem 0.25rem
7
7
  grid-template-columns: repeat(auto-fill, 32px)
8
- a.social
8
+ .social
9
9
  line-height: 0
10
10
  display: inline-block
11
11
  padding: 6px
12
- border-radius: 4px
12
+ border-radius: 32px
13
13
  filter: grayscale(100%)
14
14
  overflow: hidden
15
15
  background: transparent
16
16
  trans3: box-shadow background transform
17
17
  &:hover
18
- color: $color-hover
19
18
  z-index: 1
20
19
  filter: unset
21
- transform: translateY(-1px)
22
- background: linear-gradient(145deg, #ddd, #fff)
23
- box-shadow: 2px 4px 8px #ddd, -2px -4px 8px #fff
24
- if hexo-config('style.darkmode') == 'auto'
25
- @media (prefers-color-scheme: dark)
26
- box-shadow: none
27
- if hexo-config('style.darkmode') == 'always'
28
- box-shadow: none
29
-
30
- .proj-wrap
31
- display: grid
32
- grid-gap: 0.25rem 0.25rem
33
- a.item
34
- border-radius: 4px
35
- font-size: $fs-13
36
- font-weight: 500
37
- color: var(--text-p2)
38
- background: var(--block)
39
- border: 1px solid var(--block-border)
40
- overflow: hidden
41
- padding: .75em
42
- text-align: center
43
- svg
44
- margin-right: .5em
45
- &:hover
46
- color: $color-hover
47
- background: var(--card)
20
+ background: var(--alpha100)
@@ -1,44 +1,15 @@
1
- .l_left
2
- nav.menu
3
- margin-bottom: 0
4
-
5
- nav.menu
6
- margin: 1rem 0
7
- background: var(--block)
8
- border: 1px solid var(--block-border)
9
- border-radius: 6px
10
- display: flex
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
1
  .logo-wrap
39
2
  display: flex
40
3
  align-items: center
41
4
  overflow: hidden
5
+ min-height: 48px
6
+ img
7
+ object-fit: cover
8
+ .icon
9
+ width: 48px
10
+ height: 48px
11
+ margin-right: 1rem
12
+ border-radius: 4px
42
13
  a
43
14
  color: inherit
44
15
  display: flex
@@ -46,10 +17,10 @@ nav.menu
46
17
  a.avatar
47
18
  display: block
48
19
  position: relative
49
- width: 50px
50
- height: 50px
20
+ width: 48px
21
+ height: 48px
51
22
  flex-shrink: 0
52
- border-radius: 50px
23
+ border-radius: 48px
53
24
  overflow: hidden
54
25
  margin-right: 1rem
55
26
  div.bg
@@ -58,7 +29,6 @@ nav.menu
58
29
  background-size: cover
59
30
  img.avatar
60
31
  margin: 2px
61
- object-fit: cover
62
32
  width: "calc(100% - 2 * %s)" % @margin
63
33
  height: "calc(100% - 2 * %s)" % @margin
64
34
  border-radius: @width
@@ -0,0 +1,53 @@
1
+ .nav-area .menu
2
+ width: 100%
3
+ display: grid
4
+ margin: 8px 0
5
+ grid-template-columns: repeat(hexo-config('menubar.columns'), 1fr)
6
+ grid-gap: 8px
7
+ &::-webkit-scrollbar
8
+ display: none
9
+ &::-webkit-scrollbar-track-piece
10
+ background: transparent
11
+ &::-webkit-scrollbar-thumb
12
+ display: none
13
+
14
+ .nav-item
15
+ box-sizing: border-box
16
+ width: 100%
17
+ min-height: 40px
18
+ border-radius: $border-bar
19
+ font-size: $fs-15
20
+ font-weight: 500
21
+ color: var(--text-p3)
22
+ text-align: center
23
+ background: var(--alpha50)
24
+ trans1 background
25
+ position: relative
26
+ display: flex
27
+ flex-direction: column
28
+ align-items: center
29
+ justify-content: center
30
+ img,svg
31
+ height: 28px
32
+ object-fit: contain
33
+ filter: grayscale(100%) brightness(0.8) opacity(0.8)
34
+ trans1 all
35
+ span
36
+ text-overflow: ellipsis
37
+ word-break: keep-all
38
+ &.active, &:hover
39
+ color: var(--text-p1)
40
+ background: var(--alpha100)
41
+ img,svg
42
+ filter: unset
43
+ &.active:after
44
+ content: ''
45
+ position absolute
46
+ width: 16px
47
+ height: 2px
48
+ left: 50%
49
+ transform: translateX(-50%)
50
+ border-radius: 2px
51
+ bottom: 2px
52
+ background: var(--text-p1)
53
+
@@ -0,0 +1,2 @@
1
+ .nav-area
2
+ margin: 32px var(--gap-l) 0
@@ -1,105 +1,106 @@
1
- .widgets .widget-wrapper.search
2
- margin-bottom: 0
3
1
 
4
2
  .search-wrapper
5
3
  width: 100%
6
4
  >.search-form
7
5
  position: sticky
6
+ margin-bottom: 8px
8
7
  top: 1rem
8
+ height: 40px
9
9
  display: flex
10
10
  flex-direction: row
11
11
  align-items: center
12
12
  transition: 0.38s ease-out
13
13
  z-index: 0
14
+ border-radius: $border-bar
15
+ color: var(--text-p0)
16
+ background: var(--alpha50)
17
+ &:has(input:focus)
18
+ background: var(--alpha100)
14
19
  .search-input
15
20
  width: 100%
16
- padding: 0.5rem 0
17
- line-height: 1.5
21
+ line-height: 16px
18
22
  box-sizing: border-box
19
23
  font-family: $ff-body
20
24
  font-size: $fs-13
25
+ padding: 12px 0
21
26
  color: var(--text-p0)
27
+ .search-button
28
+ border-radius: $border-bar
29
+ line-height: 40px
30
+ .search-icon
31
+ width: 44px
32
+ margin-left: 4px
33
+ color: var(--text-p2)
34
+ margin-bottom: 2px
35
+ path[p-id="1562"]
36
+ color: $color-theme
22
37
 
23
-
38
+ &[searching='true']
39
+ .search-icon
40
+ path[p-id="1562"]
41
+ color: $c-green
24
42
  &.noresult[searching='true']
25
43
  .search-icon
26
44
  path[p-id="1562"]
27
45
  color: $c-red
28
- .search-form
29
- border: 1px solid $c-red
30
46
 
31
47
  .search-no-result
32
48
  display: none
33
- margin: 1em auto
34
49
  color: var(--text-p1)
35
50
  text-align: center
36
51
  font-size: $fs-14
37
52
  padding: 2rem
38
- background: var(--block)
39
- border-radius: $border-bar
53
+ background: var(--alpha20)
54
+ border-radius: $border-card
55
+
40
56
 
41
57
  #search-result
42
- ul.search-result-list
58
+ max-height: 60vh
59
+ overflow: scroll
60
+ scrollbar-width: none
61
+ scrollbar(0, 0)
62
+ border-radius: $border-card
63
+ &:empty
64
+ display: none
65
+ .search-result-list
43
66
  padding: 0
44
67
  margin: 0
45
68
  list-style-type: none
46
- li
47
- margin: 1em auto
48
- &:hover
49
- .search-result-title
50
- color: $color-hover
69
+ li a
70
+ display: block
71
+ background: var(--alpha20)
72
+ line-height: 1.2
73
+ padding: 0.75rem 1rem
74
+ border-radius: $border-card
75
+ trans1 background
76
+ &:hover
77
+ background: var(--alpha100)
78
+ li+li
79
+ margin-top: 8px
51
80
  .search-result-title
52
81
  color: var(--text-p1)
53
82
  font-weight: 700
54
- line-height: 1.2
55
83
 
56
84
  .search-result-content
57
85
  overflow: hidden
58
86
  color: var(--text-p3)
59
- margin: .4em auto
87
+ margin: 4px 0 0
60
88
  max-height: 13em
61
89
  text-align: justify
62
90
  font-size: $fs-12
63
- line-height: 1.2
64
91
  display: -webkit-box
65
92
  -webkit-box-orient: vertical
66
93
  overflow: hidden
67
- -webkit-line-clamp: 3
94
+ -webkit-line-clamp: 2
68
95
 
69
96
  .search-keyword
70
- border-bottom: 1px dashed $color-hover
71
- color: $color-hover
97
+ color: $c-red
98
+ border-bottom: 1px dashed $c-red
72
99
  font-weight: bold
73
-
100
+ filter grayscale(25%)
74
101
 
75
102
 
76
103
  .search-wrapper.noresult[searching='true']
77
104
  .search-no-result
78
105
  display: block
79
-
80
- .widget-wrapper
81
- .search-form
82
- top: 0
83
- background: var(--card)
84
- border: 1px solid var(--block-border)
85
- border-radius: $border-bar
86
- .search-input
87
- text-indent: 0.75rem
88
- padding-right: 2rem
89
- .search-icon
90
- margin: 2px
91
- position absolute
92
- right: 0
93
- pointer-events: none
94
- color: var(--text-p2)
95
- padding: 0.5rem
96
- border-radius: 'calc(%s - 2px)' % $border-bar
97
- path[p-id="1562"]
98
- color: $color-theme
99
-
100
- #search-result,.search-no-result
101
- margin-top: 1rem
102
-
103
- .widget-wrapper:not(:first-child)
104
- .search-wrapper
105
- margin-top: -1rem
106
+ margin-bottom: 8px
@@ -1,39 +1,29 @@
1
1
  .l_left
2
- display: flex
3
- flex-direction: column
4
- word-break: break-all
5
- text-align: justify
6
- height: 100vh
2
+ margin: 8px
3
+ height: 'calc(%s - 16px)' % 100vh
4
+ border-radius: $border-card
5
+ overflow: hidden
7
6
  .header
8
7
  margin: var(--gap-l) var(--gap-l) 0
9
8
  margin-top: "calc(2 * %s)" % var(--gap-l)
10
9
  @media screen and (min-width: $device-mobile-max)
11
10
  >.widgets:first-child>.widget-wrapper:first-child
12
11
  margin-top: "calc(2 * %s)" % var(--gap-l)
13
- @media screen and (max-width: $device-mobile-max)
14
- height: 100vh
15
12
 
16
-
17
- .l_left[layout=wiki]
18
- padding-bottom: 0
19
- height: 100vh
20
- @media screen and (max-width: $device-mobile-max)
21
- height: 100vh
22
- .widgets >:last-child
23
- margin-bottom: 6rem
24
-
25
-
26
- .l_left .widgets .widget-wrapper.logo-wrap.wiki .widget-body
27
- display: flex
28
- margin-bottom: 1.5rem
29
- flex-direction: column
30
- align-items: flex-start
31
- a.wiki-home
32
- margin-bottom: 0.5rem
33
- color: var(--text-p1)
34
- svg
35
- margin-right: 2px
36
- &:hover
37
- color: $color-hover
38
- filter: unset !important
39
-
13
+ .l_left
14
+ background-size: cover
15
+ if hexo-config('style.sidebar.background')
16
+ background-image: convert(hexo-config('style.sidebar.background'))
17
+ .sidebar-container
18
+ height: 100%
19
+ display: flex
20
+ flex-direction: column
21
+ word-break: break-all
22
+ text-align: justify
23
+ .sidebar-blur
24
+ --blur-px: 100px
25
+ --blur-bg: var(--sidebar-bg)
26
+ @supports ((-webkit-backdrop-filter:blur(var(--blur-px))) or (backdrop-filter:blur(var(--blur-px))))
27
+ background: var(--blur-bg)
28
+ backdrop-filter: saturate(240%) blur(var(--blur-px))
29
+ -webkit-backdrop-filter: saturate(240%) blur(var(--blur-px))
@@ -111,14 +111,13 @@
111
111
  img.bg
112
112
  transform: scale(1.01)
113
113
 
114
- .l_main.list .tag-plugin.banner
115
- background: var(--block-hover)
116
- .content .top
117
- margin-top: 1.5rem
118
- margin: 0 1rem
119
- @media screen and (max-width: $device-mobile)
120
- margin: 0
121
- border-radius: 0
122
-
123
114
  .tag-plugin.banner .navbar a.active
124
- blur-effect()
115
+ blur-effect()
116
+
117
+
118
+ .tag-plugin.banner.author
119
+ @media screen and (min-width: $device-mobile-max)
120
+ margin-left: var(--gap-l)
121
+ margin-right: var(--gap-l)
122
+ @media screen and (max-width: $device-mobile-max)
123
+ border-radius: 0
@@ -2,7 +2,6 @@
2
2
  position: relative
3
3
  border-radius: $border-block
4
4
  background: var(--theme-block)
5
- border: 1px solid var(--theme-border)
6
5
  if hexo-config('tag_plugins.okr.border') == true
7
6
  border: 1px solid var(--theme-border)
8
7
  overflow: hidden
@@ -82,7 +82,7 @@
82
82
  .tab-content:has(.grid-box)
83
83
  width: 100%
84
84
 
85
- .md-text.indent .tag-plugin.tabs .tab-content p:not([class])
86
- text-indent: 'calc(%s * 2)' % $fs-p
85
+ .l_body[text-indent] .md-text .tag-plugin.tabs .tab-content p:not([class])
86
+ text-indent: 'calc(%s * 2)' % var(--fs-p)
87
87
  a
88
88
  text-indent: 0
@@ -1,7 +1,7 @@
1
1
  details.toc
2
2
  background: var(--block)
3
3
  border: 1px solid var(--block-border)
4
- border-radius: $border-bar
4
+ border-radius: $border-card
5
5
  overflow: hidden
6
6
  color: var(--text-p2)
7
7
  summary
@@ -0,0 +1,49 @@
1
+ .widget-body .linklist
2
+ display: grid
3
+ grid-gap: 8px
4
+
5
+ .linklist .link
6
+ border-radius: $border-bar
7
+ color: var(--text-p2)
8
+ min-height: 32px
9
+ padding: 0 4px
10
+ trans1 background
11
+ display: flex
12
+ justify-content: center
13
+ align-items: center
14
+ txt-ellipsis()
15
+ &.active
16
+ background: var(--alpha50)
17
+ svg,img
18
+ filter: unset
19
+
20
+ .linklist .link span
21
+ padding: 0 4px
22
+ txt-ellipsis()
23
+ .linklist .link svg, .linklist .link img
24
+ $size = 16px
25
+ padding: 0 2px
26
+ &:not([class='active-icon'])
27
+ color: $color-theme
28
+ max-height: 18px
29
+ width: auto
30
+ filter: grayscale(100%) brightness(0.8) opacity(0.8)
31
+ trans1 filter
32
+ flex-shrink: 0
33
+
34
+ .widget-body .linklist.left
35
+ grid-gap: 2px
36
+ .linklist.left .link
37
+ justify-content: space-between
38
+ padding: 0 16px
39
+ img,svg
40
+ width: 1em
41
+ height: 1em
42
+ transform: scale(1.2)
43
+ span
44
+ padding: 0 8px
45
+
46
+ .linklist .link:hover
47
+ background: var(--alpha100)
48
+ svg
49
+ filter: unset
@@ -6,7 +6,6 @@
6
6
  background: var(--card)
7
7
  border-radius: $border-block
8
8
  box-shadow: $boxshadow-card
9
- hover-float()
10
9
  >div+div
11
10
  margin-top: 0.5rem
12
11
  span
@@ -48,29 +48,6 @@
48
48
  &:hover
49
49
  background: $color-hover
50
50
 
51
- .menu
52
- margin-bottom: 0
53
- background: none
54
- border: 0
55
- a
56
- margin: 0
57
- &.active
58
- box-shadow: none
59
- position: relative
60
- background: none
61
- &:after
62
- content: ''
63
- position: absolute
64
- height: 3px
65
- bottom: 0
66
- width: 32px
67
- left: 'calc(50% - 0.5 * %s)' % @width
68
- border-radius: 4px
69
- background: $color-theme
70
- &:hover
71
- box-shadow: none
72
- background: var(--block)
73
-
74
51
  .buttons
75
52
  margin: 1rem 0
76
53
  align-self: stretch
@@ -0,0 +1,28 @@
1
+ .widget-wrapper.post-list .widget-body
2
+ margin-top: 0.25rem
3
+ a
4
+ line-height: 1
5
+ font-size: $fs-14
6
+ padding: 8px 16px
7
+ display: block
8
+ border-radius: $border-bar
9
+ color: var(--text-p1)
10
+ trans1 background
11
+ &.active
12
+ background: var(--alpha50)
13
+ &:hover
14
+ background: var(--alpha100)
15
+ a+a
16
+ margin-top: 2px
17
+ a
18
+ display: flex
19
+ justify-content: space-between
20
+ align-items: center
21
+ .title
22
+ txt-ellipsis()
23
+ svg
24
+ flex-shrink: 0
25
+ height: 1em
26
+ width: auto
27
+ transform: scale(1.2)
28
+
@@ -0,0 +1,20 @@
1
+ .widget-wrapper.markdown
2
+ .widget-body
3
+ border-radius: $border-card
4
+ padding: 4px 16px
5
+ background: var(--alpha50)
6
+
7
+ a:not([class])
8
+ trans1 all
9
+ border-bottom: 1px solid var(--text-p0)
10
+ color: var(--text-p0)
11
+ &:hover
12
+ color: $color-hover
13
+ border-bottom: 1px solid $color-hover
14
+
15
+ .widget-wrapper.markdown .linklist
16
+ margin: 1em 0
17
+ .link
18
+ background: var(--alpha50)
19
+ .link:hover
20
+ background: var(--alpha100)