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

ebd7c13418dce437db3b6f171809898826b230b5
wotaku/docs/.vitepress/theme/styles/style.scss
taskylizard fix some issuescaa7f04e70 5 months ago

1832 lines · 43830 bytes

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

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form