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

7a6fd83ab43c14dbd42f45098667893452ca6044
wotaku/docs/.vitepress/theme/styles/style.scss

1565 lines · 38019 bytes

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