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

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

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