hexo-theme-solitude 1.2.6 → 1.3.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.
Files changed (261) 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 +495 -297
  5. package/languages/en-US.yml +105 -8
  6. package/languages/zh-CN.yml +98 -1
  7. package/layout/archive.pug +3 -3
  8. package/layout/category.pug +4 -5
  9. package/layout/includes/console.pug +15 -16
  10. package/layout/includes/footer.pug +26 -28
  11. package/layout/includes/head/config.pug +27 -8
  12. package/layout/includes/head/fest.pug +22 -0
  13. package/layout/includes/head/opengraph.pug +11 -0
  14. package/layout/includes/head.pug +1 -3
  15. package/layout/includes/header.pug +1 -1
  16. package/layout/includes/inject/body.pug +33 -13
  17. package/layout/includes/inject/head.pug +30 -20
  18. package/layout/includes/layout.pug +11 -8
  19. package/layout/includes/loading.pug +1 -64
  20. package/layout/includes/mixins/articleSort.pug +4 -4
  21. package/layout/includes/mixins/pagination.pug +1 -1
  22. package/layout/includes/nav.pug +10 -10
  23. package/layout/includes/page/about.pug +1 -0
  24. package/layout/includes/page/categories.pug +3 -3
  25. package/layout/includes/page/default.pug +1 -1
  26. package/layout/includes/page/echarts.pug +3 -3
  27. package/layout/includes/page/equipment.pug +0 -1
  28. package/layout/includes/page/links.pug +5 -26
  29. package/layout/includes/page/moments.pug +0 -1
  30. package/layout/includes/page/music.pug +19 -0
  31. package/layout/includes/page/not_configured.pug +18 -0
  32. package/layout/includes/page/rss.pug +20 -22
  33. package/layout/includes/page/says.pug +1 -2
  34. package/layout/includes/page/tags.pug +3 -3
  35. package/layout/includes/page/tlink.pug +0 -1
  36. package/layout/includes/sidebar.pug +7 -7
  37. package/layout/includes/widgets/aside/aside.pug +13 -1
  38. package/layout/includes/widgets/aside/asideArchive.pug +5 -3
  39. package/layout/includes/widgets/aside/asideCustom.pug +6 -0
  40. package/layout/includes/widgets/aside/asideHistory.pug +3 -3
  41. package/layout/includes/widgets/aside/asideInfoCard.pug +4 -6
  42. package/layout/includes/widgets/aside/asideNewestPost.pug +1 -1
  43. package/layout/includes/widgets/aside/asideSwitch.pug +0 -11
  44. package/layout/includes/widgets/aside/asideTag.pug +2 -2
  45. package/layout/includes/widgets/aside/asideToc.pug +1 -1
  46. package/layout/includes/widgets/aside/asideWebInfo.pug +6 -6
  47. package/layout/includes/widgets/aside/asideWelcome.pug +1 -1
  48. package/layout/includes/widgets/home/banner.pug +2 -2
  49. package/layout/includes/widgets/home/bbTimeList.pug +3 -3
  50. package/layout/includes/widgets/home/categoryBar.pug +3 -3
  51. package/layout/includes/widgets/home/categoryGroup.pug +2 -2
  52. package/layout/includes/widgets/home/hometop.pug +7 -7
  53. package/layout/includes/widgets/home/postList.pug +12 -8
  54. package/layout/includes/widgets/home/topGroup.pug +17 -13
  55. package/layout/includes/widgets/nav/left.pug +6 -6
  56. package/layout/includes/widgets/nav/menu.pug +4 -4
  57. package/layout/includes/widgets/nav/right.pug +14 -14
  58. package/layout/includes/widgets/page/about/authorinfo.pug +1 -1
  59. package/layout/includes/widgets/page/about/award.pug +11 -9
  60. package/layout/includes/widgets/page/about/contentinfo.pug +7 -7
  61. package/layout/includes/widgets/page/about/hobbies.pug +1 -1
  62. package/layout/includes/widgets/page/about/motto.pug +2 -2
  63. package/layout/includes/widgets/page/about/other.pug +10 -9
  64. package/layout/includes/widgets/page/about/personalities.pug +2 -2
  65. package/layout/includes/widgets/page/about/skillsinfo.pug +10 -12
  66. package/layout/includes/widgets/page/about/tenyear.pug +48 -0
  67. package/layout/includes/widgets/page/banner.pug +2 -2
  68. package/layout/includes/widgets/page/links/banner.pug +12 -14
  69. package/layout/includes/widgets/page/links/linksItem.pug +0 -1
  70. package/layout/includes/widgets/page/moments/angle.pug +7 -12
  71. package/layout/includes/widgets/page/moments/index.pug +7 -2
  72. package/layout/includes/widgets/post/award.pug +12 -8
  73. package/layout/includes/widgets/post/copyright.pug +16 -14
  74. package/layout/includes/widgets/post/postMeta.pug +36 -25
  75. package/layout/includes/widgets/post/postNav.pug +15 -15
  76. package/layout/includes/widgets/randomlink.pug +10 -5
  77. package/layout/includes/widgets/rightside/index.pug +9 -8
  78. package/layout/includes/widgets/third-party/ai/index.pug +12 -0
  79. package/layout/includes/widgets/third-party/comments/comment.pug +6 -1
  80. package/layout/includes/widgets/third-party/comments/twikoo.pug +5 -4
  81. package/layout/includes/widgets/third-party/comments/waline.pug +4 -5
  82. package/layout/includes/widgets/third-party/music.pug +1 -1
  83. package/layout/includes/widgets/third-party/pjax.pug +6 -1
  84. package/layout/includes/widgets/third-party/search/algolia-search.pug +4 -3
  85. package/layout/includes/widgets/third-party/search/index.pug +2 -2
  86. package/layout/includes/widgets/third-party/search/local-search.pug +3 -3
  87. package/layout/index.pug +5 -6
  88. package/layout/page.pug +34 -29
  89. package/layout/post.pug +3 -23
  90. package/layout/tag.pug +3 -3
  91. package/package.json +2 -2
  92. package/scripts/filter/checkThemeConfig.js +0 -5
  93. package/scripts/helper/cdn.js +12 -0
  94. package/scripts/helper/page.js +13 -0
  95. package/scripts/helper/related_post.js +0 -1
  96. package/scripts/tags/button.js +21 -0
  97. package/scripts/tags/card.js +9 -0
  98. package/scripts/tags/checkbox.js +51 -0
  99. package/scripts/tags/fold.js +0 -5
  100. package/scripts/tags/image.js +75 -0
  101. package/scripts/tags/inline-image.js +12 -0
  102. package/scripts/tags/label.js +10 -0
  103. package/scripts/tags/link.js +2 -0
  104. package/scripts/tags/media.js +29 -0
  105. package/scripts/tags/span.js +17 -0
  106. package/scripts/tags/timeline.js +2 -15
  107. package/scripts/tags/u.js +7 -0
  108. package/source/css/_global/animation.css +57 -0
  109. package/source/css/_global/index.styl +5 -20
  110. package/source/css/_global/var.styl +16 -1
  111. package/source/css/_layout/{base.styl → basic.styl} +24 -116
  112. package/source/css/_layout/header.styl +203 -615
  113. package/source/css/_layout/index.styl +29 -271
  114. package/source/css/_mode/index.styl +87 -94
  115. package/source/css/_page/_home/category-bar.styl +74 -0
  116. package/source/css/_page/_home/home-top.styl +541 -0
  117. package/source/css/_page/_home/index.styl +15 -0
  118. package/source/css/_page/_home/pagination.styl +176 -0
  119. package/source/css/_page/_home/recent-post.styl +204 -0
  120. package/source/css/_page/about/index.styl +1 -0
  121. package/source/css/_page/about/tenyear.styl +56 -0
  122. package/source/css/_page/about.styl +555 -626
  123. package/source/css/_page/category.styl +95 -119
  124. package/source/css/_page/douban.styl +126 -0
  125. package/source/css/_page/equipment.styl +100 -99
  126. package/source/css/_page/error.styl +130 -146
  127. package/source/css/_page/home.styl +41 -50
  128. package/source/css/_page/index.styl +42 -10
  129. package/source/css/_page/links.styl +305 -0
  130. package/source/css/_page/moment.styl +51 -51
  131. package/source/css/_page/music.styl +506 -0
  132. package/source/css/_page/rss.styl +62 -67
  133. package/source/css/_page/says.styl +375 -344
  134. package/source/css/_page/tag.styl +15 -13
  135. package/source/css/_widgets/{aside → _aside}/flip.styl +7 -5
  136. package/source/css/_widgets/{aside → _aside}/history.styl +9 -2
  137. package/source/css/_widgets/_aside/index.styl +96 -0
  138. package/source/css/_widgets/{aside → _aside}/info.styl +86 -89
  139. package/source/css/_widgets/{aside → _aside}/newPost.styl +7 -1
  140. package/source/css/_widgets/{aside → _aside}/toc.styl +28 -5
  141. package/source/css/_widgets/{comment → _comment}/index.styl +4 -12
  142. package/source/css/_widgets/{comment → _comment}/twikoo.styl +5 -2
  143. package/source/css/_widgets/{comment → _comment}/waline.styl +21 -5
  144. package/source/css/{_extra → _widgets/_extra}/console.styl +33 -10
  145. package/source/css/_widgets/_extra/fullpage.styl +46 -0
  146. package/source/css/_widgets/_extra/music.styl +218 -0
  147. package/source/css/_widgets/_extra/pace.styl +39 -0
  148. package/source/css/_widgets/_extra/rightmenu.styl +78 -0
  149. package/source/css/_widgets/_mixins/article-sort.styl +93 -0
  150. package/source/css/_widgets/_mixins/footer.styl +273 -0
  151. package/source/css/_widgets/_mixins/other.styl +34 -0
  152. package/source/css/_widgets/_mixins/sidebar.styl +230 -0
  153. package/source/css/_widgets/_post/_highlight/diff.styl +75 -0
  154. package/source/css/_widgets/_post/_highlight/index.styl +144 -0
  155. package/source/css/_widgets/_post/_highlight/theme/default.styl +12 -0
  156. package/source/css/_widgets/_post/_highlight/theme/mac.styl +25 -0
  157. package/source/css/_widgets/_post/_highlight/theme.styl +68 -0
  158. package/source/css/_widgets/_post/commentBarrage.styl +144 -0
  159. package/source/css/_widgets/_post/content.styl +152 -0
  160. package/source/css/_widgets/_post/copyright.styl +98 -0
  161. package/source/css/_widgets/_post/index.styl +20 -0
  162. package/source/css/_widgets/_post/meta.styl +420 -0
  163. package/source/css/_widgets/_post/pagination.styl +177 -0
  164. package/source/css/_widgets/_post/postAI.styl +131 -0
  165. package/source/css/{_post → _widgets/_post}/relatedPost.styl +4 -1
  166. package/source/css/_widgets/_post/tools.styl +249 -0
  167. package/source/css/{_search → _widgets/_search}/algolia-search.styl +4 -0
  168. package/source/css/{_search → _widgets/_search}/local-search.styl +15 -5
  169. package/source/css/_widgets/_tags/button.styl +60 -0
  170. package/source/css/_widgets/_tags/bvideo.styl +8 -0
  171. package/source/css/_widgets/_tags/card.styl +52 -0
  172. package/source/css/_widgets/_tags/checkbox.styl +85 -0
  173. package/source/css/_widgets/_tags/fold.styl +79 -0
  174. package/source/css/_widgets/_tags/image.styl +10 -0
  175. package/source/css/_widgets/_tags/index.styl +61 -0
  176. package/source/css/_widgets/_tags/inline-image.styl +6 -0
  177. package/source/css/_widgets/_tags/label.styl +3 -0
  178. package/source/css/_widgets/_tags/link.styl +80 -0
  179. package/source/css/_widgets/_tags/note.styl +101 -0
  180. package/source/css/_widgets/_tags/span.styl +61 -0
  181. package/source/css/_widgets/_tags/tabs.styl +105 -0
  182. package/source/css/_widgets/_tags/timeline.styl +80 -0
  183. package/source/css/_widgets/index.styl +50 -1
  184. package/source/css/index.styl +0 -25
  185. package/source/js/{commentBarrage.js → extend/comment/twikoo/commentBarrage.js} +0 -4
  186. package/source/js/extend/comment/{twikoo.js → twikoo/twikoo.js} +12 -40
  187. package/source/js/extend/comment/waline/commentBarrage.js +155 -0
  188. package/source/js/extend/comment/{waline.js → waline/waline.js} +10 -11
  189. package/source/js/extend/search/algolia-search.js +1 -5
  190. package/source/js/extend/search/local-search.js +33 -13
  191. package/source/js/main.js +144 -163
  192. package/source/js/music.js +129 -0
  193. package/source/js/utils.js +4 -7
  194. package/source/lib/cover-color.min.js +7 -0
  195. package/source/lib/rightside.min.js +1 -0
  196. package/source/lib/sco-ai.min.js +8 -0
  197. package/source/lib/snackbar.min.css +1 -1
  198. package/source/lib/txmap.min.js +1 -0
  199. package/source/lib/view-image.min.js +1 -1
  200. package/layout/includes/widgets/aside/asidePower.pug +0 -19
  201. package/layout/includes/widgets/home/rencentPost.pug +0 -26
  202. package/source/css/_extra/rightmenu.styl +0 -83
  203. package/source/css/_layout/articleSort.styl +0 -199
  204. package/source/css/_layout/footer.styl +0 -359
  205. package/source/css/_layout/sidebar.styl +0 -226
  206. package/source/css/_page/homeTop.styl +0 -1035
  207. package/source/css/_page/link.styl +0 -433
  208. package/source/css/_post/commentBarrage.styl +0 -149
  209. package/source/css/_post/externalTags.styl +0 -694
  210. package/source/css/_post/highlight.styl +0 -96
  211. package/source/css/_post/index.styl +0 -935
  212. package/source/css/_post/pagination.styl +0 -467
  213. package/source/css/_post/postContent.styl +0 -957
  214. package/source/css/_post/reward.styl +0 -217
  215. package/source/css/_widgets/aside/index.styl +0 -156
  216. package/source/css/_widgets/aside/power.styl +0 -90
  217. package/source/img/logo-horizontal_version.png +0 -0
  218. package/source/img/pwa/16.png +0 -0
  219. package/source/img/pwa/180.png +0 -0
  220. package/source/img/pwa/192.png +0 -0
  221. package/source/img/pwa/32.png +0 -0
  222. package/source/img/pwa/512.png +0 -0
  223. package/source/img/pwa/logo.png +0 -0
  224. package/source/img/pwa/siteicon/splash-1125x2436.png +0 -0
  225. package/source/img/pwa/siteicon/splash-1136x640.png +0 -0
  226. package/source/img/pwa/siteicon/splash-1170x2532.png +0 -0
  227. package/source/img/pwa/siteicon/splash-1179x2556.png +0 -0
  228. package/source/img/pwa/siteicon/splash-1242x2208.png +0 -0
  229. package/source/img/pwa/siteicon/splash-1242x2688.png +0 -0
  230. package/source/img/pwa/siteicon/splash-1248x2778.png +0 -0
  231. package/source/img/pwa/siteicon/splash-1290x2796.png +0 -0
  232. package/source/img/pwa/siteicon/splash-1334x750.png +0 -0
  233. package/source/img/pwa/siteicon/splash-1536x2048.png +0 -0
  234. package/source/img/pwa/siteicon/splash-1620x2160.png +0 -0
  235. package/source/img/pwa/siteicon/splash-1668x2224.png +0 -0
  236. package/source/img/pwa/siteicon/splash-1668x2388.png +0 -0
  237. package/source/img/pwa/siteicon/splash-1792x828.png +0 -0
  238. package/source/img/pwa/siteicon/splash-2048x1536.png +0 -0
  239. package/source/img/pwa/siteicon/splash-2048x2732.png +0 -0
  240. package/source/img/pwa/siteicon/splash-2160x1620.png +0 -0
  241. package/source/img/pwa/siteicon/splash-2208x1242.png +0 -0
  242. package/source/img/pwa/siteicon/splash-2224x1668.png +0 -0
  243. package/source/img/pwa/siteicon/splash-2388x1668.png +0 -0
  244. package/source/img/pwa/siteicon/splash-2436x1125.png +0 -0
  245. package/source/img/pwa/siteicon/splash-2532x1170.png +0 -0
  246. package/source/img/pwa/siteicon/splash-2556x1179.png +0 -0
  247. package/source/img/pwa/siteicon/splash-2688x1242.png +0 -0
  248. package/source/img/pwa/siteicon/splash-2732x2048.png +0 -0
  249. package/source/img/pwa/siteicon/splash-2778x1248.png +0 -0
  250. package/source/img/pwa/siteicon/splash-2796x1290.png +0 -0
  251. package/source/img/pwa/siteicon/splash-640x1136.png +0 -0
  252. package/source/img/pwa/siteicon/splash-750x1334.png +0 -0
  253. package/source/img/pwa/siteicon/splash-828x1792.png +0 -0
  254. package/source/img/solitude-show.jpg +0 -0
  255. package/source/js/extend/covercolor/local.js +0 -160
  256. package/source/js/rightside.js +0 -402
  257. package/source/js/txmap.js +0 -236
  258. package/source/lib/chuckle-post-ai.js +0 -1
  259. /package/source/css/_widgets/{aside → _aside}/allinfo.styl +0 -0
  260. /package/source/css/_widgets/{aside → _aside}/welcome.styl +0 -0
  261. /package/source/img/{theme/avatar.png → avatar.png} +0 -0
