docs/.vitepress/theme/styles/style.scss

33a4e4c6fa7d78deb08b14d2b151ff82c28e461a
wotaku/docs/.vitepress/theme/styles/style.scss history · blame · raw

1774 lines · 42577 bytes

   1/**
   2 * All Rights Reserved
   3 *
   4 * Copyright (c) 2025 taskylizard
   5 *
   6 * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
   7 */
   8
   9$ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  10$ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0);
  11
  12:root {
  13  --vp-c-bg: #fefbff;
  14  --vp-c-bg-alt: #f2f0f4;
  15  --vp-c-bg-elv: #f2f0f4;
  16  --vp-c-bg-soft: #f2f0f4;
  17  --vp-c-border: #c2c2c4;
  18  --vp-c-divider: #c4c6d0;
  19  --vp-c-gutter: #e2e2e3;
  20  --vp-c-text-1: #1b1b1f;
  21  --vp-c-text-2: #2f3033;
  22  --vp-c-text-3: #46464a;
  23}
  24
  25.dark {
  26  --vp-c-bg: #121316;
  27  --vp-c-bg-alt: #0d0e11;
  28  --vp-c-bg-elv: #1b1b1f;
  29  --vp-c-bg-soft: #1b1b1f;
  30  --vp-c-border: #77777a;
  31  --vp-c-divider: #222429;
  32  --vp-c-gutter: #000000;
  33  --vp-c-text-1: #e3e2e6;
  34  --vp-c-text-2: #ababaf;
  35  --vp-c-text-3: #919094;
  36}
  37
  38:root {
  39  --vp-layout-max-width: 1490px;
  40  --vp-sidebar-width: 280px;
  41  --vp-nav-logo-height: 36px;
  42
  43  /* Colors: Brand */
  44  --vp-c-brand-1: theme("colors.brand.500");
  45  --vp-c-brand-2: theme("colors.brand.600");
  46  --vp-c-brand-3: theme("colors.brand.800");
  47  --vp-c-brand-soft: color-mix(
  48    in oklch,
  49    theme("colors.brand.400") 40%,
  50    transparent
  51  );
  52
  53  /* Colors: Button */
  54  --vp-button-brand-bg: var(--vp-c-brand-1);
  55  --vp-button-brand-border: var(--vp-c-brand-soft);
  56  --vp-button-brand-text: rgba(42, 40, 47);
  57  --vp-button-brand-hover-border: var(--vp-c-brand-soft);
  58  --vp-button-brand-hover-text: rgba(42, 40, 47);
  59  --vp-button-brand-hover-bg: var(--vp-c-brand-soft);
  60  --vp-button-brand-active-border: var(--vp-c-brand-soft);
  61  --vp-button-brand-active-text: rgba(42, 40, 47);
  62  --vp-button-brand-active-bg: var(--vp-button-brand-bg);
  63  --vp-button-alt-bg: #484848;
  64  --vp-button-alt-text: #f0eeee;
  65  --vp-button-alt-hover-bg: #484848;
  66  --vp-button-alt-hover-text: #f0eeee;
  67
  68  /* Colors: Custom Block */
  69  /** Info */
  70  --vp-custom-block-info-bg: theme("colors.brand.200");
  71  --vp-custom-block-info-border: theme("colors.brand.800");
  72  --vp-custom-block-info-text: theme("colors.brand.800");
  73  --vp-custom-block-info-text-deep: theme("colors.brand.900");
  74  /** Tip */
  75  --vp-custom-block-tip-bg: theme("colors.meadow.200");
  76  --vp-custom-block-tip-border: theme("colors.meadow.800");
  77  --vp-custom-block-tip-text: theme("colors.meadow.800");
  78  --vp-custom-block-tip-text-deep: theme("colors.meadow.900");
  79  /** Warning */
  80  --vp-custom-block-warning-bg: theme("colors.merlin.200");
  81  --vp-custom-block-warning-border: theme("colors.merlin.800");
  82  --vp-custom-block-warning-text: theme("colors.merlin.800");
  83  --vp-custom-block-warning-text-deep: theme("colors.merlin.900");
  84  /** Danger */
  85  --vp-custom-block-danger-bg: theme("colors.carnation.200");
  86  --vp-custom-block-danger-border: theme("colors.carnation.800");
  87  --vp-custom-block-danger-text: theme("colors.carnation.800");
  88  --vp-custom-block-danger-text-deep: theme("colors.carnation.900");
  89
  90  --vp-badge-info-text: theme("colors.brand.200");
  91  --vp-badge-info-bg: theme("colors.brand.800");
  92  --vp-badge-tip-text: theme("colors.meadow.200");
  93  --vp-badge-tip-bg: theme("colors.meadow.800");
  94  --vp-badge-warning-text: theme("colors.merlin.200");
  95  --vp-badge-warning-bg: theme("colors.merlin.800");
  96  --vp-badge-danger-text: theme("colors.carnation.200");
  97  --vp-badge-danger-bg: theme("colors.carnation.800");
  98
  99  --vp-c-brand-nav-active: color-mix(
 100    in srgb,
 101    var(--vp-c-brand-soft) 15%,
 102    transparent 100%
 103  );
 104}
 105
 106.dark {
 107  /* Colors: Brand */
 108  --vp-c-brand-1: theme("colors.brand.400");
 109  --vp-c-brand-2: theme("colors.brand.500");
 110  --vp-c-brand-3: theme("colors.brand.700");
 111  --vp-c-brand-soft: color-mix(
 112    in oklch,
 113    theme("colors.brand.500") 20%,
 114    transparent
 115  );
 116
 117  /* Colors: Custom Block */
 118  /** Info */
 119  --vp-custom-block-info-bg: theme("colors.brand.950");
 120  --vp-custom-block-info-border: theme("colors.brand.800");
 121  --vp-custom-block-info-text: theme("colors.brand.200");
 122  --vp-custom-block-info-text-deep: theme("colors.brand.200");
 123  /** Tip */
 124  --vp-custom-block-tip-bg: theme("colors.meadow.950");
 125  --vp-custom-block-tip-border: theme("colors.meadow.800");
 126  --vp-custom-block-tip-text: theme("colors.meadow.200");
 127  --vp-custom-block-tip-text-deep: theme("colors.meadow.200");
 128  /** Warning */
 129  --vp-custom-block-warning-bg: theme("colors.merlin.950");
 130  --vp-custom-block-warning-border: theme("colors.merlin.800");
 131  --vp-custom-block-warning-text: theme("colors.merlin.200");
 132  --vp-custom-block-warning-text-deep: theme("colors.merlin.200");
 133  /** Danger */
 134  --vp-custom-block-danger-bg: theme("colors.carnation.950");
 135  --vp-custom-block-danger-border: theme("colors.carnation.800");
 136  --vp-custom-block-danger-text: theme("colors.carnation.200");
 137  --vp-custom-block-danger-text-deep: theme("colors.carnation.200");
 138
 139  --vp-badge-info-text: theme("colors.brand.200");
 140  --vp-badge-info-bg: theme("colors.brand.950");
 141  --vp-badge-tip-text: theme("colors.meadow.200");
 142  --vp-badge-tip-bg: theme("colors.meadow.950");
 143  --vp-badge-warning-text: theme("colors.merlin.200");
 144  --vp-badge-warning-bg: theme("colors.merlin.950");
 145  --vp-badge-danger-text: theme("colors.carnation.200");
 146  --vp-badge-danger-bg: theme("colors.carnation.950");
 147}
 148
 149.vp-doc a {
 150  color: var(--vp-c-brand-1);
 151  text-decoration: underline;
 152  text-underline-offset: 4px;
 153  text-decoration-style: dashed;
 154  text-decoration-thickness: 1px;
 155  text-decoration-color: transparent;
 156  -webkit-text-decoration-color: transparent;
 157  transition: text-decoration-color 0.25s;
 158
 159  &:hover {
 160    color: var(--vp-c-brand-1);
 161    text-decoration-color: var(--vp-c-brand-1);
 162    -webkit-text-decoration-color: var(--vp-c-brand-1);
 163  }
 164}
 165
 166.vp-doc .custom-block a {
 167  text-decoration: underline;
 168  text-underline-offset: 4px;
 169  text-decoration-style: dashed;
 170  text-decoration-thickness: 1px;
 171}
 172
 173::selection {
 174  background-color: theme("colors.brand.400");
 175
 176  .dark & {
 177    background-color: theme("colors.brand.800");
 178  }
 179}
 180
 181.VPFooter a {
 182  text-decoration-line: underline;
 183  text-decoration-style: dashed;
 184  text-underline-offset: 5px;
 185  transition: 0.3s;
 186
 187  &:hover {
 188    color: var(--vp-c-text-1);
 189    text-decoration-line: underline;
 190    text-decoration-style: dashed;
 191    text-underline-offset: 5px;
 192  }
 193}
 194
 195:root {
 196  --vp-home-hero-name-color: transparent;
 197  --vp-home-hero-name-background: -webkit-linear-gradient(
 198    -30deg,
 199    #62cff4,
 200    #1473e6
 201  );
 202  --vp-home-hero-image-background-image: none;
 203  --vp-home-hero-image-filter: none;
 204}
 205
 206.VPNavBarTitle .title {
 207  font-size: 18px;
 208  font-weight: 600;
 209}
 210
 211.medium-zoom-overlay {
 212  background-color: var(--vp-c-bg) !important;
 213  z-index: 100;
 214}
 215
 216.medium-zoom-overlay ~ img {
 217  z-index: 101;
 218}
 219
 220.medium-zoom--opened .medium-zoom-overlay {
 221  opacity: 0.98 !important;
 222}
 223
 224.video_wrapper {
 225  position: relative;
 226  padding-bottom: 56.25%;
 227}
 228
 229iframe {
 230  position: absolute;
 231  top: 0;
 232  left: 0;
 233  width: 100%;
 234  height: 100%;
 235}
 236
 237main figure {
 238  margin: 2rem 0;
 239  transition: transform var(--vp-tt);
 240}
 241
 242.vp-doc > div > p > img {
 243  @apply rounded-lg;
 244}
 245
 246main figure img {
 247  margin: 0 auto;
 248  border-radius: 12px;
 249}
 250
 251main figure figcaption {
 252  text-align: center;
 253  margin-top: 1.25rem;
 254  font-size: 0.875rem;
 255  color: var(--vp-c-text-2);
 256}
 257
 258// VitePress v2 probably broke this somewhere idk
 259.VPHero .image-src {
 260  width: unset !important;
 261  height: unset !important;
 262  object-fit: contain !important;
 263}
 264
 265@media (min-width: 1440px) {
 266  :root {
 267    --vp-layout-max-width: 100% !important;
 268    /* 100% of the viewport width */
 269    --vp-sidebar-width: 300px !important;
 270    /* increase sidebar width from default 272px */
 271  }
 272
 273  /* target a div with class .content-container*/
 274  .content-container {
 275    max-width: 70% !important;
 276    /* 888px is the default max-width */
 277  }
 278}
 279
 280.custom-block {
 281  --uno: "rounded-xl border-2";
 282}
 283
 284.info.custom-block a {
 285  color: var(--vp-custom-block-info-text);
 286  font-weight: 500;
 287  text-decoration: underline;
 288  text-underline-offset: 2px;
 289  text-decoration-style: dashed;
 290  text-decoration-thickness: 1px;
 291  transition: opacity 0.25s;
 292}
 293
 294.info.custom-block a:hover {
 295  opacity: 0.7;
 296  color: var(--vp-custom-block-info-text-deep);
 297}
 298
 299.note.custom-block a {
 300  color: var(--vp-custom-block-info-text);
 301  font-weight: 500;
 302  text-decoration: underline;
 303  text-underline-offset: 2px;
 304  text-decoration-style: dashed;
 305  text-decoration-thickness: 1px;
 306  transition: opacity 0.25s;
 307}
 308
 309.note.custom-block a:hover {
 310  opacity: 0.7;
 311  color: var(--vp-custom-block-note-text-deep);
 312}
 313
 314.tip.custom-block a {
 315  color: var(--vp-custom-block-tip-text);
 316  font-weight: 500;
 317  text-decoration: underline;
 318  text-underline-offset: 2px;
 319  text-decoration-style: dashed;
 320  text-decoration-thickness: 1px;
 321  transition: opacity 0.25s;
 322}
 323
 324.tip.custom-block a:hover {
 325  opacity: 0.7;
 326  color: var(--vp-custom-block-tip-text-deep);
 327}
 328
 329.warning.custom-block a {
 330  color: var(--vp-custom-block-warning-text);
 331  font-weight: 500;
 332  text-decoration: underline;
 333  text-underline-offset: 2px;
 334  text-decoration-style: dashed;
 335  text-decoration-thickness: 1px;
 336  transition: opacity 0.25s;
 337}
 338
 339.warning.custom-block a:hover {
 340  opacity: 0.7;
 341  color: var(--vp-custom-block-warning-text-deep);
 342}
 343
 344.danger.custom-block a {
 345  color: var(--vp-custom-block-danger-text);
 346  font-weight: 500;
 347  text-decoration: underline;
 348  text-underline-offset: 2px;
 349  text-decoration-style: dashed;
 350  text-decoration-thickness: 1px;
 351  transition: opacity 0.25s;
 352}
 353
 354.danger.custom-block a:hover {
 355  opacity: 0.7;
 356  color: var(--vp-custom-block-danger-text-deep);
 357}
 358
 359.info.custom-block {
 360  --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWluZm8iPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PHBhdGggZD0iTTEyIDE2di00Ii8+PHBhdGggZD0iTTEyIDhoLjAxIi8+PC9zdmc+");
 361}
 362
 363.note.custom-block {
 364  --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWluZm8iPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PHBhdGggZD0iTTEyIDE2di00Ii8+PHBhdGggZD0iTTEyIDhoLjAxIi8+PC9zdmc+");
 365}
 366
 367.tip.custom-block {
 368  --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWxpZ2h0YnVsYiI+PHBhdGggZD0iTTE1IDE0Yy4yLTEgLjctMS43IDEuNS0yLjUgMS0uOSAxLjUtMi4yIDEuNS0zLjVBNiA2IDAgMCAwIDYgOGMwIDEgLjIgMi4yIDEuNSAzLjUuNy43IDEuMyAxLjUgMS41IDIuNSIvPjxwYXRoIGQ9Ik05IDE4aDYiLz48cGF0aCBkPSJNMTAgMjJoNCIvPjwvc3ZnPg==");
 369}
 370
 371.warning.custom-block {
 372  --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWFsZXJ0LXRyaWFuZ2xlIj48cGF0aCBkPSJtMjEuNzMgMTgtOC0xNGEyIDIgMCAwIDAtMy40OCAwbC04IDE0QTIgMiAwIDAgMCA0IDIxaDE2YTIgMiAwIDAgMCAxLjczLTNaIi8+PHBhdGggZD0iTTEyIDl2NCIvPjxwYXRoIGQ9Ik0xMiAxN2guMDEiLz48L3N2Zz4=");
 373}
 374
 375.danger.custom-block {
 376  --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXNrdWxsIj48Y2lyY2xlIGN4PSI5IiBjeT0iMTIiIHI9IjEiLz48Y2lyY2xlIGN4PSIxNSIgY3k9IjEyIiByPSIxIi8+PHBhdGggZD0iTTggMjB2Mmg4di0yIi8+PHBhdGggZD0ibTEyLjUgMTctLjUtMS0uNSAxaDF6Ii8+PHBhdGggZD0iTTE2IDIwYTIgMiAwIDAgMCAxLjU2LTMuMjUgOCA4IDAgMSAwLTExLjEyIDBBMiAyIDAgMCAwIDggMjAiLz48L3N2Zz4=");
 377}
 378
 379.custom-block-title {
 380  display: inline-flex;
 381  align-items: center;
 382  gap: 8px;
 383}
 384
 385.custom-block-title::before {
 386  content: "";
 387  width: 16px;
 388  height: 16px;
 389  -webkit-mask: var(--icon) no-repeat;
 390  mask: var(--icon) no-repeat;
 391  -webkit-mask-size: 100% 100%;
 392  mask-size: 100% 100%;
 393  background-color: currentColor;
 394  color: inherit;
 395}
 396
 397.vp-doc h3 {
 398  text-decoration: underline;
 399}
 400
 401.vp-doc h1 {
 402  font-size: 2.25rem;
 403}
 404
 405.vp-doc h2 {
 406  font-size: 1.75rem;
 407}
 408
 409.vp-doc h3 {
 410  font-size: 1.4rem;
 411}
 412
 413.vp-doc h4 {
 414  font-size: 1.2rem;
 415}
 416
 417.vp-doc h1 {
 418  margin-top: 0.5rem;
 419  margin-bottom: 0.5rem;
 420}
 421
 422.vp-doc h2 {
 423  margin-top: 1.5rem;
 424  margin-bottom: 0.5rem;
 425}
 426
 427.vp-doc h1 + .vp-nolebase-page-properties {
 428  display: none;
 429}
 430
 431.vp-doc h4 {
 432  margin-top: 1rem;
 433  margin-bottom: 1rem;
 434}
 435
 436/* Make the page half the width for class `sandbox` */
 437.sandbox {
 438  max-width: 50%;
 439  width: 50%;
 440  margin: 0 auto;
 441}
 442.v-popper__arrow-container {
 443  display: none;
 444}
 445
 446/** Fix for markdown-it-merge-cells */
 447.vp-doc table tr:nth-child(even),
 448.vp-doc table tr:nth-child(odd) {
 449  background-color: transparent !important;
 450}
 451
 452table tr:nth-child(even),
 453table tr:nth-child(odd) {
 454  background-color: transparent !important;
 455}
 456
 457.tip.custom-block table tr,
 458.tip.custom-block table td,
 459.tip.custom-block table th {
 460  border-color: theme("colors.meadow.800") !important;
 461}
 462
 463.info.custom-block table tr,
 464.info.custom-block table td,
 465.info.custom-block table th {
 466  border-color: theme("colors.brand.800") !important;
 467}
 468
 469.warning.custom-block table tr,
 470.warning.custom-block table td,
 471.warning.custom-block table th {
 472  border-color: theme("colors.merlin.800") !important;
 473}
 474
 475.danger.custom-block table tr,
 476.danger.custom-block table td,
 477.danger.custom-block table th {
 478  border-color: theme("colors.carnation.800") !important;
 479}
 480
 481.details.custom-block table:not(.scrape-table) tr,
 482.details.custom-block table:not(.scrape-table) td,
 483.details.custom-block table:not(.scrape-table) th {
 484  border-color: theme("colors.brand.800") !important;
 485}
 486
 487/** fix for nolebase-git-changelog */
 488.vp-nolebase-git-changelog a {
 489  text-decoration: none !important;
 490}
 491
 492/** New Styles */
 493.VPFooter {
 494  .divider {
 495    color: var(--vp-c-divider);
 496  }
 497}
 498
 499::view-transition-group(root) {
 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
 547/* auto-height */
 548.VPSidebarItem {
 549  @apply relative;
 550
 551  .is-link:hover {
 552    @apply bg-brand-800/15! dark:bg-brand-500/15!;
 553  }
 554
 555  .is-link.has-active {
 556    @apply bg-brand-800/15! dark:bg-brand-500/15!;
 557  }
 558
 559  &.collapsible {
 560    @apply relative grid w-full pl-0 border-0 motion-reduce:transition-none;
 561    grid-template-rows: 1fr;
 562    transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
 563
 564    &.collapsed {
 565      @apply motion-reduce:transition-none;
 566
 567      grid-template-rows: 0fr;
 568      transition: grid-template-rows 0.35s cubic-bezier(0.76, 0, 0.24, 1);
 569
 570      & > .items {
 571        @apply block;
 572      }
 573    }
 574
 575    & > .item {
 576      @apply absolute;
 577    }
 578
 579    & > .items {
 580      @apply overflow-hidden pt-9;
 581
 582      & > .VPSidebarItem {
 583        @apply cursor-pointer;
 584      }
 585    }
 586  }
 587
 588  /* nested accordian */
 589  .level-1.collapsible {
 590    @apply min-h-8;
 591    transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1)
 592      !important;
 593
 594    &.collapsed {
 595      @apply motion-reduce:transition-none;
 596
 597      transition: grid-template-rows 0.325s cubic-bezier(0.5, 0, 0.75, 0)
 598        !important;
 599    }
 600
 601    & > .item {
 602      @apply pl-4;
 603    }
 604
 605    & > .items {
 606      @apply pt-8;
 607
 608      & > .VPSidebarItem {
 609        @apply cursor-pointer;
 610      }
 611    }
 612  }
 613}
 614
 615#VPSidebarNav > .group,
 616#VPSidebarNavMobile > .group {
 617  @apply border-t-0 min-h-11 pt-2.25;
 618
 619  & > .VPSidebarItem {
 620    @apply pb-1;
 621
 622    & > .item {
 623      @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98]
 624        transition-all! opacity-85;
 625
 626      & > .text {
 627        @apply flex items-center text-base font-medium py-1.5;
 628
 629        &::before {
 630          @apply mr-2.5 opacity-70;
 631
 632          --uno-translate-y: calc(0.25rem * 0.175);
 633          translate: var(--uno-translate-x) var(--uno-translate-y);
 634        }
 635      }
 636
 637      & > .caret {
 638        @apply scale-90 translate-y-0.5;
 639      }
 640    }
 641
 642    & > .items {
 643      & > .VPSidebarItem {
 644        @apply pl-4 border-l dark:border-l-neutral-600 rounded-none
 645          transition-all duration-100 ease-out;
 646
 647        /* Separation between nested table of content */
 648        &:not(.collapsible),
 649        &.collapsible > .items > .VPSidebarItem {
 650          &:hover,
 651          &:focus,
 652          &.is-active.has-active {
 653            @apply rounded-lg border-transparent;
 654
 655            background-color: var(--vp-c-brand-nav-active);
 656
 657            & > .item > .indicator {
 658              background-color: var(--vp-c-brand-1);
 659            }
 660          }
 661        }
 662
 663        &.collapsible {
 664          &:not(.is-active) {
 665            & > .item:has(.link):hover,
 666            & > .item:has(.link):focus {
 667              & > .caret {
 668                @apply -translate-x-2;
 669              }
 670            }
 671          }
 672
 673          & > .item {
 674            @apply rounded-lg transition-all duration-100 ease-out;
 675
 676            &:hover,
 677            &:focus {
 678              background-color: var(--vp-c-brand-nav-active);
 679
 680              & > h3 {
 681                color: var(--vp-c-brand) !important;
 682              }
 683
 684              & > .indicator {
 685                background-color: var(--vp-c-brand);
 686              }
 687            }
 688
 689            & > .indicator {
 690              @apply translate-x-4;
 691            }
 692
 693            & > h3 {
 694              @apply font-normal;
 695            }
 696
 697            &:has(.link):hover,
 698            &:has(.link):focus {
 699              background-color: var(--vp-c-brand-nav-active);
 700
 701              & > .indicator {
 702                background-color: var(--vp-c-brand);
 703              }
 704
 705              & > .link > h3 {
 706                color: var(--vp-c-brand) !important;
 707              }
 708            }
 709          }
 710
 711          &.is-active > .item {
 712            @apply pr-2;
 713            background-color: var(--vp-c-brand-nav-active);
 714            border-color: var(--vp-c-brand-nav-active) !important;
 715
 716            & > .indicator {
 717              @apply translate-x-4;
 718              background-color: var(--vp-c-brand);
 719            }
 720
 721            & > div > .caret-icon {
 722              color: var(--vp-c-brand);
 723            }
 724          }
 725
 726          & > .items {
 727            @apply grid border-0 pl-0;
 728
 729            & > .VPSidebarItem {
 730              @apply border-l pl-4 dark:border-l-neutral-600;
 731            }
 732
 733            & > .caret {
 734              &:hover,
 735              &:focus {
 736                background-color: transparent;
 737              }
 738            }
 739
 740            & > .VPSidebarItem {
 741              @apply min-h-8;
 742            }
 743          }
 744        }
 745      }
 746    }
 747  }
 748}
 749
 750.VPLocalNav {
 751  @apply bg-transparent! border-0!;
 752
 753  & > .container {
 754    @apply relative flex bg-transparent mx-auto px-4 sm:px-6 md:px-0 lg:px-0
 755      py-0 mt-2;
 756    max-width: 688px;
 757
 758    & > .menu {
 759      @apply p-0;
 760    }
 761
 762    & > .menu,
 763    & > .VPLocalNavOutlineDropdown > button {
 764      @apply bg-white/80! dark:bg-neutral-800/80! px-2 py-0.75 rounded-xl border
 765        border-neutral-700/10 dark:border-neutral-300/10 backdrop-blur-md;
 766    }
 767
 768    & > .VPLocalNavOutlineDropdown {
 769      @apply p-0 ml-auto;
 770
 771      & > .items {
 772        @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
 774          border-neutral-700/10 dark:border-neutral-300/10 backdrop-blur-md
 775          shadow-2xl shadow-black/5;
 776        left: unset;
 777        transition-duration: 0.5s;
 778        transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
 779
 780        & > .header {
 781          @apply h-9 mb-2 bg-transparent;
 782        }
 783
 784        & > .outline {
 785          @apply p-0 outline-0 bg-transparent;
 786
 787          & > .nested {
 788            @apply px-0;
 789
 790            & > li {
 791              & > a {
 792                @apply px-4;
 793              }
 794
 795              & > a {
 796                &:hover,
 797                &:focus {
 798                  @apply rounded-xl;
 799                  background-color: var(--vp-c-brand-nav-active);
 800                  color: var(--vp-c-brand);
 801                }
 802              }
 803
 804              & > ul {
 805                @apply pl-4 pr-0;
 806
 807                & > li {
 808                  @apply border-l;
 809
 810                  & > a {
 811                    @apply px-4;
 812                  }
 813
 814                  & > a {
 815                    &:hover,
 816                    &:focus {
 817                      @apply rounded-lg;
 818                      background-color: var(--vp-c-brand-nav-active);
 819                      color: var(--vp-c-brand);
 820                    }
 821                  }
 822                }
 823              }
 824            }
 825          }
 826        }
 827      }
 828    }
 829  }
 830}
 831
 832.VPNav {
 833  @media (max-width: 1280px) {
 834    z-index: 40 !important;
 835  }
 836
 837  & > .VPNavBar {
 838    @apply bg-transparent!;
 839
 840    /* Doc layout */
 841    & > .wrapper > .container > .content > .content-body {
 842      @apply bg-transparent gap-0;
 843    }
 844
 845    & > .divider {
 846      @apply hidden;
 847    }
 848  }
 849}
 850
 851.VPNavBar {
 852  @apply border-0 bg-white/60 dark:bg-neutral-900/60 transition-colors;
 853
 854  & > .container {
 855    & > .content,
 856    & > .title {
 857      background: color-mix(in srgb, var(--vp-c-bg) 80%, transparent);
 858    }
 859  }
 860}
 861
 862#contributors,
 863#changelog,
 864.vp-nolebase-git-changelog,
 865.vp-nolebase-git-changelog-history {
 866  @apply max-w-2xl w-full mx-auto my-4;
 867}
 868
 869.vp-nolebase-git-changelog-contributors-list {
 870  @apply gap-2 mb-4;
 871
 872  & > a,
 873  & > div {
 874    font-size: 0;
 875    gap: 0;
 876
 877    & > img {
 878      @apply w-10 h-10;
 879    }
 880  }
 881}
 882
 883#changelog {
 884  @apply h-0 p-0 m-0 border-0;
 885  font-size: 0;
 886}
 887
 888.vp-nolebase-git-changelog-history {
 889  @apply mt-0;
 890}
 891
 892.vp-nolebase-git-changelog-history-list {
 893  @apply bg-neutral-50 dark:bg-neutral-800;
 894}
 895
 896.VPSwitchAppearance {
 897  @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98]
 898    transition-all! size-7! bg-transparent! border-0! opacity-80 pl-2!
 899    rounded-l-3xl!;
 900
 901  &::before {
 902    @apply hidden;
 903  }
 904
 905  .check {
 906    position: unset;
 907
 908    .icon {
 909      margin-top: 2px;
 910      width: 100%;
 911      height: 100%;
 912      border-radius: 50%;
 913      overflow: visible;
 914
 915      [class^="vpi-"] {
 916        position: absolute;
 917        top: 2px;
 918        left: 2px;
 919        width: 20px;
 920        height: 20px;
 921        color: currentColor;
 922      }
 923    }
 924  }
 925}
 926
 927.VPSidebar {
 928  @apply pb-6! overflow-y-auto;
 929  /* Custom scrollbar */
 930  scrollbar-width: thin;
 931
 932  &::-webkit-scrollbar {
 933    width: 8px;
 934  }
 935
 936  &::-webkit-scrollbar-track {
 937    background: transparent;
 938  }
 939
 940  &::-webkit-scrollbar-thumb {
 941    border-radius: 4px;
 942  }
 943
 944  @media (max-width: 959.9px) {
 945    @apply max-w-68 translate-x-2 translate-y-2 p-1! bg-white/85
 946      dark:bg-neutral-800/85 border dark:border-neutral-700 border-neutral-200
 947      rounded-3xl backdrop-blur shadow-lg overflow-x-hidden overflow-y-auto
 948      max-h-dvh;
 949    height: calc(100dvh - 1rem);
 950
 951    & > .nav {
 952      @apply w-full p-4 pt-2;
 953    }
 954  }
 955}
 956
 957.VPBackdrop.backdrop {
 958  @media (max-width: 1024px) {
 959    @apply bg-black/5!;
 960  }
 961}
 962
 963#VPSidebarNav {
 964  @apply flex flex-col min-h-full;
 965}
 966
 967.VPLocalSearchBox {
 968  & > .backdrop {
 969    @apply bg-black/7.5!;
 970  }
 971
 972  & > .shell {
 973    /* 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";
 975
 976    & > .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";
 978
 979      & > #localsearch-label {
 980        @apply opacity-50!;
 981      }
 982
 983      & > .search-input {
 984        @apply pl-0;
 985      }
 986
 987      & > .search-actions {
 988        @apply gap-0;
 989      }
 990    }
 991
 992    & > .results {
 993      @apply relative gap-1 pb-4 px-3 min-h-full md:min-h-60;
 994
 995      &:has(li)::before {
 996        @apply hidden;
 997      }
 998
 999      & > li {
1000        @apply z-10 scroll-pt-2;
1001
1002        &:first-child {
1003          @apply mt-2;
1004        }
1005
1006        & > .result {
1007          @apply rounded-xl! py-0.5 border-0;
1008
1009          &.selected {
1010            @apply bg-brand-500/5! dark:bg-brand-300/5!;
1011          }
1012        }
1013      }
1014    }
1015
1016    & > .search-keyboard-shortcuts {
1017      @apply z-30 pt-2.5 px-3;
1018
1019      & > span > kbd {
1020        @apply rounded-lg dark:bg-neutral-700!;
1021      }
1022    }
1023  }
1024}
1025
1026.excerpt-wrapper {
1027  & > .excerpt-gradient-bottom,
1028  & > .excerpt-gradient-top {
1029    @apply hidden;
1030  }
1031
1032  & > .excerpt {
1033    & > .vp-doc {
1034      @apply bg-transparent!;
1035    }
1036  }
1037}
1038
1039.VPNavBarMenuGroup > .menu {
1040  @apply top-12 backdrop-blur-xl rounded-2xl;
1041  will-change: opacity;
1042
1043  & > .VPMenu {
1044    @apply bg-white/80! dark:bg-neutral-700/80! p-1 border border-neutral-100
1045      dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5;
1046
1047    & > .items {
1048      & > .VPMenuLink > .VPLink {
1049        @apply rounded-xl hover:bg-brand-500/5 focus:bg-brand-500/5
1050          dark:hover:bg-brand-400/25 dark:focus:bg-brand-400/25 duration-0;
1051      }
1052    }
1053  }
1054}
1055
1056.VPNavBarExtra.extra > .menu {
1057  @apply top-12 backdrop-blur-xl rounded-2xl;
1058  will-change: opacity;
1059
1060  & > .VPMenu {
1061    @apply bg-white/80! dark:bg-neutral-700/80! border border-neutral-100
1062      dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5;
1063  }
1064}
1065
1066/* navbar left side group in order */
1067.VPNavBarMenu.menu {
1068  @apply h-11 rounded-l-3xl;
1069
1070  & > .VPFlyout.VPNavBarMenuGroup {
1071    & > .button {
1072      @apply h-11;
1073    }
1074  }
1075
1076  & > .VPFlyout.VPNavBarMenuGroup > .button,
1077  & > a {
1078    @apply backdrop-blur-lg bg-white/80 dark:bg-neutral-900/70;
1079  }
1080
1081  /* Skip screen reader content */
1082  & > *:nth-child(2),
1083  & > *:nth-child(2) > .button {
1084    @apply rounded-l-3xl!;
1085  }
1086}
1087
1088.VPNavBarAppearance.appearance {
1089  @apply h-11 bg-white/80 dark:bg-neutral-900/70 backdrop-blur-lg rounded-l-3xl;
1090
1091  &::before {
1092    @apply hidden;
1093  }
1094}
1095
1096.VPSocialLinks.VPNavBarSocialLinks.social-links {
1097  @apply h-11 pr-0! pl-1.5! bg-white/80 dark:bg-neutral-900/70 backdrop-blur-lg;
1098}
1099
1100/* ... mobile */
1101.VPFlyout.VPNavBarExtra.extra {
1102  @apply h-11 bg-white/80 dark:bg-neutral-900/70;
1103
1104  & > .button {
1105    @apply h-10.5 backdrop-blur-lg rounded-r-3xl!;
1106  }
1107}
1108
1109/* end navbar leftside group */
1110
1111#local-search {
1112  & > .DocSearch-Button {
1113    @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98]
1114      transition-all! h-10 rounded-xl backdrop-blur-sm lg:ml-2 sm:bg-red-50;
1115    color: var(--docsearch-secondary-text-color);
1116
1117    @media (width >= 40rem /* 640px */) {
1118      background-color: var(--vp-c-bg-soft);
1119    }
1120
1121    & > .DocSearch-Button-Container {
1122      & > .DocSearch-Button-Placeholder {
1123        @apply pl-2 pr-3 hidden sm:inline;
1124      }
1125    }
1126
1127    & > .DocSearch-Button-Keys {
1128      @apply py-0.75 -translate-y-1 hidden sm:inline;
1129    }
1130  }
1131}
1132
1133.VPSidebarItem.is-link:not(.collapsible),
1134.VPSidebarItem.is-link.collapsible > .item {
1135  @apply active:scale-[0.98] transition-all!;
1136}
1137
1138.VPSocialLinks.VPNavBarSocialLinks.social-links {
1139  @apply pl-2.5;
1140
1141  &::before {
1142    @apply hidden;
1143  }
1144}
1145
1146.VPDocAside {
1147  & > .VPDocAsideOutline > .content {
1148    @apply pl-0 border-l-0;
1149
1150    & > .outline-marker {
1151      @apply z-10 w-0.75 dark:bg-brand-300;
1152      transition-timing-function: $ease-out-expo;
1153      transition-duration: 0.3s;
1154    }
1155
1156    & > .outline-title {
1157      @apply flex items-center font-medium text-neutral-700
1158        dark:text-neutral-100;
1159
1160      &::before {
1161        @apply inline-block size-3.5 bg-cover mr-1.5;
1162        content: "";
1163        background-image: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-text-align-start-icon lucide-text-align-start\"><path d=\"M21 5H3\"/><path d=\"M15 12H3\"/><path d=\"M17 19H3\"/></svg>");
1164      }
1165
1166      .dark &::before {
1167        @apply invert-100;
1168      }
1169    }
1170
1171    .VPDocOutlineItem.root > li {
1172      & > .outline-link {
1173        @apply text-neutral-600/80 dark:text-neutral-300/80 transition-all
1174          dark:hover:text-neutral-300 dark:focus:text-neutral-300;
1175
1176        &:hover,
1177        &:focus,
1178        &.active {
1179          @apply font-semibold dark:text-brand-300!;
1180          color: var(--vp-c-brand-1);
1181          transition-timing-function: $ease-out-expo;
1182          transition-duration: 0.35s;
1183        }
1184      }
1185
1186      & > ul {
1187        & > li {
1188          & > a {
1189            @apply leading-7 opacity-60 dark:opacity-70 transition-all;
1190            font-size: 0.825rem;
1191
1192            &:hover,
1193            &:focus,
1194            &.active {
1195              @apply opacity-100 font-semibold dark:text-brand-300;
1196              color: var(--vp-c-brand-1);
1197              transition-timing-function: $ease-out-expo;
1198              transition-duration: 0.35s;
1199            }
1200          }
1201        }
1202      }
1203    }
1204
1205    & > .VPDocOutlineItem {
1206      --uno: "border-l-2! border-neutral-100 dark:border-neutral-600 pl-4";
1207    }
1208  }
1209}
1210
1211.aside-container {
1212  padding-top: calc(
1213    var(--vp-nav-height) + var(--vp-layout-top-height, 0px) +
1214      var(--vp-doc-top-height, 0px) +
1215      24px
1216  ) !important;
1217}
1218
1219.VPNavBarSearch.search {
1220  @apply ml-2 pl-0!;
1221}
1222
1223%thin-scrollbar {
1224  scrollbar-width: thin;
1225  &::-webkit-scrollbar {
1226    width: 8px;
1227  }
1228  &::-webkit-scrollbar-track {
1229    background: transparent;
1230  }
1231  &::-webkit-scrollbar-thumb {
1232    border-radius: 4px;
1233  }
1234}
1235
1236%thin-scrollbar-narrow {
1237  scrollbar-width: thin;
1238  &::-webkit-scrollbar {
1239    width: 6px;
1240  }
1241  &::-webkit-scrollbar-track {
1242    background: transparent;
1243  }
1244  &::-webkit-scrollbar-thumb {
1245    border-radius: 3px;
1246    background-color: var(--vp-c-divider);
1247  }
1248}
1249
1250/* Home sidebar menu button in navbar */
1251.home-menu-btn {
1252  display: none;
1253  align-items: center;
1254  justify-content: center;
1255  margin-right: 16px;
1256  color: var(--vp-c-text-2);
1257  cursor: pointer;
1258  transition: color 0.25s;
1259
1260  &:hover {
1261    color: var(--vp-c-text-1);
1262  }
1263
1264  @media (min-width: 960px) {
1265    display: inline-flex;
1266  }
1267}
1268
1269.home-menu-icon {
1270  font-size: 20px;
1271}
1272
1273.home-sidebar-backdrop {
1274  position: fixed;
1275  inset: 0;
1276  z-index: var(--vp-z-index-backdrop, 100);
1277  background-color: rgba(0, 0, 0, 0.6);
1278}
1279
1280/* Home desktop sidebar (left slideout) */
1281.home-sidebar {
1282  position: fixed;
1283  top: 0;
1284  bottom: 0;
1285  left: 0;
1286  z-index: calc(var(--vp-z-index-backdrop, 100) + 1);
1287  padding: 0 32px 32px;
1288  width: var(--vp-sidebar-width);
1289  max-width: calc(100vw - 64px);
1290  background-color: var(--vp-sidebar-bg-color);
1291  box-shadow: var(--vp-c-shadow-3);
1292  overflow-x: hidden;
1293  overflow-y: auto;
1294  overscroll-behavior: contain;
1295  @extend %thin-scrollbar;
1296
1297  .dark & {
1298    box-shadow: var(--vp-shadow-1);
1299  }
1300}
1301
1302.home-sidebar-header {
1303  position: sticky;
1304  top: 0;
1305  z-index: 1;
1306  height: var(--vp-nav-height);
1307  display: flex;
1308  align-items: center;
1309  background-color: var(--vp-sidebar-bg-color);
1310  border-bottom: 1px solid var(--vp-c-divider);
1311}
1312
1313.home-sidebar-logo {
1314  display: flex;
1315  align-items: center;
1316  height: var(--vp-nav-height);
1317  font-size: 16px;
1318  font-weight: 600;
1319  color: var(--vp-c-text-1);
1320  text-decoration: none;
1321}
1322
1323.home-sidebar-logo-img {
1324  margin-right: 8px;
1325  height: var(--vp-nav-logo-height);
1326}
1327
1328.home-sidebar-nav {
1329  padding-top: 10px;
1330}
1331
1332/* Desktop sidebar transitions */
1333.home-fade-enter-active,
1334.home-fade-leave-active {
1335  transition: opacity 0.25s;
1336}
1337
1338.home-fade-enter-from,
1339.home-fade-leave-to {
1340  opacity: 0;
1341}
1342
1343.home-slide-enter-active {
1344  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.25s;
1345}
1346
1347.home-slide-leave-active {
1348  transition: transform 0.25s ease, opacity 0.5s;
1349}
1350
1351.home-slide-enter-from,
1352.home-slide-leave-to {
1353  transform: translateX(-100%);
1354  opacity: 0;
1355}
1356
1357/* Hide navbar border when home NavScreen is open */
1358.VPNavBar.home.screen-open {
1359  border-bottom: none !important;
1360}
1361
1362/* Home NavScreen: restyle as left-aligned floating panel matching VPSidebar */
1363.VPNavScreen:has(.home-screen-nav) {
1364  @apply bg-white/85 dark:bg-neutral-800/85 border dark:border-neutral-700
1365    border-neutral-200 rounded-3xl backdrop-blur shadow-lg;
1366  padding: 0 !important;
1367  left: 0.5rem !important;
1368  right: auto !important;
1369  top: 0.5rem !important;
1370  bottom: 0.5rem !important;
1371  width: calc(100vw - 64px) !important;
1372  max-width: 320px !important;
1373  overflow-x: hidden !important;
1374  @extend %thin-scrollbar-narrow;
1375
1376  & > * {
1377    max-width: 100% !important;
1378    padding: 16px 16px 0 !important;
1379    display: flex !important;
1380    flex-direction: column !important;
1381    min-height: 100%;
1382  }
1383
1384  .VPNavScreenAppearance {
1385    margin-top: 24px !important;
1386  }
1387
1388  .VPNavScreenSocialLinks {
1389    margin-top: auto !important;
1390    padding: 16px 0 !important;
1391    display: flex;
1392    justify-content: center;
1393  }
1394}
1395
1396.home-screen-nav {
1397  padding-top: 8px;
1398}
1399
1400/* Override NavScreen fade transition to slide-from-left on home */
1401.VPNavScreen:has(.home-screen-nav) {
1402  &.fade-enter-active,
1403  &.fade-leave-active {
1404    transition:
1405      transform 0.3s cubic-bezier(0.19, 1, 0.22, 1),
1406      opacity 0.25s !important;
1407
1408    .container {
1409      transform: none !important;
1410    }
1411  }
1412
1413  &.fade-enter-from,
1414  &.fade-leave-to {
1415    transform: translateX(-100%) !important;
1416    opacity: 0 !important;
1417  }
1418}
1419
1420html.reduce-blur-effects {
1421  &::view-transition-group(root),
1422  &::view-transition-new(root),
1423  &::view-transition-old(root) {
1424    animation: none !important;
1425  }
1426
1427  .VPLocalSearchBox,
1428  .VPLocalSearchBox * {
1429    animation: none !important;
1430    scroll-behavior: auto !important;
1431    transition-duration: 0s !important;
1432  }
1433
1434  .VPLocalNav > .container > .menu,
1435  .VPLocalNav > .container > .VPLocalNavOutlineDropdown > button,
1436  .VPLocalNav > .container > .VPLocalNavOutlineDropdown > .items,
1437  .VPSidebar,
1438  .VPLocalSearchBox > .shell,
1439  .VPNavBarMenuGroup > .menu,
1440  .VPNavBarExtra.extra > .menu,
1441  .VPNavBarMenu.menu > .VPFlyout.VPNavBarMenuGroup > .button,
1442  .VPNavBarMenu.menu > a,
1443  .VPNavBarAppearance.appearance,
1444  .VPSocialLinks.VPNavBarSocialLinks.social-links,
1445  .VPFlyout.VPNavBarExtra.extra > .button,
1446  #local-search > .DocSearch-Button,
1447  .VPNolebaseEnhancedReadabilitiesMenuFlyout,
1448  .VPNavScreen:has(.home-screen-nav) {
1449    backdrop-filter: none !important;
1450    -webkit-backdrop-filter: none !important;
1451  }
1452
1453  .VPLocalNav > .container > .menu,
1454  .VPLocalNav > .container > .VPLocalNavOutlineDropdown > button,
1455  .VPLocalNav > .container > .VPLocalNavOutlineDropdown > .items,
1456  .VPLocalSearchBox > .shell,
1457  .VPNavBarMenuGroup > .menu > .VPMenu,
1458  .VPNavBarExtra.extra > .menu > .VPMenu,
1459  .VPNavBarMenu.menu > .VPFlyout.VPNavBarMenuGroup > .button,
1460  .VPNavBarMenu.menu > a,
1461  .VPNavBarAppearance.appearance,
1462  .VPSocialLinks.VPNavBarSocialLinks.social-links,
1463  .VPFlyout.VPNavBarExtra.extra,
1464  .VPNavScreen:has(.home-screen-nav) {
1465    background-color: var(--vp-c-bg) !important;
1466  }
1467
1468  .VPNavBarAppearance.appearance,
1469  .VPSocialLinks.VPNavBarSocialLinks.social-links,
1470  .VPNolebaseEnhancedReadabilitiesMenuFlyout {
1471    background-color: #151617 !important;
1472  }
1473
1474  @media (max-width: 959.9px) {
1475    .VPSidebar {
1476      background-color: var(--vp-sidebar-bg-color) !important;
1477    }
1478  }
1479}
1480
1481/* Icon tooltips (hover on desktop, tap on mobile) */
1482.icon-tip {
1483  position: relative;
1484  display: inline-block;
1485  vertical-align: -0.125em;
1486  cursor: help;
1487}
1488
1489/* Fixed-position tooltip rendered into <body> by JS to escape table overflow clipping */
1490.icon-tip-popup {
1491  position: fixed;
1492  padding: 4px 8px;
1493  border-radius: 6px;
1494  background: var(--vp-c-bg-elv);
1495  color: var(--vp-c-text-1);
1496  font-size: 12px;
1497  line-height: 1.4;
1498  white-space: nowrap;
1499  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
1500  pointer-events: none;
1501  z-index: 9999;
1502  opacity: 0;
1503  transition: opacity 0.15s;
1504
1505  &.visible {
1506    opacity: 1;
1507  }
1508}
1509
1510/* ScrapeTable */
1511:root {
1512  --scrape-cell-bg: #ebedf0;
1513  --scrape-cell-active: #56d364;
1514  --scrape-cell-active-sd: #ff4d4f;
1515}
1516
1517.dark {
1518  --scrape-cell-bg: #151b23;
1519}
1520
1521/* Override VitePress .vp-doc table/tr/th/td defaults */
1522.scrape-table {
1523  display: table !important;
1524  table-layout: fixed;
1525  border-collapse: separate !important;
1526  border-spacing: 0;
1527  white-space: nowrap;
1528  width: max-content;
1529  overflow: visible !important;
1530  margin: 0 !important;
1531  margin-right: 1px !important;
1532
1533  .col-cell {
1534    width: 34px;
1535  }
1536
1537  tr {
1538    background: transparent !important;
1539    border: none !important;
1540  }
1541
1542  th, td {
1543    background: var(--vp-c-bg) !important;
1544    padding: 0 !important;
1545    border: none !important;
1546  }
1547
1548  .corner,
1549  .source-header {
1550    border: 1px solid var(--vp-c-divider) !important;
1551    border-left: none !important;
1552  }
1553
1554  .corner {
1555    position: sticky;
1556    left: 0;
1557    z-index: 2;
1558    padding: 0 12px !important;
1559    height: var(--scrape-header-height, 140px);
1560    background-color: var(--vp-c-bg-soft) !important;
1561    border-left: 1px solid var(--vp-c-divider) !important;
1562    color: var(--vp-c-text-1) !important;
1563    font-weight: 600;
1564    font-size: 13px;
1565    vertical-align: middle;
1566    text-align: center;
1567  }
1568
1569  .source-header {
1570    vertical-align: bottom;
1571    height: var(--scrape-header-height, 140px);
1572    text-align: center;
1573    background: var(--vp-c-bg) !important;
1574
1575    span {
1576      writing-mode: vertical-lr;
1577      transform: rotate(180deg);
1578      display: inline-block;
1579      font-weight: 600;
1580      color: var(--vp-c-text-1);
1581      font-size: 12px;
1582    }
1583  }
1584
1585  .site-name {
1586    position: sticky;
1587    left: 0;
1588    z-index: 1;
1589    padding: 4px 12px !important;
1590    background: var(--vp-c-bg) !important;
1591    border: 1px solid var(--vp-c-divider) !important;
1592    border-top: none !important;
1593    color: var(--vp-c-text-1);
1594    font-weight: 600;
1595    font-size: 13px;
1596    line-height: 1;
1597  }
1598
1599  .cell {
1600    border: 2px solid transparent !important;
1601    height: 34px;
1602    position: relative;
1603
1604    &::before {
1605      content: "";
1606      display: block;
1607      width: 100%;
1608      height: 100%;
1609      border-radius: 6px;
1610      background: var(--scrape-cell-bg);
1611    }
1612
1613    &.active::before {
1614      background: var(--scrape-cell-active);
1615    }
1616
1617    &.active-sd::before {
1618      background: var(--scrape-cell-active-sd);
1619    }
1620
1621    &.active[title]:hover::after {
1622      content: attr(title);
1623      position: absolute;
1624      bottom: calc(100% + 4px);
1625      left: 50%;
1626      transform: translateX(-50%);
1627      padding: 3px 8px;
1628      border-radius: 6px;
1629      background: var(--vp-c-bg-elv);
1630      color: var(--vp-c-text-1);
1631      font-size: 11px;
1632      white-space: nowrap;
1633      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
1634      z-index: 10;
1635      pointer-events: none;
1636    }
1637  }
1638}
1639
1640.vp-doc .vp-card,
1641.vp-doc .vp-card:hover,
1642.vp-doc .vp-card:focus,
1643.vp-doc .vp-card:visited {
1644  text-decoration: none !important;
1645}
1646
1647.vp-doc .vp-card .vp-card-title {
1648  text-decoration: none !important;
1649  border-top: none !important;
1650}
1651
1652:root {
1653  --vp-plugin-tabs-tab-text-color: var(--vp-c-text-2);
1654  --vp-plugin-tabs-tab-active-text-color: var(--vp-c-text-1);
1655  --vp-plugin-tabs-tab-hover-text-color: var(--vp-c-text-1);
1656  --vp-plugin-tabs-tab-bg: var(--vp-c-bg-soft);
1657  --vp-plugin-tabs-tab-divider: var(--vp-c-divider);
1658  --vp-plugin-tabs-tab-active-bar-color: var(--vp-c-brand-1);
1659}
1660
1661.plugin-tabs {
1662  margin: 16px 0;
1663  background-color: var(--vp-plugin-tabs-tab-bg);
1664  border-radius: 8px;
1665}
1666
1667.plugin-tabs--tab-list {
1668  position: relative;
1669  padding: 0 12px;
1670  overflow-x: auto;
1671  overflow-y: hidden;
1672}
1673
1674.plugin-tabs--tab-list::after {
1675  content: "";
1676  position: absolute;
1677  right: 0;
1678  bottom: 0;
1679  left: 0;
1680  height: 2px;
1681  background-color: var(--vp-plugin-tabs-tab-divider);
1682}
1683
1684.plugin-tabs--tab {
1685  position: relative;
1686  padding: 0 12px;
1687  border-bottom: 2px solid transparent;
1688  color: var(--vp-plugin-tabs-tab-text-color);
1689  font-size: 14px;
1690  font-weight: 500;
1691  line-height: 48px;
1692  white-space: nowrap;
1693  transition: color 0.25s;
1694}
1695
1696.plugin-tabs--tab[aria-selected="true"] {
1697  color: var(--vp-plugin-tabs-tab-active-text-color);
1698}
1699
1700.plugin-tabs--tab:hover {
1701  color: var(--vp-plugin-tabs-tab-hover-text-color);
1702}
1703
1704.plugin-tabs--tab::after {
1705  content: "";
1706  position: absolute;
1707  z-index: 1;
1708  right: 8px;
1709  bottom: -2px;
1710  left: 8px;
1711  height: 2px;
1712  background-color: transparent;
1713  transition: background-color 0.25s;
1714}
1715
1716.plugin-tabs--tab[aria-selected="true"]::after {
1717  background-color: var(--vp-plugin-tabs-tab-active-bar-color);
1718}
1719
1720.plugin-tabs--content {
1721  padding: 16px;
1722}
1723
1724.plugin-tabs--content[data-is-print="true"]:not(:last-child) {
1725  border-bottom: 2px solid var(--vp-plugin-tabs-tab-divider);
1726}
1727
1728.plugin-tabs--content > :first-child:first-child {
1729  margin-top: 0;
1730}
1731
1732.plugin-tabs--content > :last-child:last-child {
1733  margin-bottom: 0;
1734}
1735
1736.plugin-tabs--content > div[class*="language-"] {
1737  margin: 16px 0;
1738  border-radius: 8px;
1739}
1740
1741:root:not(.dark) .plugin-tabs--content div[class*="language-"] {
1742  background-color: var(--vp-c-bg);
1743}
1744
1745.vp-doc .collapsible-search-heading,
1746.vp-doc .tab-search-heading {
1747  position: absolute;
1748  width: 1px;
1749  height: 1px;
1750  padding: 0;
1751  margin: -1px;
1752  overflow: hidden;
1753  clip: rect(0, 0, 0, 0);
1754  white-space: nowrap;
1755  border: 0;
1756}
1757
1758/* noteblock icon shrinking and top-bottom padding fix */
1759.vp-doc .custom-block-title {
1760  display: flex;
1761  align-items: flex-start;
1762  gap: 6px;
1763}
1764
1765.vp-doc .custom-block-title::before {
1766  flex-shrink: 0;
1767  margin-top: 3px;
1768}
1769
1770/* so that the gap only applies to title only blocks. check layout.vue for initTitleOnly() */
1771
1772.vp-doc .custom-block.title-only {
1773  padding-bottom: 16px;
1774}