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

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

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