Commit 5b7264f968
Unregistered key
Layout: unified · split
docs/.vitepress/theme/Layout.vue +37 −15
| @@ -24,8 +24,8 @@ import { | ||
| 24 | 24 | NolebaseEnhancedReadabilitiesScreenMenu |
| 25 | 25 | } from './components/settings' |
| 26 | 26 | import SidebarCard from './components/SidebarCard.vue' |
| 27 | import { v2add, v2mag, v2norm, v2smul, v2sub, type Vec2D } from './math' | |
| 28 | 27 | import { TakodachiStorageKey } from './constants' |
| 28 | import { v2add, v2mag, v2norm, v2smul, v2sub, type Vec2D } from './math' | |
| 29 | 29 | |
| 30 | 30 | const route = useRoute() |
| 31 | 31 | const { Layout } = DefaultTheme |
| @@ -130,10 +130,9 @@ const reloadTakodachi = () => { | ||
| 130 | 130 | |
| 131 | 131 | const diff = v2sub(mousePos, currentPos) |
| 132 | 132 | |
| 133 | target = | |
| 134 | v2mag(diff) < snapThreshold | |
| 135 | ? mousePos | |
| 136 | : v2add(target, v2smul(v2norm(diff), speed)) | |
| 133 | target = v2mag(diff) < snapThreshold | |
| 134 | ? mousePos | |
| 135 | : v2add(target, v2smul(v2norm(diff), speed)) | |
| 137 | 136 | |
| 138 | 137 | const finalVec = v2sub(target, offset) |
| 139 | 138 | |
| @@ -175,27 +174,50 @@ onUnmounted(() => { | ||
| 175 | 174 | <template> |
| 176 | 175 | <Layout> |
| 177 | 176 | <template #layout-top> |
| 178 | <img id="takodachi" ref="takodachiRef" src="/takodachi.webp" alt="Takodachi" | |
| 179 | class="pointer-events-none fixed absolute z-[9999] h-10 w-10 opacity-0 transition-opacity duration-500" :style="{ | |
| 177 | <img | |
| 178 | id="takodachi" | |
| 179 | ref="takodachiRef" | |
| 180 | src="/takodachi.webp" | |
| 181 | alt="Takodachi" | |
| 182 | class="pointer-events-none fixed absolute z-[9999] h-10 w-10 opacity-0 transition-opacity duration-500" | |
| 183 | :style="{ | |
| 180 | 184 | left: `${position.x}px`, |
| 181 | 185 | top: `${position.y}px` |
| 182 | }" /> | |
| 186 | }" | |
| 187 | /> | |
| 183 | 188 | </template> |
| 184 | 189 | <template #doc-before> |
| 185 | 190 | <!-- Breadcrumb Navigation --> |
| 186 | <nav v-if="breadcrumbs.length > 0" class="breadcrumb mb-6 text-sm text-text-2" aria-label="Breadcrumb"> | |
| 191 | <nav | |
| 192 | v-if="breadcrumbs.length > 0" | |
| 193 | class="breadcrumb mb-6 text-sm text-text-2" | |
| 194 | aria-label="Breadcrumb" | |
| 195 | > | |
| 187 | 196 | <ol class="flex flex-wrap items-center gap-2"> |
| 188 | 197 | <li> |
| 189 | 198 | <a href="/" class="hover:text-primary transition-colors"> |
| 190 | 199 | <span class="i-lucide:home"></span> |
| 191 | 200 | </a> |
| 192 | 201 | </li> |
| 193 | <li v-for="(crumb, index) in breadcrumbs" :key="crumb.link || index" class="flex items-center gap-2"> | |
| 194 | <span class="i-lucide:chevron-right text-text-3 flex-shrink-0"></span> | |
| 195 | <span v-if="index === breadcrumbs.length - 1" v-html="crumb.text" | |
| 196 | class="font-medium text-text-1 break-words"></span> | |
| 197 | <a v-else :href="crumb.link" v-html="crumb.text" | |
| 198 | class="hover:text-primary transition-colors break-words"></a> | |
| 202 | <li | |
| 203 | v-for="(crumb, index) in breadcrumbs" | |
| 204 | :key="crumb.link || index" | |
| 205 | class="flex items-center gap-2" | |
| 206 | > | |
| 207 | <span | |
| 208 | class="i-lucide:chevron-right text-text-3 flex-shrink-0" | |
| 209 | ></span> | |
| 210 | <span | |
| 211 | v-if="index === breadcrumbs.length - 1" | |
| 212 | v-html="crumb.text" | |
| 213 | class="font-medium text-text-1 break-words" | |
| 214 | ></span> | |
| 215 | <a | |
| 216 | v-else | |
| 217 | :href="crumb.link" | |
| 218 | v-html="crumb.text" | |
| 219 | class="hover:text-primary transition-colors break-words" | |
| 220 | ></a> | |
| 199 | 221 | </li> |
| 200 | 222 | </ol> |
| 201 | 223 | </nav> |
docs/.vitepress/theme/components/Block.vue +7 −2
| @@ -18,8 +18,13 @@ withDefaults( | ||
| 18 | 18 | </script> |
| 19 | 19 | |
| 20 | 20 | <template> |
| 21 | <component :target="link ? '_blank' : undefined" :is="link ? 'a' : 'span'" :href="link" :class="type" | |
| 22 | class="VButton inline-flex items-center px4 py3 gap2 rounded-md align-middle cursor-pointer"> | |
| 21 | <component | |
| 22 | :target="link ? '_blank' : undefined" | |
| 23 | :is="link ? 'a' : 'span'" | |
| 24 | :href="link" | |
| 25 | :class="type" | |
| 26 | class="VButton inline-flex items-center px4 py3 gap2 rounded-md align-middle cursor-pointer" | |
| 27 | > | |
| 23 | 28 | <div :class="icon" /> |
| 24 | 29 | <slot>{{ text }}</slot> |
| 25 | 30 | </component> |
docs/.vitepress/theme/components/DevOnly.vue +2 −1
| @@ -10,5 +10,6 @@ const isDev = import.meta.env.DEV | ||
| 10 | 10 | <div v-if="isDev" class="vp-doc vp-doc-content"> |
| 11 | 11 | <slot /> |
| 12 | 12 | </div> |
| 13 | <div v-else-if="fallback" class="vp-doc vp-doc-content" v-html="fallback"></div> | |
| 13 | <div v-else-if="fallback" class="vp-doc vp-doc-content" v-html="fallback"> | |
| 14 | </div> | |
| 14 | 15 | </template> |
docs/.vitepress/theme/components/LegendModal.vue +7 −10
| @@ -151,13 +151,9 @@ const sections = [ | ||
| 151 | 151 | /> |
| 152 | 152 | |
| 153 | 153 | <!-- Modal --> |
| 154 | <div | |
| 155 | class="relative mx-auto bg-$vp-c-bg rounded-lg border-2 border-$vp-c-default-soft p-4 sm:p-6 shadow-xl w-full max-w-4xl mt-16 mb-8" | |
| 156 | > | |
| 154 | <div class="relative mx-auto bg-$vp-c-bg rounded-lg border-2 border-$vp-c-default-soft p-4 sm:p-6 shadow-xl w-full max-w-4xl mt-16 mb-8"> | |
| 157 | 155 | <div class="flex justify-between items-center mb-4 sm:mb-6"> |
| 158 | <h2 | |
| 159 | class="text-$vp-c-text-1 text-lg sm:text-xl font-bold align-center vl-middle flex items-center" | |
| 160 | > | |
| 156 | <h2 class="text-$vp-c-text-1 text-lg sm:text-xl font-bold align-center vl-middle flex items-center"> | |
| 161 | 157 | <div class="i-lucide-badge-info text-$vp-c-text-1 mr-2" /> |
| 162 | 158 | Icon key |
| 163 | 159 | </h2> |
| @@ -174,16 +170,17 @@ const sections = [ | ||
| 174 | 170 | <h3 class="text-$vp-c-text-1 font-bold mb-3"> |
| 175 | 171 | {{ section.title }} |
| 176 | 172 | </h3> |
| 177 | <div | |
| 178 | class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-2" | |
| 179 | > | |
| 173 | <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-2"> | |
| 180 | 174 | <div |
| 181 | 175 | v-for="item in section.items" |
| 182 | 176 | :key="item.label" |
| 183 | 177 | class="flex flex-col items-center justify-center p-3 rounded-lg bg-$vp-c-bg-alt hover:bg-$vp-c-bg-elv transition-colors" |
| 184 | 178 | > |
| 185 | 179 | <div |
| 186 | :class="[item.icon, 'text-2xl mb-1 text-$vp-c-text-1']" | |
| 180 | :class="[ | |
| 181 | item.icon, | |
| 182 | 'text-2xl mb-1 text-$vp-c-text-1' | |
| 183 | ]" | |
| 187 | 184 | /> |
| 188 | 185 | <div class="text-$vp-c-text-2 text-xs text-center"> |
| 189 | 186 | {{ item.label }} |
docs/.vitepress/theme/components/LinkInline.vue +5 −2
| @@ -14,8 +14,11 @@ defineProps<{ | ||
| 14 | 14 | <span class="sr-only">{{ title }}</span> |
| 15 | 15 | <ClientOnly> |
| 16 | 16 | <Tooltip class="inline-block" theme="twoslash"> |
| 17 | <a :href="withBase(link)" :target | |
| 18 | class="bg-$vp-c-default-soft hover:bg-$vp-c-brand-soft/25 rounded px2 py1 decoration-none!"> | |
| 17 | <a | |
| 18 | :href="withBase(link)" | |
| 19 | :target | |
| 20 | class="bg-$vp-c-default-soft hover:bg-$vp-c-brand-soft/25 rounded px2 py1 decoration-none!" | |
| 21 | > | |
| 19 | 22 | {{ title }} |
| 20 | 23 | </a> |
| 21 | 24 | |
docs/.vitepress/theme/components/NavBarSearchButton.vue +15 −7
| @@ -18,10 +18,18 @@ const translate = createSearchTranslate(defaultTranslations) | ||
| 18 | 18 | </script> |
| 19 | 19 | |
| 20 | 20 | <template> |
| 21 | <button type="button" :aria-label="translate('button.buttonAriaLabel')" aria-keyshortcuts="/ control+k meta+k" | |
| 22 | class="DocSearch DocSearch-Button"> | |
| 21 | <button | |
| 22 | type="button" | |
| 23 | :aria-label="translate('button.buttonAriaLabel')" | |
| 24 | aria-keyshortcuts="/ control+k meta+k" | |
| 25 | class="DocSearch DocSearch-Button" | |
| 26 | > | |
| 23 | 27 | <span class="DocSearch-Button-Container"> |
| 24 | <Search :size="15" stroke-width="1.375" class="inline -translate-y-0.25 scale-125 sm:scale-100" /> | |
| 28 | <Search | |
| 29 | :size="15" | |
| 30 | stroke-width="1.375" | |
| 31 | class="inline -translate-y-0.25 scale-125 sm:scale-100" | |
| 32 | /> | |
| 25 | 33 | <span class="DocSearch-Button-Placeholder"> |
| 26 | 34 | {{ translate('button.buttonText') }} |
| 27 | 35 | </span> |
| @@ -75,7 +83,7 @@ const translate = createSearchTranslate(defaultTranslations) | ||
| 75 | 83 | outline: 2px solid var(--docsearch-focus-color); |
| 76 | 84 | } |
| 77 | 85 | |
| 78 | .DocSearch-Logo [class^='cls-'] { | |
| 86 | .DocSearch-Logo [class^="cls-"] { | |
| 79 | 87 | fill: currentColor; |
| 80 | 88 | } |
| 81 | 89 | |
| @@ -122,17 +130,17 @@ const translate = createSearchTranslate(defaultTranslations) | ||
| 122 | 130 | color: var(--docsearch-key-color); |
| 123 | 131 | } |
| 124 | 132 | |
| 125 | .DocSearch-Button-Keys>* { | |
| 133 | .DocSearch-Button-Keys > * { | |
| 126 | 134 | display: none; |
| 127 | 135 | } |
| 128 | 136 | |
| 129 | 137 | .DocSearch-Button-Keys:after { |
| 130 | 138 | /*rtl:ignore*/ |
| 131 | 139 | direction: ltr; |
| 132 | content: 'Ctrl K'; | |
| 140 | content: "Ctrl K"; | |
| 133 | 141 | } |
| 134 | 142 | |
| 135 | 143 | .mac .DocSearch-Button-Keys:after { |
| 136 | content: '\2318 K'; | |
| 144 | content: "\2318 K"; | |
| 137 | 145 | } |
| 138 | 146 | </style> |
docs/.vitepress/theme/components/Search.vue +200 −75
| @@ -139,7 +139,7 @@ const filterText = disableQueryPersistence.value | ||
| 139 | 139 | const showDetailedList = useLocalStorage( |
| 140 | 140 | 'vitepress:local-search-detailed-list', |
| 141 | 141 | theme.value.search?.provider === 'local' && |
| 142 | theme.value.search.options?.detailedView === true | |
| 142 | theme.value.search.options?.detailedView === true | |
| 143 | 143 | ) |
| 144 | 144 | |
| 145 | 145 | const matchExact = useLocalStorage( |
| @@ -226,7 +226,7 @@ watchDebounced( | ||
| 226 | 226 | if (comp?.render || comp?.setup) { |
| 227 | 227 | const app = createApp(comp) |
| 228 | 228 | // Silence warnings about missing components |
| 229 | app.config.warnHandler = () => { } | |
| 229 | app.config.warnHandler = () => {} | |
| 230 | 230 | app.provide(dataSymbol, vitePressData) |
| 231 | 231 | Object.defineProperties(app.config.globalProperties, { |
| 232 | 232 | $frontmatter: { |
| @@ -293,8 +293,6 @@ watchDebounced( | ||
| 293 | 293 | } |
| 294 | 294 | // FIXME: without this whole page scrolls to the bottom |
| 295 | 295 | resultsEl.value?.firstElementChild?.scrollIntoView({ block: 'start' }) |
| 296 | ||
| 297 | resultsEl.value?.scrollTo(0, 0) | |
| 298 | 296 | }, |
| 299 | 297 | { debounce: 180, immediate: true } |
| 300 | 298 | ) |
| @@ -491,95 +489,175 @@ function onMouseMove(e: MouseEvent) { | ||
| 491 | 489 | |
| 492 | 490 | <template> |
| 493 | 491 | <Teleport to="body"> |
| 494 | <div ref="el" role="button" :aria-owns="results?.length ? 'localsearch-list' : undefined" aria-expanded="true" | |
| 495 | aria-haspopup="listbox" aria-labelledby="localsearch-label" class="VPLocalSearchBox" | |
| 496 | :class="{ 'pointer-events-none': !showSearch }"> | |
| 492 | <div | |
| 493 | ref="el" | |
| 494 | role="button" | |
| 495 | :aria-owns="results?.length ? 'localsearch-list' : undefined" | |
| 496 | aria-expanded="true" | |
| 497 | aria-haspopup="listbox" | |
| 498 | aria-labelledby="localsearch-label" | |
| 499 | class="VPLocalSearchBox" | |
| 500 | :class="{ 'pointer-events-none': !showSearch }" | |
| 501 | > | |
| 497 | 502 | <AnimatePresence> |
| 498 | <motion.div v-if="showSearch" class="backdrop" @click="showSearch = false" :initial="{ | |
| 499 | opacity: 0 | |
| 500 | }" :animate="{ | |
| 503 | <motion.div | |
| 504 | v-if="showSearch" | |
| 505 | class="backdrop" | |
| 506 | @click="showSearch = false" | |
| 507 | :initial="{ | |
| 508 | opacity: 0 | |
| 509 | }" | |
| 510 | :animate="{ | |
| 501 | 511 | opacity: 1 |
| 502 | }" :exit="{ | |
| 512 | }" | |
| 513 | :exit="{ | |
| 503 | 514 | opacity: 0 |
| 504 | }" :transition="{ | |
| 515 | }" | |
| 516 | :transition="{ | |
| 505 | 517 | duration: 0.55, |
| 506 | 518 | ease: [0.16, 1, 0.3, 1] |
| 507 | }" /> | |
| 519 | }" | |
| 520 | /> | |
| 508 | 521 | </AnimatePresence> |
| 509 | 522 | |
| 510 | 523 | <AnimatePresence> |
| 511 | <motion.div v-if="showSearch" layout="size" class="shell" :initial="{ | |
| 512 | opacity: 0, | |
| 513 | scale: 0.9375 | |
| 514 | }" :animate="{ | |
| 524 | <motion.div | |
| 525 | v-if="showSearch" | |
| 526 | layout="size" | |
| 527 | class="shell" | |
| 528 | :initial="{ | |
| 529 | opacity: 0, | |
| 530 | scale: 0.9375 | |
| 531 | }" | |
| 532 | :animate="{ | |
| 515 | 533 | opacity: 1, |
| 516 | 534 | scale: 1 |
| 517 | }" :exit="{ | |
| 535 | }" | |
| 536 | :exit="{ | |
| 518 | 537 | opacity: 0, |
| 519 | 538 | scale: 0.9375 |
| 520 | }" :transition="{ | |
| 539 | }" | |
| 540 | :transition="{ | |
| 521 | 541 | duration: 0.55, |
| 522 | 542 | ease: [0.16, 1, 0.3, 1] |
| 523 | }"> | |
| 524 | <motion.form layout="position" class="search-bar" @pointerup="onSearchBarClick($event)" @submit.prevent=""> | |
| 525 | <label :title="buttonText" id="localsearch-label" for="localsearch-input"> | |
| 526 | <span aria-hidden="true" class="vpi-search search-icon local-search-icon" /> | |
| 543 | }" | |
| 544 | > | |
| 545 | <motion.form | |
| 546 | layout="position" | |
| 547 | class="search-bar" | |
| 548 | @pointerup="onSearchBarClick($event)" | |
| 549 | @submit.prevent="" | |
| 550 | > | |
| 551 | <label | |
| 552 | :title="buttonText" | |
| 553 | id="localsearch-label" | |
| 554 | for="localsearch-input" | |
| 555 | > | |
| 556 | <span | |
| 557 | aria-hidden="true" | |
| 558 | class="vpi-search search-icon local-search-icon" | |
| 559 | /> | |
| 527 | 560 | </label> |
| 528 | 561 | <div class="search-actions before"> |
| 529 | <button class="back-button" :title="translate('modal.backButtonTitle')" @click="showSearch = false"> | |
| 562 | <button | |
| 563 | class="back-button" | |
| 564 | :title="translate('modal.backButtonTitle')" | |
| 565 | @click="showSearch = false" | |
| 566 | > | |
| 530 | 567 | <span class="vpi-arrow-left local-search-icon" /> |
| 531 | 568 | </button> |
| 532 | 569 | </div> |
| 533 | <input ref="searchInput" v-model="filterText" :aria-activedescendant="selectedIndex > -1 | |
| 534 | ? 'localsearch-item-' + selectedIndex | |
| 535 | : undefined | |
| 536 | " aria-autocomplete="both" :aria-controls="results?.length ? 'localsearch-list' : undefined" | |
| 537 | aria-labelledby="localsearch-label" autocapitalize="off" autocomplete="off" autocorrect="off" | |
| 538 | class="search-input" id="localsearch-input" enterkeyhint="go" maxlength="64" :placeholder="buttonText" | |
| 539 | spellcheck="false" type="search" /> | |
| 570 | <input | |
| 571 | ref="searchInput" | |
| 572 | v-model="filterText" | |
| 573 | :aria-activedescendant="selectedIndex > -1 | |
| 574 | ? 'localsearch-item-' + selectedIndex | |
| 575 | : undefined" | |
| 576 | aria-autocomplete="both" | |
| 577 | :aria-controls="results?.length ? 'localsearch-list' : undefined" | |
| 578 | aria-labelledby="localsearch-label" | |
| 579 | autocapitalize="off" | |
| 580 | autocomplete="off" | |
| 581 | autocorrect="off" | |
| 582 | class="search-input" | |
| 583 | id="localsearch-input" | |
| 584 | enterkeyhint="go" | |
| 585 | maxlength="64" | |
| 586 | :placeholder="buttonText" | |
| 587 | spellcheck="false" | |
| 588 | type="search" | |
| 589 | /> | |
| 540 | 590 | <div class="search-actions"> |
| 541 | <button v-if="!disableDetailedView" class="toggle-layout-button" type="button" | |
| 542 | :class="{ 'detailed-list': showDetailedList }" :title="translate('modal.displayDetails')" @click=" | |
| 543 | selectedIndex > -1 && (showDetailedList = !showDetailedList) | |
| 544 | "> | |
| 591 | <button | |
| 592 | v-if="!disableDetailedView" | |
| 593 | class="toggle-layout-button" | |
| 594 | type="button" | |
| 595 | :class="{ 'detailed-list': showDetailedList }" | |
| 596 | :title="translate('modal.displayDetails')" | |
| 597 | @click="selectedIndex > -1 && | |
| 598 | (showDetailedList = !showDetailedList)" | |
| 599 | > | |
| 545 | 600 | <TextAlignStart :size="19" stroke-width="1.25" /> |
| 546 | 601 | </button> |
| 547 | <button class="exact-match-button" type="button" :class="{ 'exact-match-active': matchExact }" | |
| 548 | :title="translate('modal.exactMatchTitle')" @click="matchExact = !matchExact"> | |
| 602 | <button | |
| 603 | class="exact-match-button" | |
| 604 | type="button" | |
| 605 | :class="{ 'exact-match-active': matchExact }" | |
| 606 | :title="translate('modal.exactMatchTitle')" | |
| 607 | @click="matchExact = !matchExact" | |
| 608 | > | |
| 549 | 609 | <Regex :size="19" stroke-width="1.25" /> |
| 550 | 610 | </button> |
| 551 | <button class="clear-button" type="reset" :disabled="disableReset" | |
| 552 | :title="translate('modal.resetButtonTitle')" @click="resetSearch"> | |
| 611 | <button | |
| 612 | class="clear-button" | |
| 613 | type="reset" | |
| 614 | :disabled="disableReset" | |
| 615 | :title="translate('modal.resetButtonTitle')" | |
| 616 | @click="resetSearch" | |
| 617 | > | |
| 553 | 618 | <Delete :size="19" stroke-width="1.25" /> |
| 554 | 619 | </button> |
| 555 | 620 | </div> |
| 556 | 621 | </motion.form> |
| 557 | 622 | |
| 558 | <ul ref="resultsEl" :id="results?.length ? 'localsearch-list' : undefined" | |
| 623 | <ul | |
| 624 | ref="resultsEl" | |
| 625 | :id="results?.length ? 'localsearch-list' : undefined" | |
| 559 | 626 | :role="results?.length ? 'listbox' : undefined" |
| 560 | :aria-labelledby="results?.length ? 'localsearch-label' : undefined" class="results" | |
| 561 | @mousemove="onMouseMove"> | |
| 627 | :aria-labelledby="results?.length ? 'localsearch-label' : undefined" | |
| 628 | class="results" | |
| 629 | @mousemove="onMouseMove" | |
| 630 | > | |
| 562 | 631 | <AnimatePresence> |
| 563 | 632 | <motion.div |
| 564 | 633 | class="flex flex-col justify-center items-center h-47.5 gap-2 font-medium text-sm text-gray-500 dark:text-gray-300 m-auto md:mt-10 md:mb-6 opacity-90" |
| 565 | v-if="!filterText || (filterText && !results.length)" :initial="{ | |
| 634 | v-if="!filterText || (filterText && !results.length)" | |
| 635 | :initial="{ | |
| 566 | 636 | opacity: 0 |
| 567 | }" :animate="{ | |
| 637 | }" | |
| 638 | :animate="{ | |
| 568 | 639 | opacity: 1, |
| 569 | 640 | transition: { |
| 570 | 641 | delay: 0.1 |
| 571 | 642 | } |
| 572 | }" :exit="{ | |
| 643 | }" | |
| 644 | :exit="{ | |
| 573 | 645 | opacity: 0, |
| 574 | 646 | height: 0, |
| 575 | 647 | transition: { |
| 576 | 648 | duration: 0.2 |
| 577 | 649 | } |
| 578 | }" :transition="{ | |
| 650 | }" | |
| 651 | :transition="{ | |
| 579 | 652 | duration: 0.7, |
| 580 | 653 | ease: [0.16, 1, 0.3, 1] |
| 581 | }"> | |
| 582 | <img class="h-40 object-contain object-center -translate-x-2" src="/asset/smolame.png" alt="Smol ame" /> | |
| 654 | }" | |
| 655 | > | |
| 656 | <img | |
| 657 | class="h-40 object-contain object-center -translate-x-2" | |
| 658 | src="/asset/smolame.png" | |
| 659 | alt="Smol ame" | |
| 660 | /> | |
| 583 | 661 | <h1 v-if="filterText && !results.length"> |
| 584 | 662 | Couldn't find anything, try again? |
| 585 | 663 | </h1> |
| @@ -588,39 +666,69 @@ function onMouseMove(e: MouseEvent) { | ||
| 588 | 666 | </AnimatePresence> |
| 589 | 667 | |
| 590 | 668 | <AnimatePresence> |
| 591 | <motion.li v-for="(p, index) in results" :key="p.id" layout class="result-layout" | |
| 592 | :id="'localsearch-item-' + (index + 1)" :aria-selected="selectedIndex === index + 1 ? 'true' : 'false'" | |
| 593 | role="option" :initial="{ | |
| 669 | <motion.li | |
| 670 | v-for="(p, index) in results" | |
| 671 | :key="p.id" | |
| 672 | layout | |
| 673 | class="result-layout" | |
| 674 | :id="'localsearch-item-' + (index + 1)" | |
| 675 | :aria-selected="selectedIndex === index + 1 ? 'true' : 'false'" | |
| 676 | role="option" | |
| 677 | :initial="{ | |
| 594 | 678 | opacity: 0, |
| 595 | 679 | scale: 0.9375 |
| 596 | }" :animate="{ | |
| 680 | }" | |
| 681 | :animate="{ | |
| 597 | 682 | opacity: 1, |
| 598 | 683 | scale: 1 |
| 599 | }" :exit="{ | |
| 684 | }" | |
| 685 | :exit="{ | |
| 600 | 686 | opacity: 0, |
| 601 | 687 | scale: 0.9375, |
| 602 | 688 | height: 0, |
| 603 | 689 | transition: { |
| 604 | 690 | duration: 0.25 |
| 605 | 691 | } |
| 606 | }" :transition="{ | |
| 692 | }" | |
| 693 | :transition="{ | |
| 607 | 694 | duration: 0.55, |
| 608 | 695 | ease: [0.16, 1, 0.3, 1], |
| 609 | 696 | delay: index * 0.02 |
| 610 | }"> | |
| 611 | <a :href="p.id" class="result" :class="{ | |
| 612 | selected: selectedIndex === index + 1 | |
| 613 | }" :aria-label="[...p.titles, p.title].join(' > ')" | |
| 614 | @mouseenter="!disableMouseOver && (selectedIndex = index + 1)" @focusin="selectedIndex = index + 1" | |
| 615 | @click="showSearch = false" :data-index="index + 1"> | |
| 697 | }" | |
| 698 | > | |
| 699 | <a | |
| 700 | :href="p.id" | |
| 701 | class="result" | |
| 702 | :class="{ | |
| 703 | selected: selectedIndex === index + 1 | |
| 704 | }" | |
| 705 | :aria-label="[...p.titles, p.title].join(' > ')" | |
| 706 | @mouseenter="!disableMouseOver && | |
| 707 | (selectedIndex = index + 1)" | |
| 708 | @focusin="selectedIndex = index + 1" | |
| 709 | @click="showSearch = false" | |
| 710 | :data-index="index + 1" | |
| 711 | > | |
| 616 | 712 | <div> |
| 617 | 713 | <div class="titles"> |
| 618 | <Hash v-if="p.titles.length > 0" stroke-width="1.25" :size="18" /> | |
| 714 | <Hash | |
| 715 | v-if="p.titles.length > 0" | |
| 716 | stroke-width="1.25" | |
| 717 | :size="18" | |
| 718 | /> | |
| 619 | 719 | <File v-else stroke-width="1.25" :size="18" /> |
| 620 | 720 | |
| 621 | <span v-for="(t, index) in p.titles" :key="index" class="title"> | |
| 721 | <span | |
| 722 | v-for="(t, index) in p.titles" | |
| 723 | :key="index" | |
| 724 | class="title" | |
| 725 | > | |
| 622 | 726 | <span class="text" v-html="t" /> |
| 623 | <ArrowRight stroke-width="1.25" :size="18" class="mx-0.5" /> | |
| 727 | <ArrowRight | |
| 728 | stroke-width="1.25" | |
| 729 | :size="18" | |
| 730 | class="mx-0.5" | |
| 731 | /> | |
| 624 | 732 | </span> |
| 625 | 733 | <span class="title main"> |
| 626 | 734 | <span class="text" v-html="p.title" /> |
| @@ -628,16 +736,25 @@ function onMouseMove(e: MouseEvent) { | ||
| 628 | 736 | </div> |
| 629 | 737 | |
| 630 | 738 | <div v-if="showDetailedList" class="excerpt-wrapper"> |
| 631 | <motion.div v-if="p.text" layout class="excerpt" inert :initial="{ | |
| 632 | height: 0 | |
| 633 | }" :animate="{ | |
| 739 | <motion.div | |
| 740 | v-if="p.text" | |
| 741 | layout | |
| 742 | class="excerpt" | |
| 743 | inert | |
| 744 | :initial="{ | |
| 745 | height: 0 | |
| 746 | }" | |
| 747 | :animate="{ | |
| 634 | 748 | height: '84px' |
| 635 | }" :exit="{ | |
| 749 | }" | |
| 750 | :exit="{ | |
| 636 | 751 | height: 0 |
| 637 | }" :transition="{ | |
| 752 | }" | |
| 753 | :transition="{ | |
| 638 | 754 | duration: 0.4, |
| 639 | 755 | ease: [0.16, 1, 0.3, 1] |
| 640 | }"> | |
| 756 | }" | |
| 757 | > | |
| 641 | 758 | <div class="vp-doc" v-html="p.text" /> |
| 642 | 759 | </motion.div> |
| 643 | 760 | <div class="excerpt-gradient-bottom" /> |
| @@ -651,10 +768,18 @@ function onMouseMove(e: MouseEvent) { | ||
| 651 | 768 | |
| 652 | 769 | <motion.div layout class="search-keyboard-shortcuts"> |
| 653 | 770 | <span> |
| 654 | <kbd :aria-label="translate('modal.footer.navigateUpKeyAriaLabel')"> | |
| 771 | <kbd | |
| 772 | :aria-label="translate( | |
| 773 | 'modal.footer.navigateUpKeyAriaLabel' | |
| 774 | )" | |
| 775 | > | |
| 655 | 776 | <span class="vpi-arrow-up navigate-icon" /> |
| 656 | 777 | </kbd> |
| 657 | <kbd :aria-label="translate('modal.footer.navigateDownKeyAriaLabel')"> | |
| 778 | <kbd | |
| 779 | :aria-label="translate( | |
| 780 | 'modal.footer.navigateDownKeyAriaLabel' | |
| 781 | )" | |
| 782 | > | |
| 658 | 783 | <span class="vpi-arrow-down navigate-icon" /> |
| 659 | 784 | </kbd> |
| 660 | 785 | {{ translate('modal.footer.navigateText') }} |
| @@ -864,14 +989,14 @@ function onMouseMove(e: MouseEvent) { | ||
| 864 | 989 | outline: none; |
| 865 | 990 | } |
| 866 | 991 | |
| 867 | .result>div { | |
| 992 | .result > div { | |
| 868 | 993 | margin: 12px; |
| 869 | 994 | width: 100%; |
| 870 | 995 | overflow: hidden; |
| 871 | 996 | } |
| 872 | 997 | |
| 873 | 998 | @media (max-width: 767px) { |
| 874 | .result>div { | |
| 999 | .result > div { | |
| 875 | 1000 | margin: 8px; |
| 876 | 1001 | } |
| 877 | 1002 | } |
| @@ -944,11 +1069,11 @@ function onMouseMove(e: MouseEvent) { | ||
| 944 | 1069 | display: none; |
| 945 | 1070 | } |
| 946 | 1071 | |
| 947 | .excerpt :deep(.vp-code-group) div[class*='language-'] { | |
| 1072 | .excerpt :deep(.vp-code-group) div[class*="language-"] { | |
| 948 | 1073 | border-radius: 8px !important; |
| 949 | 1074 | } |
| 950 | 1075 | |
| 951 | .excerpt>.vp-doc>*:first-child { | |
| 1076 | .excerpt > .vp-doc > *:first-child { | |
| 952 | 1077 | margin-top: 6px !important; |
| 953 | 1078 | } |
| 954 | 1079 | |
docs/.vitepress/theme/components/SidebarCard.vue +1 −3
| @@ -14,9 +14,7 @@ const isModalOpen = ref(false) | ||
| 14 | 14 | </script> |
| 15 | 15 | |
| 16 | 16 | <template> |
| 17 | <div | |
| 18 | class="bg-$vp-c-bg hover:bg-$vp-c-bg/40 border-$vp-c-default-soft transition-all duration-500 mt-2 overflow-hidden hover:-translate-y-1 hover:shadow-lg rounded-lg border-2 border-solid relative z-0 max-md:bg-white/85 max-md:dark:bg-neutral-800/85 max-md:border max-md:border-neutral-200 max-md:dark:border-neutral-700" | |
| 19 | > | |
| 17 | <div class="bg-$vp-c-bg hover:bg-$vp-c-bg/40 border-$vp-c-default-soft transition-all duration-500 mt-2 overflow-hidden hover:-translate-y-1 hover:shadow-lg rounded-lg border-2 border-solid relative z-0 max-md:bg-white/85 max-md:dark:bg-neutral-800/85 max-md:border max-md:border-neutral-200 max-md:dark:border-neutral-700"> | |
| 20 | 18 | <div class="h-20 w-full overflow-hidden"> |
| 21 | 19 | <img |
| 22 | 20 | src="/sui.webp" |
docs/.vitepress/theme/components/link-card/Card.vue +6 −2
| @@ -7,8 +7,12 @@ const props = defineProps<{ | ||
| 7 | 7 | </script> |
| 8 | 8 | |
| 9 | 9 | <template> |
| 10 | <a role="article" :href="props.href" :download="props.download ? '' : undefined" | |
| 11 | class="hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98] transition-all! flex flex-col gap-1 text-neutral-600! text-sm px-4 py-3 rounded-2xl border border-neutral-200 dark:bg-neutral-800 dark:border-neutral-800 dark:text-neutral-300! interact:shadow-xl shadow-neutral-700/5 duration-300 font-normal! no-underline!"> | |
| 10 | <a | |
| 11 | role="article" | |
| 12 | :href="props.href" | |
| 13 | :download="props.download ? '' : undefined" | |
| 14 | class="hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98] transition-all! flex flex-col gap-1 text-neutral-600! text-sm px-4 py-3 rounded-2xl border border-neutral-200 dark:bg-neutral-800 dark:border-neutral-800 dark:text-neutral-300! interact:shadow-xl shadow-neutral-700/5 duration-300 font-normal! no-underline!" | |
| 15 | > | |
| 12 | 16 | <h3 class="text-black! dark:text-white! no-underline! font-medium! text-lg my-0!"> |
| 13 | 17 | {{ props.title }} |
| 14 | 18 | </h3> |
docs/.vitepress/theme/components/settings/Menu.vue +2 −2
| @@ -2,13 +2,13 @@ | ||
| 2 | 2 | import { useMounted } from '@vueuse/core' |
| 3 | 3 | import { inject } from 'vue' |
| 4 | 4 | |
| 5 | import { InjectionKey, VPFlyout } from '../../constants' | |
| 5 | 6 | import LayoutSwitch from './LayoutSwitch.vue' |
| 6 | 7 | import LayoutSwitchContentLayoutWidthInput from './LayoutSwitchContentLayoutMaxWidthSlider.vue' |
| 7 | 8 | import LayoutSwitchPageLayoutWidthInput from './LayoutSwitchPageLayoutMaxWidthSlider.vue' |
| 8 | 9 | import Spotlight from './Spotlight.vue' |
| 9 | 10 | import SpotlightStyles from './SpotlightStyles.vue' |
| 10 | 11 | import Takodachi from './Takodachi.vue' |
| 11 | import { InjectionKey, VPFlyout } from '../../constants' | |
| 12 | 12 | |
| 13 | 13 | const options = inject(InjectionKey, {}) |
| 14 | 14 | const mounted = useMounted() |
| @@ -59,7 +59,7 @@ const mounted = useMounted() | ||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | .VPNolebaseEnhancedReadabilitiesMenuFlyout::before { |
| 62 | --uno: 'pr-1.5! pl-1.5!'; | |
| 62 | --uno: "pr-1.5! pl-1.5!"; | |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | @media (min-width: 768px) { |
docs/.vitepress/theme/components/settings/Spotlight.vue +36 −8
| @@ -50,15 +50,27 @@ watch(isTouchScreen, () => { | ||
| 50 | 50 | |
| 51 | 51 | <template> |
| 52 | 52 | <div space-y-2 role="radiogroup"> |
| 53 | <SpotlightHoverBlock v-if="mounted && spotlightToggledOn && !disabled" :enabled="spotlightToggledOn && !disabled" /> | |
| 53 | <SpotlightHoverBlock | |
| 54 | v-if="mounted && spotlightToggledOn && !disabled" | |
| 55 | :enabled="spotlightToggledOn && !disabled" | |
| 56 | /> | |
| 54 | 57 | <div ref="menuTitleElementRef" relative flex items-center> |
| 55 | <MenuTitle title="Spotlight" aria-label="Spotlight" :disabled="disabled" flex="1" pr-4> | |
| 58 | <MenuTitle | |
| 59 | title="Spotlight" | |
| 60 | aria-label="Spotlight" | |
| 61 | :disabled="disabled" | |
| 62 | flex="1" | |
| 63 | pr-4 | |
| 64 | > | |
| 56 | 65 | <template #icon> |
| 57 | 66 | <span i-icon-park-outline:click mr-1 aria-hidden="true" /> |
| 58 | 67 | </template> |
| 59 | 68 | </MenuTitle> |
| 60 | <MenuHelp v-if="!options.spotlight?.disableHelp" v-model:is-popped-up="isMenuHelpPoppedUp" | |
| 61 | :menu-title-element-ref="menuTitleElementRef"> | |
| 69 | <MenuHelp | |
| 70 | v-if="!options.spotlight?.disableHelp" | |
| 71 | v-model:is-popped-up="isMenuHelpPoppedUp" | |
| 72 | :menu-title-element-ref="menuTitleElementRef" | |
| 73 | > | |
| 62 | 74 | <h4 text-md mb-1 font-semibold>Spotlight</h4> |
| 63 | 75 | <p text="sm" mb-2 max-w-100> |
| 64 | 76 | <span> |
| @@ -68,14 +80,26 @@ watch(isTouchScreen, () => { | ||
| 68 | 80 | </span> |
| 69 | 81 | </p> |
| 70 | 82 | <div space-y-2 class="VPNolebaseEnhancedReadabilitiesMenu"> |
| 71 | <div text="sm" bg="$vp-nolebase-enhanced-readabilities-menu-background-color" max-w-100 rounded-xl p-3> | |
| 83 | <div | |
| 84 | text="sm" | |
| 85 | bg="$vp-nolebase-enhanced-readabilities-menu-background-color" | |
| 86 | max-w-100 | |
| 87 | rounded-xl | |
| 88 | p-3 | |
| 89 | > | |
| 72 | 90 | <h5 text="sm" mb-2> |
| 73 | 91 | <span mr-1 font-bold>ON</span> |
| 74 | 92 | <span font-semibold>On</span> |
| 75 | 93 | </h5> |
| 76 | 94 | <span>Turn on the Spotlight feature</span> |
| 77 | 95 | </div> |
| 78 | <div text="sm" bg="$vp-nolebase-enhanced-readabilities-menu-background-color" max-w-100 rounded-xl p-3> | |
| 96 | <div | |
| 97 | text="sm" | |
| 98 | bg="$vp-nolebase-enhanced-readabilities-menu-background-color" | |
| 99 | max-w-100 | |
| 100 | rounded-xl | |
| 101 | p-3 | |
| 102 | > | |
| 79 | 103 | <h5 text="sm" mb-2> |
| 80 | 104 | <span mr-1 font-bold>OFF</span> |
| 81 | 105 | <span font-semibold>Off</span> |
| @@ -86,9 +110,13 @@ watch(isTouchScreen, () => { | ||
| 86 | 110 | </MenuHelp> |
| 87 | 111 | </div> |
| 88 | 112 | <NuInputHighlight :active="isMenuHelpPoppedUp" class="rounded-md"> |
| 89 | <NuInputHorizontalRadioGroup v-model="spotlightToggledOn" | |
| 113 | <NuInputHorizontalRadioGroup | |
| 114 | v-model="spotlightToggledOn" | |
| 90 | 115 | bg="$vp-nolebase-enhanced-readabilities-menu-background-color" |
| 91 | text="sm $vp-nolebase-enhanced-readabilities-menu-text-color" :options="fieldOptions" :disabled="disabled" /> | |
| 116 | text="sm $vp-nolebase-enhanced-readabilities-menu-text-color" | |
| 117 | :options="fieldOptions" | |
| 118 | :disabled="disabled" | |
| 119 | /> | |
| 92 | 120 | </NuInputHighlight> |
| 93 | 121 | </div> |
| 94 | 122 | </template> |
docs/.vitepress/theme/components/settings/Takodachi.vue +23 −5
| @@ -35,12 +35,26 @@ const fieldOptions = computed(() => [ | ||
| 35 | 35 | <template> |
| 36 | 36 | <div space-y-2 role="radiogroup"> |
| 37 | 37 | <div ref="menuTitleElementRef" relative flex items-center> |
| 38 | <MenuTitle title="Takodachi" aria-label="Takodachi" :disabled="disabled" flex="1" pr-4> | |
| 38 | <MenuTitle | |
| 39 | title="Takodachi" | |
| 40 | aria-label="Takodachi" | |
| 41 | :disabled="disabled" | |
| 42 | flex="1" | |
| 43 | pr-4 | |
| 44 | > | |
| 39 | 45 | <template #icon> |
| 40 | <img src="/takodachi.webp" alt="Takodachi" class="w-6 h-6 mr-1" aria-hidden="true" /> | |
| 46 | <img | |
| 47 | src="/takodachi.webp" | |
| 48 | alt="Takodachi" | |
| 49 | class="w-6 h-6 mr-1" | |
| 50 | aria-hidden="true" | |
| 51 | /> | |
| 41 | 52 | </template> |
| 42 | 53 | </MenuTitle> |
| 43 | <MenuHelp v-model:is-popped-up="isMenuHelpPoppedUp" :menu-title-element-ref="menuTitleElementRef"> | |
| 54 | <MenuHelp | |
| 55 | v-model:is-popped-up="isMenuHelpPoppedUp" | |
| 56 | :menu-title-element-ref="menuTitleElementRef" | |
| 57 | > | |
| 44 | 58 | <h4 text-md mb-1 font-semibold>Takodachi</h4> |
| 45 | 59 | <p text="sm" mb-2 max-w-100> |
| 46 | 60 | <span>Gives you a cool takodachi following your cursor.</span> |
| @@ -48,9 +62,13 @@ const fieldOptions = computed(() => [ | ||
| 48 | 62 | </MenuHelp> |
| 49 | 63 | </div> |
| 50 | 64 | <NuInputHighlight :active="isMenuHelpPoppedUp" class="rounded-md"> |
| 51 | <NuInputHorizontalRadioGroup v-model="takodachToggledOn" | |
| 65 | <NuInputHorizontalRadioGroup | |
| 66 | v-model="takodachToggledOn" | |
| 52 | 67 | bg="$vp-nolebase-enhanced-readabilities-menu-background-color" |
| 53 | text="sm $vp-nolebase-enhanced-readabilities-menu-text-color" :options="fieldOptions" :disabled="disabled" /> | |
| 68 | text="sm $vp-nolebase-enhanced-readabilities-menu-text-color" | |
| 69 | :options="fieldOptions" | |
| 70 | :disabled="disabled" | |
| 71 | /> | |
| 54 | 72 | </NuInputHighlight> |
| 55 | 73 | </div> |
| 56 | 74 | </template> |
docs/.vitepress/theme/index.ts +1 −1
| @@ -25,8 +25,8 @@ import Feedback from './components/Feedback.vue' | ||
| 25 | 25 | import Layout from './Layout.vue' |
| 26 | 26 | import './styles/tooltip-hint.css' |
| 27 | 27 | import './styles/steps.css' |
| 28 | import LinkInline from './components/LinkInline.vue' | |
| 29 | 28 | import Block from './components/Block.vue' |
| 29 | import LinkInline from './components/LinkInline.vue' | |
| 30 | 30 | |
| 31 | 31 | export default { |
| 32 | 32 | extends: DefaultTheme, |
docs/.vitepress/theme/styles/steps.css +1 −1
| @@ -55,7 +55,7 @@ html:not(.dark) { | ||
| 55 | 55 | |
| 56 | 56 | .steps ol > li::after { |
| 57 | 57 | --guide-width: 1px; |
| 58 | content: ''; | |
| 58 | content: ""; | |
| 59 | 59 | position: absolute; |
| 60 | 60 | top: calc(var(--bullet-size) + var(--bullet-margin)); |
| 61 | 61 | bottom: var(--bullet-margin); |
docs/.vitepress/theme/styles/style.scss +84 −81
| @@ -41,12 +41,12 @@ $ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0); | ||
| 41 | 41 | --vp-nav-logo-height: 36px; |
| 42 | 42 | |
| 43 | 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'); | |
| 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 | 47 | --vp-c-brand-soft: color-mix( |
| 48 | 48 | in oklch, |
| 49 | theme('colors.brand.400') 40%, | |
| 49 | theme("colors.brand.400") 40%, | |
| 50 | 50 | transparent |
| 51 | 51 | ); |
| 52 | 52 | |
| @@ -67,34 +67,34 @@ $ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0); | ||
| 67 | 67 | |
| 68 | 68 | /* Colors: Custom Block */ |
| 69 | 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'); | |
| 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 | 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'); | |
| 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 | 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'); | |
| 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 | 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'); | |
| 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 | 98 | |
| 99 | 99 | --vp-c-brand-nav-active: color-mix( |
| 100 | 100 | in srgb, |
| @@ -105,45 +105,45 @@ $ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0); | ||
| 105 | 105 | |
| 106 | 106 | .dark { |
| 107 | 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'); | |
| 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 | 111 | --vp-c-brand-soft: color-mix( |
| 112 | 112 | in oklch, |
| 113 | theme('colors.brand.500') 20%, | |
| 113 | theme("colors.brand.500") 20%, | |
| 114 | 114 | transparent |
| 115 | 115 | ); |
| 116 | 116 | |
| 117 | 117 | /* Colors: Custom Block */ |
| 118 | 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'); | |
| 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 | 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'); | |
| 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 | 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'); | |
| 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 | 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'); | |
| 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 | 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'); | |
| 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 | 147 | } |
| 148 | 148 | |
| 149 | 149 | .vp-doc a { |
| @@ -169,10 +169,10 @@ $ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0); | ||
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | ::selection { |
| 172 | background-color: theme('colors.brand.400'); | |
| 172 | background-color: theme("colors.brand.400"); | |
| 173 | 173 | |
| 174 | 174 | .dark & { |
| 175 | background-color: theme('colors.brand.800'); | |
| 175 | background-color: theme("colors.brand.800"); | |
| 176 | 176 | } |
| 177 | 177 | } |
| 178 | 178 | |
| @@ -292,7 +292,7 @@ main figure figcaption { | ||
| 292 | 292 | } |
| 293 | 293 | |
| 294 | 294 | .custom-block { |
| 295 | --uno: 'rounded-xl border-2'; | |
| 295 | --uno: "rounded-xl border-2"; | |
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | .info.custom-block a { |
| @@ -361,23 +361,23 @@ main figure figcaption { | ||
| 361 | 361 | } |
| 362 | 362 | |
| 363 | 363 | .info.custom-block { |
| 364 | --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWluZm8iPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PHBhdGggZD0iTTEyIDE2di00Ii8+PHBhdGggZD0iTTEyIDhoLjAxIi8+PC9zdmc+'); | |
| 364 | --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWluZm8iPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PHBhdGggZD0iTTEyIDE2di00Ii8+PHBhdGggZD0iTTEyIDhoLjAxIi8+PC9zdmc+"); | |
| 365 | 365 | } |
| 366 | 366 | |
| 367 | 367 | .note.custom-block { |
| 368 | --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWluZm8iPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PHBhdGggZD0iTTEyIDE2di00Ii8+PHBhdGggZD0iTTEyIDhoLjAxIi8+PC9zdmc+'); | |
| 368 | --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWluZm8iPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PHBhdGggZD0iTTEyIDE2di00Ii8+PHBhdGggZD0iTTEyIDhoLjAxIi8+PC9zdmc+"); | |
| 369 | 369 | } |
| 370 | 370 | |
| 371 | 371 | .tip.custom-block { |
| 372 | --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWxpZ2h0YnVsYiI+PHBhdGggZD0iTTE1IDE0Yy4yLTEgLjctMS43IDEuNS0yLjUgMS0uOSAxLjUtMi4yIDEuNS0zLjVBNiA2IDAgMCAwIDYgOGMwIDEgLjIgMi4yIDEuNSAzLjUuNy43IDEuMyAxLjUgMS41IDIuNSIvPjxwYXRoIGQ9Ik05IDE4aDYiLz48cGF0aCBkPSJNMTAgMjJoNCIvPjwvc3ZnPg=='); | |
| 372 | --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWxpZ2h0YnVsYiI+PHBhdGggZD0iTTE1IDE0Yy4yLTEgLjctMS43IDEuNS0yLjUgMS0uOSAxLjUtMi4yIDEuNS0zLjVBNiA2IDAgMCAwIDYgOGMwIDEgLjIgMi4yIDEuNSAzLjUuNy43IDEuMyAxLjUgMS41IDIuNSIvPjxwYXRoIGQ9Ik05IDE4aDYiLz48cGF0aCBkPSJNMTAgMjJoNCIvPjwvc3ZnPg=="); | |
| 373 | 373 | } |
| 374 | 374 | |
| 375 | 375 | .warning.custom-block { |
| 376 | --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWFsZXJ0LXRyaWFuZ2xlIj48cGF0aCBkPSJtMjEuNzMgMTgtOC0xNGEyIDIgMCAwIDAtMy40OCAwbC04IDE0QTIgMiAwIDAgMCA0IDIxaDE2YTIgMiAwIDAgMCAxLjczLTNaIi8+PHBhdGggZD0iTTEyIDl2NCIvPjxwYXRoIGQ9Ik0xMiAxN2guMDEiLz48L3N2Zz4='); | |
| 376 | --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWFsZXJ0LXRyaWFuZ2xlIj48cGF0aCBkPSJtMjEuNzMgMTgtOC0xNGEyIDIgMCAwIDAtMy40OCAwbC04IDE0QTIgMiAwIDAgMCA0IDIxaDE2YTIgMiAwIDAgMCAxLjczLTNaIi8+PHBhdGggZD0iTTEyIDl2NCIvPjxwYXRoIGQ9Ik0xMiAxN2guMDEiLz48L3N2Zz4="); | |
| 377 | 377 | } |
| 378 | 378 | |
| 379 | 379 | .danger.custom-block { |
| 380 | --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXNrdWxsIj48Y2lyY2xlIGN4PSI5IiBjeT0iMTIiIHI9IjEiLz48Y2lyY2xlIGN4PSIxNSIgY3k9IjEyIiByPSIxIi8+PHBhdGggZD0iTTggMjB2Mmg4di0yIi8+PHBhdGggZD0ibTEyLjUgMTctLjUtMS0uNSAxaDF6Ii8+PHBhdGggZD0iTTE2IDIwYTIgMiAwIDAgMCAxLjU2LTMuMjUgOCA4IDAgMSAwLTExLjEyIDBBMiAyIDAgMCAwIDggMjAiLz48L3N2Zz4='); | |
| 380 | --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXNrdWxsIj48Y2lyY2xlIGN4PSI5IiBjeT0iMTIiIHI9IjEiLz48Y2lyY2xlIGN4PSIxNSIgY3k9IjEyIiByPSIxIi8+PHBhdGggZD0iTTggMjB2Mmg4di0yIi8+PHBhdGggZD0ibTEyLjUgMTctLjUtMS0uNSAxaDF6Ii8+PHBhdGggZD0iTTE2IDIwYTIgMiAwIDAgMCAxLjU2LTMuMjUgOCA4IDAgMSAwLTExLjEyIDBBMiAyIDAgMCAwIDggMjAiLz48L3N2Zz4="); | |
| 381 | 381 | } |
| 382 | 382 | |
| 383 | 383 | .custom-block-title { |
| @@ -387,7 +387,7 @@ main figure figcaption { | ||
| 387 | 387 | } |
| 388 | 388 | |
| 389 | 389 | .custom-block-title::before { |
| 390 | content: ''; | |
| 390 | content: ""; | |
| 391 | 391 | width: 16px; |
| 392 | 392 | height: 16px; |
| 393 | 393 | -webkit-mask: var(--icon) no-repeat; |
| @@ -457,31 +457,31 @@ table tr:nth-child(odd) { | ||
| 457 | 457 | .tip.custom-block table tr, |
| 458 | 458 | .tip.custom-block table td, |
| 459 | 459 | .tip.custom-block table th { |
| 460 | border-color: theme('colors.meadow.800') !important; | |
| 460 | border-color: theme("colors.meadow.800") !important; | |
| 461 | 461 | } |
| 462 | 462 | |
| 463 | 463 | .info.custom-block table tr, |
| 464 | 464 | .info.custom-block table td, |
| 465 | 465 | .info.custom-block table th { |
| 466 | border-color: theme('colors.brand.800') !important; | |
| 466 | border-color: theme("colors.brand.800") !important; | |
| 467 | 467 | } |
| 468 | 468 | |
| 469 | 469 | .warning.custom-block table tr, |
| 470 | 470 | .warning.custom-block table td, |
| 471 | 471 | .warning.custom-block table th { |
| 472 | border-color: theme('colors.merlin.800') !important; | |
| 472 | border-color: theme("colors.merlin.800") !important; | |
| 473 | 473 | } |
| 474 | 474 | |
| 475 | 475 | .danger.custom-block table tr, |
| 476 | 476 | .danger.custom-block table td, |
| 477 | 477 | .danger.custom-block table th { |
| 478 | border-color: theme('colors.carnation.800') !important; | |
| 478 | border-color: theme("colors.carnation.800") !important; | |
| 479 | 479 | } |
| 480 | 480 | |
| 481 | 481 | .details.custom-block table tr, |
| 482 | 482 | .details.custom-block table td, |
| 483 | 483 | .details.custom-block table th { |
| 484 | border-color: theme('colors.brand.800') !important; | |
| 484 | border-color: theme("colors.brand.800") !important; | |
| 485 | 485 | } |
| 486 | 486 | |
| 487 | 487 | /** fix for nolebase-git-changelog */ |
| @@ -588,12 +588,14 @@ table tr:nth-child(odd) { | ||
| 588 | 588 | /* nested accordian */ |
| 589 | 589 | .level-1.collapsible { |
| 590 | 590 | @apply min-h-8; |
| 591 | transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important; | |
| 591 | transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1) | |
| 592 | !important; | |
| 592 | 593 | |
| 593 | 594 | &.collapsed { |
| 594 | 595 | @apply motion-reduce:transition-none; |
| 595 | 596 | |
| 596 | transition: grid-template-rows 0.325s cubic-bezier(0.5, 0, 0.75, 0) !important; | |
| 597 | transition: grid-template-rows 0.325s cubic-bezier(0.5, 0, 0.75, 0) | |
| 598 | !important; | |
| 597 | 599 | } |
| 598 | 600 | |
| 599 | 601 | & > .item { |
| @@ -909,7 +911,7 @@ table tr:nth-child(odd) { | ||
| 909 | 911 | border-radius: 50%; |
| 910 | 912 | overflow: visible; |
| 911 | 913 | |
| 912 | [class^='vpi-'] { | |
| 914 | [class^="vpi-"] { | |
| 913 | 915 | position: absolute; |
| 914 | 916 | top: 2px; |
| 915 | 917 | left: 2px; |
| @@ -968,10 +970,10 @@ table tr:nth-child(odd) { | ||
| 968 | 970 | |
| 969 | 971 | & > .shell { |
| 970 | 972 | /* 688px is the max-width of the content (Vitepress default) */ |
| 971 | --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'; | |
| 973 | --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"; | |
| 972 | 974 | |
| 973 | 975 | & > .search-bar { |
| 974 | --uno: 'w-full py-1.5 px-2 border-0 border-b border-neutral-400/25! dark:border-neutral-600/65! rounded-none'; | |
| 976 | --uno: "w-full py-1.5 px-2 border-0 border-b border-neutral-400/25! dark:border-neutral-600/65! rounded-none"; | |
| 975 | 977 | |
| 976 | 978 | & > #localsearch-label { |
| 977 | 979 | @apply opacity-50!; |
| @@ -996,7 +998,7 @@ table tr:nth-child(odd) { | ||
| 996 | 998 | &::after { |
| 997 | 999 | @apply fixed hidden md:block left-0 bottom-11 w-full h-0.25 |
| 998 | 1000 | bg-neutral-400/25 dark:bg-neutral-600/65; |
| 999 | content: ''; | |
| 1001 | content: ""; | |
| 1000 | 1002 | } |
| 1001 | 1003 | |
| 1002 | 1004 | & > li { |
| @@ -1162,8 +1164,8 @@ table tr:nth-child(odd) { | ||
| 1162 | 1164 | |
| 1163 | 1165 | &::before { |
| 1164 | 1166 | @apply inline-block size-3.5 bg-cover mr-1.5; |
| 1165 | content: ''; | |
| 1166 | 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>'); | |
| 1167 | content: ""; | |
| 1168 | 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>"); | |
| 1167 | 1169 | } |
| 1168 | 1170 | |
| 1169 | 1171 | .dark &::before { |
| @@ -1206,7 +1208,7 @@ table tr:nth-child(odd) { | ||
| 1206 | 1208 | } |
| 1207 | 1209 | |
| 1208 | 1210 | & > .VPDocOutlineItem { |
| 1209 | --uno: 'border-l-2! border-neutral-100 dark:border-neutral-600 pl-4'; | |
| 1211 | --uno: "border-l-2! border-neutral-100 dark:border-neutral-600 pl-4"; | |
| 1210 | 1212 | } |
| 1211 | 1213 | } |
| 1212 | 1214 | } |
| @@ -1214,7 +1216,8 @@ table tr:nth-child(odd) { | ||
| 1214 | 1216 | .aside-container { |
| 1215 | 1217 | padding-top: calc( |
| 1216 | 1218 | var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + |
| 1217 | var(--vp-doc-top-height, 0px) + 24px | |
| 1219 | var(--vp-doc-top-height, 0px) + | |
| 1220 | 24px | |
| 1218 | 1221 | ) !important; |
| 1219 | 1222 | } |
| 1220 | 1223 | |