Commit 6d6b0b16ef

6d6b0b16eff0e03f4011bde0d714a8c46d598ba2

parent: 74c7f4b5e2

Unsigned

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

consistency

Layout: unified · split

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