@@ -31,7 +31,7 @@
31
31
  left: 0
32
32
  width: 100%
33
33
  height: 100%
34
- background: url(https://bu.dusays.com/2023/03/03/6401a79030db5.png) 50%
34
+ background: url(error_img) 50%
35
35
  background-size: cover
36
36
 
37
37
  .content
@@ -66,6 +66,9 @@
66
66
  a
67
67
  font-weight: 400
68
68
 
69
+ &:hover
70
+ color var(--sco-lighttext)
71
+
69
72
  &-link
70
73
  display: block
71
74
  justify-content: space-between
@@ -0,0 +1,249 @@
1
+ #post
2
+ .post-tools
3
+ display flex
4
+ width 100%
5
+ justify-content center
6
+ margin-top 8px
7
+ flex-wrap wrap
8
+ -webkit-user-select none
9
+
10
+ .post-tools-left
11
+ white-space nowrap
12
+ display flex
13
+ text-overflow ellipsis
14
+ justify-content center
15
+ flex-wrap wrap
16
+
17
+ #quit-box
18
+ position fixed
19
+ width 100vw
20
+ height 100vh
21
+ background rgba(0, 0, 0, .2)
22
+ top 0
23
+ left 0
24
+ opacity .01
25
+ display none
26
+ z-index 101
27
+ margin 0
28
+
29
+ +maxWidth768()
30
+ height calc(100vh - 380px)
31
+
32
+ // reward
33
+ /.post-reward
34
+ position relative
35
+ text-align center
36
+ display flex
37
+ justify-content center
38
+
39
+ &:hover
40
+ > .reward-main
41
+ display block
42
+
43
+ +minWidth768()
44
+ > .reward-main
45
+ display: flex
46
+ justify-content: left
47
+
48
+ .reward-button
49
+ color var(--sco-white)
50
+ background var(--sco-theme)
51
+ box-shadow none
52
+
53
+ .reward-button
54
+ background var(--sco-red)
55
+ color var(--sco-white)
56
+ padding 0 16px
57
+ height 40px
58
+ border-radius 8px
59
+ line-height 39px
60
+ box-shadow var(--sco-shadow-red)
61
+ display inline-block
62
+ cursor pointer
63
+ transition all .4s ease 0s
64
+
65
+ &:hover
66
+ background-color var(--sco-theme)
67
+
68
+ .reward-main
69
+ animation .3s ease .1s 1 normal both running donate_effcet
70
+ position absolute
71
+ bottom 40px
72
+ left -96px
73
+ z-index 100
74
+ display none
75
+ padding 0 0 15px
76
+ width fit-content
77
+
78
+ +maxWidth768()
79
+ justify-content center !important
80
+ position fixed
81
+ bottom 0
82
+ left 0
83
+ right 0
84
+ z-index 1003
85
+ width 100%
86
+ margin auto
87
+ padding 0
88
+
89
+ .reward-all
90
+ margin: 0
91
+ padding: .8rem
92
+ border-radius: 12px
93
+ background: var(--sco-card-bg)
94
+ border: var(--style-border-always)
95
+ display: flex
96
+ box-shadow: var(--sco-shadow-border)
97
+ flex-direction: column
98
+ align-items: center
99
+
100
+ +maxWidth768()
101
+ width 100%
102
+ display flex
103
+ flex-wrap wrap
104
+ justify-content space-around
105
+ padding 30px 10px 60px
106
+ border-radius 12px 12px 0 0
107
+
108
+ .reward-title
109
+ font-weight 700
110
+ color var(--sco-red)
111
+
112
+ .reward-group
113
+ display flex
114
+ margin-top .5rem
115
+
116
+ .reward-item
117
+ display inline-block
118
+ padding 0 8px
119
+ list-style-type none
120
+ vertical-align top
121
+
122
+ &:first-child
123
+ img
124
+ border-color var(--sco-green)
125
+
126
+ &:last-child
127
+ img
128
+ border-color var(--sco-blue)
129
+
130
+ img
131
+ width 130px
132
+ height 130px
133
+
134
+ .post-qr-code-desc
135
+ padding-top .4rem
136
+ width 130px
137
+ color var(--sco-gray)
138
+ margin-top -8px
139
+ margin-bottom 8px
140
+
141
+ .post-qr-code-img
142
+ box-shadow var(--sco-shadow-lightblack)
143
+ border-radius 12px
144
+ border var(--style-border-always)
145
+
146
+ .reward-main-btn
147
+ background var(--sco-secondbg)
148
+ color var(--sco-fontcolor)
149
+ display flex
150
+ flex-direction column
151
+ border-radius 12px
152
+ padding 4px 0
153
+ border var(--style-border-always)
154
+ width 100%
155
+
156
+ &:hover
157
+ color var(--sco-white)
158
+ background var(--sco-red)
159
+ background-image url(https://bu.dusays.com/2023/11/01/6541f7aeb5752.gif)
160
+ box-shadow var(--sco-shadow-red)
161
+
162
+ .reward-text
163
+ margin-bottom 0
164
+ font-weight 700
165
+
166
+ .reward-dec
167
+ font-size .6rem
168
+
169
+ // rss
170
+
171
+ .reward-link.mode
172
+ background var(--sco-green)
173
+ color var(--sco-white)
174
+ padding 0 16px
175
+ height 40px
176
+ line-height 39px
177
+ box-shadow var(--sco-shadow-green)
178
+ border-radius 8px
179
+ margin-left .5rem
180
+ cursor pointer
181
+ text-align center
182
+ transition .3s
183
+
184
+ a
185
+ color var(--sco-white)
186
+
187
+ i
188
+ margin-right 4px
189
+
190
+ &:hover
191
+ background var(--sco-theme)
192
+ box-shadow none
193
+
194
+
195
+ .post-tools-right
196
+ padding-right 0
197
+ display flex
198
+ align-items center
199
+ flex-direction row
200
+ flex-wrap wrap
201
+
202
+ .tag_share
203
+ .post-meta__tag-list
204
+ display flex
205
+ padding 0
206
+ width 100%
207
+ flex-wrap wrap
208
+ flex-direction row
209
+
210
+ a
211
+ margin-bottom 8px
212
+ margin-right 8px
213
+
214
+ .post-meta__tags
215
+ background var(--sco-card-bg)
216
+ border var(--style-border-always)
217
+ color var(--sco-fontcolor)
218
+ border-radius 8px
219
+ display flex
220
+ align-items center
221
+ white-space nowrap
222
+ height 40px
223
+ padding 0 .6rem
224
+ width fit-content
225
+ font-size .85em
226
+ transition all .2s ease-in-out 0s
227
+
228
+ &:hover
229
+ background var(--sco-lighttext)
230
+ box-shadow var(--sco-shadow-main)
231
+ color var(--sco-white)
232
+
233
+ span.tags-punctuation
234
+ font-size 12px
235
+ margin-right 1px
236
+ display flex
237
+ align-items center
238
+
239
+ .tagsPageCount, / #tag-page-tags .tagsPageCount
240
+ padding 2px
241
+ background var(--sco-card-bg)
242
+ border var(--style-border-always)
243
+ min-width 22.5px
244
+ display inline-block
245
+ border-radius 4px
246
+ text-align center
247
+ font-size .6rem
248
+ color var(--sco-fontcolor)
249
+ margin-left 4px
@@ -122,6 +122,7 @@
122
122
  line-height 1.2rem
123
123
 
124
124
  .search-dialog__title
125
+ font-weight 700
125
126
  padding 0 0 0.7rem
126
127
  color var(--sco-main)
127
128
  font-size 1.4em
@@ -139,6 +140,9 @@
139
140
  font-size .8rem
140
141
  font-weight bold
141
142
 
143
+ .algolia-tips-text
144
+ margin-left .4rem
145
+
142
146
  #algolia-search-results
143
147
  padding-top 8px
144
148
 
@@ -49,15 +49,24 @@
49
49
  overflow-y auto
50
50
  margin-top 8px
51
51
 
52
- .search-result-list
52
+ .search-result-item
53
+ padding-left 0
54
+ font-weight 700
55
+
53
56
  .search-result-title
54
- padding-left 0
55
- font-weight 700
56
57
  position relative
57
58
  transition color .2s ease-in-out 0s
59
+ white-space nowrap
60
+ text-overflow ellipsis
61
+ overflow hidden
62
+ display block
58
63
 
59
64
  &:hover
60
- color var(--sco-main)
65
+ color var(--sco-hovertext)
66
+
67
+ em
68
+ color var(--sco-theme)
69
+ font-style normal
61
70
 
62
71
  +maxWidth768()
63
72
  max-height 80vh !important
@@ -117,7 +126,8 @@
117
126
  padding 0.25rem 0.7rem;
118
127
  outline 0
119
128
  background var(--sco-secondbg)
120
- color var(--search-input-color)
129
+ color var(--sco-fontcolor)
130
+ caret-color var(--sco-theme)
121
131
 
122
132
  #search-mask
123
133
  position fixed
@@ -0,0 +1,60 @@
1
+ #article-container
2
+ .btn-center
3
+ margin: 0 0 20px
4
+ text-align: center
5
+
6
+ .btn-sco
7
+ position relative
8
+ transition all 0.3s ease-in-out
9
+ padding-block 0.5rem
10
+ padding-inline 1.25rem
11
+ border-radius 20px
12
+ margin 0 4px 6px
13
+ font-weight bold
14
+ border 1px solid var(--sco-main-op)
15
+ overflow hidden
16
+ font-size 15px
17
+
18
+ &:hover
19
+ transform scale(1.05)
20
+
21
+ &:before
22
+ animation shine 1.5s ease-out infinite
23
+
24
+ &.larger
25
+ padding 8px 20px
26
+ font-size 16px
27
+
28
+ &.block
29
+ display block
30
+ margin 0 0 20px
31
+ width fit-content
32
+
33
+ &.center
34
+ margin 0 auto 20px
35
+
36
+ &.right
37
+ margin 0 0 20px auto
38
+
39
+ &::before
40
+ content ""
41
+ position absolute
42
+ width 100px
43
+ height 100%
44
+ background-image linear-gradient(
45
+ 120deg,
46
+ rgba(255, 255, 255, 0) 30%,
47
+ rgba(255, 255, 255, 0.8),
48
+ rgba(255, 255, 255, 0) 70%
49
+ )
50
+ top 0
51
+ left -100px
52
+ opacity 0.6
53
+
54
+ @keyframes shine
55
+ 0%
56
+ left -100px
57
+ 60%
58
+ left 100%
59
+ to
60
+ left 100%
@@ -0,0 +1,8 @@
1
+ .bvideo
2
+ border 0
3
+ width 100%
4
+ height 600px
5
+ border-radius 12px
6
+
7
+ +maxWidth768()
8
+ height 200px
@@ -0,0 +1,52 @@
1
+ #article-container
2
+ .card
3
+ width 100%
4
+ height auto
5
+ display flex
6
+ flex-direction column
7
+ padding .5rem 1rem
8
+ border-radius 0.375rem
9
+ margin .5rem 0
10
+
11
+ .card-title
12
+ display flex
13
+ align-items center
14
+ font-size 1.8rem
15
+ font-weight bold
16
+
17
+ i
18
+ margin-right 8px
19
+ font-size 20px
20
+
21
+ p
22
+ margin 0 0 0 1.5rem
23
+
24
+ &.card-red
25
+ background rgba(238, 125, 121, 0.1)
26
+ border 1px solid var(--sco-red)
27
+ color var(--sco-red)
28
+
29
+ &.card-green
30
+ background rgb(240 253 244)
31
+ border 1px solid var(--sco-green)
32
+ color var(--sco-green)
33
+
34
+ &.card-blue
35
+ background rgb(240 248 253)
36
+ border 1px solid var(--sco-blue)
37
+ color var(--sco-blue)
38
+
39
+ &.card-yellow
40
+ background rgb(255 251 240)
41
+ border 1px solid var(--sco-yellow)
42
+ color var(--sco-yellow)
43
+
44
+ &.card-purple
45
+ background rgb(243 240 253)
46
+ border 1px solid var(--sco-purple)
47
+ color var(--sco-purple)
48
+
49
+ &.card-cyan
50
+ background rgb(240 253 253)
51
+ border 1px solid var(--sco-cyan)
52
+ color var(--sco-cyan)
@@ -0,0 +1,85 @@
1
+ $border-colors = {
2
+ red: #fe5f58,
3
+ green: #3dc550,
4
+ yellow: #ffbd2b,
5
+ cyan: #1bcdfc,
6
+ blue: #2196f3
7
+ }
8
+
9
+ .checkbox
10
+ display flex
11
+ align-items center
12
+ p
13
+ display inline-block
14
+ margin 2px 0 0 !important
15
+ input
16
+ appearance none
17
+ position relative
18
+ height 16px
19
+ width 16px
20
+ transition all 0.15s ease-out 0s
21
+ cursor pointer
22
+ display inline-block
23
+ outline none
24
+ flex-shrink 0
25
+ margin-right 8px
26
+ border 2px solid #2196f3
27
+ pointer-events none
28
+ border-radius 16px
29
+ &:before, &:after
30
+ position absolute
31
+ content ""
32
+ background #fff
33
+ &:checked
34
+ background #2196f3
35
+ [type="checkbox"]
36
+ &:before
37
+ left 1px
38
+ top 5px
39
+ width 0
40
+ height 2px
41
+ transition all 0.2s ease-in
42
+ transform rotate(45deg)
43
+ &:after
44
+ right 7px
45
+ bottom 3px
46
+ width 2px
47
+ height 0
48
+ transition all 0.2s ease-out
49
+ transform rotate(40deg)
50
+ transition-delay 0.25s
51
+ &:checked
52
+ &:before
53
+ left 0
54
+ top 7px
55
+ width 6px
56
+ height 2px
57
+ &:after
58
+ right 3px
59
+ bottom 1px
60
+ width 2px
61
+ height 10px
62
+ [type="radio"]
63
+ border-radius 50%
64
+ &:before
65
+ content ""
66
+ display block
67
+ width 8px
68
+ height 8px
69
+ border-radius 50%
70
+ margin 2px
71
+ transform scale(0)
72
+ transition all 0.25s ease-out
73
+ &:checked
74
+ &:before
75
+ transform scale(1)
76
+ background var(--text-bg-hover)
77
+ for color, value in $border-colors
78
+ &.{color}
79
+ input
80
+ border-color value
81
+ [type="checkbox"]:checked
82
+ background value
83
+ [type="radio"]:checked
84
+ &:before
85
+ background value
@@ -0,0 +1,79 @@
1
+ details:not(.tk-admin-config-group)
2
+ display block
3
+ position relative
4
+ margin-bottom 1rem
5
+ min-height 54px
6
+ overflow hidden
7
+ border-radius 12px
8
+ border var(--style-border)
9
+ transition border .3s
10
+
11
+ &:hover
12
+ border var(--style-border-hover-always)
13
+
14
+ summary
15
+ position absolute
16
+ padding .5rem 1rem
17
+ background var(--sco-card-bg)
18
+ margin 0
19
+ transition .3s
20
+ box-shadow var(--sco-shadow-border)
21
+ left 0
22
+ width 100%
23
+ font-weight 700
24
+ white-space nowrap
25
+ overflow hidden
26
+ text-overflow ellipsis
27
+
28
+ &::before
29
+ content ''
30
+ padding 4px
31
+
32
+ &:hover
33
+ cursor pointer
34
+ background var(--sco-main)
35
+ color var(--sco-white)
36
+ transition .3s
37
+ box-shadow var(--sco-shadow-main)
38
+
39
+ &:focus
40
+ outline 0
41
+
42
+ &::marker
43
+ color var(--sco-main)
44
+ transition .3s
45
+
46
+ &:hover::marker
47
+ color var(--sco-white)
48
+
49
+ &:hover:after
50
+ position absolute
51
+ content '+'
52
+ text-align center
53
+ top calc(50% - 2px)
54
+ transform translateY(-50%)
55
+ right 16px
56
+ line-height 1
57
+
58
+ > :nth-child(2)
59
+ margin-top calc(54px + 1rem) !important
60
+
61
+ &[open]
62
+ border-radius 12px
63
+ border var(--style-border-hover-always)
64
+ padding 0 1.5rem
65
+ background var(--sco-card-bg)
66
+
67
+ summary
68
+ background var(--sco-main)
69
+ color var(--sco-white)
70
+
71
+ &::marker
72
+ color var(--sco-white)
73
+
74
+ &:hover:after
75
+ content '-'
76
+
77
+ +maxWidth768()
78
+ details[open]:not(.tk-admin-config-group)
79
+ padding 0 16px
@@ -0,0 +1,10 @@
1
+ .md .img
2
+ object-fit: contain
3
+
4
+ img.inline
5
+ display: inline !important
6
+ vertical-align: middle
7
+ transform: translateY(-4px)
8
+ p .img-alt
9
+ display: inline-block
10
+ width: 100%
@@ -0,0 +1,61 @@
1
+ .bg-red
2
+ background-color var(--sco-red)
3
+ color var(--sco-white)
4
+
5
+ .bg-green
6
+ background-color var(--sco-green)
7
+ color var(--sco-white)
8
+
9
+ .bg-blue
10
+ background-color var(--sco-blue)
11
+ color var(--sco-white)
12
+
13
+ .bg-yellow
14
+ background-color var(--sco-yellow)
15
+
16
+ .bg-pink
17
+ background-color var(--sco-pink)
18
+ color var(--sco-white)
19
+
20
+ .bg-purple
21
+ background-color var(--sco-purple)
22
+ color var(--sco-white)
23
+
24
+ .bg-orange
25
+ background-color var(--sco-orange)
26
+ color var(--sco-white)
27
+
28
+ .bg-cyan
29
+ background-color var(--sco-cyan)
30
+ color var(--sco-white)
31
+
32
+ .bg-gray
33
+ background-color var(--sco-gray)
34
+ color var(--sco-white)
35
+
36
+ .red
37
+ color var(--sco-red)
38
+
39
+ .green
40
+ color var(--sco-green)
41
+
42
+ .blue
43
+ color var(--sco-blue)
44
+
45
+ .yellow
46
+ color var(--sco-yellow)
47
+
48
+ .pink
49
+ color var(--sco-pink)
50
+
51
+ .purple
52
+ color var(--sco-purple)
53
+
54
+ .orange
55
+ color var(--sco-orange)
56
+
57
+ .cyan
58
+ color var(--sco-cyan)
59
+
60
+ .gray
61
+ color var(--sco-gray)
@@ -0,0 +1,6 @@
1
+ #article-container
2
+ .inline-img
3
+ display: inline
4
+ margin: 0 3px
5
+ height: 1.1em
6
+ vertical-align: text-bottom
@@ -0,0 +1,3 @@
1
+ .hl-label
2
+ padding 2px 4px
3
+ border-radius 3px