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

21a62f4ea39d79afc6fe7efc9effab0c52d40de9
wotaku/docs/.vitepress/theme/styles/style.scss

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