hexo-theme-solitude 1.7.0 → 1.7.2

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.
@@ -1,4 +1,4 @@
1
- #about-page
1
+ #$about-page
2
2
  display flex
3
3
  padding-top 1rem
4
4
  flex-direction column
@@ -10,40 +10,40 @@
10
10
  margin 1rem 0
11
11
  line-height 1
12
12
 
13
- if "tenyear" in about
13
+ if "tenyear" in $about
14
14
  @import "tenyear"
15
15
 
16
- if "authorinfo" in about
16
+ if "authorinfo" in $about
17
17
  @import "author"
18
18
 
19
- if "contentinfo" in about
19
+ if "contentinfo" in $about
20
20
  @import "contentinfo"
21
21
 
22
- if "skills" in about
22
+ if "skills" in $about
23
23
  @import "skills"
24
24
 
25
- if "oneself" in about
25
+ if "oneself" in $about
26
26
  @import "oneself"
27
27
 
28
- if "motto" in about
28
+ if "motto" in $about
29
29
  @import "buff"
30
30
  @import "maxim"
31
31
 
32
- if "game1" in about
32
+ if "game1" in $about
33
33
  @import "game"
34
34
 
35
- if "personalities" in about
35
+ if "personalities" in $about
36
36
  @import "personalities"
37
37
  @import "myphoto"
38
38
 
39
- if "careers" in about
39
+ if "careers" in $about
40
40
  @import "careers"
41
41
 
42
- if "likes" in about
42
+ if "likes" in $about
43
43
  @import "like"
44
44
 
45
- if "tj" in about
45
+ if "tj" in $about
46
46
  @import "statistic"
47
47
 
48
- if "award" in about
48
+ if "award" in $about
49
49
  @import "reward"
@@ -345,9 +345,4 @@
345
345
  background-position 100% 0
346
346
 
347
347
  .banners-link-title
348
- margin-left auto
349
-
350
- for name in banner_group
351
- .banners-link-{name}
352
- background convert(getGroupColor(name))
353
- background-size 200%
348
+ margin-left auto
@@ -10,11 +10,8 @@
10
10
  if hexo-config('hometop.enable')
11
11
  @import "home-top.styl"
12
12
 
13
- // 分类导航栏
14
13
  @import "category-bar.styl"
15
14
 
16
- // 首页文章列表
17
15
  @import "recent-post.styl"
18
16
 
19
- // 分页
20
17
  @import "pagination.styl"
@@ -228,6 +228,7 @@ if hexo-config('index_post_list.direction') == "column"
228
228
 
229
229
  .sticky
230
230
  color var(--efu-fontcolor)
231
+
231
232
  else if hexo-config('index_post_list.direction') == "row"
232
233
  #recent-posts
233
234
  position relative
@@ -1,4 +1,3 @@
1
- // categories view
2
1
  #category
3
2
  #category-bar
4
3
  padding 0
@@ -18,7 +17,6 @@
18
17
  margin-top 0
19
18
  align-items center
20
19
 
21
- // category view
22
20
  #page
23
21
  .category-lists
24
22
  padding 1rem 0 1.5rem
@@ -44,7 +44,7 @@
44
44
  width 600px
45
45
  border-top-left-radius 8px
46
46
  border-bottom-left-radius 8px
47
- background-color #307af6
47
+ background-color var(--efu-main)
48
48
  background-position center center
49
49
  background-size cover
50
50
 
@@ -1,32 +1,32 @@
1
1
  .google-vignette-test
2
- animation: 0.6s ease 0s 1 normal none running to_show
2
+ animation 0.6s ease 0s 1 normal none running to_show
3
3
 
4
4
  > body
5
- background-color: var(--efu-maskbgdeep)
5
+ background-color var(--efu-maskbgdeep)
6
6
 
7
7
  .header-panel
8
- background-color: transparent
9
- border: none
8
+ background-color transparent
9
+ border none
10
10
 
11
11
  .header-message
12
- color: var(--efu-fontcolor)
12
+ color var(--efu-fontcolor)
13
13
 
14
14
  .close-button
15
- line-height: inherit
16
- background: var(--efu-maskbg)
17
- border-radius: 50%
18
- padding: 4px
19
- margin: 12px
20
- display: flex
21
- align-items: center
22
- justify-content: center
15
+ line-height inherit
16
+ background var(--efu-maskbg)
17
+ border-radius 50%
18
+ padding 4px
19
+ margin 12px
20
+ display flex
21
+ align-items center
22
+ justify-content center
23
23
 
24
24
  .container
25
25
  ins
26
26
  iframe
27
- border-radius: 12px
28
- border: var(--style-border)
29
- box-shadow: var(--efu-shadow-border)
27
+ border-radius 12px
28
+ border var(--style-border)
29
+ box-shadow var(--efu-shadow-border)
30
30
 
