hexo-theme-solitude 1.2.6 → 1.3.1

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.
Files changed (263) hide show
  1. package/CONTRIBUTING.md +41 -0
  2. package/README.md +8 -8
  3. package/README_EN.md +6 -6
  4. package/_config.yml +502 -297
  5. package/languages/en-US.yml +105 -8
  6. package/languages/zh-CN.yml +98 -1
  7. package/layout/archive.pug +4 -5
  8. package/layout/category.pug +4 -5
  9. package/layout/includes/body/mode.pug +40 -0
  10. package/layout/includes/console.pug +15 -16
  11. package/layout/includes/footer.pug +26 -28
  12. package/layout/includes/head/config.pug +27 -8
  13. package/layout/includes/head/fest.pug +22 -0
  14. package/layout/includes/head/opengraph.pug +11 -0
  15. package/layout/includes/head.pug +1 -3
  16. package/layout/includes/header.pug +1 -1
  17. package/layout/includes/inject/body.pug +36 -13
  18. package/layout/includes/inject/head.pug +30 -20
  19. package/layout/includes/layout.pug +12 -8
  20. package/layout/includes/loading.pug +1 -64
  21. package/layout/includes/mixins/articleSort.pug +4 -4
  22. package/layout/includes/mixins/pagination.pug +1 -1
  23. package/layout/includes/nav.pug +10 -10
  24. package/layout/includes/page/about.pug +1 -0
  25. package/layout/includes/page/categories.pug +3 -3
  26. package/layout/includes/page/default.pug +1 -1
  27. package/layout/includes/page/echarts.pug +3 -3
  28. package/layout/includes/page/equipment.pug +0 -1
  29. package/layout/includes/page/links.pug +5 -26
  30. package/layout/includes/page/moments.pug +0 -1
  31. package/layout/includes/page/music.pug +19 -0
  32. package/layout/includes/page/not_configured.pug +18 -0
  33. package/layout/includes/page/rss.pug +20 -22
  34. package/layout/includes/page/says.pug +1 -2
  35. package/layout/includes/page/tags.pug +3 -3
  36. package/layout/includes/page/tlink.pug +0 -1
  37. package/layout/includes/sidebar.pug +7 -7
  38. package/layout/includes/widgets/aside/aside.pug +13 -1
  39. package/layout/includes/widgets/aside/asideArchive.pug +5 -3
  40. package/layout/includes/widgets/aside/asideCustom.pug +6 -0
  41. package/layout/includes/widgets/aside/asideHistory.pug +3 -3
  42. package/layout/includes/widgets/aside/asideInfoCard.pug +4 -6
  43. package/layout/includes/widgets/aside/asideNewestPost.pug +1 -1
  44. package/layout/includes/widgets/aside/asideSwitch.pug +0 -11
  45. package/layout/includes/widgets/aside/asideTag.pug +2 -2
  46. package/layout/includes/widgets/aside/asideToc.pug +1 -1
  47. package/layout/includes/widgets/aside/asideWebInfo.pug +6 -6
  48. package/layout/includes/widgets/aside/asideWelcome.pug +1 -1
  49. package/layout/includes/widgets/home/banner.pug +2 -2
  50. package/layout/includes/widgets/home/bbTimeList.pug +3 -3
  51. package/layout/includes/widgets/home/categoryBar.pug +3 -3
  52. package/layout/includes/widgets/home/categoryGroup.pug +2 -2
  53. package/layout/includes/widgets/home/hometop.pug +7 -7
  54. package/layout/includes/widgets/home/postList.pug +12 -8
  55. package/layout/includes/widgets/home/topGroup.pug +17 -13
  56. package/layout/includes/widgets/nav/left.pug +6 -6
  57. package/layout/includes/widgets/nav/menu.pug +4 -4
  58. package/layout/includes/widgets/nav/right.pug +14 -14
  59. package/layout/includes/widgets/page/about/authorinfo.pug +1 -1
  60. package/layout/includes/widgets/page/about/award.pug +11 -9
  61. package/layout/includes/widgets/page/about/contentinfo.pug +7 -7
  62. package/layout/includes/widgets/page/about/hobbies.pug +1 -1
  63. package/layout/includes/widgets/page/about/motto.pug +2 -2
  64. package/layout/includes/widgets/page/about/other.pug +10 -9
  65. package/layout/includes/widgets/page/about/personalities.pug +2 -2
  66. package/layout/includes/widgets/page/about/skillsinfo.pug +10 -12
  67. package/layout/includes/widgets/page/about/tenyear.pug +48 -0
  68. package/layout/includes/widgets/page/banner.pug +2 -2
  69. package/layout/includes/widgets/page/links/banner.pug +12 -14
  70. package/layout/includes/widgets/page/links/linksItem.pug +0 -1
  71. package/layout/includes/widgets/page/moments/angle.pug +7 -12
  72. package/layout/includes/widgets/page/moments/index.pug +7 -2
  73. package/layout/includes/widgets/post/award.pug +12 -8
  74. package/layout/includes/widgets/post/copyright.pug +16 -14
  75. package/layout/includes/widgets/post/postMeta.pug +36 -25
  76. package/layout/includes/widgets/post/postNav.pug +15 -15
  77. package/layout/includes/widgets/randomlink.pug +10 -5
  78. package/layout/includes/widgets/rightside/index.pug +9 -8
  79. package/layout/includes/widgets/third-party/ai/index.pug +12 -0
  80. package/layout/includes/widgets/third-party/comments/comment.pug +6 -1
  81. package/layout/includes/widgets/third-party/comments/twikoo.pug +5 -4
  82. package/layout/includes/widgets/third-party/comments/waline.pug +4 -5
  83. package/layout/includes/widgets/third-party/music.pug +1 -1
  84. package/layout/includes/widgets/third-party/pjax.pug +6 -1
  85. package/layout/includes/widgets/third-party/search/algolia-search.pug +4 -3
  86. package/layout/includes/widgets/third-party/search/index.pug +2 -2
  87. package/layout/includes/widgets/third-party/search/local-search.pug +3 -3
  88. package/layout/index.pug +5 -6
  89. package/layout/page.pug +34 -29
  90. package/layout/post.pug +3 -23
  91. package/layout/tag.pug +3 -3
  92. package/package.json +2 -2
  93. package/scripts/filter/checkThemeConfig.js +0 -5
  94. package/scripts/helper/cdn.js +12 -0
  95. package/scripts/helper/page.js +13 -0
  96. package/scripts/helper/related_post.js +0 -1
  97. package/scripts/tags/button.js +21 -0
  98. package/scripts/tags/card.js +9 -0
  99. package/scripts/tags/checkbox.js +51 -0
  100. package/scripts/tags/fold.js +0 -5
  101. package/scripts/tags/image.js +75 -0
  102. package/scripts/tags/inline-image.js +12 -0
  103. package/scripts/tags/label.js +10 -0
  104. package/scripts/tags/link.js +2 -0
  105. package/scripts/tags/media.js +29 -0
  106. package/scripts/tags/span.js +17 -0
  107. package/scripts/tags/timeline.js +2 -15
  108. package/scripts/tags/u.js +7 -0
  109. package/source/css/_global/animation.css +57 -0
  110. package/source/css/_global/index.styl +5 -20
  111. package/source/css/_global/var.styl +16 -1
  112. package/source/css/_layout/{base.styl → basic.styl} +24 -116
  113. package/source/css/_layout/header.styl +204 -616
  114. package/source/css/_layout/index.styl +29 -271
  115. package/source/css/_mode/index.styl +102 -93
  116. package/source/css/_page/_home/category-bar.styl +74 -0
  117. package/source/css/_page/_home/home-top.styl +541 -0
  118. package/source/css/_page/_home/index.styl +15 -0
  119. package/source/css/_page/_home/pagination.styl +176 -0
  120. package/source/css/_page/_home/recent-post.styl +204 -0
  121. package/source/css/_page/about/index.styl +1 -0
  122. package/source/css/_page/about/tenyear.styl +56 -0
  123. package/source/css/_page/about.styl +555 -626
  124. package/source/css/_page/category.styl +95 -119
  125. package/source/css/_page/douban.styl +126 -0
  126. package/source/css/_page/equipment.styl +100 -99
  127. package/source/css/_page/error.styl +130 -146
  128. package/source/css/_page/home.styl +41 -50
  129. package/source/css/_page/index.styl +42 -10
  130. package/source/css/_page/links.styl +306 -0
  131. package/source/css/_page/moment.styl +51 -51
  132. package/source/css/_page/music.styl +506 -0
  133. package/source/css/_page/rss.styl +62 -67
  134. package/source/css/_page/says.styl +375 -344
  135. package/source/css/_page/tag.styl +15 -13
  136. package/source/css/_widgets/{aside → _aside}/flip.styl +7 -5
  137. package/source/css/_widgets/{aside → _aside}/history.styl +9 -2
  138. package/source/css/_widgets/_aside/index.styl +96 -0
  139. package/source/css/_widgets/{aside → _aside}/info.styl +86 -89
  140. package/source/css/_widgets/{aside → _aside}/newPost.styl +7 -1
  141. package/source/css/_widgets/{aside → _aside}/toc.styl +28 -5
  142. package/source/css/_widgets/{comment → _comment}/index.styl +4 -12
  143. package/source/css/_widgets/{comment → _comment}/twikoo.styl +5 -2
  144. package/source/css/_widgets/{comment → _comment}/waline.styl +21 -5
  145. package/source/css/{_extra → _widgets/_extra}/console.styl +33 -10
  146. package/source/css/_widgets/_extra/fullpage.styl +46 -0
  147. package/source/css/_widgets/_extra/music.styl +218 -0
  148. package/source/css/_widgets/_extra/pace.styl +39 -0
  149. package/source/css/_widgets/_extra/rightmenu.styl +78 -0
  150. package/source/css/_widgets/_mixins/article-sort.styl +93 -0
  151. package/source/css/_widgets/_mixins/footer.styl +273 -0
  152. package/source/css/_widgets/_mixins/other.styl +34 -0
  153. package/source/css/_widgets/_mixins/sidebar.styl +230 -0
  154. package/source/css/_widgets/_post/_highlight/diff.styl +75 -0
  155. package/source/css/_widgets/_post/_highlight/index.styl +144 -0
  156. package/source/css/_widgets/_post/_highlight/theme/default.styl +12 -0
  157. package/source/css/_widgets/_post/_highlight/theme/mac.styl +25 -0
  158. package/source/css/_widgets/_post/_highlight/theme.styl +68 -0
  159. package/source/css/_widgets/_post/commentBarrage.styl +144 -0
  160. package/source/css/_widgets/_post/content.styl +152 -0
  161. package/source/css/_widgets/_post/copyright.styl +98 -0
  162. package/source/css/_widgets/_post/index.styl +20 -0
  163. package/source/css/_widgets/_post/meta.styl +420 -0
  164. package/source/css/_widgets/_post/pagination.styl +177 -0
  165. package/source/css/_widgets/_post/postAI.styl +131 -0
  166. package/source/css/{_post → _widgets/_post}/relatedPost.styl +4 -1
  167. package/source/css/_widgets/_post/tools.styl +249 -0
  168. package/source/css/{_search → _widgets/_search}/algolia-search.styl +4 -0
  169. package/source/css/{_search → _widgets/_search}/local-search.styl +15 -5
  170. package/source/css/_widgets/_tags/button.styl +60 -0
  171. package/source/css/_widgets/_tags/bvideo.styl +8 -0
  172. package/source/css/_widgets/_tags/card.styl +52 -0
  173. package/source/css/_widgets/_tags/checkbox.styl +85 -0
  174. package/source/css/_widgets/_tags/fold.styl +79 -0
  175. package/source/css/_widgets/_tags/image.styl +10 -0
  176. package/source/css/_widgets/_tags/index.styl +61 -0
  177. package/source/css/_widgets/_tags/inline-image.styl +6 -0
  178. package/source/css/_widgets/_tags/label.styl +3 -0
  179. package/source/css/_widgets/_tags/link.styl +80 -0
  180. package/source/css/_widgets/_tags/note.styl +101 -0
  181. package/source/css/_widgets/_tags/span.styl +61 -0
  182. package/source/css/_widgets/_tags/tabs.styl +105 -0
  183. package/source/css/_widgets/_tags/timeline.styl +80 -0
  184. package/source/css/_widgets/index.styl +50 -1
  185. package/source/css/index.styl +0 -25
  186. package/source/js/{commentBarrage.js → extend/comment/twikoo/commentBarrage.js} +0 -4
  187. package/source/js/extend/comment/{twikoo.js → twikoo/twikoo.js} +12 -40
  188. package/source/js/extend/comment/waline/commentBarrage.js +155 -0
  189. package/source/js/extend/comment/{waline.js → waline/waline.js} +10 -11
  190. package/source/js/extend/search/algolia-search.js +1 -5
  191. package/source/js/extend/search/local-search.js +33 -13
  192. package/source/js/main.js +135 -171
  193. package/source/js/music.js +129 -0
  194. package/source/js/utils.js +4 -7
  195. package/source/lib/cover-color.min.js +7 -0
  196. package/source/lib/rightside.min.js +1 -0
  197. package/source/lib/sco-ai.min.js +8 -0
  198. package/source/lib/snackbar.min.css +1 -1
  199. package/source/lib/txmap.min.js +1 -0
  200. package/source/lib/universe.min.js +1 -0
  201. package/source/lib/view-image.min.js +1 -1
  202. package/layout/includes/widgets/aside/asidePower.pug +0 -19
  203. package/layout/includes/widgets/home/rencentPost.pug +0 -26
  204. package/source/css/_extra/rightmenu.styl +0 -83
  205. package/source/css/_layout/articleSort.styl +0 -199
  206. package/source/css/_layout/footer.styl +0 -359
  207. package/source/css/_layout/sidebar.styl +0 -226
  208. package/source/css/_page/homeTop.styl +0 -1035
  209. package/source/css/_page/link.styl +0 -433
  210. package/source/css/_post/commentBarrage.styl +0 -149
  211. package/source/css/_post/externalTags.styl +0 -694
  212. package/source/css/_post/highlight.styl +0 -96
  213. package/source/css/_post/index.styl +0 -935
  214. package/source/css/_post/pagination.styl +0 -467
  215. package/source/css/_post/postContent.styl +0 -957
  216. package/source/css/_post/reward.styl +0 -217
  217. package/source/css/_widgets/aside/index.styl +0 -156
  218. package/source/css/_widgets/aside/power.styl +0 -90
  219. package/source/img/logo-horizontal_version.png +0 -0
  220. package/source/img/pwa/16.png +0 -0
  221. package/source/img/pwa/180.png +0 -0
  222. package/source/img/pwa/192.png +0 -0
  223. package/source/img/pwa/32.png +0 -0
  224. package/source/img/pwa/512.png +0 -0
  225. package/source/img/pwa/logo.png +0 -0
  226. package/source/img/pwa/siteicon/splash-1125x2436.png +0 -0
  227. package/source/img/pwa/siteicon/splash-1136x640.png +0 -0
  228. package/source/img/pwa/siteicon/splash-1170x2532.png +0 -0
  229. package/source/img/pwa/siteicon/splash-1179x2556.png +0 -0
  230. package/source/img/pwa/siteicon/splash-1242x2208.png +0 -0
  231. package/source/img/pwa/siteicon/splash-1242x2688.png +0 -0
  232. package/source/img/pwa/siteicon/splash-1248x2778.png +0 -0
  233. package/source/img/pwa/siteicon/splash-1290x2796.png +0 -0
  234. package/source/img/pwa/siteicon/splash-1334x750.png +0 -0
  235. package/source/img/pwa/siteicon/splash-1536x2048.png +0 -0
  236. package/source/img/pwa/siteicon/splash-1620x2160.png +0 -0
  237. package/source/img/pwa/siteicon/splash-1668x2224.png +0 -0
  238. package/source/img/pwa/siteicon/splash-1668x2388.png +0 -0
  239. package/source/img/pwa/siteicon/splash-1792x828.png +0 -0
  240. package/source/img/pwa/siteicon/splash-2048x1536.png +0 -0
  241. package/source/img/pwa/siteicon/splash-2048x2732.png +0 -0
  242. package/source/img/pwa/siteicon/splash-2160x1620.png +0 -0
  243. package/source/img/pwa/siteicon/splash-2208x1242.png +0 -0
  244. package/source/img/pwa/siteicon/splash-2224x1668.png +0 -0
  245. package/source/img/pwa/siteicon/splash-2388x1668.png +0 -0
  246. package/source/img/pwa/siteicon/splash-2436x1125.png +0 -0
  247. package/source/img/pwa/siteicon/splash-2532x1170.png +0 -0
  248. package/source/img/pwa/siteicon/splash-2556x1179.png +0 -0
  249. package/source/img/pwa/siteicon/splash-2688x1242.png +0 -0
  250. package/source/img/pwa/siteicon/splash-2732x2048.png +0 -0
  251. package/source/img/pwa/siteicon/splash-2778x1248.png +0 -0
  252. package/source/img/pwa/siteicon/splash-2796x1290.png +0 -0
  253. package/source/img/pwa/siteicon/splash-640x1136.png +0 -0
  254. package/source/img/pwa/siteicon/splash-750x1334.png +0 -0
  255. package/source/img/pwa/siteicon/splash-828x1792.png +0 -0
  256. package/source/img/solitude-show.jpg +0 -0
  257. package/source/js/extend/covercolor/local.js +0 -160
  258. package/source/js/rightside.js +0 -402
  259. package/source/js/txmap.js +0 -236
  260. package/source/lib/chuckle-post-ai.js +0 -1
  261. /package/source/css/_widgets/{aside → _aside}/allinfo.styl +0 -0
  262. /package/source/css/_widgets/{aside → _aside}/welcome.styl +0 -0
  263. /package/source/img/{theme/avatar.png → avatar.png} +0 -0
