Commit 7a6fd83ab4

7a6fd83ab43c14dbd42f45098667893452ca6044

parent: bd161d7653

Unregistered key

tasky <75871323+taskylizard@users.noreply.github.com> · 2026-05-14 17:19 UTC
committer: <noreply@github.com>

Revert "Update style.scss"

This reverts commit 76bb7c892d3f6ef61a0647e1033f1919ddca8ec4.

Layout: unified · split

docs/.vitepress/theme/styles/style.scss +104 −37
@@ -480,7 +480,53 @@ table tr:nth-child(odd) {
480480 }
481481}
482482
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}
484530
485531/* auto-height */
486532.VPSidebarItem {
@@ -699,9 +745,8 @@ table tr:nth-child(odd) {
699745
700746 & > .menu,
701747 & > .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;
705750 }
706751
707752 & > .VPLocalNavOutlineDropdown {
@@ -709,11 +754,12 @@ table tr:nth-child(odd) {
709754
710755 & > .items {
711756 @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
714759 shadow-2xl shadow-black/5;
715760 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);
717763
718764 & > .header {
719765 @apply h-9 mb-2 bg-transparent;
@@ -787,7 +833,7 @@ table tr:nth-child(odd) {
787833}
788834
789835.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;
791837
792838 & > .container {
793839 & > .content,
@@ -880,11 +926,10 @@ table tr:nth-child(odd) {
880926 }
881927
882928 @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
886932 max-h-dvh;
887 .dark & { background-color: #0d0e11 !important; }
888933 height: calc(100dvh - 1rem);
889934
890935 & > .nav {
@@ -910,8 +955,7 @@ table tr:nth-child(odd) {
910955
911956 & > .shell {
912957 /* 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";
915959
916960 & > .search-bar {
917961 --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) {
9831027}
9841028
9851029.VPNavBarMenuGroup > .menu {
986 @apply top-12 rounded-2xl;
1030 @apply top-12 backdrop-blur-xl rounded-2xl;
9871031 will-change: opacity;
9881032
9891033 & > .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
9911035 dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5;
992 .dark & { background-color: #0d0e11 !important; }
9931036
9941037 & > .items {
9951038 & > .VPMenuLink > .VPLink {
@@ -1001,13 +1044,12 @@ table tr:nth-child(odd) {
10011044}
10021045
10031046.VPNavBarExtra.extra > .menu {
1004 @apply top-12 rounded-2xl;
1047 @apply top-12 backdrop-blur-xl rounded-2xl;
10051048 will-change: opacity;
10061049
10071050 & > .VPMenu {
1008 @apply bg-white! border border-neutral-100
1051 @apply bg-white/80! dark:bg-neutral-700/80! border border-neutral-100
10091052 dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5;
1010 .dark & { background-color: #0d0e11 !important; }
10111053 }
10121054}
10131055
@@ -1023,8 +1065,7 @@ table tr:nth-child(odd) {
10231065
10241066 & > .VPFlyout.VPNavBarMenuGroup > .button,
10251067 & > a {
1026 @apply bg-white!;
1027 .dark & { background-color: #0d0e11 !important; }
1068 @apply backdrop-blur-lg bg-white/80 dark:bg-neutral-900/70;
10281069 }
10291070
10301071 /* Skip screen reader content */
@@ -1035,8 +1076,7 @@ table tr:nth-child(odd) {
10351076}
10361077
10371078.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;
10401080
10411081 &::before {
10421082 @apply hidden;
@@ -1044,17 +1084,15 @@ table tr:nth-child(odd) {
10441084}
10451085
10461086.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;
10491088}
10501089
10511090/* ... mobile */
10521091.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;
10551093
10561094 & > .button {
1057 @apply h-10.5 rounded-r-3xl!;
1095 @apply h-10.5 backdrop-blur-lg rounded-r-3xl!;
10581096 }
10591097}
10601098
@@ -1063,7 +1101,7 @@ table tr:nth-child(odd) {
10631101#local-search {
10641102 & > .DocSearch-Button {
10651103 @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;
10671105 color: var(--docsearch-secondary-text-color);
10681106
10691107 @media (width >= 40rem /* 640px */) {
@@ -1232,8 +1270,8 @@ table tr:nth-child(odd) {
12321270 overflow-y: auto;
12331271 overscroll-behavior: contain;
12341272 @extend %thin-scrollbar;
1273
12351274 .dark & {
1236 background-color: #0d0e11;
12371275 box-shadow: var(--vp-shadow-1);
12381276 }
12391277}
@@ -1247,7 +1285,6 @@ table tr:nth-child(odd) {
12471285 align-items: center;
12481286 background-color: var(--vp-sidebar-bg-color);
12491287 border-bottom: 1px solid var(--vp-c-divider);
1250 .dark & { background-color: #0d0e11; }
12511288}
12521289
12531290.home-sidebar-logo {
@@ -1269,7 +1306,24 @@ table tr:nth-child(odd) {
12691306 padding-top: 10px;
12701307}
12711308
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}
12731327
12741328.home-slide-enter-from,
12751329.home-slide-leave-to {
@@ -1284,10 +1338,9 @@ table tr:nth-child(odd) {
12841338
12851339/* Home NavScreen: restyle as left-aligned floating panel matching VPSidebar */
12861340.VPNavScreen:has(.home-screen-nav) {
1287 @apply bg-white!
1341 @apply bg-white/85 dark:bg-neutral-800/85
12881342 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;
12911344 padding: 0 !important;
12921345 left: 0.5rem !important;
12931346 right: auto !important;
@@ -1322,7 +1375,21 @@ table tr:nth-child(odd) {
13221375 padding-top: 8px;
13231376}
13241377
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}
13261393
13271394/* Icon tooltips (hover on desktop, tap on mobile) */
13281395.icon-tip {