Commit ad4778f8fc
Unsigned
Layout: unified · split
docs/.vitepress/configs/constants.ts +5
| @@ -548,6 +548,11 @@ export const siteConfig = { | ||
| 548 | 548 | href: '/asset/fav.svg', |
| 549 | 549 | sizes: '192x192' |
| 550 | 550 | } |
| 551 | ], | |
| 552 | [ | |
| 553 | 'script', | |
| 554 | {}, | |
| 555 | `(function(){try{if(localStorage.getItem('wotaku-home-cards-v2'))document.documentElement.setAttribute('data-home-prefs','')}catch(e){}})()` | |
| 551 | 556 | ] |
| 552 | 557 | ], |
| 553 | 558 | srcExclude: ['README.md', 'sandbox/**/*.md'], |
docs/.vitepress/theme/components/HomeFeatures.vue +1 −6
| @@ -385,13 +385,8 @@ function onHandlePointerUp() { | ||
| 385 | 385 | padding: 0 24px; |
| 386 | 386 | } |
| 387 | 387 | |
| 388 | .home-features .container { | |
| 388 | :global(html[data-home-prefs]) .home-features:not(.is-mounted) .container { | |
| 389 | 389 | opacity: 0; |
| 390 | transition: opacity 0.15s ease; | |
| 391 | } | |
| 392 | ||
| 393 | .home-features.is-mounted .container { | |
| 394 | opacity: 1; | |
| 395 | 390 | } |
| 396 | 391 | |
| 397 | 392 | @media (min-width: 640px) { |