@@ -0,0 +1,541 @@
1
+ // 首页顶部一坨 and 友链banner
2
+ div#banners
3
+ display none
4
+ +minWidth1200()
5
+ display flex
6
+ width 100%
7
+ height 76%
8
+ background var(--sco-card-bg)
9
+ margin-bottom .5rem
10
+ border var(--style-border)
11
+ border-radius 12px
12
+ overflow hidden
13
+ position relative
14
+ box-shadow var(--sco-shadow-border)
15
+ flex-direction column
16
+ transition .3s
17
+ will-change transform
18
+ animation slide-in .6s .1s backwards
19
+
20
+ :not(.flink)&:hover
21
+ box-shadow var(--sco-shadow-main)
22
+
23
+ .banner-button-group
24
+ position absolute
25
+ right 2rem
26
+ top 2rem
27
+ display flex
28
+
29
+ .banner-button
30
+ padding 8px 12px
31
+ background var(--sco-fontcolor)
32
+ border-radius 12px
33
+ color var(--sco-card-bg)
34
+ display flex
35
+ align-items center
36
+ z-index 1
37
+ transition .3s
38
+ cursor pointer
39
+ box-shadow var(--sco-shadow-black)
40
+
41
+ &.secondary
42
+ background var(--sco-secondbg)
43
+ border var(--style-border-always)
44
+ color var(--sco-lighttext)
45
+ margin-right 1rem
46
+ box-shadow var(--sco-shadow-border)
47
+
48
+ &:hover
49
+ background var(--sco-theme)
50
+ color var(--sco-white)
51
+
52
+ i
53
+ margin-right 8px
54
+ font-size 1rem
55
+
56
+ .banners-title
57
+ top 2rem
58
+ left 1.5rem
59
+ position absolute
60
+ display flex
61
+ flex-direction column
62
+
63
+ &-big
64
+ font-size 36px
65
+ line-height 1
66
+ font-weight 700
67
+ margin-bottom 8px
68
+
69
+ &-small
70
+ font-size 12px
71
+ line-height 1
72
+ color var(--sco-secondtext)
73
+ margin-top 8px
74
+ margin-bottom .5rem
75
+
76
+ #banner-hover
77
+ position absolute
78
+ width 100%
79
+ height 100%
80
+ top 0
81
+ left 0
82
+ border-radius 12px
83
+ background var(--sco-theme)
84
+ color var(--sco-card-bg)
85
+ padding-left .5rem
86
+ display flex
87
+ flex-direction column
88
+ justify-content center
89
+ opacity 0
90
+ transition cubic-bezier(.71, .15, .16, 1.15) .6s
91
+
92
+ i
93
+ font-size 80px
94
+ opacity .4
95
+
96
+ &:hover
97
+ #banner-hover
98
+ opacity 1
99
+ padding-left 2rem
100
+ background var(--sco-theme-op-deep)
101
+ backdrop-filter blur(15px)
102
+ transform translateZ(0)
103
+ transition .3s
104
+ background-size 200%
105
+ cursor pointer
106
+
107
+ .flink
108
+ .banners-title
109
+ top 1.5rem
110
+
111
+ .bannerText
112
+ font-size 4rem
113
+ line-height 4rem
114
+ font-weight 700
115
+
116
+ .tags-group-all
117
+ display flex
118
+ transform rotate(-30deg)
119
+
120
+ &.nowrapMove
121
+ transform rotate(0)
122
+ padding-bottom 2rem
123
+
124
+ .tags-group-wrapper
125
+ margin-top: 7rem
126
+ animation: rowup 120s linear infinite
127
+
128
+ .tags-group-icon
129
+ border-radius 50%
130
+
131
+ img
132
+ min-width 100%
133
+ min-height 100%
134
+ border-radius 50%
135
+ object-fit cover
136
+
137
+ .tags-group-wrapper
138
+ margin-top: 5rem
139
+ display: flex
140
+ flex-wrap: nowrap
141
+ animation: rowup 60s linear infinite
142
+
143
+ /.tags-group-icon-pair
144
+ margin-left 1rem
145
+ user-select none
146
+
147
+ a img
148
+ border-radius 50%
149
+
150
+ .tags-group-icon
151
+ width 120px
152
+ height 120px
153
+ display flex
154
+ align-items center
155
+ justify-content center
156
+ color #fff
157
+ font-size 66px
158
+ font-weight 700
159
+ box-shadow var(--sco-shadow-blackdeep)
160
+
161
+ &:nth-child(even)
162
+ margin-top 1rem
163
+ transform translate(-60px)
164
+
165
+ img
166
+ width 60%
167
+
168
+ #home_top
169
+ max-width 1400px
170
+ margin .5rem auto auto
171
+ padding 0 1.5rem
172
+
173
+ +maxWidth768()
174
+ padding 0
175
+ margin-top 0
176
+
177
+ // banner
178
+ if hexo-config('hometop.banner.enable')
179
+ .recent-top-post-group
180
+ border-radius 12px
181
+ overflow hidden
182
+ overflow-x auto
183
+ width 100%
184
+ margin-bottom 0
185
+ -webkit-user-select none
186
+
187
+ +maxWidth768()
188
+ border-radius 0
189
+
190
+ .recent-post-top
191
+ display flex
192
+ flex-direction row
193
+ flex-wrap nowrap
194
+ width 100%
195
+ overflow-x scroll
196
+
197
+ &::-webkit-scrollbar
198
+ display none
199
+
200
+ / #bannerGroup
201
+ display flex
202
+
203
+ +minWidth1200()
204
+ width calc(50% - .25rem)
205
+ margin-right .5rem
206
+ height calc(328px + .5rem)
207
+ display flex
208
+ flex-direction column
209
+ justify-content space-between
210
+
211
+ .categoryGroup
212
+ display flex
213
+ flex-direction column
214
+ justify-content space-between
215
+ min-width 200px
216
+ +minWidth1200()
217
+ flex-direction row
218
+ height 24%
219
+ animation slide-in .6s .2s backwards
220
+ +maxWidth768()
221
+ min-width 130px
222
+ margin-bottom .5rem
223
+ margin-left 1rem
224
+ max-height 164px
225
+ overflow hidden
226
+ position relative
227
+
228
+ .categoryItem
229
+ overflow hidden
230
+ transform scale(1)
231
+ transition all .8s cubic-bezier(.65, .15, .37, 1.19)
232
+ height 48%
233
+ border-radius 12px
234
+ +maxWidth768()
235
+ border-radius 0
236
+ height 47%
237
+ box-shadow none
238
+
239
+ &:nth-child(3)
240
+ display none
241
+ +minWidth1200()
242
+ width calc(100% / 3 - .33rem)
243
+ height 100%
244
+ margin-right .5rem
245
+
246
+ &:last-child
247
+ margin-right 0
248
+
249
+ &:hover
250
+ width 50%
251
+
252
+ &:nth-child(3)
253
+ display flex
254
+
255
+ a.categoryButton
256
+ height 100%
257
+ width 100%
258
+ background var(--sco-card-bg)
259
+ border-radius 12px
260
+ display inline-block
261
+ text-align left
262
+ line-height 4em
263
+ font-weight 700
264
+ font-size .9rem
265
+ color var(--sco-white)
266
+ transition all .8s cubic-bezier(.39, .575, .565, 1)
267
+ transform scale(1)
268
+ overflow hidden
269
+ +maxWidth768()
270
+ border-radius 8px
271
+
272
+ &:after
273
+ top 50px
274
+ width 1rem
275
+ left 21px
276
+ height 2px
277
+ background var(--sco-white)
278
+ content ""
279
+ border-radius 1px
280
+ position absolute
281
+
282
+ i
283
+ font-size 5rem
284
+ opacity .2
285
+ position absolute
286
+ right 0
287
+ top 20%
288
+ transition .3s
289
+ width 100px
290
+ text-align center
291
+ filter blur(2px)
292
+ transform scale(1) rotate(15deg)
293
+
294
+ +maxWidth768()
295
+ display none
296
+
297
+ &:hover
298
+ i
299
+ opacity .8
300
+ transition .8s
301
+ transition-delay .15s
302
+ transform scale(1.03) rotate(0)
303
+ font-size 2.5rem
304
+ filter blur(0)
305
+
306
+ .categoryButtonText
307
+ padding-left 21px
308
+
309
+ &.bikan
310
+ background linear-gradient(to right, #358bff, #15c6ff)
311
+ background-size 200%
312
+
313
+ [data-theme=dark] &
314
+ background linear-gradient(to right, #0653b8, #2fcbff)
315
+ background-size 200%
316
+
317
+ &.remen
318
+ background linear-gradient(to right, #f65, #ffbf37)
319
+ background-size 200%
320
+
321
+ [data-theme=dark] &
322
+ background linear-gradient(to right, #e22a16, #da980c)
323
+ background-size 200%
324
+
325
+ &.shiyong
326
+ background linear-gradient(to right, #18e7ae, #1eebeb)
327
+ background-size 200%
328
+
329
+ [data-theme=dark] &
330
+ background linear-gradient(to right, #099e74, #0ea4a4)
331
+ background-size 200%
332
+
333
+ /.topGroup
334
+ display: flex
335
+
336
+ +minWidth1200()
337
+ display flex
338
+ flex-direction row
339
+ flex-wrap wrap
340
+ height calc(328px + .5rem)
341
+ align-content space-between
342
+ width calc(50% - 0.25rem)
343
+ position relative
344
+ animation slide-in .6s .1s backwards
345
+ overflow-x visible
346
+ gap 0.5rem
347
+
348
+ .recent-post-item
349
+ display flex
350
+ width 200px
351
+ flex-direction column
352
+ align-items flex-start
353
+ margin-left .5rem
354
+ background var(--sco-card-bg)
355
+ border-radius 12px
356
+ overflow hidden
357
+ min-width 200px
358
+ height 164px
359
+ max-height 164px
360
+ border var(--style-border-always)
361
+ transition .3s
362
+ position relative
363
+ box-shadow var(--sco-shadow-border)
364
+ +minWidth1300()
365
+ width calc(100% / 3 - 0.35rem)
366
+ margin-left 0
367
+
368
+ +minWidth1200()
369
+ display flex
370
+ width calc(100% / 3 - 0.35rem)
371
+ flex-direction column
372
+ align-items flex-start
373
+ margin-left 0
374
+ background var(--sco-card-bg)
375
+ border-radius 12px
376
+ overflow hidden
377
+ min-width 200px
378
+ height 164px
379
+ max-height 164px
380
+ border var(--style-border-always)
381
+ transition .3s
382
+ position relative
383
+ box-shadow var(--sco-shadow-border)
384
+
385
+ +maxWidth768()
386
+ border-radius 8px
387
+ box-shadow none
388
+ clip-path inset(0 0 0 0 round 8px)
389
+
390
+ &:last-child
391
+ margin-right 1rem
392
+
393
+ &:hover .post_cover a .recent-post-top-text
394
+ left 0
395
+
396
+ .post_cover
397
+ width 100%
398
+ -webkit-mask-image -webkit-radial-gradient(center, #fff, #000)
399
+
400
+ a
401
+ height 100px
402
+ overflow hidden
403
+ display flex
404
+
405
+ img
406
+ object-fit cover
407
+ width 100%
408
+ background var(--sco-secondbg)
409
+
410
+ .recent-post-top-text
411
+ position absolute
412
+ top 0
413
+ left -50px
414
+ display flex
415
+ z-index 1
416
+ background var(--sco-theme)
417
+ color var(--sco-white)
418
+ padding 2px 8px
419
+ font-size .6rem
420
+ border-radius 0 0 12px 0
421
+ transition .3s
422
+ cursor pointer
423
+
424
+ .recent-post-info
425
+ padding .3rem .5rem .3rem .5rem
426
+ transition .3s
427
+
428
+ .article-title
429
+ -webkit-line-clamp 2
430
+ overflow hidden
431
+ display -webkit-box
432
+ -webkit-box-orient vertical
433
+ line-height 1.5
434
+ justify-content center
435
+ align-items flex-end
436
+ align-content center
437
+ font-weight 700
438
+ font-size .8rem
439
+ padding 0
440
+
441
+
442
+ .todayCard
443
+ display none
444
+
445
+ +minWidth1200()
446
+ position absolute
447
+ width 100%
448
+ z-index 3
449
+ height 100%
450
+ top 0
451
+ right 0
452
+ background var(--sco-card-bg)
453
+ border-radius 12px
454
+ margin-left 0.5rem
455
+ overflow hidden
456
+ transition .3s
457
+ display flex
458
+ cursor pointer
459
+ pointer-events all
460
+
461
+ &::after
462
+ position: absolute
463
+ content: ''
464
+ width: 100%
465
+ height: 100%
466
+ top: 0
467
+ left: 0
468
+ box-shadow 0 -109px 133px -9px $todayCardColor inset
469
+
470
+ &.hide
471
+ opacity: 0
472
+ pointer-events: none
473
+
474
+ .todayCard-info
475
+ position: absolute
476
+ bottom: 2rem
477
+ left: 2rem
478
+ z-index: 2
479
+ color: var(--sco-white)
480
+ max-width: 60%
481
+ transition: .3s
482
+
483
+ .todayCard-tips
484
+ opacity: .8
485
+ font-size: .6rem
486
+
487
+ .todayCard-title
488
+ font-size: 28px
489
+ font-weight: 700
490
+ line-height: 36px
491
+
492
+ .todayCard-cover
493
+ position: absolute
494
+ min-width: 100%
495
+ min-height: 100%
496
+ top: 0
497
+ left: 0
498
+ background-size: cover
499
+ z-index: -1
500
+ transition: .3s
501
+
502
+ .banner-button-group
503
+ position: absolute
504
+ right: 2rem
505
+ bottom: 2rem
506
+ display: flex
507
+ transition: .3s
508
+
509
+ .banner-button
510
+ background: var(--sco-white-op)
511
+ border-radius: 20px
512
+ color: var(--sco-white)
513
+ display: flex
514
+ align-items: center
515
+ z-index: 1
516
+ transition: .3s
517
+ cursor: pointer
518
+ backdrop-filter: saturate(180%) blur(20px)
519
+ transform: translateZ(0)
520
+ height: 40px
521
+ width: 118px
522
+ justify-content: center
523
+
524
+ i
525
+ margin-right: 8px
526
+ font-size: 22px
527
+
528
+ &:hover
529
+ background: var(--sco-theme)
530
+ color: var(--sco-white)
531
+
532
+ &.hide
533
+ .todayCard-info
534
+ bottom: 1rem
535
+ opacity: 0
536
+
537
+ .todayCard-cover
538
+ transform: scale(1.2)
539
+
540
+ .banner-button-group
541
+ bottom: 1rem
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 首页样式
3
+ */
4
+ // 首页顶部
5
+ if hexo-config('hometop.banner.enable')
6
+ @import "home-top.styl"
7
+
8
+ // 分类导航栏
9
+ @import "category-bar.styl"
10
+
11
+ // 首页文章列表
12
+ @import "recent-post.styl"
13
+
14
+ // 分页
15
+ @import "pagination.styl"
@@ -0,0 +1,176 @@
1
+ #pagination
2
+ width 100%
3
+ +minWidth1300()
4
+ margin-top .25rem
5
+ +minWidth768()
6
+ overflow visible
7
+ +maxWidth768()
8
+ margin-bottom 0
9
+ margin-top 0
10
+
11
+ .pagination
12
+ text-align center
13
+ +minWidth768()
14
+ display flex
15
+ position relative
16
+ justify-content center
17
+ +maxWidth768()
18
+ display flex
19
+
20
+ .extend
21
+ +maxWidth768()
22
+ width 100%
23
+ height 2.5rem
24
+ margin .2rem 0 1rem 0
25
+ border-radius 12px
26
+ line-height 2.5rem
27
+ background var(--sco-card-bg)
28
+ border var(--style-border-always)
29
+ box-shadow var(--sco-shadow-border)
30
+
31
+ i
32
+ +maxWidth768()
33
+ display none
34
+
35
+ .page-number
36
+ display inline-block
37
+ margin 0 .2rem
38
+ min-width 1.2rem
39
+ height 1.2rem
40
+ text-align center
41
+ line-height 1.2rem
42
+
43
+ +minWidth768()
44
+ width 2rem
45
+ background var(--sco-card-bg)
46
+ height 2rem
47
+ line-height calc(2rem - 2px)
48
+ border-radius 8px
49
+ margin 0 .3rem
50
+ box-shadow var(--sco-shadow-border)
51
+ border var(--style-border)
52
+ transition .3s
53
+ &:hover
54
+ color var(--sco-theme)
55
+ border var(--style-border-hover)
56
+ box-shadow var(--sco-shadow-main)
57
+ +maxWidth768()
58
+ display none
59
+
60
+ &.current
61
+ background var(--sco-theme)
62
+ color var(--sco-white)
63
+ border-radius 5px
64
+
65
+ +minWidth768()
66
+ background var(--sco-theme)
67
+ border var(--style-border-hover)
68
+ box-shadow var(--sco-shadow-theme)
69
+
70
+ &:hover
71
+ background var(--sco-theme)
72
+ box-shadow var(--sco-shadow-theme)
73
+ color var(--sco-white)
74
+
75
+ a.extend.next, a.extend.prev
76
+ +minWidth768()
77
+ width 4rem
78
+ height 2rem
79
+ line-height 1.9rem
80
+ border-radius 8px
81
+ background var(--sco-card-bg)
82
+ box-shadow var(--sco-shadow-border)
83
+ position absolute
84
+ border var(--style-border)
85
+ display flex
86
+ align-items center
87
+ justify-content center
88
+ overflow hidden
89
+ transition .3s
90
+
91
+ i
92
+ transition .3s
93
+
94
+ a.extend
95
+ &:hover
96
+ color var(--sco-theme)
97
+ border var(--style-border-hover)
98
+ box-shadow var(--sco-shadow-main)
99
+
100
+ &.next
101
+ right 0
102
+ +minWidth768()
103
+ .pagination_tips_next
104
+ margin-left -32px
105
+ transition .3s ease-out 0s
106
+ opacity 0
107
+
108
+ &:hover
109
+ .pagination_tips_next
110
+ margin-left 2px
111
+ opacity 1
112
+ white-space nowrap
113
+
114
+ &.prev
115
+ left 0
116
+ +minWidth768()
117
+ .pagination_tips_prev
118
+ margin-right -32px
119
+ transition .3s ease-out 0s
120
+ opacity 0
121
+
122
+ &:hover
123
+ .pagination_tips_prev
124
+ margin-right 2px
125
+ opacity 1
126
+ white-space nowrap
127
+
128
+ .toPageGroup
129
+ display flex
130
+ position relative
131
+ margin 0 .3rem
132
+ +maxWidth768()
133
+ display none
134
+
135
+ a#toPageButton
136
+ display flex
137
+ position absolute
138
+ width 40px
139
+ height 40px
140
+ right 0
141
+ top 0
142
+ border-radius 8px
143
+ justify-content center
144
+ align-items center
145
+ transition .3s
146
+ background var(--sco-card-bg)
147
+ border var(--style-border-always)
148
+ cursor text
149
+ pointer-events none
150
+
151
+ &:focus-within a#toPageButton, &:hover a#toPageButton
152
+ width 30px
153
+ height 30px
154
+ right 4px
155
+ top 5px
156
+ background var(--sco-card-bg)
157
+ border 1px solid var(--sco-none)
158
+ border-radius 4px
159
+ opacity .2
160
+
161
+ input
162
+ width 40px
163
+ height 40px
164
+ border-radius 8px
165
+ border var(--style-border-always)
166
+ transition .3s
167
+ outline-style none
168
+ font-size 16px
169
+ padding-left 12px
170
+ background var(--sco-secondbg)
171
+ color var(--sco-fontcolor)
172
+
173
+ &:focus, /#pagination .toPageGroup:hover input
174
+ border var(--style-border-hover-always)
175
+ outline-style none
176
+ width 100px