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

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

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