31
31
  > body
32
- background-color: var(--efu-maskbg)
32
+ background-color var(--efu-maskbg)
@@ -1,10 +1,8 @@
1
- @import "_home/index.styl"
2
-
3
- @import "home.styl"
1
+ @import "_home/home"
4
2
 
5
3
  @import "category.styl"
6
4
 
7
- @import "equipment.styl"
5
+ @import "tag.styl"
8
6
 
9
7
  @import "error.styl"
10
8
 
@@ -14,21 +12,56 @@ if hexo-config('moments.enable')
14
12
  if hexo-config('says.enable')
15
13
  @import "says.styl"
16
14
 
17
- @import "tag.styl"
15
+ if hexo-config('music.enable')
16
+ @import "music.styl"
18
17
 
19
- @import "douban.styl"
18
+ if hexo-config('google_adsense.enable')
19
+ @import "google.styl"
20
20
 
21
- @import "links.styl"
21
+ if $equipment
22
+ @import "equipment.styl"
22
23
 
23
- if hexo-config('album.enable')
24
- @import "_gallery/index.styl"
24
+ if $link
25
+ @import "links.styl"
25
26
 
26
- @import "_about/index.styl"
27
+ if $about
28
+ @import "_about/about"
27
29
 
28
- if hexo-config('music.enable')
29
- @import "music.styl"
30
+ @import "other"
30
31
 
31
- @import "share.styl"
32
+ @import "douban"
32
33
 
33
- if hexo-config('google_adsense.enable')
34
- @import "google.styl"
34
+ #page h1.page-title
35
+ display inline
36
+ margin .4rem 0 1rem
37
+
38
+ #page
39
+ background 0 0
40
+ border none
41
+ padding 0
42
+ box-shadow none
43
+ min-height calc(100vh - 464px)
44
+
45
+ +maxWidth768()
46
+ padding 0 1rem
47
+
48
+ > div:not(.author-content-item)
49
+ animation slide-in .6s .2s backwards
50
+
51
+ +minWidth768()
52
+ > div:nth-child(1) > a::before
53
+ height: 24px
54
+ width: 44px
55
+ content: ""
56
+ background-size: 38px 24px
57
+ position: absolute
58
+ top: 0
59
+ left: 0
60
+
61
+ > a:nth-child(0) > i
62
+ padding-right: 8px
63
+
64
+ +minWidth768()
65
+ .needEndHide.hide
66
+ bottom -200px !important
67
+ opacity 0
@@ -29,125 +29,124 @@
29
29
  color var(--efu-hovertext)
30
30
 
31
31
  .moments-list
32
- display: flex
33
- flex-direction: column
32
+ display flex
33
+ flex-direction column
34
34
 
35
35
  .article-sort-item-info
36
- display: flex
37
- flex-direction: column
36
+ display flex
37
+ flex-direction column
38
38
 
39
39
  .article-sort-item-title
40
- color: var(--efu-lighttext)
40
+ color var(--efu-lighttext)
41
41
 
42
42
  &:hover
43
- color: var(--efu-hovertext)
43
+ color var(--efu-hovertext)
44
44
 
45
45
  #friend_link_moments
46
- border: none
46
+ border none
47
47
 
48
48
  .moments-article-img
49
- height: 100%
50
- margin: 0
49
+ height 100%
50
+ margin 0
51
51
 
52
52
  .tab-item-content
53
53
  #moments_container
54
54
  .moments-item
55
55
  a
56
- border-bottom: none
57
- padding: 0
58
- margin-right: auto
59
- width: auto
56
+ border-bottom none
57
+ padding 0
58
+ margin-right auto
59
+ width auto
60
60
 
61
61
  &:hover
62
- background: 0 0
63
- color: var(--efu-lighttext)
64
- box-shadow: none
62
+ background none
63
+ color var(--efu-lighttext)
64
+ box-shadow none
65
65
 
66
66
  h2
67
- display: none
67
+ display none
68
68
 
69
69
  #friend_moments_list
70
70
  .moments-sort-item
71
- margin: 1rem 0
71
+ margin 1rem 0
72
72
 
73
73
  .moments-sort-item-img
74
- border-radius: 12px
74
+ border-radius 12px
75
75
 
76
76
  .moments-item-time
77
- order: 1
77
+ order 1
78
78
 
79
79
  .moments-sort-item-title
80
80
  color: var(--efu-lighttext)
81
- border-bottom: none
82
- padding: 0
81
+ border-bottom none
82
+ padding 0
83
83
 
84
84
  &:hover
85
- color: var(--efu-hovertext)
86
- background: 0 0
87
- box-shadow: none
85
+ color var(--efu-hovertext)
86
+ background 0 0
87
+ box-shadow none
88
88
 
