Commit 6d6b0b16ef
Unsigned
Layout: unified · split
docs/.vitepress/theme/components/HomeFeatures.vue +38 −16
| @@ -667,16 +667,20 @@ function onHandlePointerUp() { | ||
| 667 | 667 | background: none; |
| 668 | 668 | border: none; |
| 669 | 669 | padding: 4px; |
| 670 | color: var(--vp-c-text-3, var(--vp-c-text-2)); | |
| 670 | color: var(--vp-c-text-2); | |
| 671 | 671 | font-size: 18px; |
| 672 | 672 | cursor: pointer; |
| 673 | transition: color 0.2s; | |
| 673 | transition: color 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); | |
| 674 | 674 | display: flex; |
| 675 | 675 | align-items: center; |
| 676 | 676 | } |
| 677 | 677 | |
| 678 | 678 | .gear-btn:hover { |
| 679 | color: var(--vp-c-brand-1); | |
| 679 | color: var(--vp-c-text-1); | |
| 680 | } | |
| 681 | ||
| 682 | .gear-btn:active { | |
| 683 | transform: scale(0.94); | |
| 680 | 684 | } |
| 681 | 685 | |
| 682 | 686 | /* ── Backdrop ── */ |
| @@ -757,14 +761,17 @@ function onHandlePointerUp() { | ||
| 757 | 761 | color: var(--vp-c-text-2); |
| 758 | 762 | font-size: 16px; |
| 759 | 763 | cursor: pointer; |
| 760 | transition: background 0.15s, color 0.15s; | |
| 764 | transition: color 0.15s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); | |
| 761 | 765 | } |
| 762 | 766 | |
| 763 | 767 | .close-btn:hover { |
| 764 | background: var(--vp-c-bg-soft); | |
| 765 | 768 | color: var(--vp-c-text-1); |
| 766 | 769 | } |
| 767 | 770 | |
| 771 | .close-btn:active { | |
| 772 | transform: scale(0.94); | |
| 773 | } | |
| 774 | ||
| 768 | 775 | .close-btn::after { |
| 769 | 776 | content: attr(aria-label); |
| 770 | 777 | position: absolute; |
| @@ -964,16 +971,16 @@ function onHandlePointerUp() { | ||
| 964 | 971 | font-size: 16px; |
| 965 | 972 | cursor: pointer; |
| 966 | 973 | flex-shrink: 0; |
| 967 | transition: background 0.15s, color 0.15s; | |
| 974 | transition: color 0.15s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); | |
| 968 | 975 | } |
| 969 | 976 | |
| 970 | .row-toggle:hover { | |
| 971 | background: var(--vp-c-bg-alt); | |
| 977 | .row-toggle:hover, | |
| 978 | .row-toggle.active { | |
| 972 | 979 | color: var(--vp-c-text-1); |
| 973 | 980 | } |
| 974 | 981 | |
| 975 | .row-toggle.active { | |
| 976 | color: var(--vp-c-brand-1); | |
| 982 | .row-toggle:active { | |
| 983 | transform: scale(0.94); | |
| 977 | 984 | } |
| 978 | 985 | |
| 979 | 986 | /* ── Panel Footer ── */ |
| @@ -1006,7 +1013,7 @@ function onHandlePointerUp() { | ||
| 1006 | 1013 | border-radius: 5px; |
| 1007 | 1014 | padding: 5px 6px; |
| 1008 | 1015 | cursor: pointer; |
| 1009 | transition: color 0.15s, background 0.15s; | |
| 1016 | transition: color 0.15s, background 0.15s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); | |
| 1010 | 1017 | } |
| 1011 | 1018 | |
| 1012 | 1019 | .tool-btn[aria-label]::after { |
| @@ -1034,14 +1041,29 @@ function onHandlePointerUp() { | ||
| 1034 | 1041 | } |
| 1035 | 1042 | } |
| 1036 | 1043 | |
| 1037 | .tool-btn:hover { | |
| 1044 | .tool-btn:hover, | |
| 1045 | .tool-btn.is-active { | |
| 1038 | 1046 | color: var(--vp-c-text-1); |
| 1039 | background: var(--vp-c-bg-soft); | |
| 1047 | background: transparent; | |
| 1040 | 1048 | } |
| 1041 | 1049 | |
| 1042 | .tool-btn.is-active { | |
| 1043 | color: var(--vp-c-brand-1); | |
| 1044 | background: var(--vp-c-brand-soft); | |
| 1050 | .tool-btn:active { | |
| 1051 | transform: scale(0.94); | |
| 1052 | } | |
| 1053 | ||
| 1054 | /* Respect the "effects off" preference */ | |
| 1055 | html.effects-disabled .gear-btn, | |
| 1056 | html.effects-disabled .close-btn, | |
| 1057 | html.effects-disabled .tool-btn, | |
| 1058 | html.effects-disabled .row-toggle { | |
| 1059 | transition: none; | |
| 1060 | } | |
| 1061 | ||
| 1062 | html.effects-disabled .gear-btn:active, | |
| 1063 | html.effects-disabled .close-btn:active, | |
| 1064 | html.effects-disabled .tool-btn:active, | |
| 1065 | html.effects-disabled .row-toggle:active { | |
| 1066 | transform: none; | |
| 1045 | 1067 | } |
| 1046 | 1068 | |
| 1047 | 1069 | /* ── Settings Help ── */ |
docs/.vitepress/theme/components/Search.vue +50 −20
| @@ -2024,7 +2024,7 @@ function onMouseMove(e: MouseEvent) { | ||
| 2024 | 2024 | ? showDetailedList = false |
| 2025 | 2025 | : showDetailedList = true" |
| 2026 | 2026 | > |
| 2027 | <TextAlignStart :size="18" stroke-width="1.25" /> | |
| 2027 | <TextAlignStart :size="18" stroke-width="2" /> | |
| 2028 | 2028 | </button> |
| 2029 | 2029 | <button |
| 2030 | 2030 | type="button" |
| @@ -2035,7 +2035,7 @@ function onMouseMove(e: MouseEvent) { | ||
| 2035 | 2035 | ? showDetailedList = true |
| 2036 | 2036 | : showDetailedList = false" |
| 2037 | 2037 | > |
| 2038 | <List :size="18" stroke-width="1.25" /> | |
| 2038 | <List :size="18" stroke-width="2" /> | |
| 2039 | 2039 | </button> |
| 2040 | 2040 | </div> |
| 2041 | 2041 | <div class="search-mode-group toolbar-group"> |
| @@ -2048,7 +2048,7 @@ function onMouseMove(e: MouseEvent) { | ||
| 2048 | 2048 | ? cycleSearchMode() |
| 2049 | 2049 | : searchMode = 'exact'" |
| 2050 | 2050 | > |
| 2051 | <Regex :size="18" stroke-width="1.25" /> | |
| 2051 | <Regex :size="18" stroke-width="2" /> | |
| 2052 | 2052 | </button> |
| 2053 | 2053 | <button |
| 2054 | 2054 | type="button" |
| @@ -2059,7 +2059,7 @@ function onMouseMove(e: MouseEvent) { | ||
| 2059 | 2059 | ? cycleSearchMode() |
| 2060 | 2060 | : searchMode = 'fuzzy'" |
| 2061 | 2061 | > |
| 2062 | <LocateOff :size="18" stroke-width="1.25" /> | |
| 2062 | <LocateOff :size="18" stroke-width="2" /> | |
| 2063 | 2063 | </button> |
| 2064 | 2064 | <button |
| 2065 | 2065 | type="button" |
| @@ -2070,7 +2070,7 @@ function onMouseMove(e: MouseEvent) { | ||
| 2070 | 2070 | ? cycleSearchMode() |
| 2071 | 2071 | : searchMode = 'url'" |
| 2072 | 2072 | > |
| 2073 | <Globe :size="18" stroke-width="1.25" /> | |
| 2073 | <Globe :size="18" stroke-width="2" /> | |
| 2074 | 2074 | </button> |
| 2075 | 2075 | </div> |
| 2076 | 2076 | <button |
| @@ -2081,7 +2081,7 @@ function onMouseMove(e: MouseEvent) { | ||
| 2081 | 2081 | title="Search settings" |
| 2082 | 2082 | @click.stop="showSettingsPopup = !showSettingsPopup" |
| 2083 | 2083 | > |
| 2084 | <Settings :size="18" stroke-width="1.25" /> | |
| 2084 | <Settings :size="18" stroke-width="2" /> | |
| 2085 | 2085 | </button> |
| 2086 | 2086 | <button |
| 2087 | 2087 | class="clear-button" |
| @@ -2090,7 +2090,7 @@ function onMouseMove(e: MouseEvent) { | ||
| 2090 | 2090 | :title="translate('modal.resetButtonTitle')" |
| 2091 | 2091 | @click="resetSearch" |
| 2092 | 2092 | > |
| 2093 | <X :size="19" stroke-width="1.25" /> | |
| 2093 | <X :size="18" stroke-width="2" /> | |
| 2094 | 2094 | </button> |
| 2095 | 2095 | </div> |
| 2096 | 2096 | </component> |
| @@ -2231,7 +2231,7 @@ function onMouseMove(e: MouseEvent) { | ||
| 2231 | 2231 | title="Clear all history" |
| 2232 | 2232 | @click.stop="searchHistory = []" |
| 2233 | 2233 | > |
| 2234 | <X :size="16" stroke-width="1.25" /> | |
| 2234 | <X :size="16" stroke-width="2" /> | |
| 2235 | 2235 | </button> |
| 2236 | 2236 | </div> |
| 2237 | 2237 | <ul class="history-items"> |
| @@ -2261,7 +2261,7 @@ function onMouseMove(e: MouseEvent) { | ||
| 2261 | 2261 | <component |
| 2262 | 2262 | :is="entry.mode === 'exact' ? Regex : entry.mode === 'fuzzy' ? LocateOff : Globe" |
| 2263 | 2263 | :size="14" |
| 2264 | stroke-width="1.25" | |
| 2264 | stroke-width="2" | |
| 2265 | 2265 | class="history-mode-icon" |
| 2266 | 2266 | /> |
| 2267 | 2267 | <button |
| @@ -2269,7 +2269,7 @@ function onMouseMove(e: MouseEvent) { | ||
| 2269 | 2269 | :title="'Remove \'' + entry.query + '\' from history'" |
| 2270 | 2270 | @click.stop="removeFromHistory(index)" |
| 2271 | 2271 | > |
| 2272 | <X :size="16" stroke-width="1.25" /> | |
| 2272 | <X :size="16" stroke-width="2" /> | |
| 2273 | 2273 | </button> |
| 2274 | 2274 | </li> |
| 2275 | 2275 | </ul> |
| @@ -2311,10 +2311,10 @@ function onMouseMove(e: MouseEvent) { | ||
| 2311 | 2311 | <Hash |
| 2312 | 2312 | v-if="item.anchor || |
| 2313 | 2313 | item.titles.length > 0" |
| 2314 | stroke-width="1.25" | |
| 2314 | stroke-width="2" | |
| 2315 | 2315 | :size="18" |
| 2316 | 2316 | /> |
| 2317 | <File v-else stroke-width="1.25" :size="18" /> | |
| 2317 | <File v-else stroke-width="2" :size="18" /> | |
| 2318 | 2318 | <span |
| 2319 | 2319 | v-for="(t, ti) in item.titles" |
| 2320 | 2320 | :key="ti" |
| @@ -2322,7 +2322,7 @@ function onMouseMove(e: MouseEvent) { | ||
| 2322 | 2322 | > |
| 2323 | 2323 | <span class="text" v-html="t" /> |
| 2324 | 2324 | <ArrowRight |
| 2325 | stroke-width="1.25" | |
| 2325 | stroke-width="2" | |
| 2326 | 2326 | :size="18" |
| 2327 | 2327 | class="mx-0.5" |
| 2328 | 2328 | /> |
| @@ -2382,10 +2382,10 @@ function onMouseMove(e: MouseEvent) { | ||
| 2382 | 2382 | <Hash |
| 2383 | 2383 | v-if="getDocAnchor(p.id) || |
| 2384 | 2384 | p.titles.length > 0" |
| 2385 | stroke-width="1.25" | |
| 2385 | stroke-width="2" | |
| 2386 | 2386 | :size="18" |
| 2387 | 2387 | /> |
| 2388 | <File v-else stroke-width="1.25" :size="18" /> | |
| 2388 | <File v-else stroke-width="2" :size="18" /> | |
| 2389 | 2389 | <span |
| 2390 | 2390 | v-for="(t, index) in p.titles" |
| 2391 | 2391 | :key="index" |
| @@ -2393,7 +2393,7 @@ function onMouseMove(e: MouseEvent) { | ||
| 2393 | 2393 | > |
| 2394 | 2394 | <span class="text" v-html="t" /> |
| 2395 | 2395 | <ArrowRight |
| 2396 | stroke-width="1.25" | |
| 2396 | stroke-width="2" | |
| 2397 | 2397 | :size="18" |
| 2398 | 2398 | class="mx-0.5" |
| 2399 | 2399 | /> |
| @@ -3523,13 +3523,43 @@ svg { | ||
| 3523 | 3523 | background: transparent; |
| 3524 | 3524 | } |
| 3525 | 3525 | |
| 3526 | /* Settings toggle button — always visible */ | |
| 3527 | .settings-toggle-btn { | |
| 3526 | /* Settings gear + clear (X) buttons — nav-bar style */ | |
| 3527 | .search-actions .settings-toggle-btn, | |
| 3528 | .search-actions .clear-button { | |
| 3528 | 3529 | display: flex; |
| 3529 | 3530 | border: none; |
| 3530 | border-radius: 5px; | |
| 3531 | border-radius: 0; | |
| 3532 | background: transparent; | |
| 3531 | 3533 | color: var(--vp-c-text-1); |
| 3532 | padding: 8px; | |
| 3534 | opacity: 0.55; | |
| 3535 | padding: 8px 4px; | |
| 3536 | transition: | |
| 3537 | opacity 0.25s, | |
| 3538 | transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); | |
| 3539 | } | |
| 3540 | ||
| 3541 | .search-actions button.settings-toggle-btn:not([disabled]):hover, | |
| 3542 | .search-actions button.clear-button:not([disabled]):hover, | |
| 3543 | .settings-toggle-btn.mode-active { | |
| 3544 | color: var(--vp-c-text-1); | |
| 3545 | opacity: 1; | |
| 3546 | background: transparent; | |
| 3547 | } | |
| 3548 | ||
| 3549 | .settings-toggle-btn:active, | |
| 3550 | .clear-button:not([disabled]):active { | |
| 3551 | transform: scale(0.94); | |
| 3552 | } | |
| 3553 | ||
| 3554 | /* Respect the "effects off" preference */ | |
| 3555 | html.effects-disabled .settings-toggle-btn, | |
| 3556 | html.effects-disabled .clear-button { | |
| 3557 | transition: none; | |
| 3558 | } | |
| 3559 | ||
| 3560 | html.effects-disabled .settings-toggle-btn:active, | |
| 3561 | html.effects-disabled .clear-button:active { | |
| 3562 | transform: none; | |
| 3533 | 3563 | } |
| 3534 | 3564 | |
| 3535 | 3565 | /* Settings popup card */ |