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

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

1894 lines · 45441 bytes

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