Commit 76bb7c892d
Unsigned
Layout: unified · split
docs/.vitepress/theme/styles/style.scss +37 −104
| @@ -496,53 +496,7 @@ table tr:nth-child(odd) { | |||
| 496 | } | 496 | } |
| 497 | } | 497 | } |
| 498 | 498 | ||
| 499 | ::view-transition-group(root) { | 499 | /* View transition animations removed */ |
| 500 | animation-timing-function: $ease-in-expo; | ||
| 501 | z-index: 100; | ||
| 502 | } | ||
| 503 | |||
| 504 | ::view-transition-new(root) { | ||
| 505 | animation: var(--switch-name) var(--switch-duration); | ||
| 506 | animation-fill-mode: both; | ||
| 507 | animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0); | ||
| 508 | } | ||
| 509 | |||
| 510 | ::view-transition-old(root), | ||
| 511 | .dark::view-transition-old(root) { | ||
| 512 | animation: var(--switch-name) var(--switch-duration); | ||
| 513 | animation-fill-mode: both; | ||
| 514 | animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0); | ||
| 515 | } | ||
| 516 | |||
| 517 | @keyframes scale { | ||
| 518 | 0% { | ||
| 519 | mask-size: 0; | ||
| 520 | } | ||
| 521 | 10% { | ||
| 522 | mask-size: 25vmax; | ||
| 523 | } | ||
| 524 | 90% { | ||
| 525 | mask-size: 25vmax; | ||
| 526 | } | ||
| 527 | 100% { | ||
| 528 | mask-size: 750vmax; | ||
| 529 | } | ||
| 530 | } | ||
| 531 | |||
| 532 | @keyframes scale-fast { | ||
| 533 | 0% { | ||
| 534 | mask-size: 0; | ||
| 535 | } | ||
| 536 | 10% { | ||
| 537 | mask-size: 25vmax; | ||
| 538 | } | ||
| 539 | 87.5% { | ||
| 540 | mask-size: 25vmax; | ||
| 541 | } | ||
| 542 | 100% { | ||
| 543 | mask-size: 750vmax; | ||
| 544 | } | ||
| 545 | } | ||
| 546 | 500 | ||
| 547 | /* auto-height */ | 501 | /* auto-height */ |
| 548 | .VPSidebarItem { | 502 | .VPSidebarItem { |
| @@ -761,8 +715,9 @@ table tr:nth-child(odd) { | |||
| 761 | 715 | ||
| 762 | & > .menu, | 716 | & > .menu, |
| 763 | & > .VPLocalNavOutlineDropdown > button { | 717 | & > .VPLocalNavOutlineDropdown > button { |
| 764 | @apply bg-white/80! dark:bg-neutral-800/80! px-2 py-0.75 rounded-xl border | 718 | @apply bg-white! px-2 py-0.75 rounded-xl border |
| 765 | border-neutral-700/10 dark:border-neutral-300/10 backdrop-blur-md; | 719 | border-neutral-700/10 dark:border-neutral-300/10; |
| 720 | .dark & { background-color: #0d0e11 !important; } | ||
| 766 | } | 721 | } |
| 767 | 722 | ||
| 768 | & > .VPLocalNavOutlineDropdown { | 723 | & > .VPLocalNavOutlineDropdown { |
| @@ -770,12 +725,11 @@ table tr:nth-child(odd) { | |||
| 770 | 725 | ||
| 771 | & > .items { | 726 | & > .items { |
| 772 | @apply top-10 right-4 md:right-0 max-w-[calc(100%-32px)] sm:max-w-sm | 727 | @apply top-10 right-4 md:right-0 max-w-[calc(100%-32px)] sm:max-w-sm |
| 773 | bg-white/75! dark:bg-neutral-800/75! p-1 rounded-2xl border | 728 | bg-white! p-1 rounded-2xl border |
| 774 | border-neutral-700/10 dark:border-neutral-300/10 backdrop-blur-md | 729 | border-neutral-700/10 dark:border-neutral-300/10 |
| 775 | shadow-2xl shadow-black/5; | 730 | shadow-2xl shadow-black/5; |
| 776 | left: unset; | 731 | left: unset; |
| 777 | transition-duration: 0.5s; | 732 | .dark & { background-color: #0d0e11 !important; } |
| 778 | transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); | ||
| 779 | 733 | ||
| 780 | & > .header { | 734 | & > .header { |
| 781 | @apply h-9 mb-2 bg-transparent; | 735 | @apply h-9 mb-2 bg-transparent; |
| @@ -849,7 +803,7 @@ table tr:nth-child(odd) { | |||
| 849 | } | 803 | } |
| 850 | 804 | ||
| 851 | .VPNavBar { | 805 | .VPNavBar { |
| 852 | @apply border-0 bg-white/60 dark:bg-neutral-900/60 transition-colors; | 806 | @apply border-0 bg-white/60 dark:bg-neutral-900/60; |
| 853 | 807 | ||
| 854 | & > .container { | 808 | & > .container { |
| 855 | & > .content, | 809 | & > .content, |
| @@ -942,10 +896,11 @@ table tr:nth-child(odd) { | |||
| 942 | } | 896 | } |
| 943 | 897 | ||
| 944 | @media (max-width: 959.9px) { | 898 | @media (max-width: 959.9px) { |
| 945 | @apply max-w-68 translate-x-2 translate-y-2 p-1! bg-white/85 | 899 | @apply max-w-68 translate-x-2 translate-y-2 p-1! bg-white! |
| 946 | dark:bg-neutral-800/85 border dark:border-neutral-700 border-neutral-200 | 900 | border dark:border-neutral-700 border-neutral-200 |
| 947 | rounded-3xl backdrop-blur shadow-lg overflow-x-hidden overflow-y-auto | 901 | rounded-3xl shadow-lg overflow-x-hidden overflow-y-auto |
| 948 | max-h-dvh; | 902 | max-h-dvh; |
| 903 | .dark & { background-color: #0d0e11 !important; } | ||
| 949 | height: calc(100dvh - 1rem); | 904 | height: calc(100dvh - 1rem); |
| 950 | 905 | ||
| 951 | & > .nav { | 906 | & > .nav { |
| @@ -971,7 +926,8 @@ table tr:nth-child(odd) { | |||
| 971 | 926 | ||
| 972 | & > .shell { | 927 | & > .shell { |
| 973 | /* 688px is the max-width of the content (Vitepress default) */ | 928 | /* 688px is the max-width of the content (Vitepress default) */ |
| 974 | --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"; | 929 | --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"; |
| 930 | .dark & { background-color: #0d0e11 !important; } | ||
| 975 | 931 | ||
| 976 | & > .search-bar { | 932 | & > .search-bar { |
| 977 | --uno: "w-full py-1.5 px-2 border-0 border-b border-neutral-400/25! dark:border-neutral-600/65! rounded-none"; | 933 | --uno: "w-full py-1.5 px-2 border-0 border-b border-neutral-400/25! dark:border-neutral-600/65! rounded-none"; |
| @@ -1043,12 +999,13 @@ table tr:nth-child(odd) { | |||
| 1043 | } | 999 | } |
| 1044 | 1000 | ||
| 1045 | .VPNavBarMenuGroup > .menu { | 1001 | .VPNavBarMenuGroup > .menu { |
| 1046 | @apply top-12 backdrop-blur-xl rounded-2xl; | 1002 | @apply top-12 rounded-2xl; |
| 1047 | will-change: opacity; | 1003 | will-change: opacity; |
| 1048 | 1004 | ||
| 1049 | & > .VPMenu { | 1005 | & > .VPMenu { |
| 1050 | @apply bg-white/80! dark:bg-neutral-700/80! p-1 border border-neutral-100 | 1006 | @apply bg-white! p-1 border border-neutral-100 |
| 1051 | dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5; | 1007 | dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5; |
| 1008 | .dark & { background-color: #0d0e11 !important; } | ||
| 1052 | 1009 | ||
| 1053 | & > .items { | 1010 | & > .items { |
| 1054 | & > .VPMenuLink > .VPLink { | 1011 | & > .VPMenuLink > .VPLink { |
| @@ -1060,12 +1017,13 @@ table tr:nth-child(odd) { | |||
| 1060 | } | 1017 | } |
| 1061 | 1018 | ||
| 1062 | .VPNavBarExtra.extra > .menu { | 1019 | .VPNavBarExtra.extra > .menu { |
| 1063 | @apply top-12 backdrop-blur-xl rounded-2xl; | 1020 | @apply top-12 rounded-2xl; |
| 1064 | will-change: opacity; | 1021 | will-change: opacity; |
| 1065 | 1022 | ||
| 1066 | & > .VPMenu { | 1023 | & > .VPMenu { |
| 1067 | @apply bg-white/80! dark:bg-neutral-700/80! border border-neutral-100 | 1024 | @apply bg-white! border border-neutral-100 |
| 1068 | dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5; | 1025 | dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5; |
| 1026 | .dark & { background-color: #0d0e11 !important; } | ||
| 1069 | } | 1027 | } |
| 1070 | } | 1028 | } |
| 1071 | 1029 | ||
| @@ -1081,7 +1039,8 @@ table tr:nth-child(odd) { | |||
| 1081 | 1039 | ||
| 1082 | & > .VPFlyout.VPNavBarMenuGroup > .button, | 1040 | & > .VPFlyout.VPNavBarMenuGroup > .button, |
| 1083 | & > a { | 1041 | & > a { |
| 1084 | @apply backdrop-blur-lg bg-white/80 dark:bg-neutral-900/70; | 1042 | @apply bg-white!; |
| 1043 | .dark & { background-color: #0d0e11 !important; } | ||
| 1085 | } | 1044 | } |
| 1086 | 1045 | ||
| 1087 | /* Skip screen reader content */ | 1046 | /* Skip screen reader content */ |
| @@ -1092,7 +1051,8 @@ table tr:nth-child(odd) { | |||
| 1092 | } | 1051 | } |
| 1093 | 1052 | ||
| 1094 | .VPNavBarAppearance.appearance { | 1053 | .VPNavBarAppearance.appearance { |
| 1095 | @apply h-11 bg-white/80 dark:bg-neutral-900/70 backdrop-blur-lg rounded-l-3xl; | 1054 | @apply h-11 bg-white! rounded-l-3xl; |
| 1055 | .dark & { background-color: #0d0e11 !important; } | ||
| 1096 | 1056 | ||
| 1097 | &::before { | 1057 | &::before { |
| 1098 | @apply hidden; | 1058 | @apply hidden; |
| @@ -1100,15 +1060,17 @@ table tr:nth-child(odd) { | |||
| 1100 | } | 1060 | } |
| 1101 | 1061 | ||
| 1102 | .VPSocialLinks.VPNavBarSocialLinks.social-links { | 1062 | .VPSocialLinks.VPNavBarSocialLinks.social-links { |
| 1103 | @apply h-11 pr-0! pl-1.5! bg-white/80 dark:bg-neutral-900/70 backdrop-blur-lg; | 1063 | @apply h-11 pr-0! pl-1.5! bg-white!; |
| 1064 | .dark & { background-color: #0d0e11 !important; } | ||
| 1104 | } | 1065 | } |
| 1105 | 1066 | ||
| 1106 | /* ... mobile */ | 1067 | /* ... mobile */ |
| 1107 | .VPFlyout.VPNavBarExtra.extra { | 1068 | .VPFlyout.VPNavBarExtra.extra { |
| 1108 | @apply h-11 bg-white/80 dark:bg-neutral-900/70; | 1069 | @apply h-11 bg-white!; |
| 1070 | .dark & { background-color: #0d0e11 !important; } | ||
| 1109 | 1071 | ||
| 1110 | & > .button { | 1072 | & > .button { |
| 1111 | @apply h-10.5 backdrop-blur-lg rounded-r-3xl!; | 1073 | @apply h-10.5 rounded-r-3xl!; |
| 1112 | } | 1074 | } |
| 1113 | } | 1075 | } |
| 1114 | 1076 | ||
| @@ -1117,7 +1079,7 @@ table tr:nth-child(odd) { | |||
| 1117 | #local-search { | 1079 | #local-search { |
| 1118 | & > .DocSearch-Button { | 1080 | & > .DocSearch-Button { |
| 1119 | @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98] | 1081 | @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98] |
| 1120 | transition-all! h-10 rounded-xl backdrop-blur-sm lg:ml-2 sm:bg-red-50; | 1082 | h-10 rounded-xl lg:ml-2 sm:bg-red-50; |
| 1121 | color: var(--docsearch-secondary-text-color); | 1083 | color: var(--docsearch-secondary-text-color); |
| 1122 | 1084 | ||
| 1123 | @media (width >= 40rem /* 640px */) { | 1085 | @media (width >= 40rem /* 640px */) { |
| @@ -1286,8 +1248,8 @@ table tr:nth-child(odd) { | |||
| 1286 | overflow-y: auto; | 1248 | overflow-y: auto; |
| 1287 | overscroll-behavior: contain; | 1249 | overscroll-behavior: contain; |
| 1288 | @extend %thin-scrollbar; | 1250 | @extend %thin-scrollbar; |
| 1289 | |||
| 1290 | .dark & { | 1251 | .dark & { |
| 1252 | background-color: #0d0e11; | ||
| 1291 | box-shadow: var(--vp-shadow-1); | 1253 | box-shadow: var(--vp-shadow-1); |
| 1292 | } | 1254 | } |
| 1293 | } | 1255 | } |
| @@ -1301,6 +1263,7 @@ table tr:nth-child(odd) { | |||
| 1301 | align-items: center; | 1263 | align-items: center; |
| 1302 | background-color: var(--vp-sidebar-bg-color); | 1264 | background-color: var(--vp-sidebar-bg-color); |
| 1303 | border-bottom: 1px solid var(--vp-c-divider); | 1265 | border-bottom: 1px solid var(--vp-c-divider); |
| 1266 | .dark & { background-color: #0d0e11; } | ||
| 1304 | } | 1267 | } |
| 1305 | 1268 | ||
| 1306 | .home-sidebar-logo { | 1269 | .home-sidebar-logo { |
| @@ -1322,24 +1285,7 @@ table tr:nth-child(odd) { | |||
| 1322 | padding-top: 10px; | 1285 | padding-top: 10px; |
| 1323 | } | 1286 | } |
| 1324 | 1287 | ||
| 1325 | /* Desktop sidebar transitions */ | 1288 | /* Desktop sidebar transitions removed */ |
| 1326 | .home-fade-enter-active, | ||
| 1327 | .home-fade-leave-active { | ||
| 1328 | transition: opacity 0.25s; | ||
| 1329 | } | ||
| 1330 | |||
| 1331 | .home-fade-enter-from, | ||
| 1332 | .home-fade-leave-to { | ||
| 1333 | opacity: 0; | ||
| 1334 | } | ||
| 1335 | |||
| 1336 | .home-slide-enter-active { | ||
| 1337 | transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.25s; | ||
| 1338 | } | ||
| 1339 | |||
| 1340 | .home-slide-leave-active { | ||
| 1341 | transition: transform 0.25s ease, opacity 0.5s; | ||
| 1342 | } | ||
| 1343 | 1289 | ||
| 1344 | .home-slide-enter-from, | 1290 | .home-slide-enter-from, |
| 1345 | .home-slide-leave-to { | 1291 | .home-slide-leave-to { |
| @@ -1354,9 +1300,10 @@ table tr:nth-child(odd) { | |||
| 1354 | 1300 | ||
| 1355 | /* Home NavScreen: restyle as left-aligned floating panel matching VPSidebar */ | 1301 | /* Home NavScreen: restyle as left-aligned floating panel matching VPSidebar */ |
| 1356 | .VPNavScreen:has(.home-screen-nav) { | 1302 | .VPNavScreen:has(.home-screen-nav) { |
| 1357 | @apply bg-white/85 dark:bg-neutral-800/85 | 1303 | @apply bg-white! |
| 1358 | border dark:border-neutral-700 border-neutral-200 | 1304 | border dark:border-neutral-700 border-neutral-200 |
| 1359 | rounded-3xl backdrop-blur shadow-lg; | 1305 | rounded-3xl shadow-lg; |
| 1306 | .dark & { background-color: #0d0e11 !important; } | ||
| 1360 | padding: 0 !important; | 1307 | padding: 0 !important; |
| 1361 | left: 0.5rem !important; | 1308 | left: 0.5rem !important; |
| 1362 | right: auto !important; | 1309 | right: auto !important; |
| @@ -1391,21 +1338,7 @@ table tr:nth-child(odd) { | |||
| 1391 | padding-top: 8px; | 1338 | padding-top: 8px; |
| 1392 | } | 1339 | } |
| 1393 | 1340 | ||
| 1394 | /* Override NavScreen fade transition to slide-from-left on home */ | 1341 | /* NavScreen slide transition removed */ |
| 1395 | .VPNavScreen:has(.home-screen-nav) { | ||
| 1396 | &.fade-enter-active, | ||
| 1397 | &.fade-leave-active { | ||
| 1398 | transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.25s !important; | ||
| 1399 | |||
| 1400 | .container { transform: none !important; } | ||
| 1401 | } | ||
| 1402 | |||
| 1403 | &.fade-enter-from, | ||
| 1404 | &.fade-leave-to { | ||
| 1405 | transform: translateX(-100%) !important; | ||
| 1406 | opacity: 0 !important; | ||
| 1407 | } | ||
| 1408 | } | ||
| 1409 | 1342 | ||
| 1410 | /* Icon tooltips (hover on desktop, tap on mobile) */ | 1343 | /* Icon tooltips (hover on desktop, tap on mobile) */ |
| 1411 | .icon-tip { | 1344 | .icon-tip { |