nnbb 0.0.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 (218) hide show
  1. package/.dockerignore +1 -0
  2. package/.env.local +2 -0
  3. package/.eslintrc.json +15 -0
  4. package/.github/stale.yml +16 -0
  5. package/.github/workflows/codeql-analysis.yml +73 -0
  6. package/.github/workflows/docker-ghcr.yaml +59 -0
  7. package/.prettierrc +9 -0
  8. package/.vscode/launch.json +28 -0
  9. package/.vscode/settings.json +6 -0
  10. package/Dockerfile +38 -0
  11. package/LICENSE +21 -0
  12. package/README.md +16 -0
  13. package/blog.config.js +454 -0
  14. package/components/Ackee.js +83 -0
  15. package/components/AdBlockDetect.js +40 -0
  16. package/components/AlgoliaSearchModal.js +250 -0
  17. package/components/Artalk.js +30 -0
  18. package/components/Busuanzi.js +26 -0
  19. package/components/ChatBase.js +19 -0
  20. package/components/Collapse.tsx +134 -0
  21. package/components/Comment.js +161 -0
  22. package/components/CommonHead.tsx +101 -0
  23. package/components/CommonScript.js +125 -0
  24. package/components/CusdisComponent.js +35 -0
  25. package/components/CustomContextMenu.js +221 -0
  26. package/components/DebugPanel.js +134 -0
  27. package/components/DisableCopy.js +21 -0
  28. package/components/Draggable.js +167 -0
  29. package/components/Equation.js +31 -0
  30. package/components/ExternalPlugins.js +75 -0
  31. package/components/ExternalScript.js +29 -0
  32. package/components/FacebookMessenger.js +255 -0
  33. package/components/FacebookPage.js +34 -0
  34. package/components/Fireworks.js +210 -0
  35. package/components/FlipCard.js +56 -0
  36. package/components/FlutteringRibbon.js +322 -0
  37. package/components/FullScreenButton.js +48 -0
  38. package/components/Giscus.js +33 -0
  39. package/components/Gitalk.js +42 -0
  40. package/components/GoogleAdsense.js +111 -0
  41. package/components/Gtag.js +18 -0
  42. package/components/HeroIcons.tsx +321 -0
  43. package/components/KatexReact.js +53 -0
  44. package/components/LazyImage.js +95 -0
  45. package/components/Live2D.js +52 -0
  46. package/components/Loading.js +20 -0
  47. package/components/Mark.js +28 -0
  48. package/components/NProgress.ts +8 -0
  49. package/components/Nest.js +124 -0
  50. package/components/NotionIcon.js +20 -0
  51. package/components/NotionPage.tsx +206 -0
  52. package/components/Player.js +54 -0
  53. package/components/PrismMac.js +236 -0
  54. package/components/QrCode.js +34 -0
  55. package/components/Ribbon.js +98 -0
  56. package/components/Sakura.js +192 -0
  57. package/components/Select.js +40 -0
  58. package/components/ShareBar.js +29 -0
  59. package/components/ShareButtons.js +403 -0
  60. package/components/SideBarDrawer.js +50 -0
  61. package/components/StarrySky.js +130 -0
  62. package/components/Tabs.js +64 -0
  63. package/components/ThemeSwitch.js +67 -0
  64. package/components/Twikoo.js +27 -0
  65. package/components/TwikooCommentCount.js +22 -0
  66. package/components/TwikooCommentCounter.js +78 -0
  67. package/components/TwikooRecentComments.js +11 -0
  68. package/components/Utterances.js +35 -0
  69. package/components/VConsole.js +76 -0
  70. package/components/ValineComponent.js +59 -0
  71. package/components/ValineCount.js +6 -0
  72. package/components/ValinePanel.js +3 -0
  73. package/components/Vercel.tsx +54 -0
  74. package/components/WWAds.js +18 -0
  75. package/components/WalineComponent.js +83 -0
  76. package/components/WebMention.js +173 -0
  77. package/components/Webwhiz.js +17 -0
  78. package/components/WordCount.js +73 -0
  79. package/hooks/useToggleClickOutSide.ts +32 -0
  80. package/hooks/useWindowSize.ts +30 -0
  81. package/lib/algolia.js +108 -0
  82. package/lib/busuanzi.js +99 -0
  83. package/lib/cache/cacheManager.ts +49 -0
  84. package/lib/cache/localFileCache.ts +56 -0
  85. package/lib/cache/memoryMache.ts +20 -0
  86. package/lib/cache/mongoDbCache.ts +70 -0
  87. package/lib/cache/types.ts +5 -0
  88. package/lib/font.js +46 -0
  89. package/lib/global.tsx +129 -0
  90. package/lib/gtag.js +17 -0
  91. package/lib/mailchimp.js +49 -0
  92. package/lib/memorize.js +0 -0
  93. package/lib/mhchem.js +1696 -0
  94. package/lib/notion/getAllCategories.ts +51 -0
  95. package/lib/notion/getAllPageIds.ts +51 -0
  96. package/lib/notion/getAllPosts.js +68 -0
  97. package/lib/notion/getAllTags.ts +43 -0
  98. package/lib/notion/getNotionData.ts +340 -0
  99. package/lib/notion/getPageInfoOfPostPage.ts +58 -0
  100. package/lib/notion/getPageProperties.ts +203 -0
  101. package/lib/notion/getPageTableOfContents.ts +107 -0
  102. package/lib/notion/getPostBlocks.ts +147 -0
  103. package/lib/notion/mapImage.ts +130 -0
  104. package/lib/notion/types.ts +125 -0
  105. package/lib/notion.js +2 -0
  106. package/lib/robots.txt.js +25 -0
  107. package/lib/rss.js +63 -0
  108. package/lib/sitemap.xml.js +67 -0
  109. package/lib/utils.js +212 -0
  110. package/next-env.d.ts +5 -0
  111. package/next-i18next.config.js +7 -0
  112. package/next-sitemap.config.js +11 -0
  113. package/next.config.js +124 -0
  114. package/package.json +92 -0
  115. package/pages/404.tsx +40 -0
  116. package/pages/[prefix]/[slug].tsx +123 -0
  117. package/pages/[prefix]/index.tsx +223 -0
  118. package/pages/_app.js +59 -0
  119. package/pages/_document.js +42 -0
  120. package/pages/api/subscribe.js +22 -0
  121. package/pages/archive/index.tsx +79 -0
  122. package/pages/category/[category]/index.tsx +87 -0
  123. package/pages/category/[category]/page/[page].tsx +103 -0
  124. package/pages/category/index.tsx +43 -0
  125. package/pages/index.tsx +88 -0
  126. package/pages/page/[page].tsx +93 -0
  127. package/pages/search/[keyword]/index.tsx +162 -0
  128. package/pages/search/[keyword]/page/[page].tsx +166 -0
  129. package/pages/search/index.tsx +69 -0
  130. package/pages/sitemap.xml.js +70 -0
  131. package/pages/tag/[tag]/index.tsx +73 -0
  132. package/pages/tag/[tag]/page/[page].tsx +87 -0
  133. package/pages/tag/index.tsx +42 -0
  134. package/postcss.config.js +6 -0
  135. package/public/ads.txt +1 -0
  136. package/public/avatar.png +0 -0
  137. package/public/avatar.svg +11 -0
  138. package/public/bg_image.jpg +0 -0
  139. package/public/css/all.min.css +9 -0
  140. package/public/css/custom.css +8 -0
  141. package/public/css/img-shadow.css +5 -0
  142. package/public/css/prism-mac-style.css +58 -0
  143. package/public/favicon.ico +0 -0
  144. package/public/favicon.svg +9 -0
  145. package/public/js/cusdis.es.js +107 -0
  146. package/public/js/custom.js +1 -0
  147. package/public/locales/en/common.json +44 -0
  148. package/public/locales/en/menu.json +9 -0
  149. package/public/locales/en/nav.json +11 -0
  150. package/public/locales/zh-CN/common.json +44 -0
  151. package/public/locales/zh-CN/menu.json +9 -0
  152. package/public/locales/zh-CN/nav.json +9 -0
  153. package/public/webfonts/fa-brands-400.ttf +0 -0
  154. package/public/webfonts/fa-brands-400.woff2 +0 -0
  155. package/public/webfonts/fa-regular-400.ttf +0 -0
  156. package/public/webfonts/fa-regular-400.woff2 +0 -0
  157. package/public/webfonts/fa-solid-900.ttf +0 -0
  158. package/public/webfonts/fa-solid-900.woff2 +0 -0
  159. package/public/webfonts/fa-v4compatibility.ttf +0 -0
  160. package/public/webfonts/fa-v4compatibility.woff2 +0 -0
  161. package/styles/animate.css +503 -0
  162. package/styles/globals.css +183 -0
  163. package/styles/notion.css +2064 -0
  164. package/styles/nprogress.css +84 -0
  165. package/styles/prism-theme.css +119 -0
  166. package/styles/utility-patterns.css +79 -0
  167. package/tailwind.config.js +37 -0
  168. package/theme/index.ts +6 -0
  169. package/theme/types/@theme-components.d.ts +29 -0
  170. package/theme/useLayout.ts +41 -0
  171. package/theme/utils.ts +108 -0
  172. package/themes/innocent/package.json +7 -0
  173. package/themes/innocent/theme.config.js +1 -0
  174. package/themes/nobelium/components/Announcement.tsx +27 -0
  175. package/themes/nobelium/components/ArticleFooter.tsx +39 -0
  176. package/themes/nobelium/components/ArticleInfo.tsx +58 -0
  177. package/themes/nobelium/components/ArticleLock.tsx +86 -0
  178. package/themes/nobelium/components/BlogArchiveItem.js +41 -0
  179. package/themes/nobelium/components/BlogListBar.js +39 -0
  180. package/themes/nobelium/components/BlogListPage.tsx +67 -0
  181. package/themes/nobelium/components/BlogListScroll.tsx +96 -0
  182. package/themes/nobelium/components/BlogPost.tsx +33 -0
  183. package/themes/nobelium/components/DarkModeButton.tsx +50 -0
  184. package/themes/nobelium/components/ExampleRecentComments.js +35 -0
  185. package/themes/nobelium/components/Footer.tsx +35 -0
  186. package/themes/nobelium/components/JumpToTopButton.tsx +39 -0
  187. package/themes/nobelium/components/LanguageSwitchButton.tsx +58 -0
  188. package/themes/nobelium/components/MenuItemCollapse.tsx +92 -0
  189. package/themes/nobelium/components/MenuItemDrop.tsx +83 -0
  190. package/themes/nobelium/components/Nav/Nav.module.css +50 -0
  191. package/themes/nobelium/components/Nav/Nav.tsx +187 -0
  192. package/themes/nobelium/components/RandomPostButton.tsx +31 -0
  193. package/themes/nobelium/components/SearchButton.tsx +31 -0
  194. package/themes/nobelium/components/SearchInput.tsx +94 -0
  195. package/themes/nobelium/components/SearchNavBar.js +19 -0
  196. package/themes/nobelium/components/SideBar.js +83 -0
  197. package/themes/nobelium/components/SvgIcon.js +29 -0
  198. package/themes/nobelium/components/TagItem.js +13 -0
  199. package/themes/nobelium/components/Tags.tsx +44 -0
  200. package/themes/nobelium/components/Title.js +19 -0
  201. package/themes/nobelium/index.tsx +28 -0
  202. package/themes/nobelium/layout/LayoutBase.tsx +79 -0
  203. package/themes/nobelium/pages/Archive.tsx +30 -0
  204. package/themes/nobelium/pages/Category.tsx +43 -0
  205. package/themes/nobelium/pages/Home.tsx +22 -0
  206. package/themes/nobelium/pages/PageNotFound.tsx +15 -0
  207. package/themes/nobelium/pages/Post.tsx +34 -0
  208. package/themes/nobelium/pages/PostList.tsx +74 -0
  209. package/themes/nobelium/pages/Search.tsx +65 -0
  210. package/themes/nobelium/pages/Tag.tsx +42 -0
  211. package/themes/nobelium/providers/index.tsx +60 -0
  212. package/themes/nobelium/stores/index.tsx +42 -0
  213. package/themes/nobelium/theme.config.ts +17 -0
  214. package/themes/nobelium/types/index.ts +10 -0
  215. package/tsconfig.json +29 -0
  216. package/types/index.ts +1 -0
  217. package/types/page.ts +102 -0
  218. package/vercel.json +5 -0
