Commit 5b7264f968

5b7264f968343dd19a7cbe67bf776740791ca13e

parent: 0c93197cf2

Unregistered key

taskylizard <75871323+taskylizard@users.noreply.github.com> · 2025-11-13 07:29 UTC

fix oopsie, format

Layout: unified · split

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