89
89
  .moments_load_button
90
- color: var(--efu-fontcolor)
91
- background: var(--efu-card-btn-bg)
92
- padding: 12px 16px
93
- border-radius: 12px
94
- transition: .3s
95
- width: 100%
96
- margin-top: 1rem
97
- margin-bottom: 1rem
98
- border: 0
90
+ color var(--efu-fontcolor)
91
+ background var(--efu-card-btn-bg)
92
+ padding 12px 16px
93
+ border-radius 12px
94
+ transition .3s
95
+ width 100%
96
+ margin-top 1rem
97
+ margin-bottom 1rem
98
+ border 0
99
99
 
100
100
  &:hover
101
- color: var(--efu-white)
102
- background: var(--efu-main)
103
- transition: .3s
101
+ color var(--efu-white)
102
+ background var(--efu-main)
103
+ transition .3s
104
104
 
105
105
  .moments-item-title
106
- color: var(--efu-lighttext)
107
- font-size: 1rem
108
- order: 0
109
- width: 100%
110
- font-weight: 700
111
- -webkit-line-clamp: 1
112
- overflow: hidden
113
- -webkit-box-orient: vertical
106
+ color var(--efu-lighttext)
107
+ font-size 1rem
108
+ order 0
109
+ width 100%
110
+ font-weight 700
111
+ -webkit-line-clamp 1
112
+ overflow hidden
114
113
 
115
114
  .moments-item-info
116
- display: flex
117
- flex-direction: column
115
+ display flex
116
+ flex-direction column
118
117
 
119
118
  .moments_post_time
120
- display: none
119
+ display none
121
120
 
122
121
  i
123
- margin-right: 8px
122
+ margin-right 8px
124
123
 
125
124
  .moments-item-title
126
- font-weight: 700
125
+ font-weight 700
127
126
 
128
127
  .moments_post_info_number
129
- float: right
128
+ float right
130
129
 
131
130
  .moments-item-img
132
- width: 60px
133
- height: 60px
131
+ width 60px
132
+ height 60px
134
133
 
135
134
  img
136
- border-radius: 99px
137
- width: 80px
138
- height: 80px
139
- overflow: hidden
135
+ border-radius 80px
136
+ width 80px
137
+ height 80px
138
+ overflow hidden
140
139
 
141
140
  .moments-item
142
- margin-left: 0
143
- box-shadow: none
141
+ margin-left 0
142
+ box-shadow none
144
143
 
145
144
  #hexo-circle-of-friends-root
146
- margin: 0 -8px
145
+ margin 0 -8px
147
146
 
148
147
  #cf-container
149
148
  a
150
- width: fit-content
149
+ width fit-content
151
150
 
152
151
  .cf-article .cf-img-avatar
153
152
  border-radius 50% !important
@@ -156,26 +155,26 @@
156
155
 
157
156
  #page
158
157
  .title-h2-a
159
- display: flex
160
- align-items: center
161
- justify-content: space-between
162
- margin-top: .5rem
158
+ display flex
159
+ align-items center
160
+ justify-content space-between
161
+ margin-top .5rem
163
162
 
164
163
  a
165
- margin-left: .5rem
166
- color: var(--efu-secondtext)
167
- font-weight: 700
164
+ margin-left .5rem
165
+ color var(--efu-secondtext)
166
+ font-weight 700
168
167
 
169
168
  &:hover
170
- color: var(--efu-main)
169
+ color var(--efu-main)
171
170
 
172
171
  .title-h2-a-left
173
- display: flex
174
- align-items: center
172
+ display flex
173
+ align-items center
175
174
 
176
175
  h2
177
- margin: 0
176
+ margin 0
178
177
 
179
178
  .title-h2-a-right
180
- font-size: 14px
181
- color: var(--efu-secondtext)
179
+ font-size 14px
180
+ color var(--efu-secondtext)
@@ -1,5 +1,3 @@
1
- // banner
2
-
3
1
  div#banners
4
2
  display none
5
3
  +minWidth1200()
