Commit 7a6fd83ab4
Unregistered key
Layout: unified · split
docs/.vitepress/theme/styles/style.scss +104 −37
| @@ -480,7 +480,53 @@ table tr:nth-child(odd) { | ||
| 480 | 480 | } |
| 481 | 481 | } |
| 482 | 482 | |
| 483 | /* View transition animations removed */ | |
| 483 | ::view-transition-group(root) { | |
| 484 | animation-timing-function: $ease-in-expo; | |
| 485 | z-index: 100; | |
| 486 | } | |
| 487 | ||
| 488 | ::view-transition-new(root) { | |
| 489 | animation: var(--switch-name) var(--switch-duration); | |
| 490 | animation-fill-mode: both; | |
| 491 | animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0); | |
| 492 | } | |
| 493 | ||
| 494 | ::view-transition-old(root), | |
| 495 | .dark::view-transition-old(root) { | |
| 496 | animation: var(--switch-name) var(--switch-duration); | |
| 497 | animation-fill-mode: both; | |
| 498 | animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0); | |
| 499 | } | |
| 500 | ||
| 501 | @keyframes scale { | |
| 502 | 0% { | |
| 503 | mask-size: 0; | |
| 504 | } | |
| 505 | 10% { | |
| 506 | mask-size: 25vmax; | |
| 507 | } | |
| 508 | 90% { | |
| 509 | mask-size: 25vmax; | |
| 510 | } | |
| 511 | 100% { | |
| 512 | mask-size: 750vmax; | |
| 513 | } | |
| 514 | } | |
| 515 | ||
| 516 | @keyframes scale-fast { | |
| 517 | 0% { | |
| 518 | mask-size: 0; | |
| 519 | } | |
| 520 | 10% { | |
| 521 | mask-size: 25vmax; | |
| 522 | } | |
| 523 | 87.5% { | |
| 524 | mask-size: 25vmax; | |
| 525 | } | |
| 526 | 100% { | |
| 527 | mask-size: 750vmax; | |
| 528 | } | |
| 529 | } | |
| 484 | 530 | |
| 485 | 531 | /* auto-height */ |
| 486 | 532 | .VPSidebarItem { |
| @@ -699,9 +745,8 @@ table tr:nth-child(odd) { | ||
| 699 | 745 | |
| 700 | 746 | & > .menu, |
| 701 | 747 | & > .VPLocalNavOutlineDropdown > button { |
| 702 | @apply bg-white! px-2 py-0.75 rounded-xl border | |
| 703 | border-neutral-700/10 dark:border-neutral-300/10; | |
| 704 | .dark & { background-color: #0d0e11 !important; } | |
| 748 | @apply bg-white/80! dark:bg-neutral-800/80! px-2 py-0.75 rounded-xl border | |
| 749 | border-neutral-700/10 dark:border-neutral-300/10 backdrop-blur-md; | |
| 705 | 750 | } |
| 706 | 751 | |
| 707 | 752 | & > .VPLocalNavOutlineDropdown { |
| @@ -709,11 +754,12 @@ table tr:nth-child(odd) { | ||
| 709 | 754 | |
| 710 | 755 | & > .items { |
| 711 | 756 | @apply top-10 right-4 md:right-0 max-w-[calc(100%-32px)] sm:max-w-sm |
| 712 | bg-white! p-1 rounded-2xl border | |
| 713 | border-neutral-700/10 dark:border-neutral-300/10 | |
| 757 | bg-white/75! dark:bg-neutral-800/75! p-1 rounded-2xl border | |
| 758 | border-neutral-700/10 dark:border-neutral-300/10 backdrop-blur-md | |
| 714 | 759 | shadow-2xl shadow-black/5; |
| 715 | 760 | left: unset; |
| 716 | .dark & { background-color: #0d0e11 !important; } | |
| 761 | transition-duration: 0.5s; | |
| 762 | transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); | |
| 717 | 763 | |
| 718 | 764 | & > .header { |
| 719 | 765 | @apply h-9 mb-2 bg-transparent; |
| @@ -787,7 +833,7 @@ table tr:nth-child(odd) { | ||
| 787 | 833 | } |
| 788 | 834 | |
| 789 | 835 | .VPNavBar { |
| 790 | @apply border-0 bg-white/60 dark:bg-neutral-900/60; | |
| 836 | @apply border-0 bg-white/60 dark:bg-neutral-900/60 transition-colors; | |
| 791 | 837 | |
| 792 | 838 | & > .container { |
| 793 | 839 | & > .content, |
| @@ -880,11 +926,10 @@ table tr:nth-child(odd) { | ||
| 880 | 926 | } |
| 881 | 927 | |
| 882 | 928 | @media (max-width: 959.9px) { |
| 883 | @apply max-w-68 translate-x-2 translate-y-2 p-1! bg-white! | |
| 884 | border dark:border-neutral-700 border-neutral-200 | |
| 885 | rounded-3xl shadow-lg overflow-x-hidden overflow-y-auto | |
| 929 | @apply max-w-68 translate-x-2 translate-y-2 p-1! bg-white/85 | |
| 930 | dark:bg-neutral-800/85 border dark:border-neutral-700 border-neutral-200 | |
| 931 | rounded-3xl backdrop-blur shadow-lg overflow-x-hidden overflow-y-auto | |
| 886 | 932 | max-h-dvh; |
| 887 | .dark & { background-color: #0d0e11 !important; } | |
| 888 | 933 | height: calc(100dvh - 1rem); |
| 889 | 934 | |
| 890 | 935 | & > .nav { |
| @@ -910,8 +955,7 @@ table tr:nth-child(odd) { | ||
| 910 | 955 | |
| 911 | 956 | & > .shell { |
| 912 | 957 | /* 688px is the max-width of the content (Vitepress default) */ |
| 913 | --uno: "gap-0! md:max-w-[688px] px-0! pt-0.5! md:translate-x-2 bg-white! md:bg-white! md:rounded-2xl! md:border dark:border-neutral-700 md:shadow-xl shadow-black/5"; | |
| 914 | .dark & { background-color: #0d0e11 !important; } | |
| 958 | --uno: "gap-0! md:max-w-[688px] px-0! pt-0.5! md:translate-x-2 bg-white! md:bg-white/70! dark:bg-neutral-900! md:dark:bg-neutral-900/90! md:backdrop-blur-xl md:rounded-2xl! md:border dark:border-neutral-700 md:shadow-xl shadow-black/5"; | |
| 915 | 959 | |
| 916 | 960 | & > .search-bar { |
| 917 | 961 | --uno: "w-full py-1.5 px-2 border-0 border-b border-neutral-400/25! dark:border-neutral-600/65! rounded-none"; |
| @@ -983,13 +1027,12 @@ table tr:nth-child(odd) { | ||
| 983 | 1027 | } |
| 984 | 1028 | |
| 985 | 1029 | .VPNavBarMenuGroup > .menu { |
| 986 | @apply top-12 rounded-2xl; | |
| 1030 | @apply top-12 backdrop-blur-xl rounded-2xl; | |
| 987 | 1031 | will-change: opacity; |
| 988 | 1032 | |
| 989 | 1033 | & > .VPMenu { |
| 990 | @apply bg-white! p-1 border border-neutral-100 | |
| 1034 | @apply bg-white/80! dark:bg-neutral-700/80! p-1 border border-neutral-100 | |
| 991 | 1035 | dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5; |
| 992 | .dark & { background-color: #0d0e11 !important; } | |
| 993 | 1036 | |
| 994 | 1037 | & > .items { |
| 995 | 1038 | & > .VPMenuLink > .VPLink { |
| @@ -1001,13 +1044,12 @@ table tr:nth-child(odd) { | ||
| 1001 | 1044 | } |
| 1002 | 1045 | |
| 1003 | 1046 | .VPNavBarExtra.extra > .menu { |
| 1004 | @apply top-12 rounded-2xl; | |
| 1047 | @apply top-12 backdrop-blur-xl rounded-2xl; | |
| 1005 | 1048 | will-change: opacity; |
| 1006 | 1049 | |
| 1007 | 1050 | & > .VPMenu { |
| 1008 | @apply bg-white! border border-neutral-100 | |
| 1051 | @apply bg-white/80! dark:bg-neutral-700/80! border border-neutral-100 | |
| 1009 | 1052 | dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5; |
| 1010 | .dark & { background-color: #0d0e11 !important; } | |
| 1011 | 1053 | } |
| 1012 | 1054 | } |
| 1013 | 1055 | |
| @@ -1023,8 +1065,7 @@ table tr:nth-child(odd) { | ||
| 1023 | 1065 | |
| 1024 | 1066 | & > .VPFlyout.VPNavBarMenuGroup > .button, |
| 1025 | 1067 | & > a { |
| 1026 | @apply bg-white!; | |
| 1027 | .dark & { background-color: #0d0e11 !important; } | |
| 1068 | @apply backdrop-blur-lg bg-white/80 dark:bg-neutral-900/70; | |
| 1028 | 1069 | } |
| 1029 | 1070 | |
| 1030 | 1071 | /* Skip screen reader content */ |
| @@ -1035,8 +1076,7 @@ table tr:nth-child(odd) { | ||
| 1035 | 1076 | } |
| 1036 | 1077 | |
| 1037 | 1078 | .VPNavBarAppearance.appearance { |
| 1038 | @apply h-11 bg-white! rounded-l-3xl; | |
| 1039 | .dark & { background-color: #0d0e11 !important; } | |
| 1079 | @apply h-11 bg-white/80 dark:bg-neutral-900/70 backdrop-blur-lg rounded-l-3xl; | |
| 1040 | 1080 | |
| 1041 | 1081 | &::before { |
| 1042 | 1082 | @apply hidden; |
| @@ -1044,17 +1084,15 @@ table tr:nth-child(odd) { | ||
| 1044 | 1084 | } |
| 1045 | 1085 | |
| 1046 | 1086 | .VPSocialLinks.VPNavBarSocialLinks.social-links { |
| 1047 | @apply h-11 pr-0! pl-1.5! bg-white!; | |
| 1048 | .dark & { background-color: #0d0e11 !important; } | |
| 1087 | @apply h-11 pr-0! pl-1.5! bg-white/80 dark:bg-neutral-900/70 backdrop-blur-lg; | |
| 1049 | 1088 | } |
| 1050 | 1089 | |
| 1051 | 1090 | /* ... mobile */ |
| 1052 | 1091 | .VPFlyout.VPNavBarExtra.extra { |
| 1053 | @apply h-11 bg-white!; | |
| 1054 | .dark & { background-color: #0d0e11 !important; } | |
| 1092 | @apply h-11 bg-white/80 dark:bg-neutral-900/70; | |
| 1055 | 1093 | |
| 1056 | 1094 | & > .button { |
| 1057 | @apply h-10.5 rounded-r-3xl!; | |
| 1095 | @apply h-10.5 backdrop-blur-lg rounded-r-3xl!; | |
| 1058 | 1096 | } |
| 1059 | 1097 | } |
| 1060 | 1098 | |
| @@ -1063,7 +1101,7 @@ table tr:nth-child(odd) { | ||
| 1063 | 1101 | #local-search { |
| 1064 | 1102 | & > .DocSearch-Button { |
| 1065 | 1103 | @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98] |
| 1066 | h-10 rounded-xl lg:ml-2 sm:bg-red-50; | |
| 1104 | transition-all! h-10 rounded-xl backdrop-blur-sm lg:ml-2 sm:bg-red-50; | |
| 1067 | 1105 | color: var(--docsearch-secondary-text-color); |
| 1068 | 1106 | |
| 1069 | 1107 | @media (width >= 40rem /* 640px */) { |
| @@ -1232,8 +1270,8 @@ table tr:nth-child(odd) { | ||
| 1232 | 1270 | overflow-y: auto; |
| 1233 | 1271 | overscroll-behavior: contain; |
| 1234 | 1272 | @extend %thin-scrollbar; |
| 1273 | ||
| 1235 | 1274 | .dark & { |
| 1236 | background-color: #0d0e11; | |
| 1237 | 1275 | box-shadow: var(--vp-shadow-1); |
| 1238 | 1276 | } |
| 1239 | 1277 | } |
| @@ -1247,7 +1285,6 @@ table tr:nth-child(odd) { | ||
| 1247 | 1285 | align-items: center; |
| 1248 | 1286 | background-color: var(--vp-sidebar-bg-color); |
| 1249 | 1287 | border-bottom: 1px solid var(--vp-c-divider); |
| 1250 | .dark & { background-color: #0d0e11; } | |
| 1251 | 1288 | } |
| 1252 | 1289 | |
| 1253 | 1290 | .home-sidebar-logo { |
| @@ -1269,7 +1306,24 @@ table tr:nth-child(odd) { | ||
| 1269 | 1306 | padding-top: 10px; |
| 1270 | 1307 | } |
| 1271 | 1308 | |
| 1272 | /* Desktop sidebar transitions removed */ | |
| 1309 | /* Desktop sidebar transitions */ | |
| 1310 | .home-fade-enter-active, | |
| 1311 | .home-fade-leave-active { | |
| 1312 | transition: opacity 0.25s; | |
| 1313 | } | |
| 1314 | ||
| 1315 | .home-fade-enter-from, | |
| 1316 | .home-fade-leave-to { | |
| 1317 | opacity: 0; | |
| 1318 | } | |
| 1319 | ||
| 1320 | .home-slide-enter-active { | |
| 1321 | transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.25s; | |
| 1322 | } | |
| 1323 | ||
| 1324 | .home-slide-leave-active { | |
| 1325 | transition: transform 0.25s ease, opacity 0.5s; | |
| 1326 | } | |
| 1273 | 1327 | |
| 1274 | 1328 | .home-slide-enter-from, |
| 1275 | 1329 | .home-slide-leave-to { |
| @@ -1284,10 +1338,9 @@ table tr:nth-child(odd) { | ||
| 1284 | 1338 | |
| 1285 | 1339 | /* Home NavScreen: restyle as left-aligned floating panel matching VPSidebar */ |
| 1286 | 1340 | .VPNavScreen:has(.home-screen-nav) { |
| 1287 | @apply bg-white! | |
| 1341 | @apply bg-white/85 dark:bg-neutral-800/85 | |
| 1288 | 1342 | border dark:border-neutral-700 border-neutral-200 |
| 1289 | rounded-3xl shadow-lg; | |
| 1290 | .dark & { background-color: #0d0e11 !important; } | |
| 1343 | rounded-3xl backdrop-blur shadow-lg; | |
| 1291 | 1344 | padding: 0 !important; |
| 1292 | 1345 | left: 0.5rem !important; |
| 1293 | 1346 | right: auto !important; |
| @@ -1322,7 +1375,21 @@ table tr:nth-child(odd) { | ||
| 1322 | 1375 | padding-top: 8px; |
| 1323 | 1376 | } |
| 1324 | 1377 | |
| 1325 | /* NavScreen slide transition removed */ | |
| 1378 | /* Override NavScreen fade transition to slide-from-left on home */ | |
| 1379 | .VPNavScreen:has(.home-screen-nav) { | |
| 1380 | &.fade-enter-active, | |
| 1381 | &.fade-leave-active { | |
| 1382 | transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.25s !important; | |
| 1383 | ||
| 1384 | .container { transform: none !important; } | |
| 1385 | } | |
| 1386 | ||
| 1387 | &.fade-enter-from, | |
| 1388 | &.fade-leave-to { | |
| 1389 | transform: translateX(-100%) !important; | |
| 1390 | opacity: 0 !important; | |
| 1391 | } | |
| 1392 | } | |
| 1326 | 1393 | |
| 1327 | 1394 | /* Icon tooltips (hover on desktop, tap on mobile) */ |
| 1328 | 1395 | .icon-tip { |