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 {
2424 NolebaseEnhancedReadabilitiesScreenMenu
2525} from './components/settings'
2626import SidebarCard from './components/SidebarCard.vue'
27import { v2add, v2mag, v2norm, v2smul, v2sub, type Vec2D } from './math'
2827import { TakodachiStorageKey } from './constants'
28import { v2add, v2mag, v2norm, v2smul, v2sub, type Vec2D } from './math'
2929
3030const route = useRoute()
3131const { Layout } = DefaultTheme
@@ -130,10 +130,9 @@ const reloadTakodachi = () => {
130130
131131 const diff = v2sub(mousePos, currentPos)
132132
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))
137136
138137 const finalVec = v2sub(target, offset)
139138
@@ -175,27 +174,50 @@ onUnmounted(() => {
175174<template>
176175 <Layout>
177176 <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="{
180184 left: `${position.x}px`,
181185 top: `${position.y}px`
182 }" />
186 }"
187 />
183188 </template>
184189 <template #doc-before>
185190 <!-- 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 >
187196 <ol class="flex flex-wrap items-center gap-2">
188197 <li>
189198 <a href="/" class="hover:text-primary transition-colors">
190199 <span class="i-lucide:home"></span>
191200 </a>
192201 </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>
199221 </li>
200222 </ol>
201223 </nav>
docs/.vitepress/theme/components/Block.vue +7 −2
@@ -18,8 +18,13 @@ withDefaults(
1818</script>
1919
2020<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 >
2328 <div :class="icon" />
2429 <slot>{{ text }}</slot>
2530 </component>
docs/.vitepress/theme/components/DevOnly.vue +2 −1
@@ -10,5 +10,6 @@ const isDev = import.meta.env.DEV
1010 <div v-if="isDev" class="vp-doc vp-doc-content">
1111 <slot />
1212 </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>
1415</template>
docs/.vitepress/theme/components/LegendModal.vue +7 −10
@@ -151,13 +151,9 @@ const sections = [
151151 />
152152
153153 <!-- 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">
157155 <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">
161157 <div class="i-lucide-badge-info text-$vp-c-text-1 mr-2" />
162158 Icon key
163159 </h2>
@@ -174,16 +170,17 @@ const sections = [
174170 <h3 class="text-$vp-c-text-1 font-bold mb-3">
175171 {{ section.title }}
176172 </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">
180174 <div
181175 v-for="item in section.items"
182176 :key="item.label"
183177 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"
184178 >
185179 <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 ]"
187184 />
188185 <div class="text-$vp-c-text-2 text-xs text-center">
189186 {{ item.label }}
docs/.vitepress/theme/components/LinkInline.vue +5 −2
@@ -14,8 +14,11 @@ defineProps<{
1414 <span class="sr-only">{{ title }}</span>
1515 <ClientOnly>
1616 <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 >
1922 {{ title }}
2023 </a>
2124
docs/.vitepress/theme/components/NavBarSearchButton.vue +15 −7
@@ -18,10 +18,18 @@ const translate = createSearchTranslate(defaultTranslations)
1818</script>
1919
2020<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 >
2327 <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 />
2533 <span class="DocSearch-Button-Placeholder">
2634 {{ translate('button.buttonText') }}
2735 </span>
@@ -75,7 +83,7 @@ const translate = createSearchTranslate(defaultTranslations)
7583 outline: 2px solid var(--docsearch-focus-color);
7684}
7785
78.DocSearch-Logo [class^='cls-'] {
86.DocSearch-Logo [class^="cls-"] {
7987 fill: currentColor;
8088}
8189
@@ -122,17 +130,17 @@ const translate = createSearchTranslate(defaultTranslations)
122130 color: var(--docsearch-key-color);
123131}
124132
125.DocSearch-Button-Keys>* {
133.DocSearch-Button-Keys > * {
126134 display: none;
127135}
128136
129137.DocSearch-Button-Keys:after {
130138 /*rtl:ignore*/
131139 direction: ltr;
132 content: 'Ctrl K';
140 content: "Ctrl K";
133141}
134142
135143.mac .DocSearch-Button-Keys:after {
136 content: '\2318 K';
144 content: "\2318 K";
137145}
138146</style>
docs/.vitepress/theme/components/Search.vue +200 −75
@@ -139,7 +139,7 @@ const filterText = disableQueryPersistence.value
139139const showDetailedList = useLocalStorage(
140140 'vitepress:local-search-detailed-list',
141141 theme.value.search?.provider === 'local' &&
142 theme.value.search.options?.detailedView === true
142 theme.value.search.options?.detailedView === true
143143)
144144
145145const matchExact = useLocalStorage(
@@ -226,7 +226,7 @@ watchDebounced(
226226 if (comp?.render || comp?.setup) {
227227 const app = createApp(comp)
228228 // Silence warnings about missing components
229 app.config.warnHandler = () => { }
229 app.config.warnHandler = () => {}
230230 app.provide(dataSymbol, vitePressData)
231231 Object.defineProperties(app.config.globalProperties, {
232232 $frontmatter: {
@@ -293,8 +293,6 @@ watchDebounced(
293293 }
294294 // FIXME: without this whole page scrolls to the bottom
295295 resultsEl.value?.firstElementChild?.scrollIntoView({ block: 'start' })
296
297 resultsEl.value?.scrollTo(0, 0)
298296 },
299297 { debounce: 180, immediate: true }
300298)
@@ -491,95 +489,175 @@ function onMouseMove(e: MouseEvent) {
491489
492490<template>
493491 <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 >
497502 <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="{
501511 opacity: 1
502 }" :exit="{
512 }"
513 :exit="{
503514 opacity: 0
504 }" :transition="{
515 }"
516 :transition="{
505517 duration: 0.55,
506518 ease: [0.16, 1, 0.3, 1]
507 }" />
519 }"
520 />
508521 </AnimatePresence>
509522
510523 <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="{
515533 opacity: 1,
516534 scale: 1
517 }" :exit="{
535 }"
536 :exit="{
518537 opacity: 0,
519538 scale: 0.9375
520 }" :transition="{
539 }"
540 :transition="{
521541 duration: 0.55,
522542 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 />
527560 </label>
528561 <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 >
530567 <span class="vpi-arrow-left local-search-icon" />
531568 </button>
532569 </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 />
540590 <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 >
545600 <TextAlignStart :size="19" stroke-width="1.25" />
546601 </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 >
549609 <Regex :size="19" stroke-width="1.25" />
550610 </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 >
553618 <Delete :size="19" stroke-width="1.25" />
554619 </button>
555620 </div>
556621 </motion.form>
557622
558 <ul ref="resultsEl" :id="results?.length ? 'localsearch-list' : undefined"
623 <ul
624 ref="resultsEl"
625 :id="results?.length ? 'localsearch-list' : undefined"
559626 :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 >
562631 <AnimatePresence>
563632 <motion.div
564633 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="{
566636 opacity: 0
567 }" :animate="{
637 }"
638 :animate="{
568639 opacity: 1,
569640 transition: {
570641 delay: 0.1
571642 }
572 }" :exit="{
643 }"
644 :exit="{
573645 opacity: 0,
574646 height: 0,
575647 transition: {
576648 duration: 0.2
577649 }
578 }" :transition="{
650 }"
651 :transition="{
579652 duration: 0.7,
580653 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 />
583661 <h1 v-if="filterText && !results.length">
584662 Couldn't find anything, try again?
585663 </h1>
@@ -588,39 +666,69 @@ function onMouseMove(e: MouseEvent) {
588666 </AnimatePresence>
589667
590668 <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="{
594678 opacity: 0,
595679 scale: 0.9375
596 }" :animate="{
680 }"
681 :animate="{
597682 opacity: 1,
598683 scale: 1
599 }" :exit="{
684 }"
685 :exit="{
600686 opacity: 0,
601687 scale: 0.9375,
602688 height: 0,
603689 transition: {
604690 duration: 0.25
605691 }
606 }" :transition="{
692 }"
693 :transition="{
607694 duration: 0.55,
608695 ease: [0.16, 1, 0.3, 1],
609696 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 >
616712 <div>
617713 <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 />
619719 <File v-else stroke-width="1.25" :size="18" />
620720
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 >
622726 <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 />
624732 </span>
625733 <span class="title main">
626734 <span class="text" v-html="p.title" />
@@ -628,16 +736,25 @@ function onMouseMove(e: MouseEvent) {
628736 </div>
629737
630738 <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="{
634748 height: '84px'
635 }" :exit="{
749 }"
750 :exit="{
636751 height: 0
637 }" :transition="{
752 }"
753 :transition="{
638754 duration: 0.4,
639755 ease: [0.16, 1, 0.3, 1]
640 }">
756 }"
757 >
641758 <div class="vp-doc" v-html="p.text" />
642759 </motion.div>
643760 <div class="excerpt-gradient-bottom" />
@@ -651,10 +768,18 @@ function onMouseMove(e: MouseEvent) {
651768
652769 <motion.div layout class="search-keyboard-shortcuts">
653770 <span>
654 <kbd :aria-label="translate('modal.footer.navigateUpKeyAriaLabel')">
771 <kbd
772 :aria-label="translate(
773 'modal.footer.navigateUpKeyAriaLabel'
774 )"
775 >
655776 <span class="vpi-arrow-up navigate-icon" />
656777 </kbd>
657 <kbd :aria-label="translate('modal.footer.navigateDownKeyAriaLabel')">
778 <kbd
779 :aria-label="translate(
780 'modal.footer.navigateDownKeyAriaLabel'
781 )"
782 >
658783 <span class="vpi-arrow-down navigate-icon" />
659784 </kbd>
660785 {{ translate('modal.footer.navigateText') }}
@@ -864,14 +989,14 @@ function onMouseMove(e: MouseEvent) {
864989 outline: none;
865990}
866991
867.result>div {
992.result > div {
868993 margin: 12px;
869994 width: 100%;
870995 overflow: hidden;
871996}
872997
873998@media (max-width: 767px) {
874 .result>div {
999 .result > div {
8751000 margin: 8px;
8761001 }
8771002}
@@ -944,11 +1069,11 @@ function onMouseMove(e: MouseEvent) {
9441069 display: none;
9451070}
9461071
947.excerpt :deep(.vp-code-group) div[class*='language-'] {
1072.excerpt :deep(.vp-code-group) div[class*="language-"] {
9481073 border-radius: 8px !important;
9491074}
9501075
951.excerpt>.vp-doc>*:first-child {
1076.excerpt > .vp-doc > *:first-child {
9521077 margin-top: 6px !important;
9531078}
9541079
docs/.vitepress/theme/components/SidebarCard.vue +1 −3
@@ -14,9 +14,7 @@ const isModalOpen = ref(false)
1414</script>
1515
1616<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">
2018 <div class="h-20 w-full overflow-hidden">
2119 <img
2220 src="/sui.webp"
docs/.vitepress/theme/components/link-card/Card.vue +6 −2
@@ -7,8 +7,12 @@ const props = defineProps<{
77</script>
88
99<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 >
1216 <h3 class="text-black! dark:text-white! no-underline! font-medium! text-lg my-0!">
1317 {{ props.title }}
1418 </h3>
docs/.vitepress/theme/components/settings/Menu.vue +2 −2
@@ -2,13 +2,13 @@
22import { useMounted } from '@vueuse/core'
33import { inject } from 'vue'
44
5import { InjectionKey, VPFlyout } from '../../constants'
56import LayoutSwitch from './LayoutSwitch.vue'
67import LayoutSwitchContentLayoutWidthInput from './LayoutSwitchContentLayoutMaxWidthSlider.vue'
78import LayoutSwitchPageLayoutWidthInput from './LayoutSwitchPageLayoutMaxWidthSlider.vue'
89import Spotlight from './Spotlight.vue'
910import SpotlightStyles from './SpotlightStyles.vue'
1011import Takodachi from './Takodachi.vue'
11import { InjectionKey, VPFlyout } from '../../constants'
1212
1313const options = inject(InjectionKey, {})
1414const mounted = useMounted()
@@ -59,7 +59,7 @@ const mounted = useMounted()
5959}
6060
6161.VPNolebaseEnhancedReadabilitiesMenuFlyout::before {
62 --uno: 'pr-1.5! pl-1.5!';
62 --uno: "pr-1.5! pl-1.5!";
6363}
6464
6565@media (min-width: 768px) {
docs/.vitepress/theme/components/settings/Spotlight.vue +36 −8
@@ -50,15 +50,27 @@ watch(isTouchScreen, () => {
5050
5151<template>
5252 <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 />
5457 <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 >
5665 <template #icon>
5766 <span i-icon-park-outline:click mr-1 aria-hidden="true" />
5867 </template>
5968 </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 >
6274 <h4 text-md mb-1 font-semibold>Spotlight</h4>
6375 <p text="sm" mb-2 max-w-100>
6476 <span>
@@ -68,14 +80,26 @@ watch(isTouchScreen, () => {
6880 </span>
6981 </p>
7082 <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 >
7290 <h5 text="sm" mb-2>
7391 <span mr-1 font-bold>ON</span>
7492 <span font-semibold>On</span>
7593 </h5>
7694 <span>Turn on the Spotlight feature</span>
7795 </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 >
79103 <h5 text="sm" mb-2>
80104 <span mr-1 font-bold>OFF</span>
81105 <span font-semibold>Off</span>
@@ -86,9 +110,13 @@ watch(isTouchScreen, () => {
86110 </MenuHelp>
87111 </div>
88112 <NuInputHighlight :active="isMenuHelpPoppedUp" class="rounded-md">
89 <NuInputHorizontalRadioGroup v-model="spotlightToggledOn"
113 <NuInputHorizontalRadioGroup
114 v-model="spotlightToggledOn"
90115 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 />
92120 </NuInputHighlight>
93121 </div>
94122</template>
docs/.vitepress/theme/components/settings/Takodachi.vue +23 −5
@@ -35,12 +35,26 @@ const fieldOptions = computed(() => [
3535<template>
3636 <div space-y-2 role="radiogroup">
3737 <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 >
3945 <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 />
4152 </template>
4253 </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 >
4458 <h4 text-md mb-1 font-semibold>Takodachi</h4>
4559 <p text="sm" mb-2 max-w-100>
4660 <span>Gives you a cool takodachi following your cursor.</span>
@@ -48,9 +62,13 @@ const fieldOptions = computed(() => [
4862 </MenuHelp>
4963 </div>
5064 <NuInputHighlight :active="isMenuHelpPoppedUp" class="rounded-md">
51 <NuInputHorizontalRadioGroup v-model="takodachToggledOn"
65 <NuInputHorizontalRadioGroup
66 v-model="takodachToggledOn"
5267 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 />
5472 </NuInputHighlight>
5573 </div>
5674</template>
docs/.vitepress/theme/index.ts +1 −1
@@ -25,8 +25,8 @@ import Feedback from './components/Feedback.vue'
2525import Layout from './Layout.vue'
2626import './styles/tooltip-hint.css'
2727import './styles/steps.css'
28import LinkInline from './components/LinkInline.vue'
2928import Block from './components/Block.vue'
29import LinkInline from './components/LinkInline.vue'
3030
3131export default {
3232 extends: DefaultTheme,
docs/.vitepress/theme/styles/steps.css +1 −1
@@ -55,7 +55,7 @@ html:not(.dark) {
5555
5656.steps ol > li::after {
5757 --guide-width: 1px;
58 content: '';
58 content: "";
5959 position: absolute;
6060 top: calc(var(--bullet-size) + var(--bullet-margin));
6161 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);
4141 --vp-nav-logo-height: 36px;
4242
4343 /* 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");
4747 --vp-c-brand-soft: color-mix(
4848 in oklch,
49 theme('colors.brand.400') 40%,
49 theme("colors.brand.400") 40%,
5050 transparent
5151 );
5252
@@ -67,34 +67,34 @@ $ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0);
6767
6868 /* Colors: Custom Block */
6969 /** 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");
7474 /** 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");
7979 /** 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");
8484 /** 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");
9898
9999 --vp-c-brand-nav-active: color-mix(
100100 in srgb,
@@ -105,45 +105,45 @@ $ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0);
105105
106106.dark {
107107 /* 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");
111111 --vp-c-brand-soft: color-mix(
112112 in oklch,
113 theme('colors.brand.500') 20%,
113 theme("colors.brand.500") 20%,
114114 transparent
115115 );
116116
117117 /* Colors: Custom Block */
118118 /** 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");
123123 /** 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");
128128 /** 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");
133133 /** 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");
138138
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");
147147}
148148
149149.vp-doc a {
@@ -169,10 +169,10 @@ $ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0);
169169}
170170
171171::selection {
172 background-color: theme('colors.brand.400');
172 background-color: theme("colors.brand.400");
173173
174174 .dark & {
175 background-color: theme('colors.brand.800');
175 background-color: theme("colors.brand.800");
176176 }
177177}
178178
@@ -292,7 +292,7 @@ main figure figcaption {
292292}
293293
294294.custom-block {
295 --uno: 'rounded-xl border-2';
295 --uno: "rounded-xl border-2";
296296}
297297
298298.info.custom-block a {
@@ -361,23 +361,23 @@ main figure figcaption {
361361}
362362
363363.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+");
365365}
366366
367367.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+");
369369}
370370
371371.tip.custom-block {
372 --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWxpZ2h0YnVsYiI+PHBhdGggZD0iTTE1IDE0Yy4yLTEgLjctMS43IDEuNS0yLjUgMS0uOSAxLjUtMi4yIDEuNS0zLjVBNiA2IDAgMCAwIDYgOGMwIDEgLjIgMi4yIDEuNSAzLjUuNy43IDEuMyAxLjUgMS41IDIuNSIvPjxwYXRoIGQ9Ik05IDE4aDYiLz48cGF0aCBkPSJNMTAgMjJoNCIvPjwvc3ZnPg==');
372 --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWxpZ2h0YnVsYiI+PHBhdGggZD0iTTE1IDE0Yy4yLTEgLjctMS43IDEuNS0yLjUgMS0uOSAxLjUtMi4yIDEuNS0zLjVBNiA2IDAgMCAwIDYgOGMwIDEgLjIgMi4yIDEuNSAzLjUuNy43IDEuMyAxLjUgMS41IDIuNSIvPjxwYXRoIGQ9Ik05IDE4aDYiLz48cGF0aCBkPSJNMTAgMjJoNCIvPjwvc3ZnPg==");
373373}
374374
375375.warning.custom-block {
376 --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWFsZXJ0LXRyaWFuZ2xlIj48cGF0aCBkPSJtMjEuNzMgMTgtOC0xNGEyIDIgMCAwIDAtMy40OCAwbC04IDE0QTIgMiAwIDAgMCA0IDIxaDE2YTIgMiAwIDAgMCAxLjczLTNaIi8+PHBhdGggZD0iTTEyIDl2NCIvPjxwYXRoIGQ9Ik0xMiAxN2guMDEiLz48L3N2Zz4=');
376 --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWFsZXJ0LXRyaWFuZ2xlIj48cGF0aCBkPSJtMjEuNzMgMTgtOC0xNGEyIDIgMCAwIDAtMy40OCAwbC04IDE0QTIgMiAwIDAgMCA0IDIxaDE2YTIgMiAwIDAgMCAxLjczLTNaIi8+PHBhdGggZD0iTTEyIDl2NCIvPjxwYXRoIGQ9Ik0xMiAxN2guMDEiLz48L3N2Zz4=");
377377}
378378
379379.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=");
381381}
382382
383383.custom-block-title {
@@ -387,7 +387,7 @@ main figure figcaption {
387387}
388388
389389.custom-block-title::before {
390 content: '';
390 content: "";
391391 width: 16px;
392392 height: 16px;
393393 -webkit-mask: var(--icon) no-repeat;
@@ -457,31 +457,31 @@ table tr:nth-child(odd) {
457457.tip.custom-block table tr,
458458.tip.custom-block table td,
459459.tip.custom-block table th {
460 border-color: theme('colors.meadow.800') !important;
460 border-color: theme("colors.meadow.800") !important;
461461}
462462
463463.info.custom-block table tr,
464464.info.custom-block table td,
465465.info.custom-block table th {
466 border-color: theme('colors.brand.800') !important;
466 border-color: theme("colors.brand.800") !important;
467467}
468468
469469.warning.custom-block table tr,
470470.warning.custom-block table td,
471471.warning.custom-block table th {
472 border-color: theme('colors.merlin.800') !important;
472 border-color: theme("colors.merlin.800") !important;
473473}
474474
475475.danger.custom-block table tr,
476476.danger.custom-block table td,
477477.danger.custom-block table th {
478 border-color: theme('colors.carnation.800') !important;
478 border-color: theme("colors.carnation.800") !important;
479479}
480480
481481.details.custom-block table tr,
482482.details.custom-block table td,
483483.details.custom-block table th {
484 border-color: theme('colors.brand.800') !important;
484 border-color: theme("colors.brand.800") !important;
485485}
486486
487487/** fix for nolebase-git-changelog */
@@ -588,12 +588,14 @@ table tr:nth-child(odd) {
588588 /* nested accordian */
589589 .level-1.collapsible {
590590 @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;
592593
593594 &.collapsed {
594595 @apply motion-reduce:transition-none;
595596
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;
597599 }
598600
599601 & > .item {
@@ -909,7 +911,7 @@ table tr:nth-child(odd) {
909911 border-radius: 50%;
910912 overflow: visible;
911913
912 [class^='vpi-'] {
914 [class^="vpi-"] {
913915 position: absolute;
914916 top: 2px;
915917 left: 2px;
@@ -968,10 +970,10 @@ table tr:nth-child(odd) {
968970
969971 & > .shell {
970972 /* 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";
972974
973975 & > .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";
975977
976978 & > #localsearch-label {
977979 @apply opacity-50!;
@@ -996,7 +998,7 @@ table tr:nth-child(odd) {
996998 &::after {
997999 @apply fixed hidden md:block left-0 bottom-11 w-full h-0.25
9981000 bg-neutral-400/25 dark:bg-neutral-600/65;
999 content: '';
1001 content: "";
10001002 }
10011003
10021004 & > li {
@@ -1162,8 +1164,8 @@ table tr:nth-child(odd) {
11621164
11631165 &::before {
11641166 @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>");
11671169 }
11681170
11691171 .dark &::before {
@@ -1206,7 +1208,7 @@ table tr:nth-child(odd) {
12061208 }
12071209
12081210 & > .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";
12101212 }
12111213 }
12121214}
@@ -1214,7 +1216,8 @@ table tr:nth-child(odd) {
12141216.aside-container {
12151217 padding-top: calc(
12161218 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
12181221 ) !important;
12191222}
12201223