@@ -1,197 +0,0 @@
1
- #article-container
2
- overflow-wrap break-word
3
- +maxWidth768()
4
- overflow hidden
5
-
6
- iframe
7
- border-radius 12px
8
- margin 0 0 1rem
9
-
10
- a
11
- color var(--efu-fontcolor)
12
- border-radius 4px 4px 0 0
13
-
14
- border-bottom 2px dotted var(--efu-lighttext)
15
- font-weight 700
16
-
17
- &:not(.fancybox)
18
- padding 0 4px
19
-
20
- &:hover
21
- border 0
22
- text-decoration none
23
- color var(--efu-white)
24
- border-radius 4px
25
- background var(--efu-main)
26
-
27
- .table-wrap
28
- margin 1rem 0
29
- border-radius 8px
30
- overflow-x scroll
31
-
32
- a.headerlink
33
- float right
34
- opacity .08
35
- position relative
36
- padding 0
37
- border none
38
- border-radius 8px
39
- line-height 1
40
- font-size .8rem
41
-
42
- #page &
43
- display none
44
-
45
- &::before
46
- content "\e082"
47
- font-family solitude
48
- cursor pointer
49
-
50
- &:hover
51
- border-bottom none
52
- box-shadow none
53
- background var(--efu-none)
54
- color var(--efu-lighttext)
55
- opacity 1
56
-
57
- &::before
58
- color var(--efu-main)
59
-
60
- p
61
- font-size .9rem
62
- line-height 1.7
63
- font-weight 400
64
- margin 1rem 0
65
- text-align left
66
- letter-spacing .6px
67
-
68
- img
69
- margin auto
70
-
71
- a
72
- &:not(.fancybox)
73
- text-decoration none
74
- border-bottom 2px dotted var(--efu-lighttext)
75
- color var(--efu-fontcolor)
76
- font-weight 700
77
- padding 0 4px
78
- border-radius 4px 4px 0 0
79
-
80
- &:hover
81
- color var(--efu-white)
82
- border-radius 4px
83
- background var(--efu-main)
84
-
85
- code:not([class*='language-'])
86
- color var(--efu-white)
87
- padding 0.2rem 0.4rem
88
- border-radius 4px
89
- margin 0 4px
90
- background var(--efu-pink)
91
- line-height 2
92
- box-shadow var(--efu-shadow-border)
93
-
94
- img
95
- border-radius 12px
96
- object-fit cover
97
- display block
98
- margin 0.8rem auto
99
- max-width 90%
100
- max-height 450px
101
-
102
- ul, ol
103
- padding 0
104
- margin-top 0.4rem
105
- list-style none
106
- counter-reset li 0
107
-
108
- li
109
- &:before
110
- position absolute
111
- top 0
112
- left 0
113
- color var(--efu-fontcolor)
114
- transition all .3s ease-out 0s
115
- background var(--efu-lighttext)
116
-
117
- &:not(.tab)
118
- position relative
119
- margin 0.2rem 0
120
-
121
- ul
122
- > li
123
- &:not(.tab)
124
- padding 0.2em 0.2em 0.2em 1.4em
125
-
126
- &:before
127
- margin 0
128
- top 0.78em
129
- width 0.42em
130
- height 0.42em
131
- border-radius 0.42em
132
- background 0 0
133
- content ""
134
- line-height .42em
135
- border 0.21em solid var(--efu-lighttext)
136
- background var(--efu-lighttext)
137
-
138
- ol
139
- > li:before
140
- margin-top .65em
141
- width 1.45em
142
- height 1.45em
143
- border-radius .725em
144
- text-align center
145
- font-size .85em
146
- color var(--efu-white)
147
- line-height 1.45em
148
-
149
- ul li
150
- line-height 1.7
151
-
152
- > li
153
-
154
- &:not(.tab)
155
- padding .2em .2em .2em 1.8em
156
-
157
- &:before
158
- content counter(li)
159
- counter-increment li 1
160
-
161
- > ol
162
- > li
163
- &:before
164
- content counter(li, lower-alpha)
165
- counter-increment li
166
-
167
- > ol
168
- > li
169
- &:before
170
- content counter(li, lower-roman)
171
- counter-increment li
172
-
173
- &.post-content
174
- h1, h2, h3, h4
175
- display flex
176
- align-items center
177
- justify-content space-between
178
- flex-direction row-reverse
179
- transition all .2s ease-out 0s
180
-
181
- h1
182
- font-size 1.5rem
183
- line-height 1.3
184
-
185
- h2
186
- font-size 1.3rem
187
- line-height 1.3
188
- border-top 1px dashed var(--efu-theme-op)
189
- padding-top 1.5rem
190
-
191
- h3
192
- font-size 1.1rem
193
- line-height 1.3
194
-
195
- h4
196
- font-size 1.1rem
197
- line-height 1.3
@@ -51,15 +51,18 @@
51
51
  .post-copyright__notice
52
52
  font-size 12px
53
53
  margin 0.5rem 0
54
+ display flex
55
+ justify-content center
54
56
 
55
57
  .post-copyright-info
56
58
  padding-left 0
57
59
  color var(--efu-secondtext)
58
60
  overflow hidden
59
61
  display -webkit-box
60
- -webkit-line-clamp 1
62
+ -webkit-line-clamp 3
61
63
  -webkit-box-orient vertical
62
64
  text-align center
65
+ max-width 500px
63
66
 
64
67
  +maxWidth768()
65
68
  -webkit-line-clamp 2