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.
- package/_config.yml +80 -32
- package/_data/icons.yml +33 -0
- package/_data/widgets.yml +2 -16
- package/languages/zh-CN.yml +1 -1
- package/languages/zh-TW.yml +1 -1
- package/layout/404.ejs +2 -2
- package/layout/_partial/cover/index.ejs +5 -5
- package/layout/_partial/cover/post_cover.ejs +1 -1
- package/layout/_partial/cover/wiki_cover.ejs +2 -2
- package/layout/_partial/head.ejs +5 -8
- package/layout/_partial/main/article/article_footer.ejs +7 -15
- package/layout/_partial/main/article/read_next.ejs +6 -6
- package/layout/_partial/main/article/related_posts.ejs +1 -1
- package/layout/_partial/main/footer.ejs +1 -1
- package/layout/_partial/main/navbar/article_top_area.ejs +35 -0
- package/layout/_partial/main/navbar/author_banner.ejs +1 -3
- package/layout/_partial/main/navbar/breadcrumb/blog.ejs +34 -0
- package/layout/_partial/main/navbar/breadcrumb/page.ejs +10 -0
- package/layout/_partial/main/navbar/breadcrumb/wiki.ejs +20 -0
- package/layout/_partial/main/navbar/dateinfo.ejs +32 -0
- package/layout/_partial/main/navbar/ghinfo.ejs +25 -0
- package/layout/_partial/main/navbar/nav_tabs_blog.ejs +3 -3
- package/layout/_partial/main/navbar/nav_tabs_wiki.ejs +2 -2
- package/layout/_partial/main/post_list/paginator.ejs +1 -1
- package/layout/_partial/main/post_list/post_card.ejs +3 -3
- package/layout/_partial/menubtn.ejs +1 -1
- package/layout/_partial/plugins/ai/tianli_gpt.ejs +4 -3
- package/layout/_partial/plugins/comments/artalk/layout.ejs +1 -1
- package/layout/_partial/plugins/comments/artalk/script.ejs +1 -1
- package/layout/_partial/plugins/comments/beaudar/layout.ejs +1 -1
- package/layout/_partial/plugins/comments/giscus/layout.ejs +1 -1
- package/layout/_partial/plugins/comments/layout.ejs +3 -3
- package/layout/_partial/plugins/comments/twikoo/layout.ejs +1 -1
- package/layout/_partial/plugins/comments/utterances/layout.ejs +1 -1
- package/layout/_partial/plugins/comments/waline/layout.ejs +1 -1
- package/layout/_partial/sidebar/index.ejs +72 -71
- package/layout/_partial/sidebar/logo.ejs +87 -0
- package/layout/_partial/sidebar/menu.ejs +23 -18
- package/layout/_partial/sidebar/search.ejs +42 -0
- package/layout/_partial/widgets/components/link.ejs +21 -0
- package/layout/_partial/widgets/components/linklist.ejs +27 -0
- package/layout/_partial/widgets/ghissues.ejs +7 -9
- package/layout/_partial/widgets/ghrepo.ejs +10 -12
- package/layout/_partial/widgets/ghuser.ejs +2 -6
- package/layout/_partial/widgets/linklist.ejs +17 -0
- package/layout/_partial/widgets/markdown.ejs +5 -2
- package/layout/_partial/widgets/recent.ejs +12 -8
- package/layout/_partial/widgets/related.ejs +13 -9
- package/layout/_partial/widgets/search.ejs +0 -40
- package/layout/_partial/widgets/tagcloud.ejs +2 -2
- package/layout/_partial/widgets/timeline.ejs +2 -2
- package/layout/_partial/widgets/toc.ejs +24 -24
- package/layout/archive.ejs +2 -2
- package/layout/categories.ejs +1 -1
- package/layout/index.ejs +4 -20
- package/layout/index_topic.ejs +1 -1
- package/layout/index_wiki.ejs +2 -2
- package/layout/layout.ejs +53 -21
- package/layout/page.ejs +59 -12
- package/layout/tags.ejs +1 -1
- package/package.json +2 -2
- package/scripts/events/lib/config.js +28 -24
- package/scripts/events/lib/doc_tree.js +27 -19
- package/scripts/events/lib/merge_posts.js +0 -1
- package/scripts/generators/topic.js +3 -3
- package/scripts/generators/wiki.js +5 -4
- package/scripts/helpers/category_color.js +1 -1
- package/scripts/helpers/icon.js +16 -0
- package/scripts/helpers/parse_config.js +18 -16
- package/scripts/helpers/scrollreveal.js +6 -6
- package/scripts/tags/lib/toc.js +1 -1
- package/source/css/_common/blur.styl +1 -8
- package/source/css/_common/cap.styl +1 -1
- package/source/css/_common/device.styl +2 -2
- package/source/css/_common/highlight.styl +2 -2
- package/source/css/_common/layout.styl +6 -0
- package/source/css/_common/svg.styl +3 -0
- package/source/css/_custom.styl +9 -2
- package/source/css/_defines/theme.styl +10 -0
- package/source/css/_layout/layout.styl +17 -4
- package/source/css/_layout/list.styl +5 -2
- package/source/css/_layout/main.styl +5 -4
- package/source/css/_layout/md.styl +12 -11
- package/source/css/_layout/partial/paginator.styl +2 -2
- package/source/css/_layout/sidebar/footer.styl +4 -31
- package/source/css/_layout/sidebar/{header.styl → logo.styl} +11 -41
- package/source/css/_layout/sidebar/menu.styl +53 -0
- package/source/css/_layout/sidebar/nav-area.styl +2 -0
- package/source/css/_layout/{widgets → sidebar}/search.styl +51 -50
- package/source/css/_layout/sidebar/sidebar.styl +21 -31
- package/source/css/_layout/tag-plugins/banner.styl +9 -10
- package/source/css/_layout/tag-plugins/okr.styl +0 -1
- package/source/css/_layout/tag-plugins/tabs.styl +2 -2
- package/source/css/_layout/tag-plugins/toc.styl +1 -1
- package/source/css/_layout/widgets/components.styl +49 -0
- package/source/css/_layout/widgets/ghrepo.styl +0 -1
- package/source/css/_layout/widgets/ghuser.styl +0 -23
- package/source/css/_layout/widgets/list.styl +28 -0
- package/source/css/_layout/widgets/markdown.styl +20 -0
- package/source/css/_layout/widgets/related.styl +36 -5
- package/source/css/_layout/widgets/timeline.styl +21 -2
- package/source/css/_layout/widgets/toc_blog.styl +1 -1
- package/source/css/_layout/widgets/toc_common.styl +12 -12
- package/source/css/_layout/widgets/toc_wiki.styl +38 -25
- package/source/css/_layout/widgets/widgets.styl +25 -20
- package/source/css/_plugins/comments/twikoo.styl +9 -9
- package/source/css/_plugins/scrollreveal.styl +1 -1
- package/source/css/_plugins/tianli_gpt.styl +12 -14
- package/source/js/main.js +5 -2
- package/source/js/plugins/copycode.js +3 -3
- package/layout/_partial/main/header/index.ejs +0 -3
- package/layout/_partial/main/navbar/breadcrumb.ejs +0 -161
- package/layout/_partial/sidebar/header.ejs +0 -58
- package/layout/post.ejs +0 -33
- package/layout/topic.ejs +0 -28
- package/layout/wiki.ejs +0 -32
- 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:
|
|
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
|
-
.
|
|
17
|
-
|
|
18
|
-
|
|
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:
|
|
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('
|
|
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('
|
|
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
|
|
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
|
-
|
|
8
|
+
.social
|
|
9
9
|
line-height: 0
|
|
10
10
|
display: inline-block
|
|
11
11
|
padding: 6px
|
|
12
|
-
border-radius:
|
|
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
|
-
|
|
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:
|
|
50
|
-
height:
|
|
20
|
+
width: 48px
|
|
21
|
+
height: 48px
|
|
51
22
|
flex-shrink: 0
|
|
52
|
-
border-radius:
|
|
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
|
+
|
|
@@ -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
|
-
|
|
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(--
|
|
39
|
-
border-radius: $border-
|
|
53
|
+
background: var(--alpha20)
|
|
54
|
+
border-radius: $border-card
|
|
55
|
+
|
|
40
56
|
|
|
41
57
|
#search-result
|
|
42
|
-
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
.
|
|
50
|
-
|
|
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:
|
|
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:
|
|
94
|
+
-webkit-line-clamp: 2
|
|
68
95
|
|
|
69
96
|
.search-keyword
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
height:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
.tab-content:has(.grid-box)
|
|
83
83
|
width: 100%
|
|
84
84
|
|
|
85
|
-
.md-text
|
|
86
|
-
text-indent: 'calc(%s * 2)' %
|
|
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
|
|
@@ -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
|
|
@@ -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)
|