hexo-theme-stellar 1.10.0 → 1.12.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 +39 -56
- package/_data/widgets.yml +70 -0
- package/languages/en.yml +0 -1
- package/languages/zh-CN.yml +4 -5
- package/languages/zh-TW.yml +4 -5
- package/layout/_partial/main/article/read_next.ejs +16 -17
- package/layout/_partial/main/navbar/breadcrumb.ejs +1 -1
- package/layout/_partial/main/navbar/list_post.ejs +2 -2
- package/layout/_partial/main/post_list/post_card.ejs +21 -15
- package/layout/_partial/main/post_list/wiki_card.ejs +1 -1
- package/layout/_partial/sidebar/header.ejs +2 -26
- package/layout/_partial/sidebar/index.ejs +6 -6
- package/layout/_partial/sidebar/logo.ejs +3 -3
- package/layout/_partial/sidebar/menu.ejs +27 -0
- package/layout/_partial/sidebar/widgets/ghissues.ejs +46 -0
- package/layout/_partial/sidebar/widgets/ghrepo.ejs +53 -0
- package/layout/_partial/sidebar/widgets/ghuser.ejs +9 -11
- package/layout/_partial/sidebar/widgets/markdown.ejs +1 -1
- package/layout/_partial/sidebar/widgets/recent.ejs +8 -11
- package/layout/_partial/sidebar/widgets/{wiki_more.ejs → related.ejs} +7 -7
- package/layout/_partial/sidebar/widgets/tagcloud.ejs +24 -0
- package/layout/_partial/sidebar/widgets/timeline.ejs +27 -0
- package/layout/_partial/sidebar/widgets/toc.ejs +2 -6
- package/layout/index.ejs +1 -1
- package/package.json +1 -1
- package/scripts/events/lib/config.js +26 -10
- package/scripts/events/lib/doc_tree.js +3 -0
- package/scripts/helpers/related_posts.js +11 -39
- package/scripts/tags/about.js +10 -7
- package/scripts/tags/{grid.js → border.js} +4 -4
- package/scripts/tags/folders.js +55 -0
- package/scripts/tags/link.js +11 -9
- package/scripts/tags/navbar.js +1 -1
- package/scripts/tags/sites.js +1 -1
- package/scripts/tags/split.js +51 -0
- package/scripts/tags/timeline.js +4 -2
- package/source/css/_common/base.styl +5 -2
- package/source/css/_common/blur.styl +3 -0
- package/source/css/_common/device.styl +2 -0
- package/source/css/_common/highlight.styl +1 -1
- package/source/css/_common/loading.styl +16 -3
- package/source/css/_common/title.styl +0 -13
- package/source/css/_custom.styl +23 -26
- package/source/css/_defines/theme.styl +12 -12
- package/source/css/_layout/list.styl +40 -9
- package/source/css/_layout/md.styl +2 -2
- package/source/css/_layout/partial/related.styl +62 -93
- package/source/css/_layout/sidebar/footer.styl +4 -2
- package/source/css/_layout/sidebar/ghrepo.styl +36 -0
- package/source/css/_layout/sidebar/ghuser.styl +19 -1
- package/source/css/_layout/sidebar/sidebar.styl +4 -91
- package/source/css/_layout/sidebar/toc_common.styl +5 -3
- package/source/css/_layout/sidebar/widgets.styl +104 -0
- package/source/css/_layout/tag-plugins/about.styl +21 -17
- package/source/css/_layout/tag-plugins/common.styl +36 -31
- package/source/css/_layout/tag-plugins/folders.styl +62 -0
- package/source/css/_layout/tag-plugins/link.styl +41 -27
- package/source/css/_layout/tag-plugins/navbar.styl +10 -4
- package/source/css/_layout/tag-plugins/poetry.styl +1 -1
- package/source/css/_layout/tag-plugins/quot.styl +8 -7
- package/source/css/_layout/tag-plugins/split.styl +28 -0
- package/source/css/_layout/tag-plugins/timeline.styl +69 -41
- package/source/css/_plugins/comments/twikoo.styl +12 -6
- package/source/css/_plugins/comments/valine.styl +4 -0
- package/source/css/_plugins/comments/waline.styl +2 -2
- package/source/js/main.js +14 -8
- package/source/js/plugins/friends.js +3 -2
- package/source/js/plugins/ghinfo.js +14 -2
- package/source/js/plugins/linkcard.js +124 -0
- package/source/js/plugins/sites.js +4 -3
- package/source/js/plugins/timeline.js +60 -33
- package/layout/_partial/sidebar/widgets/repo_info.ejs +0 -91
- package/source/css/_layout/sidebar/repo_info.styl +0 -31
|
@@ -12,8 +12,8 @@ a
|
|
|
12
12
|
&:hover
|
|
13
13
|
color: $color-hover
|
|
14
14
|
|
|
15
|
-
p:not([class])
|
|
16
|
-
text-align:
|
|
15
|
+
.md p:not([class])
|
|
16
|
+
text-align: convert(hexo-config('style.text-align'))
|
|
17
17
|
|
|
18
18
|
hr
|
|
19
19
|
color: var(--text-meta)
|
|
@@ -53,3 +53,6 @@ table:not([class])
|
|
|
53
53
|
trans()
|
|
54
54
|
&:hover
|
|
55
55
|
background: var(--block)
|
|
56
|
+
|
|
57
|
+
*[ff=title]
|
|
58
|
+
font-family: $ff-logo
|
|
@@ -15,6 +15,19 @@ svg.loading
|
|
|
15
15
|
transform:rotate(360deg)
|
|
16
16
|
|
|
17
17
|
.loading-wrap
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
margin: 0
|
|
19
|
+
text-align: center
|
|
20
|
+
background: var(--block)
|
|
21
|
+
border-radius: $border-card
|
|
22
|
+
position relative
|
|
23
|
+
padding: 2rem
|
|
24
|
+
svg
|
|
25
|
+
margin: 4px
|
|
26
|
+
&:after
|
|
27
|
+
content: hexo-config('style.loading.loading')
|
|
28
|
+
color: var(--text-p1)
|
|
29
|
+
display: block
|
|
30
|
+
font-size: 14px
|
|
31
|
+
&.error
|
|
32
|
+
&:after
|
|
33
|
+
content: hexo-config('style.loading.error')
|
|
@@ -25,19 +25,6 @@ h6
|
|
|
25
25
|
.fs12
|
|
26
26
|
font-size: $fs-12
|
|
27
27
|
|
|
28
|
-
.post-list
|
|
29
|
-
.post-title
|
|
30
|
-
font-weight: 500
|
|
31
|
-
margin: .75rem 0 .5rem
|
|
32
|
-
line-height: 1.2
|
|
33
|
-
font-size: $fs-h3
|
|
34
|
-
border-bottom: none
|
|
35
|
-
color: var(--text-p0)
|
|
36
|
-
trans1 color
|
|
37
|
-
.wiki .post-title
|
|
38
|
-
margin-top: 0.5rem
|
|
39
|
-
font-weight: 700
|
|
40
|
-
|
|
41
28
|
.widgets
|
|
42
29
|
.post-title
|
|
43
30
|
margin: 0.75rem 0
|
package/source/css/_custom.styl
CHANGED
|
@@ -1,33 +1,30 @@
|
|
|
1
1
|
@require('_defines/const')
|
|
2
2
|
|
|
3
3
|
// 通用主题色
|
|
4
|
-
$color-theme =
|
|
5
|
-
$color-
|
|
6
|
-
$color-
|
|
7
|
-
$color-
|
|
8
|
-
$color-
|
|
9
|
-
$color-inner = #fff
|
|
10
|
-
$color-cat = #FF7844
|
|
11
|
-
$color-cat-hover = darken($color-cat, 20)
|
|
4
|
+
$color-theme = convert(hexo-config('style.color.common.theme'))
|
|
5
|
+
$color-accent = convert(hexo-config('style.color.common.accent'))
|
|
6
|
+
$color-link = convert(hexo-config('style.color.common.link'))
|
|
7
|
+
$color-button = convert(hexo-config('style.color.common.button'))
|
|
8
|
+
$color-hover = convert(hexo-config('style.color.common.hover'))
|
|
12
9
|
|
|
13
10
|
// 浅色
|
|
14
|
-
$light-
|
|
15
|
-
$light-block =
|
|
16
|
-
$light-
|
|
17
|
-
$light-
|
|
18
|
-
$light-
|
|
19
|
-
$light-
|
|
11
|
+
$light-background = convert(hexo-config('style.color.light.background'))
|
|
12
|
+
$light-block = convert(hexo-config('style.color.light.block'))
|
|
13
|
+
$light-card = convert(hexo-config('style.color.light.card'))
|
|
14
|
+
$light-title = convert(hexo-config('style.color.light.title'))
|
|
15
|
+
$light-text = convert(hexo-config('style.color.light.text'))
|
|
16
|
+
$light-code = convert(hexo-config('style.color.light.code'))
|
|
20
17
|
|
|
21
18
|
// 深色
|
|
22
|
-
$dark-
|
|
23
|
-
$dark-block =
|
|
24
|
-
$dark-
|
|
25
|
-
$dark-
|
|
26
|
-
$dark-
|
|
27
|
-
$dark-
|
|
19
|
+
$dark-background = convert(hexo-config('style.color.dark.background'))
|
|
20
|
+
$dark-block = convert(hexo-config('style.color.dark.block'))
|
|
21
|
+
$dark-card = convert(hexo-config('style.color.dark.card'))
|
|
22
|
+
$dark-title = convert(hexo-config('style.color.dark.title'))
|
|
23
|
+
$dark-text = convert(hexo-config('style.color.dark.text'))
|
|
24
|
+
$dark-code = convert(hexo-config('style.color.dark.code'))
|
|
28
25
|
|
|
29
26
|
// 移动端深色背景(OLED调成纯黑可以省电)
|
|
30
|
-
$dark-
|
|
27
|
+
$dark-background-mobile = convert(hexo-config('style.color.dark.background-mobile'))
|
|
31
28
|
|
|
32
29
|
|
|
33
30
|
// @font-face
|
|
@@ -51,7 +48,7 @@ if hexo-config('style.font-family.logo')
|
|
|
51
48
|
|
|
52
49
|
|
|
53
50
|
// font size
|
|
54
|
-
$fs-root =
|
|
51
|
+
$fs-root = convert(hexo-config('style.font-size'))
|
|
55
52
|
$fs-15 = .9375rem
|
|
56
53
|
$fs-14 = .875rem
|
|
57
54
|
$fs-13 = .8125rem
|
|
@@ -72,14 +69,14 @@ $border-image = 6px
|
|
|
72
69
|
|
|
73
70
|
// 可以动态变化的属性
|
|
74
71
|
:root
|
|
75
|
-
--width-left:
|
|
72
|
+
--width-left: 288px
|
|
76
73
|
--width-main: 720px
|
|
77
74
|
--gap-l: 16px
|
|
78
75
|
--gap-p: .75rem // gap for paragraph
|
|
79
76
|
// desktop 2k or larger
|
|
80
77
|
@media screen and (min-width: $device-2k)
|
|
81
78
|
--gap-l: 32px
|
|
82
|
-
--width-left:
|
|
79
|
+
--width-left: 352px
|
|
83
80
|
--width-main: 780px
|
|
84
81
|
// desktop 4k or larger
|
|
85
82
|
@media screen and (min-width: $device-4k)
|
|
@@ -87,10 +84,10 @@ $border-image = 6px
|
|
|
87
84
|
--gap-l: 64px
|
|
88
85
|
// iPad 竖屏
|
|
89
86
|
@media screen and (max-width: $device-tablet)
|
|
90
|
-
--width-left:
|
|
87
|
+
--width-left: 252px
|
|
91
88
|
// iPad 竖屏
|
|
92
89
|
@media screen and (max-width: $device-mobile-max)
|
|
93
|
-
--width-left:
|
|
90
|
+
--width-left: 288px
|
|
94
91
|
|
|
95
92
|
|
|
96
93
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
:root
|
|
2
|
-
--site-bg: $light-
|
|
2
|
+
--site-bg: $light-background
|
|
3
3
|
--block: $light-block
|
|
4
4
|
--block-border: darken($light-block, 5)
|
|
5
5
|
--block-hover: darken($light-block, 2)
|
|
6
6
|
--text-p0: $light-title
|
|
7
7
|
--text-p1: $light-text
|
|
8
|
-
--text-p2: mix($light-text, $light-
|
|
9
|
-
--text-p3: mix($light-text, $light-
|
|
10
|
-
--text-p4: mix($light-text, $light-
|
|
11
|
-
--text-meta: mix($light-text, $light-
|
|
8
|
+
--text-p2: mix($light-text, $light-background, 80)
|
|
9
|
+
--text-p3: mix($light-text, $light-background, 60)
|
|
10
|
+
--text-p4: mix($light-text, $light-background, 35)
|
|
11
|
+
--text-meta: mix($light-text, $light-background, 20)
|
|
12
12
|
--text-code: $light-code
|
|
13
13
|
--card: $light-card
|
|
14
14
|
--theme-highlight: darken($color-theme, 5)
|
|
@@ -16,22 +16,22 @@
|
|
|
16
16
|
|
|
17
17
|
set_darkmode()
|
|
18
18
|
:root
|
|
19
|
-
--site-bg: $dark-
|
|
19
|
+
--site-bg: $dark-background
|
|
20
20
|
--block: $dark-block
|
|
21
21
|
--block-border: lighten($dark-block, 6)
|
|
22
22
|
--block-hover: darken($dark-block, 4)
|
|
23
23
|
--text-p0: $dark-title
|
|
24
|
-
--text-p1: mix($dark-text, $dark-
|
|
25
|
-
--text-p2: mix($dark-text, $dark-
|
|
26
|
-
--text-p3: mix($dark-text, $dark-
|
|
27
|
-
--text-p4: mix($dark-text, $dark-
|
|
28
|
-
--text-meta: mix($dark-text, $dark-
|
|
24
|
+
--text-p1: mix($dark-text, $dark-background, 85)
|
|
25
|
+
--text-p2: mix($dark-text, $dark-background, 70)
|
|
26
|
+
--text-p3: mix($dark-text, $dark-background, 45)
|
|
27
|
+
--text-p4: mix($dark-text, $dark-background, 35)
|
|
28
|
+
--text-meta: mix($dark-text, $dark-background, 30)
|
|
29
29
|
--text-code: $dark-code
|
|
30
30
|
--card: $dark-card
|
|
31
31
|
--theme-highlight: $color-theme
|
|
32
32
|
--theme-bg: mix($color-theme, $dark-card, 10)
|
|
33
33
|
@media screen and (max-width: $device-mobile-max)
|
|
34
|
-
--site-bg: $dark-
|
|
34
|
+
--site-bg: $dark-background-mobile
|
|
35
35
|
--card: darken($dark-card, 6)
|
|
36
36
|
--block: darken($dark-block, 4)
|
|
37
37
|
--block-border: lighten($dark-block, 2)
|
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
// list
|
|
2
2
|
.post-list
|
|
3
3
|
margin: 1rem
|
|
4
|
+
.post-title
|
|
5
|
+
margin-top: 1.5rem
|
|
6
|
+
.post-title:first-child
|
|
7
|
+
margin-top: .5rem
|
|
8
|
+
|
|
9
|
+
.post-list
|
|
10
|
+
.post-title
|
|
11
|
+
font-weight: 500
|
|
12
|
+
margin: .75rem 0
|
|
13
|
+
line-height: 1.2
|
|
14
|
+
font-size: $fs-h3
|
|
15
|
+
border-bottom: none
|
|
16
|
+
color: var(--text-p0)
|
|
17
|
+
trans1 color
|
|
18
|
+
@media screen and (max-width: $device-mobile)
|
|
19
|
+
font-size: $fs-h4
|
|
20
|
+
margin: 0.5rem 0
|
|
21
|
+
.wiki .post-title
|
|
22
|
+
margin-top: 0.5rem
|
|
4
23
|
|
|
5
24
|
// card
|
|
6
25
|
.post-list .post-card
|
|
@@ -14,14 +33,18 @@
|
|
|
14
33
|
position: relative
|
|
15
34
|
.excerpt
|
|
16
35
|
margin: 1rem 0
|
|
36
|
+
@media screen and (max-width: $device-mobile)
|
|
37
|
+
margin: 0.5rem 0
|
|
17
38
|
>p
|
|
18
39
|
margin: 1rem 0
|
|
40
|
+
@media screen and (max-width: $device-mobile)
|
|
41
|
+
margin: 0.5rem 0
|
|
19
42
|
line-height: 1.5
|
|
20
43
|
.meta.cap
|
|
21
44
|
display: flex
|
|
22
45
|
flex-wrap: wrap
|
|
23
46
|
align-items: center
|
|
24
|
-
margin: .
|
|
47
|
+
margin: 0.25rem 0
|
|
25
48
|
line-height: 1.5
|
|
26
49
|
span+span
|
|
27
50
|
margin-left: 0.5rem
|
|
@@ -37,10 +60,11 @@
|
|
|
37
60
|
// common article
|
|
38
61
|
.post-list article.md
|
|
39
62
|
padding: 1rem
|
|
63
|
+
@media screen and (max-width: $device-mobile)
|
|
64
|
+
padding: 0.5rem 1rem
|
|
40
65
|
p
|
|
41
66
|
color: var(--text-p2)
|
|
42
|
-
|
|
43
|
-
font-size: $fs-14
|
|
67
|
+
font-size: $fs-14
|
|
44
68
|
|
|
45
69
|
|
|
46
70
|
// posts
|
|
@@ -51,6 +75,7 @@
|
|
|
51
75
|
margin-left: -1rem
|
|
52
76
|
margin-top: -1rem
|
|
53
77
|
margin-right: -1rem
|
|
78
|
+
background: var(--block)
|
|
54
79
|
&:not(.lazy)
|
|
55
80
|
trans1: transform 1s
|
|
56
81
|
img
|
|
@@ -76,7 +101,7 @@
|
|
|
76
101
|
img
|
|
77
102
|
width: 100%
|
|
78
103
|
.cover-info
|
|
79
|
-
padding: 1rem
|
|
104
|
+
padding: 1.5rem 1rem
|
|
80
105
|
position: absolute
|
|
81
106
|
line-height: 1.2
|
|
82
107
|
width: 'calc(100% - %s * 2)' % 1rem
|
|
@@ -84,20 +109,26 @@
|
|
|
84
109
|
color: white
|
|
85
110
|
&[position=top]
|
|
86
111
|
top: 0
|
|
87
|
-
background-image: linear-gradient(rgba(0,0,0,0.
|
|
112
|
+
background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.2),rgba(0,0,0,0))
|
|
88
113
|
&[position=bottom]
|
|
89
114
|
bottom: 0
|
|
90
|
-
background-image: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0.
|
|
115
|
+
background-image: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0.2),rgba(0,0,0,0.3))
|
|
91
116
|
div+div
|
|
92
|
-
margin-top:
|
|
93
|
-
@media screen and (max-width: $device-mobile)
|
|
94
|
-
margin-top: 4px
|
|
117
|
+
margin-top: 4px
|
|
95
118
|
.cap
|
|
96
119
|
color: white
|
|
97
120
|
font-size: $fs-13
|
|
98
121
|
.title
|
|
99
122
|
font-weight: 500
|
|
100
123
|
font-size: $fs-h3
|
|
124
|
+
@media screen and (max-width: $device-mobile)
|
|
125
|
+
padding: 1rem
|
|
126
|
+
div+div
|
|
127
|
+
margin-top: 2px
|
|
128
|
+
.title
|
|
129
|
+
font-size: $fs-h4
|
|
130
|
+
.cap
|
|
131
|
+
font-size: $fs-12
|
|
101
132
|
h2
|
|
102
133
|
margin: .25rem 0
|
|
103
134
|
font-size: $fs-h4
|
|
@@ -24,7 +24,7 @@ article.md.content
|
|
|
24
24
|
&.indent
|
|
25
25
|
>p:not([class])
|
|
26
26
|
text-indent: 'calc(%s * 2)' % $fs-p
|
|
27
|
-
text-align:
|
|
27
|
+
text-align: convert(hexo-config('style.text-align'))
|
|
28
28
|
a
|
|
29
29
|
text-indent: 0
|
|
30
30
|
h1,h2,h3,h4,h5,h6
|
|
@@ -32,7 +32,7 @@ article.md.content
|
|
|
32
32
|
>h2:not([class])
|
|
33
33
|
align-self: center
|
|
34
34
|
border-bottom-style: dashed
|
|
35
|
-
border-bottom-color: $color-
|
|
35
|
+
border-bottom-color: $color-accent
|
|
36
36
|
>:first-child
|
|
37
37
|
margin-top: 0
|
|
38
38
|
h1:not(:first-child)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.related-wrap
|
|
2
|
-
padding:
|
|
2
|
+
padding: 1rem
|
|
3
|
+
margin: 2rem 0
|
|
3
4
|
&:empty
|
|
4
5
|
display: none
|
|
5
6
|
section.header
|
|
@@ -18,108 +19,76 @@
|
|
|
18
19
|
color: var(--text-p1)
|
|
19
20
|
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
padding-bottom:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
22
|
+
|
|
23
|
+
.related-posts
|
|
24
|
+
width: 100%
|
|
25
|
+
margin: 1rem 0
|
|
26
|
+
.item
|
|
27
|
+
line-height: 1.2
|
|
28
|
+
display: block
|
|
29
|
+
border-left: 0
|
|
30
|
+
margin-top: 1rem
|
|
31
|
+
.title
|
|
32
|
+
color: var(--text-p1)
|
|
33
|
+
font-weight: 500
|
|
34
|
+
font-size: 1rem
|
|
35
|
+
trans1 color
|
|
36
|
+
position: relative
|
|
37
|
+
padding-bottom: 4px
|
|
38
|
+
&:after
|
|
39
|
+
content: ''
|
|
40
|
+
position: absolute
|
|
41
|
+
left: 0
|
|
42
|
+
width: 0
|
|
43
|
+
height: 2px
|
|
44
|
+
bottom: 0
|
|
45
|
+
border-radius: 2px
|
|
46
|
+
background: $color-hover
|
|
47
|
+
trans1 width
|
|
48
|
+
.excerpt
|
|
49
|
+
color: var(--text-p3)
|
|
50
|
+
font-size: $fs-12
|
|
51
|
+
margin-top: 0.5rem
|
|
52
|
+
display: -webkit-box
|
|
53
|
+
-webkit-box-orient: vertical
|
|
40
54
|
overflow: hidden
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
max-width: 460px
|
|
44
|
-
border: 1px solid var(--block-hover)
|
|
45
|
-
z-index: 1
|
|
46
|
-
.img
|
|
47
|
-
min-width: 100%
|
|
48
|
-
min-height: 140px
|
|
49
|
-
height: "calc(%s * 0.5)" % @width
|
|
50
|
-
max-height: 230px
|
|
51
|
-
overflow: hidden
|
|
52
|
-
img
|
|
53
|
-
width: 100%
|
|
54
|
-
height: 100%
|
|
55
|
-
object-fit: cover
|
|
56
|
-
&:not(.lazy)
|
|
57
|
-
trans1: transform 1s
|
|
58
|
-
@media screen and (max-width: $device-tablet)
|
|
59
|
-
width: 70vw
|
|
60
|
-
.img
|
|
61
|
-
height: "calc(%s * 0.5)" % @width
|
|
55
|
+
-webkit-line-clamp: 2
|
|
56
|
+
&:hover
|
|
62
57
|
.title
|
|
63
|
-
color:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
margin: .75rem .75rem 0 .75rem
|
|
67
|
-
display: -webkit-box
|
|
68
|
-
-webkit-box-orient: vertical
|
|
69
|
-
overflow: hidden
|
|
70
|
-
-webkit-line-clamp: 2
|
|
71
|
-
.excerpt
|
|
72
|
-
color: var(--text-p2)
|
|
73
|
-
font-size: $fs-13
|
|
74
|
-
margin: 0.4rem .75rem 0 .75rem
|
|
75
|
-
display: -webkit-box
|
|
76
|
-
-webkit-box-orient: vertical
|
|
77
|
-
overflow: hidden
|
|
78
|
-
-webkit-line-clamp: 3
|
|
79
|
-
&:hover
|
|
80
|
-
img
|
|
81
|
-
transform: scale(1.04)
|
|
82
|
-
a+a
|
|
83
|
-
margin-left: 1rem
|
|
58
|
+
color: $color-hover
|
|
59
|
+
&:after
|
|
60
|
+
width: 100%
|
|
84
61
|
|
|
85
62
|
|
|
86
63
|
.related-wrap#read-next
|
|
87
64
|
.body
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
65
|
+
display: grid
|
|
66
|
+
grid-gap: 16px
|
|
67
|
+
grid-template-columns: repeat(auto-fill, "calc((100% - 1 * %s) / 2)" % 16px)
|
|
68
|
+
.item
|
|
69
|
+
border-top: 1px dashed var(--block-border)
|
|
70
|
+
border-bottom: 1px dashed var(--block-border)
|
|
71
|
+
padding: 1rem 0
|
|
72
|
+
.note
|
|
73
|
+
margin-bottom: 0.75rem
|
|
74
|
+
font-size: $fs-12
|
|
75
|
+
color: var(--text-p4)
|
|
76
|
+
font-weight: 500
|
|
77
|
+
a
|
|
101
78
|
margin: 0
|
|
102
79
|
line-height: 1.2
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
justify-content: space-between
|
|
106
|
-
align-items: center
|
|
107
|
-
font-weight: 500
|
|
108
|
-
font-size: $fs-12
|
|
109
|
-
&:first-child
|
|
110
|
-
color: var(--text-p1)
|
|
111
|
-
font-size: $fs-h4
|
|
112
|
-
font-weight: 400
|
|
113
|
-
.note
|
|
114
|
-
flex-shrink: 0
|
|
115
|
-
margin-left: 4px
|
|
116
|
-
font-size: $fs-12
|
|
117
|
-
color: var(--text-p4)
|
|
118
|
-
font-weight: 500
|
|
80
|
+
color: var(--text-p1)
|
|
81
|
+
font-size: $fs-h4
|
|
119
82
|
&:hover
|
|
120
83
|
color: $color-hover !important
|
|
121
|
-
|
|
122
|
-
|
|
84
|
+
#next
|
|
85
|
+
text-align: right
|
|
86
|
+
.wiki+.related-wrap#read-next
|
|
87
|
+
.item
|
|
88
|
+
a
|
|
89
|
+
font-size: $fs-h3
|
|
90
|
+
&#prev a
|
|
91
|
+
color: var(--text-p3)
|
|
123
92
|
|
|
124
93
|
|
|
125
94
|
.related-wrap#comments
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.l_left
|
|
2
|
-
margin
|
|
1
|
+
.l_left>.footer
|
|
2
|
+
margin: 0.5rem var(--gap-l) 0
|
|
3
3
|
@media screen and (max-width: $device-tablet)
|
|
4
4
|
margin-bottom: 1rem
|
|
5
5
|
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
if hexo-config('style.darkmode') == 'auto'
|
|
27
27
|
@media (prefers-color-scheme: dark)
|
|
28
28
|
box-shadow: none
|
|
29
|
+
if hexo-config('style.darkmode') == 'always'
|
|
30
|
+
box-shadow: none
|
|
29
31
|
|
|
30
32
|
.proj-wrap
|
|
31
33
|
display: grid
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.widget-wrap#repo-info
|
|
2
|
+
.widget-body
|
|
3
|
+
a.repo
|
|
4
|
+
display: block
|
|
5
|
+
padding: 0.75rem 0.5rem
|
|
6
|
+
color: var(--text-p2)
|
|
7
|
+
background: var(--card)
|
|
8
|
+
border-radius: $border-block
|
|
9
|
+
box-shadow: $boxshadow-card
|
|
10
|
+
trans2 box-shadow transform
|
|
11
|
+
>div+div
|
|
12
|
+
margin-top: 0.5rem
|
|
13
|
+
span
|
|
14
|
+
color: var(--text-p2)
|
|
15
|
+
&:hover
|
|
16
|
+
box-shadow: $boxshadow-card-float
|
|
17
|
+
transform: translateY(-1px)
|
|
18
|
+
a.repo
|
|
19
|
+
svg
|
|
20
|
+
margin-right: 4px
|
|
21
|
+
.flex-row
|
|
22
|
+
display: flex
|
|
23
|
+
align-items: center
|
|
24
|
+
.repo-name
|
|
25
|
+
font-size: $fs-14
|
|
26
|
+
font-weight: 700
|
|
27
|
+
color: var(--text-p1)
|
|
28
|
+
.repo-desc
|
|
29
|
+
font-size: $fs-13
|
|
30
|
+
margin-left: 2px
|
|
31
|
+
margin-right: 2px
|
|
32
|
+
.grid
|
|
33
|
+
font-size: $fs-13
|
|
34
|
+
display: grid
|
|
35
|
+
grid-gap: 2px
|
|
36
|
+
grid-template-columns: repeat(auto-fill, "calc((100% - 2 * %s) / 3)" % 2px)
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
background: var(--card)
|
|
7
7
|
border-radius: $border-card
|
|
8
8
|
padding: 1rem
|
|
9
|
+
box-shadow: $boxshadow-card
|
|
9
10
|
|
|
10
11
|
.widget-wrap#github-user .widget-body .avatar
|
|
11
12
|
display: block
|
|
@@ -47,7 +48,24 @@
|
|
|
47
48
|
&:hover
|
|
48
49
|
background: $color-hover
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
.widget-wrap#github-user .widget-body .menu
|
|
52
|
+
margin-bottom: 0
|
|
53
|
+
background: none
|
|
54
|
+
a:hover
|
|
55
|
+
box-shadow: none
|
|
56
|
+
background: var(--block)
|
|
57
|
+
a.active
|
|
58
|
+
box-shadow: none
|
|
59
|
+
position: relative
|
|
60
|
+
&:after
|
|
61
|
+
content: ''
|
|
62
|
+
position: absolute
|
|
63
|
+
height: 3px
|
|
64
|
+
bottom: 0
|
|
65
|
+
width: 32px
|
|
66
|
+
left: 'calc(50% - 0.5 * %s)' % @width
|
|
67
|
+
border-radius: 4px
|
|
68
|
+
background: $color-theme
|
|
51
69
|
|
|
52
70
|
.widget-wrap#github-user .widget-body .buttons
|
|
53
71
|
margin: 1rem 0
|