@@ -0,0 +1,503 @@
1
+ @charset "UTF-8";/*!
2
+ * animate.css - https://animate.style/
3
+ * Version - 4.1.1
4
+ * Licensed under the MIT license - http://opensource.org/licenses/MIT
5
+ * https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css
6
+ * 这里做了精减,后续不再使用animate.css,因为占用体积太大,不如手写动画
7
+ * Copyright (c) 2020 Animate.css
8
+ */
9
+ :root {
10
+ --animate-duration: 1s;
11
+ --animate-delay: 1s;
12
+ --animate-repeat: 1;
13
+ }
14
+ .animate__animated {
15
+ -webkit-animation-duration: 1s;
16
+ animation-duration: 1s;
17
+ -webkit-animation-duration: var(--animate-duration);
18
+ animation-duration: var(--animate-duration);
19
+ -webkit-animation-fill-mode: both;
20
+ animation-fill-mode: both;
21
+ }
22
+
23
+
24
+ .animate__animated.animate__faster {
25
+ -webkit-animation-duration: calc(1s / 2);
26
+ animation-duration: calc(1s / 2);
27
+ -webkit-animation-duration: calc(var(--animate-duration) / 2);
28
+ animation-duration: calc(var(--animate-duration) / 2);
29
+ }
30
+ .animate__animated.animate__fast {
31
+ -webkit-animation-duration: calc(1s * 0.8);
32
+ animation-duration: calc(1s * 0.8);
33
+ -webkit-animation-duration: calc(var(--animate-duration) * 0.8);
34
+ animation-duration: calc(var(--animate-duration) * 0.8);
35
+ }
36
+
37
+
38
+ @media print, (prefers-reduced-motion: reduce) {
39
+ .animate__animated {
40
+ -webkit-animation-duration: 1ms !important;
41
+ animation-duration: 1ms !important;
42
+ -webkit-transition-duration: 1ms !important;
43
+ transition-duration: 1ms !important;
44
+ -webkit-animation-iteration-count: 1 !important;
45
+ animation-iteration-count: 1 !important;
46
+ }
47
+
48
+ .animate__animated[class*='Out'] {
49
+ opacity: 0;
50
+ }
51
+ }
52
+
53
+
54
+ @-webkit-keyframes shakeX {
55
+ from,
56
+ to {
57
+ -webkit-transform: translate3d(0, 0, 0);
58
+ transform: translate3d(0, 0, 0);
59
+ }
60
+
61
+ 10%,
62
+ 30%,
63
+ 50%,
64
+ 70%,
65
+ 90% {
66
+ -webkit-transform: translate3d(-10px, 0, 0);
67
+ transform: translate3d(-10px, 0, 0);
68
+ }
69
+
70
+ 20%,
71
+ 40%,
72
+ 60%,
73
+ 80% {
74
+ -webkit-transform: translate3d(10px, 0, 0);
75
+ transform: translate3d(10px, 0, 0);
76
+ }
77
+ }
78
+ @keyframes shakeX {
79
+ from,
80
+ to {
81
+ -webkit-transform: translate3d(0, 0, 0);
82
+ transform: translate3d(0, 0, 0);
83
+ }
84
+
85
+ 10%,
86
+ 30%,
87
+ 50%,
88
+ 70%,
89
+ 90% {
90
+ -webkit-transform: translate3d(-10px, 0, 0);
91
+ transform: translate3d(-10px, 0, 0);
92
+ }
93
+
94
+ 20%,
95
+ 40%,
96
+ 60%,
97
+ 80% {
98
+ -webkit-transform: translate3d(10px, 0, 0);
99
+ transform: translate3d(10px, 0, 0);
100
+ }
101
+ }
102
+ .animate__shakeX {
103
+ -webkit-animation-name: shakeX;
104
+ animation-name: shakeX;
105
+ }
106
+ @-webkit-keyframes shakeY {
107
+ from,
108
+ to {
109
+ -webkit-transform: translate3d(0, 0, 0);
110
+ transform: translate3d(0, 0, 0);
111
+ }
112
+
113
+ 10%,
114
+ 30%,
115
+ 50%,
116
+ 70%,
117
+ 90% {
118
+ -webkit-transform: translate3d(0, -10px, 0);
119
+ transform: translate3d(0, -10px, 0);
120
+ }
121
+
122
+ 20%,
123
+ 40%,
124
+ 60%,
125
+ 80% {
126
+ -webkit-transform: translate3d(0, 10px, 0);
127
+ transform: translate3d(0, 10px, 0);
128
+ }
129
+ }
130
+ @keyframes shakeY {
131
+ from,
132
+ to {
133
+ -webkit-transform: translate3d(0, 0, 0);
134
+ transform: translate3d(0, 0, 0);
135
+ }
136
+
137
+ 10%,
138
+ 30%,
139
+ 50%,
140
+ 70%,
141
+ 90% {
142
+ -webkit-transform: translate3d(0, -10px, 0);
143
+ transform: translate3d(0, -10px, 0);
144
+ }
145
+
146
+ 20%,
147
+ 40%,
148
+ 60%,
149
+ 80% {
150
+ -webkit-transform: translate3d(0, 10px, 0);
151
+ transform: translate3d(0, 10px, 0);
152
+ }
153
+ }
154
+ .animate__shakeY {
155
+ -webkit-animation-name: shakeY;
156
+ animation-name: shakeY;
157
+ }
158
+ @-webkit-keyframes headShake {
159
+ 0% {
160
+ -webkit-transform: translateX(0);
161
+ transform: translateX(0);
162
+ }
163
+
164
+ 6.5% {
165
+ -webkit-transform: translateX(-6px) rotateY(-9deg);
166
+ transform: translateX(-6px) rotateY(-9deg);
167
+ }
168
+
169
+ 18.5% {
170
+ -webkit-transform: translateX(5px) rotateY(7deg);
171
+ transform: translateX(5px) rotateY(7deg);
172
+ }
173
+
174
+ 31.5% {
175
+ -webkit-transform: translateX(-3px) rotateY(-5deg);
176
+ transform: translateX(-3px) rotateY(-5deg);
177
+ }
178
+
179
+ 43.5% {
180
+ -webkit-transform: translateX(2px) rotateY(3deg);
181
+ transform: translateX(2px) rotateY(3deg);
182
+ }
183
+
184
+ 50% {
185
+ -webkit-transform: translateX(0);
186
+ transform: translateX(0);
187
+ }
188
+ }
189
+ @keyframes headShake {
190
+ 0% {
191
+ -webkit-transform: translateX(0);
192
+ transform: translateX(0);
193
+ }
194
+
195
+ 6.5% {
196
+ -webkit-transform: translateX(-6px) rotateY(-9deg);
197
+ transform: translateX(-6px) rotateY(-9deg);
198
+ }
199
+
200
+ 18.5% {
201
+ -webkit-transform: translateX(5px) rotateY(7deg);
202
+ transform: translateX(5px) rotateY(7deg);
203
+ }
204
+
205
+ 31.5% {
206
+ -webkit-transform: translateX(-3px) rotateY(-5deg);
207
+ transform: translateX(-3px) rotateY(-5deg);
208
+ }
209
+
210
+ 43.5% {
211
+ -webkit-transform: translateX(2px) rotateY(3deg);
212
+ transform: translateX(2px) rotateY(3deg);
213
+ }
214
+
215
+ 50% {
216
+ -webkit-transform: translateX(0);
217
+ transform: translateX(0);
218
+ }
219
+ }
220
+ .animate__headShake {
221
+ -webkit-animation-timing-function: ease-in-out;
222
+ animation-timing-function: ease-in-out;
223
+ -webkit-animation-name: headShake;
224
+ animation-name: headShake;
225
+ }
226
+
227
+
228
+ @keyframes jello {
229
+ from,
230
+ 11.1%,
231
+ to {
232
+ -webkit-transform: translate3d(0, 0, 0);
233
+ transform: translate3d(0, 0, 0);
234
+ }
235
+
236
+ 22.2% {
237
+ -webkit-transform: skewX(-12.5deg) skewY(-12.5deg);
238
+ transform: skewX(-12.5deg) skewY(-12.5deg);
239
+ }
240
+
241
+ 33.3% {
242
+ -webkit-transform: skewX(6.25deg) skewY(6.25deg);
243
+ transform: skewX(6.25deg) skewY(6.25deg);
244
+ }
245
+
246
+ 44.4% {
247
+ -webkit-transform: skewX(-3.125deg) skewY(-3.125deg);
248
+ transform: skewX(-3.125deg) skewY(-3.125deg);
249
+ }
250
+
251
+ 55.5% {
252
+ -webkit-transform: skewX(1.5625deg) skewY(1.5625deg);
253
+ transform: skewX(1.5625deg) skewY(1.5625deg);
254
+ }
255
+
256
+ 66.6% {
257
+ -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg);
258
+ transform: skewX(-0.78125deg) skewY(-0.78125deg);
259
+ }
260
+
261
+ 77.7% {
262
+ -webkit-transform: skewX(0.390625deg) skewY(0.390625deg);
263
+ transform: skewX(0.390625deg) skewY(0.390625deg);
264
+ }
265
+
266
+ 88.8% {
267
+ -webkit-transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
268
+ transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
269
+ }
270
+ }
271
+ .animate__jello {
272
+ -webkit-animation-name: jello;
273
+ animation-name: jello;
274
+ -webkit-transform-origin: center;
275
+ transform-origin: center;
276
+ }
277
+
278
+
279
+
280
+ @-webkit-keyframes bounceInRight {
281
+ from,
282
+ 60%,
283
+ 75%,
284
+ 90%,
285
+ to {
286
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
287
+ animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
288
+ }
289
+
290
+ from {
291
+ opacity: 0;
292
+ -webkit-transform: translate3d(3000px, 0, 0) scaleX(3);
293
+ transform: translate3d(3000px, 0, 0) scaleX(3);
294
+ }
295
+
296
+ 60% {
297
+ opacity: 1;
298
+ -webkit-transform: translate3d(-25px, 0, 0) scaleX(1);
299
+ transform: translate3d(-25px, 0, 0) scaleX(1);
300
+ }
301
+
302
+ 75% {
303
+ -webkit-transform: translate3d(10px, 0, 0) scaleX(0.98);
304
+ transform: translate3d(10px, 0, 0) scaleX(0.98);
305
+ }
306
+
307
+ 90% {
308
+ -webkit-transform: translate3d(-5px, 0, 0) scaleX(0.995);
309
+ transform: translate3d(-5px, 0, 0) scaleX(0.995);
310
+ }
311
+
312
+ to {
313
+ -webkit-transform: translate3d(0, 0, 0);
314
+ transform: translate3d(0, 0, 0);
315
+ }
316
+ }
317
+ @keyframes bounceInRight {
318
+ from,
319
+ 60%,
320
+ 75%,
321
+ 90%,
322
+ to {
323
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
324
+ animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
325
+ }
326
+
327
+ from {
328
+ opacity: 0;
329
+ -webkit-transform: translate3d(3000px, 0, 0) scaleX(3);
330
+ transform: translate3d(3000px, 0, 0) scaleX(3);
331
+ }
332
+
333
+ 60% {
334
+ opacity: 1;
335
+ -webkit-transform: translate3d(-25px, 0, 0) scaleX(1);
336
+ transform: translate3d(-25px, 0, 0) scaleX(1);
337
+ }
338
+
339
+ 75% {
340
+ -webkit-transform: translate3d(10px, 0, 0) scaleX(0.98);
341
+ transform: translate3d(10px, 0, 0) scaleX(0.98);
342
+ }
343
+
344
+ 90% {
345
+ -webkit-transform: translate3d(-5px, 0, 0) scaleX(0.995);
346
+ transform: translate3d(-5px, 0, 0) scaleX(0.995);
347
+ }
348
+
349
+ to {
350
+ -webkit-transform: translate3d(0, 0, 0);
351
+ transform: translate3d(0, 0, 0);
352
+ }
353
+ }
354
+ .animate__bounceInRight {
355
+ -webkit-animation-name: bounceInRight;
356
+ animation-name: bounceInRight;
357
+ }
358
+
359
+
360
+ /* Fading entrances */
361
+ @-webkit-keyframes fadeIn {
362
+ from {
363
+ opacity: 0;
364
+ }
365
+
366
+ to {
367
+ opacity: 1;
368
+ }
369
+ }
370
+ @keyframes fadeIn {
371
+ from {
372
+ opacity: 0;
373
+ }
374
+
375
+ to {
376
+ opacity: 1;
377
+ }
378
+ }
379
+ .animate__fadeIn {
380
+ -webkit-animation-name: fadeIn;
381
+ animation-name: fadeIn;
382
+ }
383
+
384
+
385
+ /* Fading exits */
386
+ /* 删除 */
387
+
388
+ /* Flippers */
389
+ /* 删除 */
390
+
391
+ /* Lightspeed */
392
+ /* 删除 */
393
+
394
+ /* Rotating exits */
395
+ /* 删除 */
396
+
397
+ /* Zooming entrances */
398
+ /* 删除 */
399
+
400
+ /* Sliding entrances */
401
+
402
+ @-webkit-keyframes slideInLeft {
403
+ from {
404
+ -webkit-transform: translate3d(-100%, 0, 0);
405
+ transform: translate3d(-100%, 0, 0);
406
+ visibility: visible;
407
+ }
408
+
409
+ to {
410
+ -webkit-transform: translate3d(0, 0, 0);
411
+ transform: translate3d(0, 0, 0);
412
+ }
413
+ }
414
+ @keyframes slideInLeft {
415
+ from {
416
+ -webkit-transform: translate3d(-100%, 0, 0);
417
+ transform: translate3d(-100%, 0, 0);
418
+ visibility: visible;
419
+ }
420
+
421
+ to {
422
+ -webkit-transform: translate3d(0, 0, 0);
423
+ transform: translate3d(0, 0, 0);
424
+ }
425
+ }
426
+ .animate__slideInLeft {
427
+ -webkit-animation-name: slideInLeft;
428
+ animation-name: slideInLeft;
429
+ }
430
+ @-webkit-keyframes slideInRight {
431
+ from {
432
+ -webkit-transform: translate3d(100%, 0, 0);
433
+ transform: translate3d(100%, 0, 0);
434
+ visibility: visible;
435
+ }
436
+
437
+ to {
438
+ -webkit-transform: translate3d(0, 0, 0);
439
+ transform: translate3d(0, 0, 0);
440
+ }
441
+ }
442
+ @keyframes slideInRight {
443
+ from {
444
+ -webkit-transform: translate3d(100%, 0, 0);
445
+ transform: translate3d(100%, 0, 0);
446
+ visibility: visible;
447
+ }
448
+
449
+ to {
450
+ -webkit-transform: translate3d(0, 0, 0);
451
+ transform: translate3d(0, 0, 0);
452
+ }
453
+ }
454
+ .animate__slideInRight {
455
+ -webkit-animation-name: slideInRight;
456
+ animation-name: slideInRight;
457
+ }
458
+
459
+
460
+ @keyframes slideOutLeft {
461
+ from {
462
+ -webkit-transform: translate3d(0, 0, 0);
463
+ transform: translate3d(0, 0, 0);
464
+ }
465
+
466
+ to {
467
+ visibility: hidden;
468
+ -webkit-transform: translate3d(-100%, 0, 0);
469
+ transform: translate3d(-100%, 0, 0);
470
+ }
471
+ }
472
+ .animate__slideOutLeft {
473
+ -webkit-animation-name: slideOutLeft;
474
+ animation-name: slideOutLeft;
475
+ }
476
+ @-webkit-keyframes slideOutRight {
477
+ from {
478
+ -webkit-transform: translate3d(0, 0, 0);
479
+ transform: translate3d(0, 0, 0);
480
+ }
481
+
482
+ to {
483
+ visibility: hidden;
484
+ -webkit-transform: translate3d(100%, 0, 0);
485
+ transform: translate3d(100%, 0, 0);
486
+ }
487
+ }
488
+ @keyframes slideOutRight {
489
+ from {
490
+ -webkit-transform: translate3d(0, 0, 0);
491
+ transform: translate3d(0, 0, 0);
492
+ }
493
+
494
+ to {
495
+ visibility: hidden;
496
+ -webkit-transform: translate3d(100%, 0, 0);
497
+ transform: translate3d(100%, 0, 0);
498
+ }
499
+ }
500
+ .animate__slideOutRight {
501
+ -webkit-animation-name: slideOutRight;
502
+ animation-name: slideOutRight;
503
+ }
@@ -0,0 +1,183 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ .shadow-card {
6
+ box-shadow:
7
+ rgba(0, 0, 0, 0.07) 0px 1px 2px,
8
+ rgba(0, 0, 0, 0.07) 0px 2px 4px,
9
+ rgba(0, 0, 0, 0.07) 0px 4px 8px,
10
+ rgba(0, 0, 0, 0.07) 0px 8px 16px,
11
+ rgba(0, 0, 0, 0.07) 0px 16px 32px,
12
+ rgba(0, 0, 0, 0.07) 0px 32px 64px;
13
+ }
14
+
15
+ .gt-meta {
16
+ @apply dark:text-gray-300;
17
+ }
18
+
19
+ #waifu {
20
+ @apply left-0 right-auto z-10 hidden lg:block !important;
21
+ }
22
+
23
+ /* 隐藏滚动条 */
24
+ .scroll-hidden {
25
+ -ms-overflow-style: none;
26
+ overflow: -moz-scrollbars-none;
27
+ scrollbar-width: none; /* firefox */
28
+ }
29
+
30
+ .scroll-hidden::-webkit-scrollbar {
31
+ width: 0 !important;
32
+ }
33
+
34
+ .glassmorphism {
35
+ background: hsla(0, 0%, 100%, 0.05);
36
+ -webkit-backdrop-filter: blur(10px);
37
+ backdrop-filter: blur(10px);
38
+ }
39
+
40
+ .medium-zoom-overlay {
41
+ background: none !important;
42
+ /* background: rgba(0, 0, 0, 0.01) none repeat scroll 0% 0% !important; */
43
+ }
44
+
45
+ .shadow-text {
46
+ text-shadow: 0.1em 0.1em 0.2em black;
47
+ }
48
+
49
+ .notion-code-copy-button > svg {
50
+ pointer-events: none;
51
+ }
52
+
53
+ .fireworks {
54
+ position: fixed;
55
+ left: 0;
56
+ top: 0;
57
+ z-index: 1000;
58
+ pointer-events: none;
59
+ }
60
+
61
+ [data-waline] p {
62
+ color: var(--waline-color);
63
+ @apply dark:text-gray-200 !important;
64
+ }
65
+
66
+ .waline-recent-content p {
67
+ overflow: hidden;
68
+ text-overflow: ellipsis;
69
+ display: -webkit-box;
70
+ -webkit-line-clamp: 2;
71
+ -webkit-box-orient: vertical;
72
+ }
73
+
74
+ .waline-recent-content .wl-emoji {
75
+ height: 1.1rem !important;
76
+ display: inline-block !important;
77
+ line-height: 1.25rem !important;
78
+ vertical-align: text-bottom !important;
79
+ }
80
+
81
+ .vcontent .wl-emoji {
82
+ display: inline-block;
83
+ vertical-align: baseline;
84
+ height: 1.25em;
85
+ margin: -0.125em 0.25em;
86
+ }
87
+
88
+ /* twikoo 评论区超链接样式 */
89
+ .tk-main a {
90
+ @apply text-blue-700;
91
+ }
92
+
93
+ /* Webmention style */
94
+ .webmention-block {
95
+ background: rgba(0, 116, 222, 0.2);
96
+ padding: 1rem 2rem;
97
+ border-radius: 5px;
98
+ }
99
+
100
+ .webmention-header {
101
+ font-style: italic;
102
+ font-weight: 700;
103
+ font-size: 16px;
104
+ margin-bottom: 0.5rem;
105
+ }
106
+
107
+ .webmention-block-intro a {
108
+ color: #0000ee;
109
+ text-decoration: underline;
110
+ }
111
+
112
+ .webmention {
113
+ margin-top: 1rem;
114
+ padding-top: 1rem;
115
+ border-top: 1px solid rgba(0, 0, 0, 0.2);
116
+ }
117
+
118
+ .webmention-counts {
119
+ padding: 16px 0;
120
+ font-weight: bold;
121
+ }
122
+
123
+ .webmention-counts .count {
124
+ font-weight: bold;
125
+ margin-right: 0.2rem;
126
+ }
127
+
128
+ /* .webmention-counts .counts > span {
129
+ margin-right: .8rem;
130
+ } */
131
+ .webmention-counts .counts > span:not(:last-child):after {
132
+ content: ' • ';
133
+ }
134
+
135
+ a.avatar-wrapper {
136
+ display: inline-block;
137
+ width: 50px;
138
+ height: 50px;
139
+ position: relative;
140
+ }
141
+
142
+ .webmention-avatars .avatar-wrapper {
143
+ margin-right: -8px;
144
+ }
145
+
146
+ .avatar {
147
+ border-radius: 50%;
148
+ margin: 0;
149
+ border: 3px solid rgba(0, 116, 222, 0.5);
150
+ }
151
+
152
+ .replies {
153
+ margin: 0;
154
+ padding: 0;
155
+ }
156
+
157
+ .reply {
158
+ list-style: none;
159
+ display: flex;
160
+ position: relative;
161
+ padding: 0;
162
+ align-items: flex-start;
163
+ margin-top: 0.6rem;
164
+ }
165
+
166
+ .reply p {
167
+ margin: 0;
168
+ }
169
+
170
+ .reply .text {
171
+ margin-left: 1rem;
172
+ font-size: 14px;
173
+ }
174
+
175
+ .reply-author-name {
176
+ font-weight: 500;
177
+ }
178
+
179
+ .forbid-copy {
180
+ user-select: none;
181
+ -webkit-user-select: none;
182
+ -ms-user-select: none;
183
+ }