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
|
@@ -1,8 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
|
|
2
|
+
.widget-wrapper.post-card .widget-body
|
|
3
|
+
max-width: 100%
|
|
4
|
+
margin: 1rem 0
|
|
5
|
+
.item+.item
|
|
6
|
+
margin-top: 8px
|
|
7
|
+
.item
|
|
8
|
+
line-height: 1.2
|
|
9
|
+
background: var(--alpha20)
|
|
10
|
+
padding: 10px 16px
|
|
11
|
+
border-radius: $border-card
|
|
12
|
+
display: block
|
|
13
|
+
border-left: 0
|
|
14
|
+
box-sizing: border-box
|
|
15
|
+
.title
|
|
16
|
+
color: var(--text-p1)
|
|
17
|
+
font-weight: 500
|
|
18
|
+
font-size: 1rem
|
|
19
|
+
display: -webkit-box
|
|
20
|
+
-webkit-box-orient: vertical
|
|
21
|
+
overflow: hidden
|
|
22
|
+
-webkit-line-clamp: 1
|
|
5
23
|
font-weight: 700
|
|
6
24
|
font-size: $fs-14
|
|
7
25
|
.excerpt
|
|
8
|
-
|
|
26
|
+
color: var(--text-p3)
|
|
27
|
+
font-size: $fs-12
|
|
28
|
+
margin-top: 0.5rem
|
|
29
|
+
display: -webkit-box
|
|
30
|
+
-webkit-box-orient: vertical
|
|
31
|
+
overflow: hidden
|
|
32
|
+
-webkit-line-clamp: 2
|
|
33
|
+
|
|
34
|
+
.item
|
|
35
|
+
trans1 background
|
|
36
|
+
.item.active
|
|
37
|
+
background: var(--alpha50)
|
|
38
|
+
.item:hover
|
|
39
|
+
background: var(--alpha50)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
margin-top: 0.5rem
|
|
4
4
|
.tag-plugin.timeline .timenode
|
|
5
5
|
.header
|
|
6
|
-
margin
|
|
6
|
+
margin: 0.5rem 16px
|
|
7
7
|
txt-ellipsis()
|
|
8
8
|
.user-info
|
|
9
|
-
background: var(--
|
|
9
|
+
background: var(--alpha50)
|
|
10
10
|
&:hover
|
|
11
11
|
background: $color-hover
|
|
12
12
|
color: var(--card)
|
|
@@ -14,4 +14,23 @@
|
|
|
14
14
|
display: none
|
|
15
15
|
&+.timenode
|
|
16
16
|
margin-top: 0.75rem
|
|
17
|
+
.header p
|
|
18
|
+
color: var(--text-p2)
|
|
19
|
+
.body
|
|
20
|
+
border-radius: $border-card
|
|
21
|
+
background: var(--alpha50)
|
|
22
|
+
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
|
|
31
|
+
code
|
|
32
|
+
background: none
|
|
33
|
+
padding: 0
|
|
34
|
+
margin: 0
|
|
35
|
+
|
|
17
36
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.widget-wrapper.toc .widget-header
|
|
2
|
-
margin-top: 1rem
|
|
3
1
|
|
|
4
2
|
.widget-wrapper.toc.single .widget-header
|
|
5
3
|
font-weight: 500
|
|
6
4
|
font-size: $fs-12
|
|
7
|
-
>span
|
|
8
|
-
margin: 0.5rem 0
|
|
9
5
|
|
|
6
|
+
.toc-item
|
|
7
|
+
margin-top: 2px
|
|
8
|
+
.toc-child
|
|
9
|
+
margin-top: 2px
|
|
10
10
|
.widget-wrapper.toc .widget-body
|
|
11
11
|
margin-top: 0
|
|
12
12
|
ul ul, ul ol
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
ol ul, ol ol
|
|
15
15
|
padding-left: 0
|
|
16
16
|
|
|
17
|
-
.doc-tree
|
|
18
|
-
margin: 4px 0
|
|
19
17
|
.toc
|
|
20
18
|
padding: 0
|
|
21
19
|
margin: 0
|
|
@@ -43,7 +41,7 @@
|
|
|
43
41
|
padding: 0
|
|
44
42
|
list-style: none
|
|
45
43
|
&.active
|
|
46
|
-
|
|
44
|
+
background: var(--alpha50)
|
|
47
45
|
border-left-color: @color
|
|
48
46
|
.toc-child .toc-item
|
|
49
47
|
padding: 0
|
|
@@ -51,8 +49,9 @@
|
|
|
51
49
|
color: inherit
|
|
52
50
|
display: block
|
|
53
51
|
line-height: 1.2
|
|
54
|
-
border-radius:
|
|
52
|
+
border-radius: $border-bar
|
|
55
53
|
position: relative
|
|
54
|
+
trans1 background
|
|
56
55
|
&:before
|
|
57
56
|
content: ''
|
|
58
57
|
position: absolute
|
|
@@ -61,14 +60,15 @@
|
|
|
61
60
|
bottom: 'calc(50% - %s)' % 6px
|
|
62
61
|
width: 2px
|
|
63
62
|
border-radius: 2px
|
|
64
|
-
background:
|
|
63
|
+
background: var(--text-p0)
|
|
65
64
|
visibility: hidden
|
|
66
|
-
&:hover
|
|
67
|
-
background: var(--block-hover)
|
|
68
65
|
&.active
|
|
69
|
-
|
|
66
|
+
background: var(--alpha50)
|
|
70
67
|
&:before
|
|
71
68
|
visibility: visible
|
|
69
|
+
&:hover
|
|
70
|
+
background: var(--alpha100)
|
|
71
|
+
|
|
72
72
|
|
|
73
73
|
// 始终折叠
|
|
74
74
|
.widget-wrapper.toc[collapse='true']
|
|
@@ -1,48 +1,61 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
font-size: $fs-14
|
|
1
|
+
.doc-tree+.doc-tree
|
|
2
|
+
margin-top: 2px
|
|
4
3
|
|
|
4
|
+
.widget-wrapper.toc.multi
|
|
5
|
+
// .widget-header
|
|
6
|
+
// color: $color-theme
|
|
7
|
+
// filter: brightness(75%)
|
|
8
|
+
.widget-body+.widget-header
|
|
9
|
+
margin-top: 28px
|
|
5
10
|
|
|
6
11
|
// 其它分页链接
|
|
7
12
|
.widget-wrapper.toc.multi .doc-tree
|
|
8
|
-
border-radius: $border-
|
|
9
|
-
background: var(--block)
|
|
13
|
+
border-radius: $border-card
|
|
10
14
|
overflow: hidden
|
|
11
|
-
border: 1px solid var(--block-border)
|
|
12
15
|
a.doc-tree-link
|
|
13
|
-
color: var(--text-
|
|
14
|
-
padding: 0
|
|
15
|
-
display:
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
color: var(--text-p1)
|
|
17
|
+
padding: 0 16px
|
|
18
|
+
display: flex
|
|
19
|
+
min-height: 32px
|
|
20
|
+
justify-content: space-between
|
|
21
|
+
align-items: center
|
|
22
|
+
font-size: $fs-14
|
|
18
23
|
position: relative
|
|
24
|
+
trans1 background
|
|
25
|
+
.toc-text
|
|
26
|
+
txt-ellipsis()
|
|
27
|
+
svg,img
|
|
28
|
+
flex-shrink: 0
|
|
29
|
+
width: 1em
|
|
30
|
+
height: 1em
|
|
31
|
+
transform: scale(1.2)
|
|
19
32
|
&:after
|
|
20
33
|
position: absolute
|
|
21
34
|
right: .5rem
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
35
|
+
&:only-child
|
|
36
|
+
&.active
|
|
37
|
+
background: var(--alpha50)
|
|
38
|
+
&:hover
|
|
39
|
+
background: var(--alpha100)
|
|
26
40
|
&:hover
|
|
27
|
-
background: var(--
|
|
28
|
-
&:after
|
|
29
|
-
content: '+'
|
|
41
|
+
background: var(--alpha100)
|
|
30
42
|
|
|
31
43
|
|
|
32
44
|
// 当前分页链接
|
|
33
45
|
.widget-wrapper.toc.multi .doc-tree.active
|
|
34
46
|
a.doc-tree-link
|
|
35
|
-
background: var(--
|
|
36
|
-
font-weight:
|
|
37
|
-
&:not(:only-child)
|
|
38
|
-
border-bottom: 1px solid var(--block-border)
|
|
47
|
+
background: var(--alpha100)
|
|
48
|
+
font-weight: 500
|
|
39
49
|
&:hover:after
|
|
40
50
|
content: none
|
|
41
51
|
>.toc
|
|
42
|
-
padding: 4px
|
|
43
|
-
|
|
52
|
+
padding: 4px 10px
|
|
53
|
+
border: 1px solid var(--alpha50)
|
|
54
|
+
background: var(--alpha20)
|
|
55
|
+
border-bottom-left-radius: $border-card
|
|
56
|
+
border-bottom-right-radius: $border-card
|
|
44
57
|
a.toc-link:before
|
|
45
58
|
left: -2px
|
|
46
59
|
width: 4px
|
|
47
60
|
a.toc-link:hover
|
|
48
|
-
background: var(--
|
|
61
|
+
background: var(--alpha100)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.widgets
|
|
2
2
|
.loading-wrap
|
|
3
3
|
margin: 0.5rem 0
|
|
4
|
+
background: var(--alpha50)
|
|
4
5
|
|
|
5
6
|
.widgets
|
|
6
7
|
overflow: scroll
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
scrollbar(0, 0)
|
|
10
11
|
z-index: 1
|
|
11
12
|
line-height: 1.2
|
|
13
|
+
margin: 0 var(--gap-l)
|
|
12
14
|
.widget-wrapper
|
|
13
15
|
.widget-header
|
|
14
16
|
padding-left: var(--gap-l)
|
|
@@ -16,33 +18,39 @@
|
|
|
16
18
|
display: flex
|
|
17
19
|
justify-content: space-between
|
|
18
20
|
align-items: center
|
|
21
|
+
line-height: 28px
|
|
19
22
|
font-weight: 500
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
background: var(--site-bg)
|
|
23
|
-
padding-top: 2px
|
|
24
|
-
z-index 1
|
|
23
|
+
font-size: $fs-12
|
|
24
|
+
color: var(--text-p1)
|
|
25
25
|
.item
|
|
26
26
|
display: block
|
|
27
|
-
>span
|
|
28
|
-
margin: 0.25rem 0
|
|
27
|
+
>span
|
|
29
28
|
text-align: left
|
|
29
|
+
opacity 0.6
|
|
30
30
|
&:empty
|
|
31
31
|
display: none
|
|
32
32
|
.cap-action
|
|
33
|
-
hover-block 4px 4px
|
|
34
33
|
line-height: 0
|
|
35
|
-
color:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
color: inherit
|
|
35
|
+
opacity 0.6
|
|
36
|
+
trans2: opacity background
|
|
37
|
+
border-radius: 4px
|
|
38
|
+
padding: 6px
|
|
39
|
+
margin-right: -5px
|
|
40
|
+
svg
|
|
41
|
+
height: 1em
|
|
42
|
+
width: auto
|
|
43
|
+
transform: scale(1.2)
|
|
44
|
+
fill: var(--text-p2)
|
|
39
45
|
&:hover
|
|
40
46
|
color: $color-hover
|
|
41
|
-
|
|
47
|
+
background: var(--alpha100)
|
|
48
|
+
opacity 1
|
|
49
|
+
svg
|
|
42
50
|
fill: $color-hover
|
|
43
51
|
|
|
44
52
|
.widget-body
|
|
45
|
-
margin: 0.5rem
|
|
53
|
+
margin: 0.5rem 0
|
|
46
54
|
color: var(--text-p1)
|
|
47
55
|
p
|
|
48
56
|
margin-top: .5em
|
|
@@ -50,11 +58,8 @@
|
|
|
50
58
|
line-height: 1.5
|
|
51
59
|
.widget-header+.widget-body
|
|
52
60
|
margin-top: 0
|
|
53
|
-
|
|
54
|
-
margin-top: 3rem
|
|
55
|
-
.widget-wrapper+.widget-wrapper.toc .widget-header
|
|
56
|
-
margin-top: 1rem
|
|
61
|
+
|
|
57
62
|
|
|
58
63
|
.widget-wrapper
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
display: block
|
|
65
|
+
margin: 32px 0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.cmt-body.twikoo
|
|
2
|
-
--twikoo-lighttext:
|
|
2
|
+
--twikoo-lighttext: $color-theme;
|
|
3
3
|
--twikoo-secondtext: #909094;
|
|
4
4
|
--twikoo-emoji-background: #f8f8f8;
|
|
5
5
|
--twikoo-theme: $color-theme;
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
.tk-content
|
|
9
9
|
.vemoji, .tk-owo-emotion
|
|
10
10
|
width: unset;
|
|
11
|
-
border-radius:
|
|
11
|
+
border-radius: $border-image;
|
|
12
12
|
max-height: 24px;
|
|
13
13
|
max-width: 100px;
|
|
14
14
|
|
|
15
15
|
img
|
|
16
16
|
max-width: 400px;
|
|
17
17
|
max-height: 400px;
|
|
18
|
-
border-radius:
|
|
18
|
+
border-radius: $border-image;
|
|
19
19
|
|
|
20
20
|
.OwO
|
|
21
21
|
.OwO-body
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
width: auto
|
|
59
59
|
border: none
|
|
60
60
|
padding: 6px 2rem
|
|
61
|
-
border-radius:
|
|
61
|
+
border-radius: $border-block
|
|
62
62
|
background: var(--block)
|
|
63
63
|
color: var(--text-p1)
|
|
64
64
|
line-height: 2
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
margin-bottom: 1rem
|
|
75
75
|
border: 1px dashed var(--block-border);
|
|
76
76
|
padding: 1rem;
|
|
77
|
-
border-radius:
|
|
77
|
+
border-radius: $border-block;
|
|
78
78
|
background: var(--card);
|
|
79
79
|
|
|
80
80
|
&:hover
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
|
|
87
87
|
.tk-submit
|
|
88
88
|
padding: 1rem 1rem 0 1rem;
|
|
89
|
-
border-radius:
|
|
89
|
+
border-radius: $border-block;
|
|
90
90
|
background: var(--card);
|
|
91
91
|
|
|
92
92
|
.tk-tag
|
|
@@ -108,9 +108,9 @@
|
|
|
108
108
|
|
|
109
109
|
set_darkmode_comments()
|
|
110
110
|
.cmt-body.twikoo
|
|
111
|
-
--twikoo-lighttext:
|
|
112
|
-
--twikoo-secondtext:
|
|
113
|
-
--twikoo-theme:
|
|
111
|
+
--twikoo-lighttext: $color-link;
|
|
112
|
+
--twikoo-secondtext: var(--text-p2);
|
|
113
|
+
--twikoo-theme: $color-theme;
|
|
114
114
|
|
|
115
115
|
if hexo-config('style.darkmode') == 'auto'
|
|
116
116
|
@media (prefers-color-scheme: dark)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.
|
|
1
|
+
.slide-up
|
|
2
2
|
visibility: hidden
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.post-TianliGPT
|
|
2
2
|
--heo-none: #00000000
|
|
3
|
-
--heo-theme =
|
|
4
|
-
--heo-main:
|
|
3
|
+
--heo-theme = $color-theme
|
|
4
|
+
--heo-main: $color-theme
|
|
5
5
|
--heo-snackbar-time: 5s
|
|
6
6
|
--heo-theme-none: #4259ef01
|
|
7
7
|
--heo-background: var(--site-bg)
|
|
@@ -18,11 +18,10 @@
|
|
|
18
18
|
|
|
19
19
|
.post-TianliGPT
|
|
20
20
|
background: var(--block)
|
|
21
|
-
border-radius:
|
|
21
|
+
border-radius: $border-block
|
|
22
22
|
padding: 12px
|
|
23
23
|
line-height: 1.3
|
|
24
24
|
border: var(--style-border-always)
|
|
25
|
-
margin: 16px 0
|
|
26
25
|
|
|
27
26
|
@media screen and (max-width: 768px)
|
|
28
27
|
.post-TianliGPT
|
|
@@ -30,7 +29,6 @@
|
|
|
30
29
|
|
|
31
30
|
.tianliGPT-title
|
|
32
31
|
display: flex
|
|
33
|
-
color: var(--theme-link)
|
|
34
32
|
border-radius: 8px
|
|
35
33
|
align-items: center
|
|
36
34
|
padding: 0 12px
|
|
@@ -46,7 +44,7 @@
|
|
|
46
44
|
margin-top: 12px
|
|
47
45
|
padding: 8px 12px
|
|
48
46
|
background: var(--card)
|
|
49
|
-
border-radius:
|
|
47
|
+
border-radius: $border-block
|
|
50
48
|
border: var(--style-border-always)
|
|
51
49
|
font-size: 15px
|
|
52
50
|
line-height: 1.4
|
|
@@ -71,15 +69,15 @@
|
|
|
71
69
|
transition: 0.3s
|
|
72
70
|
|
|
73
71
|
.tianliGPT-suggestions .tianliGPT-suggestions-item:hover
|
|
74
|
-
background:
|
|
72
|
+
background: $color-theme
|
|
75
73
|
color: var(--text-p0)
|
|
76
74
|
|
|
77
75
|
.blinking-cursor
|
|
78
|
-
background-color: var(--
|
|
76
|
+
background-color: var(--text-p2)
|
|
79
77
|
width: 10px
|
|
80
|
-
height:
|
|
78
|
+
height: 10px
|
|
81
79
|
display: inline-block
|
|
82
|
-
|
|
80
|
+
border-radius: 50%;
|
|
83
81
|
animation: blinking-cursor 0.5s infinite
|
|
84
82
|
-webkit-animation: blinking-cursor 0.5s infinite
|
|
85
83
|
margin-left: 4px
|
|
@@ -102,7 +100,7 @@
|
|
|
102
100
|
|
|
103
101
|
.tianliGPT-tag
|
|
104
102
|
font-size: 12px
|
|
105
|
-
background-color: var(--
|
|
103
|
+
background-color: var(--text-p2)
|
|
106
104
|
color: var(--card)
|
|
107
105
|
font-weight: bold
|
|
108
106
|
border-radius: 4px
|
|
@@ -116,7 +114,7 @@
|
|
|
116
114
|
transition: 0.3s
|
|
117
115
|
|
|
118
116
|
.tianliGPT-tag:hover
|
|
119
|
-
background:
|
|
117
|
+
background: $color-theme
|
|
120
118
|
color: var(--card)
|
|
121
119
|
|
|
122
120
|
ins.adsbygoogle
|
|
@@ -149,7 +147,7 @@ ins.adsbygoogle
|
|
|
149
147
|
.tianliGPT-title-icon svg
|
|
150
148
|
width: 20px
|
|
151
149
|
height: 20px
|
|
152
|
-
fill: var(--
|
|
150
|
+
fill: var(--text-p2)
|
|
153
151
|
|
|
154
152
|
.tianliGPT-title-icon svg path
|
|
155
|
-
fill: var(--
|
|
153
|
+
fill: var(--text-p2)
|
package/source/js/main.js
CHANGED
|
@@ -197,13 +197,16 @@ init.registerTabsTag()
|
|
|
197
197
|
// scrollreveal
|
|
198
198
|
if (stellar.plugins.scrollreveal) {
|
|
199
199
|
stellar.loadScript(stellar.plugins.scrollreveal.js).then(function () {
|
|
200
|
-
|
|
200
|
+
const slideUp = {
|
|
201
201
|
distance: stellar.plugins.scrollreveal.distance,
|
|
202
202
|
duration: stellar.plugins.scrollreveal.duration,
|
|
203
203
|
interval: stellar.plugins.scrollreveal.interval,
|
|
204
204
|
scale: stellar.plugins.scrollreveal.scale,
|
|
205
|
+
opacity: 0,
|
|
205
206
|
easing: "ease-out"
|
|
206
|
-
}
|
|
207
|
+
}
|
|
208
|
+
ScrollReveal().reveal('.l_left .slide-up', slideUp)
|
|
209
|
+
ScrollReveal().reveal('.l_main .slide-up', slideUp)
|
|
207
210
|
})
|
|
208
211
|
}
|
|
209
212
|
|
|
@@ -3,7 +3,7 @@ codeElementArr.forEach(code => {
|
|
|
3
3
|
// copy btn
|
|
4
4
|
const codeCopyBtn = document.createElement('div')
|
|
5
5
|
codeCopyBtn.classList.add('copy-btn')
|
|
6
|
-
codeCopyBtn.
|
|
6
|
+
codeCopyBtn.innerHTML = stellar.plugins.copycode.default_text
|
|
7
7
|
|
|
8
8
|
code.appendChild(codeCopyBtn)
|
|
9
9
|
|
|
@@ -11,11 +11,11 @@ codeElementArr.forEach(code => {
|
|
|
11
11
|
const currentCodeElement = code.children[0]?.innerText
|
|
12
12
|
await copyCode(currentCodeElement)
|
|
13
13
|
|
|
14
|
-
codeCopyBtn.
|
|
14
|
+
codeCopyBtn.innerHTML = stellar.plugins.copycode.success_text
|
|
15
15
|
codeCopyBtn.classList.add('success')
|
|
16
16
|
hud.toast(stellar.plugins.copycode.toast, 2500)
|
|
17
17
|
setTimeout(() => {
|
|
18
|
-
codeCopyBtn.
|
|
18
|
+
codeCopyBtn.innerHTML = stellar.plugins.copycode.default_text
|
|
19
19
|
codeCopyBtn.classList.remove('success')
|
|
20
20
|
},3000)
|
|
21
21
|
})
|