hexo-theme-solitude 1.2.1 → 1.2.3
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 +18 -2
- package/layout/includes/head/config.pug +1 -1
- package/layout/includes/inject/body.pug +2 -3
- package/layout/includes/inject/head.pug +3 -1
- package/layout/includes/page/equipment.pug +1 -1
- package/layout/includes/page/moments.pug +1 -1
- package/layout/includes/page/says.pug +1 -1
- package/layout/includes/page/tlink.pug +1 -1
- package/layout/includes/widgets/aside/asideTag.pug +1 -1
- package/layout/includes/widgets/home/categoryBar.pug +1 -1
- package/layout/includes/widgets/home/postList.pug +20 -21
- package/layout/includes/widgets/third-party/search/algolia-search.pug +2 -4
- package/layout/includes/widgets/third-party/search/local-search.pug +2 -4
- package/layout/index.pug +2 -1
- package/package.json +1 -1
- package/scripts/filter/default.js +27 -21
- package/source/css/_global/index.styl +1 -45
- package/source/css/_global/var.styl +10 -1
- package/source/css/_mode/index.styl +49 -5
- package/source/css/_page/about.styl +0 -109
- package/source/css/_page/equipment.styl +0 -7
- package/source/css/_page/index.styl +110 -1
- package/source/css/_page/moment.styl +0 -7
- package/source/css/_page/says.styl +0 -6
- package/source/css/_search/algolia-search.styl +56 -108
- package/source/css/_search/local-search.styl +131 -112
- package/source/js/extend/{console/comment.js → comment/twikoo.js} +0 -1
- package/source/js/extend/search/algolia-search.js +146 -122
- package/source/js/extend/search/local-search.js +137 -162
- package/source/js/utils.js +30 -1
@@ -20,12 +20,6 @@ if hexo-config('says.home_mini')
|
|
20
20
|
font-size 16px
|
21
21
|
|
22
22
|
if hexo-config('says.enable')
|
23
|
-
.author-content.author-content-item.essayPage
|
24
|
-
height 19rem
|
25
|
-
color var(--sco-white)
|
26
|
-
overflow hidden
|
27
|
-
margin-top 0
|
28
|
-
|
29
23
|
#bber
|
30
24
|
margin-top 1rem
|
31
25
|
width 100%
|
@@ -11,28 +11,47 @@
|
|
11
11
|
background var(--sco-card-bg)
|
12
12
|
border var(--style-border)
|
13
13
|
transition 0.3s
|
14
|
-
border-radius
|
14
|
+
border-radius 8px
|
15
|
+
|
16
|
+
&:hover
|
17
|
+
border var(--style-border-hover)
|
18
|
+
box-shadow var(--sco-shadow-theme)
|
15
19
|
|
16
20
|
+maxWidth768()
|
17
|
-
top
|
18
|
-
left
|
19
|
-
margin
|
21
|
+
top 0
|
22
|
+
left 0
|
23
|
+
margin 0
|
20
24
|
width 100%
|
21
25
|
height 100%
|
22
26
|
|
23
27
|
.search-close-button
|
28
|
+
position absolute
|
29
|
+
top 0.8rem
|
30
|
+
right 1rem
|
31
|
+
color var(--sco-gray)
|
32
|
+
font-size 1.4em
|
33
|
+
line-height 1
|
34
|
+
cursor pointer
|
35
|
+
transition color .2s ease-in-out 0s
|
36
|
+
|
24
37
|
&:hover
|
25
38
|
color var(--sco-main)
|
26
39
|
|
27
|
-
|
40
|
+
#algolia-input-panel
|
41
|
+
margin-bottom 8px
|
42
|
+
|
43
|
+
.search-box, .ais-SearchBox
|
28
44
|
padding-top 8px
|
29
45
|
max-width 100%
|
46
|
+
position relative
|
47
|
+
width 100%
|
48
|
+
min-width 100%
|
30
49
|
|
31
|
-
input
|
50
|
+
input, .ais-SearchBox-input
|
32
51
|
height 100%
|
33
52
|
width 100%
|
34
53
|
padding 0.25rem 0.7rem
|
35
|
-
outline
|
54
|
+
outline 0
|
36
55
|
border var(--style-border)
|
37
56
|
border-radius 8px
|
38
57
|
background var(--sco-secondbg)
|
@@ -41,45 +60,10 @@
|
|
41
60
|
&:focus
|
42
61
|
border var(--style-border-hover)
|
43
62
|
|
44
|
-
.
|
45
|
-
|
46
|
-
|
47
|
-
right 1rem
|
48
|
-
color var(--sco-gray)
|
49
|
-
font-size 1.4em
|
50
|
-
line-height 1
|
51
|
-
cursor pointer
|
52
|
-
transition color .2s ease-in-out 0s
|
53
|
-
|
54
|
-
#search-mask
|
55
|
-
position fixed
|
56
|
-
inset 0px
|
57
|
-
z-index 1000
|
58
|
-
display none
|
59
|
-
background rgba(0, 0, 0, 0.6)
|
60
|
-
backdrop-filter blur(12px)
|
61
|
-
-webkit-backdrop-filter blur(12px)
|
62
|
-
transform translateZ(0)
|
63
|
-
background var(--sco-maskbgdeep)
|
64
|
-
|
65
|
-
.search-nav
|
66
|
-
display flex
|
67
|
-
align-items center
|
68
|
-
justify-content space-between
|
69
|
-
padding 0 0.2rem 0.7rem 0.2rem
|
70
|
-
|
71
|
-
.search-dialog-title
|
72
|
-
font-weight bold
|
73
|
-
color var(--sco-main)
|
74
|
-
font-size 1.4em
|
75
|
-
line-height 1
|
76
|
-
|
77
|
-
.search-box
|
78
|
-
input
|
79
|
-
&::placeholder
|
80
|
-
color var(--sco-gray)
|
63
|
+
.ais-Pagination
|
64
|
+
.ais-Pagination-item--disabled
|
65
|
+
visibility hidden
|
81
66
|
|
82
|
-
#algolia-search
|
83
67
|
#search-results
|
84
68
|
padding 8px
|
85
69
|
max-height calc(80vh - 130px)
|
@@ -117,29 +101,7 @@
|
|
117
101
|
text-align center
|
118
102
|
font-weight 600
|
119
103
|
|
120
|
-
.
|
121
|
-
color var(--sco-gray)
|
122
|
-
font-size .8rem
|
123
|
-
font-weight bold
|
124
|
-
|
125
|
-
.ais-SearchBox
|
126
|
-
padding-top: 8px
|
127
|
-
margin 0 auto
|
128
|
-
width 100%
|
129
|
-
min-width 100%
|
130
|
-
position relative
|
131
|
-
|
132
|
-
.ais-SearchBox-input
|
133
|
-
border-radius 8px
|
134
|
-
border var(--style-border)
|
135
|
-
padding 0.25rem 0.7rem
|
136
|
-
outline 0
|
137
|
-
background var(--sco-secondbg)
|
138
|
-
color var(--search-input-color)
|
139
|
-
width 100%
|
140
|
-
height 100%
|
141
|
-
|
142
|
-
.ais-Pagination-list.pagination
|
104
|
+
.ais-Pagination-list
|
143
105
|
margin 0.2rem 0 0
|
144
106
|
padding 0
|
145
107
|
text-align center
|
@@ -159,48 +121,34 @@
|
|
159
121
|
text-align center
|
160
122
|
line-height 1.2rem
|
161
123
|
|
162
|
-
search-
|
163
|
-
|
164
|
-
|
165
|
-
font-size
|
124
|
+
.search-dialog__title
|
125
|
+
padding 0 0 0.7rem
|
126
|
+
color var(--sco-main)
|
127
|
+
font-size 1.4em
|
128
|
+
line-height 1
|
129
|
+
|
130
|
+
#algolia-tips
|
131
|
+
padding-top 12px
|
132
|
+
color var(--sco-secondtext)
|
133
|
+
right 0
|
134
|
+
margin auto
|
135
|
+
|
136
|
+
#algolia-stats
|
137
|
+
margin-bottom 10px
|
138
|
+
color var(--sco-gray)
|
139
|
+
font-size .8rem
|
140
|
+
font-weight bold
|
141
|
+
|
142
|
+
#algolia-search-results
|
143
|
+
padding-top 8px
|
166
144
|
|
167
145
|
#search-mask
|
146
|
+
position fixed
|
147
|
+
inset 0
|
148
|
+
z-index 1000
|
149
|
+
display none
|
150
|
+
background rgba(0, 0, 0, 0.6)
|
168
151
|
backdrop-filter blur(12px)
|
169
152
|
-webkit-backdrop-filter blur(12px)
|
170
153
|
transform translateZ(0)
|
171
|
-
background var(--sco-maskbgdeep)
|
172
|
-
|
173
|
-
#algolia-input-panel
|
174
|
-
margin-bottom 8px
|
175
|
-
|
176
|
-
.search-dialog
|
177
|
-
border-radius 12px !important
|
178
|
-
box-shadow var(--sco-shadow-lightblack)
|
179
|
-
background var(--sco-card-bg)
|
180
|
-
border var(--style-border)
|
181
|
-
transition .3s
|
182
|
-
|
183
|
-
&:hover
|
184
|
-
border var(--style-border-hover)
|
185
|
-
box-shadow var(--sco-shadow-theme)
|
186
|
-
|
187
|
-
.search-dialog__title
|
188
|
-
padding 0 0 0.7rem
|
189
|
-
color var(--sco-main)
|
190
|
-
font-size 1.4em
|
191
|
-
line-height 1
|
192
|
-
|
193
|
-
#algolia-tips
|
194
|
-
padding-top 12px
|
195
|
-
color var(--sco-secondtext)
|
196
|
-
right 0
|
197
|
-
margin auto
|
198
|
-
|
199
|
-
i
|
200
|
-
font-size 22px
|
201
|
-
|
202
|
-
.algolia-tips-text
|
203
|
-
margin-left .4rem
|
204
|
-
|
205
|
-
#algolia-search-results
|
206
|
-
padding-top 8px
|
154
|
+
background var(--sco-maskbgdeep)
|
@@ -1,112 +1,131 @@
|
|
1
|
-
.search-dialog
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
#
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
.
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
.
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
1
|
+
.search-dialog
|
2
|
+
position fixed
|
3
|
+
top 5rem
|
4
|
+
left 50%
|
5
|
+
z-index 1001
|
6
|
+
display none
|
7
|
+
margin-left -15rem
|
8
|
+
padding 1rem
|
9
|
+
width 30rem
|
10
|
+
box-shadow var(--sco-shadow-lightblack)
|
11
|
+
background var(--sco-card-bg)
|
12
|
+
border var(--style-border)
|
13
|
+
transition 0.3s
|
14
|
+
border-radius 8px
|
15
|
+
|
16
|
+
&:hover
|
17
|
+
border var(--style-border-hover)
|
18
|
+
box-shadow var(--sco-shadow-theme)
|
19
|
+
|
20
|
+
+maxWidth768()
|
21
|
+
top 0
|
22
|
+
left 0
|
23
|
+
margin 0
|
24
|
+
width 100%
|
25
|
+
height 100%
|
26
|
+
|
27
|
+
.search-dialog-title
|
28
|
+
font-weight 700
|
29
|
+
color var(--sco-main)
|
30
|
+
padding 0 0 0.7rem
|
31
|
+
font-size 1.4em
|
32
|
+
line-height 1
|
33
|
+
|
34
|
+
.search-close-button
|
35
|
+
position absolute
|
36
|
+
top 0.8rem
|
37
|
+
right 1rem
|
38
|
+
color var(--sco-gray)
|
39
|
+
font-size 1.4em
|
40
|
+
line-height 1
|
41
|
+
cursor pointer
|
42
|
+
transition color .2s ease-in-out 0s
|
43
|
+
|
44
|
+
&:hover
|
45
|
+
color var(--sco-main)
|
46
|
+
|
47
|
+
#search-results
|
48
|
+
max-height calc(80vh - 130px)
|
49
|
+
overflow-y auto
|
50
|
+
margin-top 8px
|
51
|
+
|
52
|
+
.search-result-list
|
53
|
+
.search-result-title
|
54
|
+
padding-left 0
|
55
|
+
font-weight 700
|
56
|
+
position relative
|
57
|
+
transition color .2s ease-in-out 0s
|
58
|
+
|
59
|
+
&:hover
|
60
|
+
color var(--sco-main)
|
61
|
+
|
62
|
+
+maxWidth768()
|
63
|
+
max-height 80vh !important
|
64
|
+
|
65
|
+
#search-pagination
|
66
|
+
.pagination-list
|
67
|
+
margin 0.2rem 0 0
|
68
|
+
padding 0
|
69
|
+
text-align center
|
70
|
+
|
71
|
+
.pagination-item
|
72
|
+
color var(--sco-fontcolor)
|
73
|
+
display inline-block
|
74
|
+
min-width 1.2rem
|
75
|
+
height 1.2rem
|
76
|
+
text-align center
|
77
|
+
line-height 1.2rem
|
78
|
+
cursor pointer
|
79
|
+
|
80
|
+
&:hover
|
81
|
+
color var(--sco-main)
|
82
|
+
|
83
|
+
&.select
|
84
|
+
border-radius 4px
|
85
|
+
background var(--sco-main)
|
86
|
+
color var(--sco-white)
|
87
|
+
cursor default
|
88
|
+
|
89
|
+
&:hover
|
90
|
+
color var(--sco-white)
|
91
|
+
|
92
|
+
#search-tips
|
93
|
+
padding-top 12px
|
94
|
+
color var(--sco-secondtext)
|
95
|
+
right 0
|
96
|
+
margin auto
|
97
|
+
|
98
|
+
.search-result-count
|
99
|
+
color var(--sco-gray)
|
100
|
+
|
101
|
+
b
|
102
|
+
color var(--sco-main)
|
103
|
+
|
104
|
+
.search-box
|
105
|
+
position relative
|
106
|
+
margin 0 auto
|
107
|
+
max-width 100%
|
108
|
+
width 100%
|
109
|
+
padding-top 8px
|
110
|
+
margin-bottom 8px
|
111
|
+
|
112
|
+
input
|
113
|
+
height 100%
|
114
|
+
width 100%
|
115
|
+
border-radius 8px
|
116
|
+
border var(--style-border)
|
117
|
+
padding 0.25rem 0.7rem;
|
118
|
+
outline 0
|
119
|
+
background var(--sco-secondbg)
|
120
|
+
color var(--search-input-color)
|
121
|
+
|
122
|
+
#search-mask
|
123
|
+
position fixed
|
124
|
+
inset 0
|
125
|
+
z-index 1000
|
126
|
+
display none
|
127
|
+
background rgba(0, 0, 0, 0.6)
|
128
|
+
backdrop-filter blur(12px)
|
129
|
+
-webkit-backdrop-filter blur(12px)
|
130
|
+
transform translateZ(0)
|
131
|
+
background var(--sco-maskbgdeep)
|