hexo-theme-stellar 1.19.0 → 1.21.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/README.md +3 -3
- package/_config.yml +49 -22
- package/languages/zh-CN.yml +1 -1
- package/languages/zh-TW.yml +1 -1
- package/layout/404.ejs +1 -1
- package/layout/_partial/cover/wiki_cover.ejs +10 -16
- package/layout/_partial/head.ejs +3 -3
- package/layout/_partial/main/article/article_footer.ejs +86 -54
- package/layout/_partial/main/article/read_next.ejs +17 -12
- package/layout/_partial/main/navbar/breadcrumb.ejs +55 -17
- package/layout/_partial/main/navbar/list_post.ejs +6 -4
- package/layout/_partial/main/navbar/list_wiki.ejs +4 -3
- package/layout/_partial/main/post_list/post_card.ejs +1 -1
- package/layout/_partial/main/post_list/wiki_card.ejs +6 -11
- package/layout/_partial/{main/article/ai_abstract.ejs → plugins/ai/tianli_gpt.ejs} +3 -2
- package/layout/_partial/plugins/comments/beaudar/script.ejs +1 -1
- package/layout/_partial/plugins/comments/giscus/script.ejs +1 -1
- package/layout/_partial/plugins/comments/layout.ejs +2 -2
- package/layout/_partial/plugins/comments/utterances/script.ejs +1 -1
- package/layout/_partial/sidebar/header.ejs +1 -1
- package/layout/_partial/sidebar/index.ejs +4 -4
- package/layout/_partial/widgets/ghissues.ejs +1 -1
- package/layout/_partial/widgets/ghrepo.ejs +1 -1
- package/layout/_partial/widgets/ghuser.ejs +1 -1
- package/layout/_partial/widgets/recent.ejs +3 -3
- package/layout/_partial/widgets/related.ejs +13 -21
- package/layout/_partial/widgets/toc.ejs +20 -12
- package/layout/index.ejs +13 -11
- package/layout/mermaid.ejs +8 -4
- package/layout/page.ejs +3 -0
- package/layout/post.ejs +1 -1
- package/layout/wiki.ejs +4 -1
- package/package.json +1 -1
- package/scripts/events/lib/doc_tree.js +142 -97
- package/scripts/filters/index.js +4 -1
- package/scripts/helpers/category_color.js +18 -5
- package/scripts/tags/index.js +5 -3
- package/scripts/tags/inline-labels.js +2 -2
- package/scripts/tags/lib/banner.js +68 -0
- package/scripts/tags/lib/{ablock.js → box.js} +4 -4
- package/scripts/tags/lib/checkbox.js +1 -1
- package/scripts/tags/lib/folders.js +1 -1
- package/scripts/tags/lib/folding.js +1 -1
- package/scripts/tags/lib/gallery.js +51 -0
- package/scripts/tags/lib/hashtag.js +36 -0
- package/scripts/tags/lib/image.js +5 -1
- package/scripts/tags/lib/mark.js +1 -1
- package/scripts/tags/lib/navbar.js +15 -34
- package/scripts/tags/lib/note.js +1 -1
- package/scripts/tags/lib/okr.js +140 -0
- package/scripts/tags/lib/swiper.js +1 -1
- package/scripts/tags/lib/timeline.js +3 -3
- package/scripts/tags/lib/toc.js +1 -1
- package/source/css/_common/highlight.styl +3 -0
- package/source/css/_custom.styl +2 -2
- package/source/css/_defines/theme.styl +0 -1
- package/source/css/_layout/list.styl +12 -4
- package/source/css/_layout/md.styl +11 -8
- package/source/css/_layout/partial/bread-nav.styl +32 -0
- package/source/css/_layout/partial/cover.styl +2 -0
- package/source/css/_layout/partial/paginator.styl +9 -5
- package/source/css/_layout/tag-plugins/banner.styl +106 -0
- package/source/css/_layout/tag-plugins/common.styl +33 -39
- package/source/css/_layout/tag-plugins/folding.styl +1 -1
- package/source/css/_layout/tag-plugins/frame.styl +1 -1
- package/source/css/_layout/tag-plugins/gallery.styl +46 -0
- package/source/css/_layout/tag-plugins/grid.styl +0 -9
- package/source/css/_layout/tag-plugins/hashtag.styl +17 -0
- package/source/css/_layout/tag-plugins/mark.styl +2 -5
- package/source/css/_layout/tag-plugins/note.styl +2 -1
- package/source/css/_layout/tag-plugins/okr.styl +106 -0
- package/source/css/_layout/tag-plugins/timeline.styl +14 -1
- package/source/css/_layout/widgets/ghuser.styl +5 -6
- package/source/css/_plugins/copycode.styl +17 -6
- package/source/css/_plugins/fancybox.styl +4 -0
- package/source/css/_plugins/index.styl +2 -0
- package/source/css/_plugins/mermaid.styl +125 -10
- package/source/css/{_layout/partial/ai_abstract.styl → _plugins/tianli_gpt.styl} +2 -2
- package/source/js/main.js +25 -3
- package/source/js/plugins/copycode.js +1 -7
- package/source/js/plugins/fcircle.js +3 -3
- package/source/js/plugins/friends.js +3 -3
- package/source/js/plugins/linkcard.js +1 -1
- package/source/js/plugins/memos.js +133 -0
- package/source/js/plugins/sites.js +4 -4
- package/source/js/plugins/timeline.js +3 -3
- package/source/js/plugins/weibo.js +3 -3
- package/scripts/tags/lib/tag.js +0 -35
- package/source/css/_layout/tag-plugins/tag.styl +0 -13
|
@@ -13,9 +13,9 @@ set_text_black()
|
|
|
13
13
|
|
|
14
14
|
set_dynamic_color($theme)
|
|
15
15
|
--theme: $theme
|
|
16
|
-
--theme-bg1: hsl(hue($theme), 90, 90)
|
|
17
|
-
--theme-bg2: hsl(hue($theme), 80, 95)
|
|
18
16
|
--theme-border: hsl(hue($theme), 50, 80)
|
|
17
|
+
--theme-block: hsl(hue($theme), 90, 92)
|
|
18
|
+
--theme-codeblock: hsl(hue($theme), 50, 95)
|
|
19
19
|
--text-p0: hsl(hue($theme), 55, 16)
|
|
20
20
|
--text-p1: hsl(hue($theme), 55, 20)
|
|
21
21
|
--text-p2: hsl(hue($theme), 90, 24)
|
|
@@ -23,87 +23,81 @@ set_dynamic_color($theme)
|
|
|
23
23
|
.tag-plugin
|
|
24
24
|
--theme: var(--text-p1)
|
|
25
25
|
--theme-border: var(--block-border)
|
|
26
|
-
--theme-
|
|
27
|
-
--theme-
|
|
28
|
-
&.tag
|
|
29
|
-
--text-p2: hsl(hue($color-theme), 90, 24)
|
|
26
|
+
--theme-block: var(--block)
|
|
27
|
+
--theme-codeblock: var(--block)
|
|
30
28
|
|
|
31
|
-
.
|
|
29
|
+
.colorful[color='red']
|
|
32
30
|
set_dynamic_color($c-red)
|
|
33
|
-
.
|
|
31
|
+
.colorful[color='orange']
|
|
34
32
|
set_dynamic_color($c-orange)
|
|
35
|
-
.
|
|
33
|
+
.colorful[color='yellow']
|
|
36
34
|
set_dynamic_color($c-yellow)
|
|
37
|
-
.
|
|
35
|
+
.colorful[color='green']
|
|
38
36
|
set_dynamic_color($c-green)
|
|
39
|
-
.
|
|
37
|
+
.colorful[color='cyan']
|
|
40
38
|
set_dynamic_color($c-cyan)
|
|
41
|
-
.
|
|
39
|
+
.colorful[color='blue']
|
|
42
40
|
set_dynamic_color($c-blue)
|
|
43
|
-
.
|
|
41
|
+
.colorful[color='purple']
|
|
44
42
|
set_dynamic_color($c-purple)
|
|
45
43
|
|
|
46
|
-
.
|
|
47
|
-
--theme-
|
|
48
|
-
--theme-bg2: white
|
|
44
|
+
.colorful[color='light']
|
|
45
|
+
--theme-block: white
|
|
49
46
|
set_text_black()
|
|
50
47
|
|
|
51
|
-
.
|
|
52
|
-
--theme-
|
|
53
|
-
--theme-bg2: #333
|
|
48
|
+
.colorful[color='dark']
|
|
49
|
+
--theme-block: #333
|
|
54
50
|
set_text_white()
|
|
55
51
|
|
|
56
|
-
.
|
|
52
|
+
.colorful[color='warning']
|
|
57
53
|
--theme: $c-yellow
|
|
58
54
|
--theme-border: #ffe659
|
|
59
|
-
--theme-
|
|
55
|
+
--theme-block: #ffe659
|
|
60
56
|
--theme-link: #ff453a
|
|
61
57
|
|
|
62
|
-
.
|
|
58
|
+
.colorful[color='error']
|
|
63
59
|
--theme: $c-yellow
|
|
64
60
|
--theme-border: #ff453a
|
|
65
|
-
--theme-
|
|
61
|
+
--theme-block: #ff453a
|
|
66
62
|
--theme-link: #ffe659
|
|
67
63
|
set_text_white()
|
|
68
64
|
|
|
69
65
|
set_darkmode_tags()
|
|
70
66
|
set_dynamic_color($theme)
|
|
71
67
|
--theme: $theme
|
|
72
|
-
--theme-bg1: hsl(hue($theme), 50, 16)
|
|
73
|
-
--theme-bg2: hsl(hue($theme), 16, 16)
|
|
74
68
|
--theme-border: hsl(hue($theme), 50, 24)
|
|
69
|
+
--theme-block: hsl(hue($theme), 16, 16)
|
|
70
|
+
--theme-codeblock: hsl(hue($theme), 12, 18)
|
|
75
71
|
--text-p0: hsl(hue($theme), 100, 85)
|
|
76
72
|
--text-p1: hsl(hue($theme), 50, 75)
|
|
77
73
|
--text-p2: hsl(hue($theme), 80, 72)
|
|
78
74
|
.tag-plugin.tag
|
|
79
75
|
set_dynamic_color($color-theme)
|
|
80
|
-
.
|
|
76
|
+
.colorful[color='red']
|
|
81
77
|
set_dynamic_color($c-red)
|
|
82
|
-
.
|
|
78
|
+
.colorful[color='orange']
|
|
83
79
|
set_dynamic_color($c-orange)
|
|
84
|
-
.
|
|
80
|
+
.colorful[color='yellow']
|
|
85
81
|
set_dynamic_color($c-yellow)
|
|
86
|
-
.
|
|
82
|
+
.colorful[color='green']
|
|
87
83
|
set_dynamic_color($c-green)
|
|
88
|
-
.
|
|
84
|
+
.colorful[color='cyan']
|
|
89
85
|
set_dynamic_color($c-cyan)
|
|
90
|
-
.
|
|
86
|
+
.colorful[color='blue']
|
|
91
87
|
set_dynamic_color($c-blue)
|
|
92
|
-
.
|
|
88
|
+
.colorful[color='purple']
|
|
93
89
|
set_dynamic_color($c-purple)
|
|
94
|
-
.
|
|
90
|
+
.colorful[color='light']
|
|
95
91
|
--theme-border: white
|
|
96
|
-
--theme-
|
|
97
|
-
--theme-bg2: #fff
|
|
92
|
+
--theme-block: #fff
|
|
98
93
|
set_text_black()
|
|
99
94
|
|
|
100
|
-
.
|
|
95
|
+
.colorful[color='dark']
|
|
101
96
|
--theme-border: black
|
|
102
|
-
--theme-
|
|
103
|
-
--theme-bg2: #111
|
|
97
|
+
--theme-block: #111
|
|
104
98
|
set_text_white()
|
|
105
99
|
|
|
106
|
-
.
|
|
100
|
+
.colorful[color='warning'],.colorful[color='light']
|
|
107
101
|
set_text_black()
|
|
108
102
|
|
|
109
103
|
if hexo-config('style.darkmode') == 'auto'
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
margin-top: 19px
|
|
28
28
|
margin-bottom: 20px
|
|
29
29
|
.frame
|
|
30
|
-
background-image: url(https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.
|
|
30
|
+
background-image: url(https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.9/frame/iphone11.svg);
|
|
31
31
|
width: 329px
|
|
32
32
|
height: 658px
|
|
33
33
|
&[focus='top']
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.tag-plugin.gallery
|
|
2
|
+
border-radius: 8px
|
|
3
|
+
column-count: 4
|
|
4
|
+
column-gap: 0
|
|
5
|
+
margin-left: -4px
|
|
6
|
+
margin-right: -4px
|
|
7
|
+
.cell
|
|
8
|
+
display: block
|
|
9
|
+
padding: 4px
|
|
10
|
+
overflow hidden
|
|
11
|
+
z-index 0
|
|
12
|
+
position: relative
|
|
13
|
+
&:hover
|
|
14
|
+
.image-meta
|
|
15
|
+
background: rgba(black, 0.5)
|
|
16
|
+
.image-caption
|
|
17
|
+
color: white
|
|
18
|
+
img
|
|
19
|
+
object-fit: cover
|
|
20
|
+
max-height: 100%
|
|
21
|
+
overflow: hidden
|
|
22
|
+
display: block
|
|
23
|
+
.image-meta
|
|
24
|
+
position: absolute
|
|
25
|
+
z-index: 1
|
|
26
|
+
margin: 4px
|
|
27
|
+
top: 0
|
|
28
|
+
left: 0
|
|
29
|
+
right: 0
|
|
30
|
+
bottom: 0
|
|
31
|
+
pointer-events: none
|
|
32
|
+
background: transparent
|
|
33
|
+
border-radius: 8px
|
|
34
|
+
trans1(background)
|
|
35
|
+
display: flex
|
|
36
|
+
flex-direction: column
|
|
37
|
+
justify-content: flex-end
|
|
38
|
+
.image-caption
|
|
39
|
+
display: block
|
|
40
|
+
font-size: $fs-13
|
|
41
|
+
color: transparent
|
|
42
|
+
line-height: 1.2
|
|
43
|
+
margin: 4px
|
|
44
|
+
trans1(color)
|
|
45
|
+
&:empty
|
|
46
|
+
display: none
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
grid-gap: 16px
|
|
4
4
|
grid-template-columns: repeat(auto-fill, "calc((100% - 1 * %s) / 2)" % 16px)
|
|
5
5
|
>.cell
|
|
6
|
-
margin: 1rem 0
|
|
7
6
|
p:first-child>strong:only-child
|
|
8
7
|
font-size: 1rem
|
|
9
8
|
>.cell>
|
|
@@ -18,14 +17,6 @@
|
|
|
18
17
|
p:last-child
|
|
19
18
|
margin-bottom: -0.25em
|
|
20
19
|
|
|
21
|
-
.md-text .tag-plugin.grid
|
|
22
|
-
margin-top: -0.5rem
|
|
23
|
-
margin-bottom: -0.5rem
|
|
24
|
-
|
|
25
|
-
.tag-plugin.grid
|
|
26
|
-
@media screen and (max-width: $device-tablet)
|
|
27
|
-
display: block
|
|
28
|
-
|
|
29
20
|
.tag-plugin.grid
|
|
30
21
|
&[bg]>.cell
|
|
31
22
|
padding: 1rem
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.md-text .tag-plugin.hashtag
|
|
2
|
+
padding: 0px 8px
|
|
3
|
+
border-radius: 100px
|
|
4
|
+
background: var(--theme-block)
|
|
5
|
+
color: var(--text-p2)
|
|
6
|
+
margin: 2px 0
|
|
7
|
+
display: inline-flex
|
|
8
|
+
align-items: center
|
|
9
|
+
font-size: $fs-13
|
|
10
|
+
font-weight: 500
|
|
11
|
+
trans2 background color
|
|
12
|
+
span
|
|
13
|
+
margin: 0 2px
|
|
14
|
+
&:hover
|
|
15
|
+
background: var(--text-p2)
|
|
16
|
+
color: var(--theme-block)
|
|
17
|
+
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
position: relative
|
|
3
3
|
padding: 0.25rem 1rem
|
|
4
4
|
border-radius: $border-block
|
|
5
|
-
background: var(--theme-
|
|
5
|
+
background: var(--theme-block)
|
|
6
6
|
overflow: hidden
|
|
7
7
|
if hexo-config('tag_plugins.note.border') == true
|
|
8
8
|
border: 1px solid var(--theme-border)
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
background: var(--block-hover)
|
|
32
32
|
.md-text .tag-plugin.note[child=codeblock]
|
|
33
33
|
padding: 0
|
|
34
|
+
background: var(--theme-codeblock)
|
|
34
35
|
>.title, >.body:only-child
|
|
35
36
|
margin-top: 0
|
|
36
37
|
>.body
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
.md-text .tag-plugin.okr
|
|
2
|
+
position: relative
|
|
3
|
+
border-radius: $border-block
|
|
4
|
+
background: var(--theme-block)
|
|
5
|
+
border: 1px solid var(--theme-border)
|
|
6
|
+
if hexo-config('tag_plugins.okr.border') == true
|
|
7
|
+
border: 1px solid var(--theme-border)
|
|
8
|
+
overflow: hidden
|
|
9
|
+
color: var(--text-p1)
|
|
10
|
+
line-height: 1.5
|
|
11
|
+
.o
|
|
12
|
+
.title
|
|
13
|
+
font-size: $fs-15
|
|
14
|
+
.note
|
|
15
|
+
font-size: $fs-14
|
|
16
|
+
p
|
|
17
|
+
font-size: $fs-14
|
|
18
|
+
.kr
|
|
19
|
+
.title
|
|
20
|
+
font-size: $fs-14
|
|
21
|
+
.note
|
|
22
|
+
font-size: $fs-14
|
|
23
|
+
p,li,.tag-plugin
|
|
24
|
+
font-size: $fs-14
|
|
25
|
+
|
|
26
|
+
.title
|
|
27
|
+
font-weight: 600
|
|
28
|
+
display: block
|
|
29
|
+
.note
|
|
30
|
+
font-weight: 400
|
|
31
|
+
display: block
|
|
32
|
+
margin-top: 0.5rem
|
|
33
|
+
>p,>ul
|
|
34
|
+
margin-top: 0.25rem
|
|
35
|
+
margin-bottom: 0.25rem
|
|
36
|
+
>.tag-plugin
|
|
37
|
+
margin-top: 0.25rem
|
|
38
|
+
margin-bottom: 0.25rem
|
|
39
|
+
>*:last-child
|
|
40
|
+
margin-bottom: 0
|
|
41
|
+
.status
|
|
42
|
+
font-size: $fs-12
|
|
43
|
+
padding: 2px 4px
|
|
44
|
+
border-radius: 2px
|
|
45
|
+
.okr-item.o
|
|
46
|
+
border-bottom: 4px solid var(--theme-border)
|
|
47
|
+
.okr-item.kr+.okr-item.kr
|
|
48
|
+
border-top: 1px dashed var(--theme-border)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
.tag-plugin.okr .okr-item
|
|
52
|
+
display: grid
|
|
53
|
+
grid-template-columns: 3.2rem auto 100px
|
|
54
|
+
grid-column-gap: 0.75rem
|
|
55
|
+
padding: 1rem
|
|
56
|
+
.okr-left .title
|
|
57
|
+
background: var(--card)
|
|
58
|
+
border-radius: 1rem
|
|
59
|
+
text-align: center
|
|
60
|
+
padding: 0 0.5rem
|
|
61
|
+
.labels
|
|
62
|
+
display: flex
|
|
63
|
+
justify-content: space-between
|
|
64
|
+
align-items: flex-start
|
|
65
|
+
position relative
|
|
66
|
+
.label
|
|
67
|
+
background: var(--theme-block)
|
|
68
|
+
color: var(--text-p1)
|
|
69
|
+
|
|
70
|
+
.progress
|
|
71
|
+
margin-top: 4px
|
|
72
|
+
height: 4px
|
|
73
|
+
border-radius: 2px
|
|
74
|
+
position: relative
|
|
75
|
+
background: var(--card)
|
|
76
|
+
.fill
|
|
77
|
+
position: absolute
|
|
78
|
+
background: var(--theme)
|
|
79
|
+
border-radius: 2px
|
|
80
|
+
top: 0
|
|
81
|
+
left: 0
|
|
82
|
+
bottom: 0
|
|
83
|
+
&:before
|
|
84
|
+
content: ''
|
|
85
|
+
position absolute
|
|
86
|
+
top: -4px
|
|
87
|
+
bottom: -4px
|
|
88
|
+
right: -4px
|
|
89
|
+
width: 8px
|
|
90
|
+
height: 12px
|
|
91
|
+
border-radius: 8px
|
|
92
|
+
background: white
|
|
93
|
+
box-shadow: $boxshadow-button
|
|
94
|
+
&:after
|
|
95
|
+
content: ''
|
|
96
|
+
position absolute
|
|
97
|
+
top: -2px
|
|
98
|
+
bottom: -2px
|
|
99
|
+
right: -2px
|
|
100
|
+
width: 4px
|
|
101
|
+
height: 8px
|
|
102
|
+
border-radius: 4px
|
|
103
|
+
background: var(--theme)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
@@ -206,4 +206,17 @@
|
|
|
206
206
|
h5,h6
|
|
207
207
|
font-size: $fs-15
|
|
208
208
|
margin: 0.5rem 0
|
|
209
|
-
line-height: 1.2
|
|
209
|
+
line-height: 1.2
|
|
210
|
+
|
|
211
|
+
.tag-plugin.timeline.stellar-memos-api .body
|
|
212
|
+
p:first-child
|
|
213
|
+
margin-top: 2px
|
|
214
|
+
p:last-child
|
|
215
|
+
margin-bottom: 2px
|
|
216
|
+
img
|
|
217
|
+
margin: 0
|
|
218
|
+
max-height: 128px
|
|
219
|
+
.tag-plugin.image
|
|
220
|
+
display: flex
|
|
221
|
+
.image-bg+.image-bg
|
|
222
|
+
margin-left: 4px
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
padding: 1rem
|
|
9
9
|
box-shadow: $boxshadow-card
|
|
10
10
|
|
|
11
|
-
.widget-wrapper.ghuser
|
|
11
|
+
.widgets .widget-wrapper.ghuser
|
|
12
12
|
.avatar
|
|
13
13
|
display: block
|
|
14
14
|
border-radius: 100%
|
|
@@ -20,15 +20,14 @@
|
|
|
20
20
|
@media screen and (max-width: $device-tablet)
|
|
21
21
|
max-width: 50%
|
|
22
22
|
|
|
23
|
-
.username
|
|
23
|
+
p.username
|
|
24
24
|
font-weight: 900
|
|
25
25
|
font-size: $fs-h2
|
|
26
26
|
color: var(--text-p0)
|
|
27
|
-
margin: 0
|
|
28
|
-
|
|
29
|
-
.bio
|
|
27
|
+
margin: 0
|
|
28
|
+
p.bio
|
|
30
29
|
font-size: $fs-13
|
|
31
|
-
margin: 0
|
|
30
|
+
margin: 0
|
|
32
31
|
|
|
33
32
|
.follow
|
|
34
33
|
font-weight: 500
|
|
@@ -8,15 +8,22 @@
|
|
|
8
8
|
padding: 4px 0.5rem
|
|
9
9
|
opacity: 0
|
|
10
10
|
font-weight: 700
|
|
11
|
-
color: var(--
|
|
11
|
+
color: var(--text-p2)
|
|
12
|
+
border-bottom-left-radius: $border-bar
|
|
13
|
+
border-bottom-right-radius: $border-bar
|
|
14
|
+
background: var(--block-hover)
|
|
15
|
+
display: block
|
|
12
16
|
cursor: pointer
|
|
17
|
+
margin-right: 0.5rem
|
|
13
18
|
|
|
14
|
-
.highlight:hover
|
|
15
|
-
|
|
19
|
+
.highlight:hover
|
|
20
|
+
.code:before
|
|
21
|
+
opacity: 0
|
|
22
|
+
.copy-btn
|
|
23
|
+
opacity: 0.75
|
|
16
24
|
|
|
17
25
|
.highlight .code .copy-btn:hover
|
|
18
|
-
|
|
19
|
-
opacity: 0.75
|
|
26
|
+
opacity: 1
|
|
20
27
|
|
|
21
28
|
.highlight .code .copy-btn.success
|
|
22
29
|
color: $c-green
|
|
@@ -24,4 +31,8 @@
|
|
|
24
31
|
|
|
25
32
|
.highlight .code .copy-btn.warning
|
|
26
33
|
color: $c-orange
|
|
27
|
-
opacity: 0.75
|
|
34
|
+
opacity: 0.75
|
|
35
|
+
|
|
36
|
+
.md-text .tag-plugin[child=codeblock]
|
|
37
|
+
.highlight .code .copy-btn
|
|
38
|
+
border-radius: $border-bar
|
|
@@ -1,10 +1,125 @@
|
|
|
1
|
-
pre.mermaid
|
|
2
|
-
display: inline-block
|
|
3
|
-
width: 100
|
|
4
|
-
text-align: center
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
.mermaid svg
|
|
8
|
-
width: 100
|
|
9
|
-
display: inline-block
|
|
10
|
-
|
|
1
|
+
pre.mermaid
|
|
2
|
+
display: inline-block
|
|
3
|
+
width: 100%
|
|
4
|
+
text-align: center
|
|
5
|
+
font-family: $ff-body
|
|
6
|
+
|
|
7
|
+
.mermaid svg
|
|
8
|
+
width: 100%
|
|
9
|
+
display: inline-block
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
.mermaid svg
|
|
13
|
+
width: 100%
|
|
14
|
+
display: inline-block
|
|
15
|
+
|
|
16
|
+
.mermaid span,text
|
|
17
|
+
font-family: $ff-body
|
|
18
|
+
|
|
19
|
+
.mermaid .edgeLabel
|
|
20
|
+
padding: 4px
|
|
21
|
+
background-color: var(--site-bg) !important
|
|
22
|
+
|
|
23
|
+
.mermaid rect.basic.label-container
|
|
24
|
+
stroke: var(--block-border) !important
|
|
25
|
+
fill: var(--block) !important
|
|
26
|
+
|
|
27
|
+
set_mermaid_darkmode()
|
|
28
|
+
.mermaid
|
|
29
|
+
fill: #ccc !important
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
.mermaid .error-icon
|
|
33
|
+
fill: #a44141 !important
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
.mermaid .error-text
|
|
37
|
+
fill: #ddd !important
|
|
38
|
+
stroke: #ddd !important
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
.mermaid .marker
|
|
42
|
+
fill: lightgrey !important
|
|
43
|
+
stroke: lightgrey !important
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
.mermaid .marker.cross
|
|
47
|
+
stroke: lightgrey !important
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
.mermaid .label
|
|
51
|
+
color: #ccc !important
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
.mermaid .cluster-label text
|
|
55
|
+
fill: #F9FFFE !important
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
.mermaid .cluster-label span
|
|
59
|
+
color: #F9FFFE !important
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
.mermaid .label text,
|
|
63
|
+
.mermaid span
|
|
64
|
+
fill: #ccc !important
|
|
65
|
+
color: #ccc !important
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
.mermaid .node rect,
|
|
69
|
+
.mermaid .node circle,
|
|
70
|
+
.mermaid .node ellipse,
|
|
71
|
+
.mermaid .node polygon,
|
|
72
|
+
.mermaid .node path
|
|
73
|
+
fill: #1f2020 !important
|
|
74
|
+
stroke: #81B1DB !important
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
.mermaid .arrowheadPath
|
|
78
|
+
fill: lightgrey !important
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
.mermaid .edgePath .path
|
|
82
|
+
stroke: lightgrey !important
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
.mermaid .flowchart-link
|
|
86
|
+
stroke: lightgrey !important
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
.mermaid .edgeLabel
|
|
90
|
+
background-color: hsl(0, 0%, 34.4117647059%) !important
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
.mermaid .edgeLabel rect
|
|
94
|
+
background-color: hsl(0, 0%, 34.4117647059%) !important
|
|
95
|
+
fill: hsl(0, 0%, 34.4117647059%) !important
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
.mermaid .cluster rect
|
|
99
|
+
fill: hsl(180, 1.5873015873%, 28.3529411765%) !important
|
|
100
|
+
stroke: rgba(255, 255, 255, 0.25) !important
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
.mermaid .cluster text
|
|
104
|
+
fill: #F9FFFE !important
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
.mermaid .cluster span
|
|
108
|
+
color: #F9FFFE !important
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
.mermaid div.mermaidTooltip
|
|
112
|
+
background: hsl(20, 1.5873015873%, 12.3529411765%) !important
|
|
113
|
+
border: 1px solid rgba(255, 255, 255, 0.25) !important
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
.mermaid .flowchartTitleText
|
|
117
|
+
fill: #ccc
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
if hexo-config('style.darkmode') == 'auto'
|
|
121
|
+
@media (prefers-color-scheme: dark)
|
|
122
|
+
set_mermaid_darkmode()
|
|
123
|
+
|
|
124
|
+
if hexo-config('style.darkmode') == 'always'
|
|
125
|
+
set_mermaid_darkmode()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
.post-TianliGPT
|
|
2
2
|
--heo-none: #00000000
|
|
3
3
|
--heo-theme = var(--theme-link)
|
|
4
4
|
--heo-main: var(--theme-link)
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
--heo-background: var(--site-bg)
|
|
8
8
|
--heo-hovertext: var(--text-code)
|
|
9
9
|
--heo-secondtext: var(--text-p0)
|
|
10
|
-
--heo-scrollbar:
|
|
10
|
+
--heo-scrollbar: var(--block-border)
|
|
11
11
|
--heo-secondbg: var(--block)
|
|
12
12
|
--heo-card-bg: var(--block)
|
|
13
13
|
--heo-card-bg-none: rgba(255, 255, 255, 0)
|
package/source/js/main.js
CHANGED
|
@@ -126,7 +126,7 @@ const init = {
|
|
|
126
126
|
highlightItem.addClass("active")
|
|
127
127
|
const e0 = document.querySelector('.widgets')
|
|
128
128
|
const e1 = document.querySelector('#data-toc a.toc-link[href="' + encodeURI(link) + '"]')
|
|
129
|
-
const offsetBottom = e1.getBoundingClientRect().bottom - e0.getBoundingClientRect().bottom +
|
|
129
|
+
const offsetBottom = e1.getBoundingClientRect().bottom - e0.getBoundingClientRect().bottom + 200
|
|
130
130
|
const offsetTop = e1.getBoundingClientRect().top - e0.getBoundingClientRect().top - 64
|
|
131
131
|
if (offsetTop < 0) {
|
|
132
132
|
e0.scrollBy(0, offsetTop)
|
|
@@ -245,7 +245,7 @@ if (stellar.plugins.stellar) {
|
|
|
245
245
|
if (els != undefined && els.length > 0) {
|
|
246
246
|
stellar.jQuery(() => {
|
|
247
247
|
stellar.loadScript(js, { defer: true });
|
|
248
|
-
if (key == 'timeline') {
|
|
248
|
+
if (key == 'timeline' || 'memos') {
|
|
249
249
|
stellar.loadScript(stellar.plugins.marked);
|
|
250
250
|
}
|
|
251
251
|
})
|
|
@@ -299,13 +299,35 @@ if (stellar.plugins.preload) {
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
+
function loadFancybox() {
|
|
303
|
+
stellar.loadCSS(stellar.plugins.fancybox.css);
|
|
304
|
+
stellar.loadScript(stellar.plugins.fancybox.js, { defer: true }).then(function () {
|
|
305
|
+
Fancybox.bind(selector, {
|
|
306
|
+
groupAll: true,
|
|
307
|
+
hideScrollbar: false,
|
|
308
|
+
Thumbs: {
|
|
309
|
+
autoStart: false,
|
|
310
|
+
},
|
|
311
|
+
caption: function (fancybox, carousel, slide) {
|
|
312
|
+
return slide.$trigger.alt || null
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
})
|
|
316
|
+
}
|
|
302
317
|
// fancybox
|
|
303
318
|
if (stellar.plugins.fancybox) {
|
|
304
319
|
let selector = 'img[fancybox]:not(.error)';
|
|
305
320
|
if (stellar.plugins.fancybox.selector) {
|
|
306
321
|
selector += `, ${stellar.plugins.fancybox.selector}`
|
|
307
322
|
}
|
|
308
|
-
|
|
323
|
+
var needFancybox = document.querySelectorAll(selector).length !== 0;
|
|
324
|
+
if (!needFancybox) {
|
|
325
|
+
const els = document.getElementsByClassName('stellar-memos-api');
|
|
326
|
+
if (els != undefined && els.length > 0) {
|
|
327
|
+
needFancybox = true;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
if (needFancybox) {
|
|
309
331
|
stellar.loadCSS(stellar.plugins.fancybox.css);
|
|
310
332
|
stellar.loadScript(stellar.plugins.fancybox.js, { defer: true }).then(function () {
|
|
311
333
|
Fancybox.bind(selector, {
|