hexo-theme-stellar 1.17.2 → 1.18.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 +20 -26
- package/_data/widgets.yml +0 -15
- package/layout/_partial/sidebar/header.ejs +4 -4
- package/layout/_partial/sidebar/index.ejs +4 -4
- package/layout/_partial/widgets/search.ejs +1 -0
- package/package.json +1 -1
- package/scripts/generators/search.js +2 -0
- package/scripts/tags/{border.js → ablock.js} +8 -10
- package/scripts/tags/{split.js → grid.js} +5 -5
- package/scripts/tags/note.js +5 -7
- package/scripts/tags/poetry.js +4 -5
- package/scripts/tags/quot.js +8 -4
- package/scripts/tags/tag.js +35 -0
- package/scripts/tags/toc.js +2 -2
- package/source/css/_common/highlight.styl +0 -3
- package/source/css/_custom.styl +13 -27
- package/source/css/_defines/theme.styl +47 -34
- package/source/css/_layout/md.styl +6 -4
- package/source/css/_layout/partial/paginator.styl +2 -1
- package/source/css/_layout/partial/related.styl +1 -1
- package/source/css/_layout/sidebar/header.styl +2 -2
- package/source/css/_layout/tag-plugins/common.styl +51 -65
- package/source/css/_layout/tag-plugins/folding.styl +10 -11
- package/source/css/_layout/tag-plugins/{split.styl → grid.styl} +4 -4
- package/source/css/_layout/tag-plugins/link.styl +1 -1
- package/source/css/_layout/tag-plugins/mark.styl +2 -2
- package/source/css/_layout/tag-plugins/navbar.styl +1 -1
- package/source/css/_layout/tag-plugins/note.styl +3 -1
- package/source/css/_layout/tag-plugins/poetry.styl +26 -25
- package/source/css/_layout/tag-plugins/quot.styl +47 -58
- package/source/css/_layout/tag-plugins/tag.styl +13 -0
- package/source/css/_layout/widgets/ghuser.styl +19 -15
- package/source/css/_layout/widgets/search.styl +101 -1
- package/source/css/_layout/widgets/toc_common.styl +1 -1
- package/source/css/_plugins/comments/twikoo.styl +0 -1
- package/source/css/_plugins/index.styl +0 -3
- package/source/js/plugins/weibo.js +116 -0
- package/source/css/_plugins/search/local-search.styl +0 -87
|
@@ -1,120 +1,106 @@
|
|
|
1
1
|
set_text_white()
|
|
2
2
|
--text-p0: white
|
|
3
3
|
--text-p1: white
|
|
4
|
-
--text-p2:
|
|
4
|
+
--text-p2: hsl(0 0 88%)
|
|
5
5
|
--text-p3: #ddd
|
|
6
6
|
--text-code: white
|
|
7
|
-
--card: $dark-card
|
|
8
|
-
--block: $dark-block
|
|
9
|
-
--block-border: lighten($dark-block, 6)
|
|
10
|
-
--block-hover: darken($dark-block, 4)
|
|
11
7
|
set_text_black()
|
|
12
8
|
--text-p0: black
|
|
13
9
|
--text-p1: #111
|
|
14
|
-
--text-p2:
|
|
10
|
+
--text-p2: hsl(0 0 12%)
|
|
15
11
|
--text-p3: #555
|
|
16
12
|
--text-code: white
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
--
|
|
20
|
-
--
|
|
13
|
+
|
|
14
|
+
set_dynamic_color($theme)
|
|
15
|
+
--theme: $theme
|
|
16
|
+
--theme-bg1: hsl(hue($theme), 90, 90)
|
|
17
|
+
--theme-bg2: hsl(hue($theme), 80, 95)
|
|
18
|
+
--theme-border: hsl(hue($theme), 50, 80)
|
|
19
|
+
--text-p0: hsl(hue($theme), 60, 16)
|
|
20
|
+
--text-p1: hsl(hue($theme), 50, 24)
|
|
21
|
+
--text-p2: hsl(hue($theme), 90, 24)
|
|
21
22
|
|
|
22
23
|
.tag-plugin
|
|
23
24
|
--theme: var(--text-p1)
|
|
24
25
|
--theme-border: var(--block-border)
|
|
25
|
-
--theme-
|
|
26
|
+
--theme-bg1: hsl(hue($color-theme), 90, 90)
|
|
27
|
+
--theme-bg2: var(--block)
|
|
28
|
+
&.tag
|
|
29
|
+
--text-p2: hsl(hue($color-theme), 90, 24)
|
|
26
30
|
|
|
27
31
|
.tag-plugin[color='red']
|
|
28
|
-
|
|
29
|
-
--theme-border: mix($c-red, white, 60)
|
|
30
|
-
--theme-bg: mix($c-red, white, 15)
|
|
31
|
-
|
|
32
|
+
set_dynamic_color($c-red)
|
|
32
33
|
.tag-plugin[color='orange']
|
|
33
|
-
|
|
34
|
-
--theme-border: mix($c-orange, white, 60)
|
|
35
|
-
--theme-bg: mix($c-orange, white, 15)
|
|
36
|
-
|
|
34
|
+
set_dynamic_color($c-orange)
|
|
37
35
|
.tag-plugin[color='yellow']
|
|
38
|
-
|
|
39
|
-
--theme-border: mix($c-yellow, white, 60)
|
|
40
|
-
--theme-bg: mix($c-yellow, white, 20)
|
|
41
|
-
|
|
36
|
+
set_dynamic_color($c-yellow)
|
|
42
37
|
.tag-plugin[color='green']
|
|
43
|
-
|
|
44
|
-
--theme-border: mix($c-green, white, 60)
|
|
45
|
-
--theme-bg: mix($c-green, white, 15)
|
|
46
|
-
|
|
38
|
+
set_dynamic_color($c-green)
|
|
47
39
|
.tag-plugin[color='cyan']
|
|
48
|
-
|
|
49
|
-
--theme-border: mix($c-cyan, white, 60)
|
|
50
|
-
--theme-bg: mix($c-cyan, white, 15)
|
|
51
|
-
|
|
40
|
+
set_dynamic_color($c-cyan)
|
|
52
41
|
.tag-plugin[color='blue']
|
|
53
|
-
|
|
54
|
-
--theme-border: mix($c-blue, white, 60)
|
|
55
|
-
--theme-bg: mix($c-blue, white, 15)
|
|
56
|
-
|
|
42
|
+
set_dynamic_color($c-blue)
|
|
57
43
|
.tag-plugin[color='purple']
|
|
58
|
-
|
|
59
|
-
--theme-border: mix($c-purple, white, 60)
|
|
60
|
-
--theme-bg: mix($c-purple, white, 15)
|
|
44
|
+
set_dynamic_color($c-purple)
|
|
61
45
|
|
|
62
46
|
.tag-plugin[color='light']
|
|
63
|
-
--theme-
|
|
47
|
+
--theme-bg1: hsl(0 0 88%)
|
|
48
|
+
--theme-bg2: white
|
|
49
|
+
set_text_black()
|
|
64
50
|
|
|
65
51
|
.tag-plugin[color='dark']
|
|
66
|
-
--theme-
|
|
52
|
+
--theme-bg1: hsl(0 0 12%)
|
|
53
|
+
--theme-bg2: #333
|
|
67
54
|
set_text_white()
|
|
68
55
|
|
|
69
56
|
.tag-plugin[color='warning']
|
|
70
57
|
--theme: $c-yellow
|
|
71
58
|
--theme-border: #ffe659
|
|
72
|
-
--theme-
|
|
59
|
+
--theme-bg2: #ffe659
|
|
73
60
|
--theme-link: #ff453a
|
|
74
61
|
|
|
75
62
|
.tag-plugin[color='error']
|
|
76
63
|
--theme: $c-yellow
|
|
77
64
|
--theme-border: #ff453a
|
|
78
|
-
--theme-
|
|
65
|
+
--theme-bg2: #ff453a
|
|
79
66
|
--theme-link: #ffe659
|
|
80
67
|
set_text_white()
|
|
81
68
|
|
|
82
69
|
set_darkmode_tags()
|
|
70
|
+
set_dynamic_color($theme)
|
|
71
|
+
--theme: $theme
|
|
72
|
+
--theme-bg1: hsl(hue($theme), 80, 20)
|
|
73
|
+
--theme-bg2: hsl(hue($theme), 16, 16)
|
|
74
|
+
--theme-border: hsl(hue($theme), 50, 24)
|
|
75
|
+
--text-p0: hsl(hue($theme), 80, 80)
|
|
76
|
+
--text-p1: hsl(hue($theme), 64, 80)
|
|
77
|
+
--text-p2: hsl(hue($theme), 80, 72)
|
|
78
|
+
.tag-plugin.tag
|
|
79
|
+
set_dynamic_color($color-theme)
|
|
83
80
|
.tag-plugin[color='red']
|
|
84
|
-
|
|
85
|
-
--theme-bg: mix($c-red, black, 35)
|
|
86
|
-
|
|
81
|
+
set_dynamic_color($c-red)
|
|
87
82
|
.tag-plugin[color='orange']
|
|
88
|
-
|
|
89
|
-
--theme-bg: mix($c-orange, black, 35)
|
|
90
|
-
|
|
83
|
+
set_dynamic_color($c-orange)
|
|
91
84
|
.tag-plugin[color='yellow']
|
|
92
|
-
|
|
93
|
-
--theme-bg: mix($c-yellow, black, 30)
|
|
94
|
-
|
|
85
|
+
set_dynamic_color($c-yellow)
|
|
95
86
|
.tag-plugin[color='green']
|
|
96
|
-
|
|
97
|
-
--theme-bg: mix($c-green, black, 30)
|
|
98
|
-
|
|
87
|
+
set_dynamic_color($c-green)
|
|
99
88
|
.tag-plugin[color='cyan']
|
|
100
|
-
|
|
101
|
-
--theme-bg: mix($c-cyan, black, 30)
|
|
102
|
-
|
|
89
|
+
set_dynamic_color($c-cyan)
|
|
103
90
|
.tag-plugin[color='blue']
|
|
104
|
-
|
|
105
|
-
--theme-bg: mix($c-blue, black, 35)
|
|
106
|
-
|
|
91
|
+
set_dynamic_color($c-blue)
|
|
107
92
|
.tag-plugin[color='purple']
|
|
108
|
-
|
|
109
|
-
--theme-bg: mix($c-purple, black, 40)
|
|
110
|
-
|
|
93
|
+
set_dynamic_color($c-purple)
|
|
111
94
|
.tag-plugin[color='light']
|
|
112
95
|
--theme-border: white
|
|
113
|
-
--theme-
|
|
96
|
+
--theme-bg1: hsl(0 0 88%)
|
|
97
|
+
--theme-bg2: #fff
|
|
98
|
+
set_text_black()
|
|
114
99
|
|
|
115
100
|
.tag-plugin[color='dark']
|
|
116
101
|
--theme-border: black
|
|
117
|
-
--theme-
|
|
102
|
+
--theme-bg1: hsl(0 0 12%)
|
|
103
|
+
--theme-bg2: #111
|
|
118
104
|
set_text_white()
|
|
119
105
|
|
|
120
106
|
.tag-plugin[color='warning'],.tag-plugin[color='light']
|
|
@@ -4,7 +4,7 @@ details.folding
|
|
|
4
4
|
margin: 1rem 0
|
|
5
5
|
border-radius: $border-block
|
|
6
6
|
font-size: $fs-14
|
|
7
|
-
background: var(--theme-
|
|
7
|
+
background: var(--theme-bg2)
|
|
8
8
|
border: 1px solid var(--theme-border)
|
|
9
9
|
summary
|
|
10
10
|
cursor: pointer
|
|
@@ -22,13 +22,13 @@ details.folding
|
|
|
22
22
|
border-bottom: none !important
|
|
23
23
|
&:hover
|
|
24
24
|
color: var(--text-p0)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
&:after
|
|
26
|
+
position: absolute
|
|
27
|
+
content: '+'
|
|
28
|
+
text-align: center
|
|
29
|
+
top: 50%
|
|
30
|
+
transform: translateY(-50%)
|
|
31
|
+
right: 1rem
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
details.folding[open]
|
|
@@ -38,9 +38,8 @@ details.folding[open]
|
|
|
38
38
|
border-bottom-right-radius: 0
|
|
39
39
|
color: var(--text-p1)
|
|
40
40
|
margin-bottom: 0
|
|
41
|
-
&:
|
|
42
|
-
|
|
43
|
-
content: '-'
|
|
41
|
+
&:after
|
|
42
|
+
content: '-'
|
|
44
43
|
>div.body
|
|
45
44
|
display: flex;
|
|
46
45
|
flex-direction: column;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.tag-plugin.
|
|
1
|
+
.tag-plugin.grid
|
|
2
2
|
display: grid
|
|
3
3
|
grid-gap: 16px
|
|
4
4
|
grid-template-columns: repeat(auto-fill, "calc((100% - 1 * %s) / 2)" % 16px)
|
|
5
5
|
>.cell
|
|
6
6
|
margin: 1rem 0
|
|
7
7
|
p:first-child>strong:only-child
|
|
8
|
-
font-size:
|
|
8
|
+
font-size: 1rem
|
|
9
9
|
>.cell>
|
|
10
10
|
p
|
|
11
11
|
line-height: 1.5
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
margin-bottom: -0.25em
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
.tag-plugin.
|
|
22
|
+
.tag-plugin.grid
|
|
23
23
|
@media screen and (max-width: $device-tablet)
|
|
24
24
|
display: block
|
|
25
25
|
|
|
26
|
-
.tag-plugin.
|
|
26
|
+
.tag-plugin.grid
|
|
27
27
|
&[bg]>.cell
|
|
28
28
|
padding: 1rem
|
|
29
29
|
border-radius: $border-card
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.md-text .tag-plugin.mark
|
|
2
2
|
padding: 0 1px
|
|
3
3
|
border-radius: 2px
|
|
4
|
-
background: var(--theme-
|
|
4
|
+
background: var(--theme-bg2)
|
|
5
5
|
border: 1px solid var(--theme-border)
|
|
6
6
|
color: var(--text-p0)
|
|
7
7
|
&[color=dark]
|
|
8
|
-
border-color: var(--theme-
|
|
8
|
+
border-color: var(--theme-bg2)
|
|
@@ -4,13 +4,15 @@
|
|
|
4
4
|
margin-bottom: 1rem
|
|
5
5
|
padding: 0 1rem
|
|
6
6
|
border-radius: $border-block
|
|
7
|
-
background: var(--theme-
|
|
7
|
+
background: var(--theme-bg2)
|
|
8
8
|
border: 1px solid var(--theme-border)
|
|
9
9
|
color: var(--text-p1)
|
|
10
10
|
>.title
|
|
11
11
|
font-size: $fs-15
|
|
12
12
|
line-height: 1.2
|
|
13
13
|
margin-top: 1rem
|
|
14
|
+
font-weight: 500
|
|
15
|
+
color: var(--text-p0)
|
|
14
16
|
>.body
|
|
15
17
|
&,p
|
|
16
18
|
font-size: $fs-14
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
.md-text .tag-plugin.poetry
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
display: flex
|
|
3
|
+
flex-direction: column
|
|
4
|
+
align-items: center
|
|
5
|
+
.content
|
|
6
|
+
>.title
|
|
7
|
+
font-weight: 500
|
|
8
|
+
font-size: 1rem
|
|
9
|
+
margin-top: var(--gap-p)
|
|
10
|
+
>.meta
|
|
11
|
+
color: var(--text-p2)
|
|
12
|
+
font-size: $fs-12
|
|
13
|
+
font-weight: 500
|
|
14
|
+
span+span
|
|
15
|
+
margin-left: 4px
|
|
16
|
+
>.body
|
|
17
|
+
margin: var(--gap-p) 0
|
|
18
|
+
border-top: 1px dashed var(--block-border)
|
|
19
|
+
border-bottom: 1px dashed var(--block-border)
|
|
20
|
+
p
|
|
21
|
+
font-size: $fs-14
|
|
22
|
+
>.footer
|
|
23
|
+
font-style: italic
|
|
24
|
+
color: var(--text-p4)
|
|
25
|
+
margin: var(--gap-p) 0
|
|
26
|
+
font-size: $fs-12
|
|
26
27
|
|
|
27
28
|
// 描边修饰
|
|
28
|
-
.md-text .tag-plugin.poetry
|
|
29
|
+
.md-text .tag-plugin.poetry .content
|
|
29
30
|
padding-left: 1rem
|
|
30
31
|
position: relative
|
|
31
32
|
&:before
|
|
@@ -1,62 +1,66 @@
|
|
|
1
1
|
.md-text .tag-plugin.quot
|
|
2
2
|
text-align: center
|
|
3
|
-
position: relative
|
|
4
3
|
align-items: center
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
padding: 16px
|
|
18
|
-
|
|
4
|
+
display: flex
|
|
5
|
+
flex-direction: column
|
|
6
|
+
|
|
7
|
+
.content
|
|
8
|
+
display: flex
|
|
9
|
+
align-items: center
|
|
10
|
+
border-bottom: none
|
|
11
|
+
font-weight: 700
|
|
12
|
+
&:first-child
|
|
13
|
+
margin-top: 1.5rem
|
|
14
|
+
a.headerlink:before
|
|
15
|
+
content: ''
|
|
16
|
+
padding: 16px 24px 8px 24px
|
|
17
|
+
@media screen and (max-width: $device-mobile)
|
|
18
|
+
padding: 16px 20px 8px
|
|
19
|
+
line-height: 1.2
|
|
19
20
|
|
|
21
|
+
.md-text .tag-plugin.quot .content
|
|
22
|
+
max-width 400px
|
|
23
|
+
position: relative
|
|
20
24
|
// override
|
|
21
|
-
.
|
|
22
|
-
|
|
23
|
-
color: var(--text-p0)
|
|
24
|
-
h1.quot
|
|
25
|
+
.tag-plugin.quot
|
|
26
|
+
h1
|
|
25
27
|
font-size: $fs-h1
|
|
26
28
|
font-weight: 900
|
|
27
29
|
padding: 20px 32px 12px 32px
|
|
28
30
|
@media screen and (max-width: $device-mobile)
|
|
29
31
|
padding: 20px 24px 12px
|
|
30
|
-
h2
|
|
32
|
+
h2,h3,h4,h5,h6
|
|
31
33
|
font-size: $fs-h3
|
|
32
|
-
p
|
|
34
|
+
p
|
|
33
35
|
font-size: $fs-h4
|
|
36
|
+
color: var(--text-p0)
|
|
34
37
|
|
|
35
38
|
// type=text
|
|
36
|
-
.md-text .tag-plugin.quot
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
39
|
+
.md-text .tag-plugin.quot
|
|
40
|
+
.content[type=text]
|
|
41
|
+
&:before,&:after
|
|
42
|
+
content: ""
|
|
43
|
+
position: absolute
|
|
44
|
+
width: 8px
|
|
45
|
+
height: 14px
|
|
46
|
+
&:before
|
|
47
|
+
top: 8px
|
|
48
|
+
left: 0
|
|
49
|
+
border-top: 6px solid $color-accent
|
|
50
|
+
border-left: 6px solid $color-accent
|
|
51
|
+
&:after
|
|
52
|
+
right: 0
|
|
53
|
+
bottom: 0
|
|
54
|
+
border-right: 6px solid $color-accent
|
|
55
|
+
border-bottom: 6px solid $color-accent
|
|
56
|
+
h1.content[type=text]
|
|
57
|
+
&:before,&:after
|
|
58
|
+
width: 12px
|
|
59
|
+
height: 20px
|
|
60
|
+
border-width: 8px
|
|
57
61
|
|
|
58
62
|
// type=icon
|
|
59
|
-
.md-text .tag-plugin.quot[type=icon]
|
|
63
|
+
.md-text .tag-plugin.quot .content[type=icon]
|
|
60
64
|
.icon
|
|
61
65
|
height: 1.5em
|
|
62
66
|
display: inline-block
|
|
@@ -67,18 +71,3 @@
|
|
|
67
71
|
margin-right: .5rem
|
|
68
72
|
&.suffix
|
|
69
73
|
margin-left: .5rem
|
|
70
|
-
|
|
71
|
-
// inline quot
|
|
72
|
-
.md-text span.tag-plugin.quot
|
|
73
|
-
font-weight: 500
|
|
74
|
-
&:before,&:after
|
|
75
|
-
color: $color-accent
|
|
76
|
-
font-weight: 900
|
|
77
|
-
&:before
|
|
78
|
-
content: "「"
|
|
79
|
-
margin-left: -0.125em
|
|
80
|
-
margin-right: 0.125em
|
|
81
|
-
&:after
|
|
82
|
-
content: "」"
|
|
83
|
-
margin-left: 0.125em
|
|
84
|
-
margin-right: -0.125em
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.md-text .tag-plugin.tag
|
|
2
|
+
padding: 0px 4px
|
|
3
|
+
border-radius: 2px
|
|
4
|
+
background: var(--theme-bg1)
|
|
5
|
+
color: var(--text-p2)
|
|
6
|
+
margin: 2px 0
|
|
7
|
+
display: inline-block
|
|
8
|
+
font-size: $fs-14
|
|
9
|
+
trans2 background color
|
|
10
|
+
&:hover
|
|
11
|
+
background: var(--text-p2)
|
|
12
|
+
color: var(--theme-bg1)
|
|
13
|
+
|
|
@@ -52,21 +52,25 @@
|
|
|
52
52
|
.menu
|
|
53
53
|
margin-bottom: 0
|
|
54
54
|
background: none
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
55
|
+
border: 0
|
|
56
|
+
a
|
|
57
|
+
margin: 0
|
|
58
|
+
&.active
|
|
59
|
+
box-shadow: none
|
|
60
|
+
position: relative
|
|
61
|
+
background: none
|
|
62
|
+
&:after
|
|
63
|
+
content: ''
|
|
64
|
+
position: absolute
|
|
65
|
+
height: 3px
|
|
66
|
+
bottom: 0
|
|
67
|
+
width: 32px
|
|
68
|
+
left: 'calc(50% - 0.5 * %s)' % @width
|
|
69
|
+
border-radius: 4px
|
|
70
|
+
background: $color-theme
|
|
71
|
+
&:hover
|
|
72
|
+
box-shadow: none
|
|
73
|
+
background: var(--block)
|
|
70
74
|
|
|
71
75
|
.buttons
|
|
72
76
|
margin: 1rem 0
|
|
@@ -1,3 +1,103 @@
|
|
|
1
1
|
.widgets .widget-wrapper.search
|
|
2
|
-
margin-top:
|
|
2
|
+
margin-top: 1rem
|
|
3
3
|
margin-bottom: 0
|
|
4
|
+
|
|
5
|
+
.search-wrapper
|
|
6
|
+
width: 100%
|
|
7
|
+
>.search-form
|
|
8
|
+
position: sticky
|
|
9
|
+
top: 1rem
|
|
10
|
+
display: flex
|
|
11
|
+
flex-direction: row
|
|
12
|
+
align-items: center
|
|
13
|
+
.search-input
|
|
14
|
+
width: 100%
|
|
15
|
+
padding: 0.5rem
|
|
16
|
+
line-height: 1
|
|
17
|
+
box-sizing: border-box
|
|
18
|
+
border-radius: $border-block
|
|
19
|
+
background-color: var(--card)
|
|
20
|
+
color: var(--text-p0)
|
|
21
|
+
border: 1px solid var(--block-border)
|
|
22
|
+
&:focus
|
|
23
|
+
trans1 border-color
|
|
24
|
+
|
|
25
|
+
&.noresult
|
|
26
|
+
.search-input
|
|
27
|
+
&:focus
|
|
28
|
+
border: 1px solid $c-red
|
|
29
|
+
.search-icon
|
|
30
|
+
color: $c-red
|
|
31
|
+
|
|
32
|
+
.search-no-result
|
|
33
|
+
display: none
|
|
34
|
+
margin: 1em auto
|
|
35
|
+
color: var(--text-p1)
|
|
36
|
+
text-align: center
|
|
37
|
+
font-size: $fs-14
|
|
38
|
+
padding: 2rem
|
|
39
|
+
background: var(--block)
|
|
40
|
+
border-radius: $border-block
|
|
41
|
+
|
|
42
|
+
#search-result
|
|
43
|
+
ul.search-result-list
|
|
44
|
+
padding: 0
|
|
45
|
+
margin: 0
|
|
46
|
+
list-style-type: none
|
|
47
|
+
li
|
|
48
|
+
margin: 1em auto
|
|
49
|
+
&:hover
|
|
50
|
+
.search-result-title
|
|
51
|
+
color: $color-hover
|
|
52
|
+
.search-result-title
|
|
53
|
+
color: var(--text-p1)
|
|
54
|
+
font-weight: 700
|
|
55
|
+
line-height: 1.2
|
|
56
|
+
|
|
57
|
+
.search-result-content
|
|
58
|
+
overflow: hidden
|
|
59
|
+
color: var(--text-p3)
|
|
60
|
+
margin: .4em auto
|
|
61
|
+
max-height: 13em
|
|
62
|
+
text-align: justify
|
|
63
|
+
font-size: $fs-12
|
|
64
|
+
line-height: 1.2
|
|
65
|
+
display: -webkit-box
|
|
66
|
+
-webkit-box-orient: vertical
|
|
67
|
+
overflow: hidden
|
|
68
|
+
-webkit-line-clamp: 3
|
|
69
|
+
|
|
70
|
+
.search-keyword
|
|
71
|
+
border-bottom: 1px dashed $color-hover
|
|
72
|
+
color: $color-hover
|
|
73
|
+
font-weight: bold
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
.search-wrapper.noresult
|
|
78
|
+
.search-no-result
|
|
79
|
+
display: block
|
|
80
|
+
|
|
81
|
+
.widget-wrapper
|
|
82
|
+
.search-form
|
|
83
|
+
top: 0
|
|
84
|
+
background: var(--site-bg)
|
|
85
|
+
.search-input
|
|
86
|
+
margin-top: 1rem
|
|
87
|
+
margin-bottom: -1rem
|
|
88
|
+
padding-left: 1.75rem
|
|
89
|
+
.search-icon
|
|
90
|
+
margin-top: 1rem
|
|
91
|
+
margin-bottom: -1rem
|
|
92
|
+
position: absolute
|
|
93
|
+
margin-left: 0.5rem
|
|
94
|
+
left: 0
|
|
95
|
+
pointer-events: none
|
|
96
|
+
color: var(--text-p2)
|
|
97
|
+
|
|
98
|
+
#search-result,.search-no-result
|
|
99
|
+
margin-top: 2rem
|
|
100
|
+
|
|
101
|
+
.widget-wrapper:not(:first-child)
|
|
102
|
+
.search-wrapper
|
|
103
|
+
margin-top: -1rem
|
|
@@ -8,9 +8,6 @@ if hexo-config('plugins.scrollreveal.enable')
|
|
|
8
8
|
if hexo-config('plugins.fancybox.enable')
|
|
9
9
|
@import 'fancybox'
|
|
10
10
|
|
|
11
|
-
// 搜索
|
|
12
|
-
if hexo-config('search.service') == 'local_search'
|
|
13
|
-
@import 'search/local-search'
|
|
14
11
|
|
|
15
12
|
// 评论
|
|
16
13
|
if hexo-config('comments.service') == 'beaudar'
|