Commit 0fe6e32ea6

0fe6e32ea6951ecd00436140a151d0364b1df86c

parent: 97d4ffe9ee

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-06-27 14:07 UTC

visual refresh for settings card

Layout: unified · split

docs/.vitepress/theme/components/HomeFeatures.vue +71 −30
@@ -1,6 +1,5 @@
11<script setup lang="ts">
22import { computed, nextTick, onMounted, ref, watch } from 'vue'
3import { Columns3, LayoutList } from 'lucide-vue-next'
43import type { HomeCard } from '../../configs/constants'
54
65const props = defineProps<{ cards: HomeCard[] }>()
@@ -367,6 +366,9 @@ function onHandlePointerUp() {
367366 <button class="tool-btn" aria-label="Hide all" @click="hideAll">
368367 <span class="i-lucide-eye-off" />
369368 </button>
369 <button class="tool-btn" aria-label="Reset to default" @click="resetDefaults">
370 <span class="i-lucide-refresh-ccw" />
371 </button>
370372 </div>
371373 <div class="foot-group">
372374 <div class="settings-wrap">
@@ -375,7 +377,7 @@ function onHandlePointerUp() {
375377 <div class="dropdown-section">
376378 <div class="dropdown-section-header">
377379 <span class="dropdown-label">
378 <LayoutList :size="10" stroke-width="2.5" />
380 <span class="i-lucide-layout-list dropdown-label-icon" />
379381 View
380382 </span>
381383 <button type="button" class="settings-help-btn" :class="{ active: activeHelpSection === 'view' }" aria-label="View help" @click.stop="toggleHelpSection('view', $event)">
@@ -390,7 +392,7 @@ function onHandlePointerUp() {
390392 <div class="dropdown-section">
391393 <div class="dropdown-section-header">
392394 <span class="dropdown-label">
393 <Columns3 :size="10" stroke-width="2.5" />
395 <span class="i-lucide-columns-3-cog dropdown-label-icon" />
394396 Columns
395397 </span>
396398 <button type="button" class="settings-help-btn" :class="{ active: activeHelpSection === 'columns' }" aria-label="Columns help" @click.stop="toggleHelpSection('columns', $event)">
@@ -412,9 +414,6 @@ function onHandlePointerUp() {
412414 <span class="i-lucide-settings-2" />
413415 </button>
414416 </div>
415 <button class="tool-btn" aria-label="Reset to default" @click="resetDefaults">
416 <span class="i-lucide-refresh-ccw" />
417 </button>
418417 </div>
419418 </div>
420419 </div>
@@ -443,28 +442,40 @@ function onHandlePointerUp() {
443442 <p class="sh-desc">Controls how cards are displayed on the homepage.</p>
444443 <div class="sh-options">
445444 <div class="sh-option">
446 <strong>Default</strong>
445 <strong>
446 <span class="i-lucide-layout-grid sh-option-icon" />
447 Default
448 </strong>
447449 <span>Full card with icon, title, and description.</span>
448450 </div>
449451 <div class="sh-option">
450 <strong>Mini</strong>
452 <strong>
453 <span class="i-lucide-rows-3 sh-option-icon" />
454 Mini
455 </strong>
451456 <span>Compact row with icon and title only.</span>
452457 </div>
453458 </div>
454459 </template>
455460 <template v-else-if="activeHelpSection === 'columns'">
456461 <h4 class="sh-title">
457 <span class="i-lucide-columns-3 sh-title-icon" />
462 <span class="i-lucide-columns-3-cog sh-title-icon" />
458463 Columns
459464 </h4>
460465 <p class="sh-desc">Controls how many columns the card grid uses.</p>
461466 <div class="sh-options">
462467 <div class="sh-option">
463 <strong>Default</strong>
468 <strong>
469 <span class="i-lucide-columns-2 sh-option-icon" />
470 Default
471 </strong>
464472 <span>Adapts automatically based on the number of cards.</span>
465473 </div>
466474 <div class="sh-option">
467 <strong>Max</strong>
475 <strong>
476 <span class="i-lucide-columns-3 sh-option-icon" />
477 Max
478 </strong>
468479 <span>Always uses the maximum number of columns based on screen resolution.</span>
469480 </div>
470481 </div>
@@ -672,6 +683,12 @@ function onHandlePointerUp() {
672683 touch-action: none;
673684}
674685
686@media (max-width: 767px) {
687 .backdrop {
688 align-items: stretch;
689 }
690}
691
675692/* ── Panel ── */
676693.panel {
677694 width: min(520px, calc(100vw - 32px));
@@ -683,6 +700,17 @@ function onHandlePointerUp() {
683700 background: var(--vp-c-bg);
684701}
685702
703@media (max-width: 767px) {
704 .panel {
705 width: 100vw;
706 height: 100vh;
707 height: 100dvh;
708 max-height: none;
709 border-radius: 0;
710 border: none;
711 }
712}
713
686714@media (min-width: 768px) {
687715 .panel { width: min(720px, calc(100vw - 32px)); }
688716}
@@ -1048,7 +1076,7 @@ function onHandlePointerUp() {
10481076.home-help-popup {
10491077 position: fixed;
10501078 z-index: 9999;
1051 width: 220px;
1079 width: 280px;
10521080 background: var(--vp-c-bg-elv);
10531081 border: 1px solid var(--vp-c-divider);
10541082 border-radius: 12px;
@@ -1071,23 +1099,23 @@ function onHandlePointerUp() {
10711099 display: flex;
10721100 align-items: center;
10731101 gap: 6px;
1074 font-size: 0.875rem;
1102 font-size: 1rem;
10751103 font-weight: 600;
10761104 color: var(--vp-c-text-1);
1077 margin: 0 0 6px;
1105 margin: 0 0 4px;
10781106}
10791107
10801108.sh-title-icon {
10811109 flex-shrink: 0;
1082 opacity: 0.8;
1083 width: 14px;
1084 height: 14px;
1110 width: 16px;
1111 height: 16px;
1112 display: block;
10851113}
10861114
10871115.sh-desc {
1088 font-size: 0.78rem;
1116 font-size: 0.875rem;
10891117 color: var(--vp-c-text-2);
1090 margin: 0 0 10px;
1118 margin: 0 0 6px;
10911119 line-height: 1.5;
10921120}
10931121
@@ -1100,20 +1128,29 @@ function onHandlePointerUp() {
11001128.sh-option {
11011129 display: flex;
11021130 flex-direction: column;
1103 gap: 2px;
1131 gap: 4px;
11041132 background: var(--vp-c-bg-soft);
1105 border-radius: 6px;
1106 padding: 7px 9px;
1133 border-radius: 12px;
1134 padding: 10px 12px;
11071135}
11081136
11091137.sh-option strong {
1110 font-size: 0.78rem;
1138 display: flex;
1139 align-items: center;
1140 gap: 4px;
1141 font-size: 0.875rem;
11111142 font-weight: 600;
11121143 color: var(--vp-c-text-1);
11131144}
11141145
1146.sh-option-icon {
1147 width: 14px;
1148 height: 14px;
1149 flex-shrink: 0;
1150}
1151
11151152.sh-option span {
1116 font-size: 0.74rem;
1153 font-size: 0.875rem;
11171154 color: var(--vp-c-text-2);
11181155 line-height: 1.4;
11191156}
@@ -1151,15 +1188,19 @@ function onHandlePointerUp() {
11511188.dropdown-label {
11521189 display: flex;
11531190 align-items: center;
1154 gap: 4px;
1155 font-size: 11.5px;
1156 font-weight: 600;
1157 text-transform: uppercase;
1158 letter-spacing: 0.06em;
1159 color: var(--vp-c-text-3, var(--vp-c-text-2));
1191 gap: 6px;
1192 font-size: 14px;
1193 font-weight: 500;
1194 color: var(--vp-c-text-1);
11601195 margin-bottom: 0;
11611196}
11621197
1198.dropdown-label-icon {
1199 width: 14px;
1200 height: 14px;
1201 flex-shrink: 0;
1202}
1203
11631204.dropdown-group {
11641205 display: flex;
11651206 gap: 4px;
docs/.vitepress/theme/components/Search.vue +39 −39
@@ -2410,7 +2410,7 @@ function onMouseMove(e: MouseEvent) {
24102410 <div class="settings-section">
24112411 <div class="settings-section-header">
24122412 <div class="settings-section-label">
2413 <Search :size="10" stroke-width="2.5" />
2413 <Search :size="14" stroke-width="1.75" />
24142414 Search
24152415 </div>
24162416 <button
@@ -2456,7 +2456,7 @@ function onMouseMove(e: MouseEvent) {
24562456 >
24572457 <div class="settings-section-header">
24582458 <div class="settings-section-label">
2459 <LayoutList :size="10" stroke-width="2.5" />
2459 <LayoutList :size="14" stroke-width="1.75" />
24602460 View
24612461 </div>
24622462 <button
@@ -2491,7 +2491,7 @@ function onMouseMove(e: MouseEvent) {
24912491 <div class="settings-section">
24922492 <div class="settings-section-header">
24932493 <div class="settings-section-label">
2494 <Clock :size="10" stroke-width="2.5" />
2494 <Clock :size="14" stroke-width="1.75" />
24952495 History
24962496 </div>
24972497 <button
@@ -2534,28 +2534,28 @@ function onMouseMove(e: MouseEvent) {
25342534 >
25352535 <template v-if="activeHelpSection === 'search'">
25362536 <h4 class="sh-title">
2537 <Search :size="14" stroke-width="1.75" class="sh-title-icon" />
2537 <Search :size="16" stroke-width="1.75" class="sh-title-icon" />
25382538 Search Mode
25392539 </h4>
25402540 <p class="sh-desc">Choose how queries are matched against content.</p>
25412541 <div class="sh-options">
25422542 <div class="sh-option">
25432543 <strong>
2544 <Regex :size="12" stroke-width="1.5" />
2544 <Regex :size="14" stroke-width="1.5" />
25452545 Exact
25462546 </strong>
25472547 <span>Matches the exact phrase you type</span>
25482548 </div>
25492549 <div class="sh-option">
25502550 <strong>
2551 <LocateOff :size="12" stroke-width="1.5" />
2551 <LocateOff :size="14" stroke-width="1.5" />
25522552 Fuzzy
25532553 </strong>
25542554 <span>Approximate matching that tolerates typos</span>
25552555 </div>
25562556 <div class="sh-option">
25572557 <strong>
2558 <Globe :size="12" stroke-width="1.5" />
2558 <Globe :size="14" stroke-width="1.5" />
25592559 URL
25602560 </strong>
25612561 <span>Searches through hyperlinks</span>
@@ -2564,21 +2564,21 @@ function onMouseMove(e: MouseEvent) {
25642564 </template>
25652565 <template v-else-if="activeHelpSection === 'view'">
25662566 <h4 class="sh-title">
2567 <LayoutList :size="14" stroke-width="1.75" class="sh-title-icon" />
2567 <LayoutList :size="16" stroke-width="1.75" class="sh-title-icon" />
25682568 Result View
25692569 </h4>
25702570 <p class="sh-desc">Controls how search results are displayed.</p>
25712571 <div class="sh-options">
25722572 <div class="sh-option">
25732573 <strong>
2574 <TextAlignStart :size="12" stroke-width="1.5" />
2574 <TextAlignStart :size="14" stroke-width="1.5" />
25752575 Detail
25762576 </strong>
25772577 <span>Shows a content excerpt below each result. Uses more memory.</span>
25782578 </div>
25792579 <div class="sh-option">
25802580 <strong>
2581 <List :size="12" stroke-width="1.5" />
2581 <List :size="14" stroke-width="1.5" />
25822582 List
25832583 </strong>
25842584 <span>Compact list of titles only. Uses less memory.</span>
@@ -2587,7 +2587,7 @@ function onMouseMove(e: MouseEvent) {
25872587 </template>
25882588 <template v-else-if="activeHelpSection === 'history'">
25892589 <h4 class="sh-title">
2590 <Clock :size="14" stroke-width="1.75" class="sh-title-icon" />
2590 <Clock :size="16" stroke-width="1.75" class="sh-title-icon" />
25912591 Search History
25922592 </h4>
25932593 <p class="sh-desc">Saves recent searches and shows them when the search bar is empty.</p>
@@ -3311,42 +3311,40 @@ svg {
33113311 z-index: 200;
33123312 background: var(--vp-c-bg);
33133313 border: 1px solid var(--vp-c-divider);
3314 border-radius: 12px;
3315 padding: 14px;
3314 border-radius: 10px;
3315 padding: 10px;
33163316 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
33173317 display: flex;
33183318 flex-direction: column;
3319 min-width: 224px;
3319 min-width: 196px;
33203320}
33213321
33223322.settings-section {
33233323 display: flex;
33243324 flex-direction: column;
3325 gap: 8px;
3325 gap: 0;
33263326}
33273327
33283328.settings-section + .settings-section {
33293329 border-top: 1px solid var(--vp-c-divider);
3330 margin-top: 10px;
3331 padding-top: 10px;
3330 margin-top: 8px;
3331 padding-top: 8px;
33323332}
33333333
33343334.settings-section-header {
33353335 display: flex;
33363336 align-items: center;
33373337 justify-content: space-between;
3338 margin-bottom: 2px;
3338 margin-bottom: 6px;
33393339}
33403340
33413341.settings-section-label {
33423342 display: flex;
33433343 align-items: center;
3344 gap: 4px;
3345 font-size: 11.5px;
3346 font-weight: 600;
3347 text-transform: uppercase;
3348 letter-spacing: 0.06em;
3349 color: var(--vp-c-text-3, var(--vp-c-text-2));
3344 gap: 6px;
3345 font-size: 14px;
3346 font-weight: 500;
3347 color: var(--vp-c-text-1);
33503348}
33513349
33523350.settings-help-btn {
@@ -3380,7 +3378,7 @@ svg {
33803378.search-help-popup {
33813379 position: fixed;
33823380 z-index: 9999;
3383 width: 260px;
3381 width: 280px;
33843382 background: var(--vp-c-bg-elv);
33853383 border: 1px solid var(--vp-c-divider);
33863384 border-radius: 12px;
@@ -3403,21 +3401,23 @@ svg {
34033401 display: flex;
34043402 align-items: center;
34053403 gap: 6px;
3406 font-size: 0.875rem;
3404 font-size: 1rem;
34073405 font-weight: 600;
34083406 color: var(--vp-c-text-1);
3409 margin: 0 0 6px;
3407 margin: 0 0 4px;
34103408}
34113409
34123410.sh-title-icon {
34133411 flex-shrink: 0;
34143412 opacity: 0.8;
3413 width: 16px;
3414 height: 16px;
34153415}
34163416
34173417.sh-desc {
3418 font-size: 0.78rem;
3418 font-size: 0.875rem;
34193419 color: var(--vp-c-text-2);
3420 margin: 0 0 10px;
3420 margin: 0 0 6px;
34213421 line-height: 1.5;
34223422}
34233423
@@ -3430,30 +3430,30 @@ svg {
34303430.sh-option {
34313431 display: flex;
34323432 flex-direction: column;
3433 gap: 2px;
3433 gap: 4px;
34343434 background: var(--vp-c-bg-soft);
3435 border-radius: 6px;
3436 padding: 7px 9px;
3435 border-radius: 12px;
3436 padding: 10px 12px;
34373437}
34383438
34393439.sh-option strong {
34403440 display: flex;
34413441 align-items: center;
3442 gap: 5px;
3443 font-size: 0.78rem;
3442 gap: 4px;
3443 font-size: 0.875rem;
34443444 font-weight: 600;
34453445 color: var(--vp-c-text-1);
34463446}
34473447
34483448.sh-option span {
3449 font-size: 0.74rem;
3449 font-size: 0.875rem;
34503450 color: var(--vp-c-text-2);
34513451 line-height: 1.4;
34523452}
34533453
34543454.settings-options {
34553455 display: flex;
3456 gap: 5px;
3456 gap: 4px;
34573457}
34583458
34593459.settings-option {
@@ -3461,13 +3461,13 @@ svg {
34613461 align-items: center;
34623462 justify-content: center;
34633463 gap: 5px;
3464 padding: 7px 8px;
3464 padding: 5px 6px;
34653465 background: transparent;
34663466 border: none;
3467 border-radius: 6px;
3467 border-radius: 5px;
34683468 cursor: pointer;
34693469 color: var(--vp-c-text-2);
3470 font-size: 14.5px;
3470 font-size: 14px;
34713471 font-weight: 500;
34723472 transition: background-color 0.15s, color 0.15s;
34733473 flex: 1;
docs/.vitepress/theme/components/settings/MenuTitle.vue +1 −1
@@ -9,7 +9,7 @@ const props = defineProps<{
99 <h3
1010 class="VPNolebaseEnhancedReadabilitiesMenuTitle"
1111 :class="{ disabled: !!props.disabled }"
12 text="[14px] $vp-nolebase-enhanced-readabilities-menu-text-color"
12 text="[16px] $vp-nolebase-enhanced-readabilities-menu-text-color"
1313 inline-flex
1414 select-none
1515 items-center