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() {
667667 background: none;
668668 border: none;
669669 padding: 4px;
670 color: var(--vp-c-text-3, var(--vp-c-text-2));
670 color: var(--vp-c-text-2);
671671 font-size: 18px;
672672 cursor: pointer;
673 transition: color 0.2s;
673 transition: color 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
674674 display: flex;
675675 align-items: center;
676676}
677677
678678.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);
680684}
681685
682686/* ── Backdrop ── */
@@ -757,14 +761,17 @@ function onHandlePointerUp() {
757761 color: var(--vp-c-text-2);
758762 font-size: 16px;
759763 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);
761765}
762766
763767.close-btn:hover {
764 background: var(--vp-c-bg-soft);
765768 color: var(--vp-c-text-1);
766769}
767770
771.close-btn:active {
772 transform: scale(0.94);
773}
774
768775.close-btn::after {
769776 content: attr(aria-label);
770777 position: absolute;
@@ -964,16 +971,16 @@ function onHandlePointerUp() {
964971 font-size: 16px;
965972 cursor: pointer;
966973 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);
968975}
969976
970.row-toggle:hover {
971 background: var(--vp-c-bg-alt);
977.row-toggle:hover,
978.row-toggle.active {
972979 color: var(--vp-c-text-1);
973980}
974981
975.row-toggle.active {
976 color: var(--vp-c-brand-1);
982.row-toggle:active {
983 transform: scale(0.94);
977984}
978985
979986/* ── Panel Footer ── */
@@ -1006,7 +1013,7 @@ function onHandlePointerUp() {
10061013 border-radius: 5px;
10071014 padding: 5px 6px;
10081015 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);
10101017}
10111018
10121019.tool-btn[aria-label]::after {
@@ -1034,14 +1041,29 @@ function onHandlePointerUp() {
10341041 }
10351042}
10361043
1037.tool-btn:hover {
1044.tool-btn:hover,
1045.tool-btn.is-active {
10381046 color: var(--vp-c-text-1);
1039 background: var(--vp-c-bg-soft);
1047 background: transparent;
10401048}
10411049
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 */
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;
10451067}
10461068
10471069/* ── Settings Help ── */
docs/.vitepress/theme/components/Search.vue +50 −20
@@ -2024,7 +2024,7 @@ function onMouseMove(e: MouseEvent) {
20242024 ? showDetailedList = false
20252025 : showDetailedList = true"
20262026 >
2027 <TextAlignStart :size="18" stroke-width="1.25" />
2027 <TextAlignStart :size="18" stroke-width="2" />
20282028 </button>
20292029 <button
20302030 type="button"
@@ -2035,7 +2035,7 @@ function onMouseMove(e: MouseEvent) {
20352035 ? showDetailedList = true
20362036 : showDetailedList = false"
20372037 >
2038 <List :size="18" stroke-width="1.25" />
2038 <List :size="18" stroke-width="2" />
20392039 </button>
20402040 </div>
20412041 <div class="search-mode-group toolbar-group">
@@ -2048,7 +2048,7 @@ function onMouseMove(e: MouseEvent) {
20482048 ? cycleSearchMode()
20492049 : searchMode = 'exact'"
20502050 >
2051 <Regex :size="18" stroke-width="1.25" />
2051 <Regex :size="18" stroke-width="2" />
20522052 </button>
20532053 <button
20542054 type="button"
@@ -2059,7 +2059,7 @@ function onMouseMove(e: MouseEvent) {
20592059 ? cycleSearchMode()
20602060 : searchMode = 'fuzzy'"
20612061 >
2062 <LocateOff :size="18" stroke-width="1.25" />
2062 <LocateOff :size="18" stroke-width="2" />
20632063 </button>
20642064 <button
20652065 type="button"
@@ -2070,7 +2070,7 @@ function onMouseMove(e: MouseEvent) {
20702070 ? cycleSearchMode()
20712071 : searchMode = 'url'"
20722072 >
2073 <Globe :size="18" stroke-width="1.25" />
2073 <Globe :size="18" stroke-width="2" />
20742074 </button>
20752075 </div>
20762076 <button
@@ -2081,7 +2081,7 @@ function onMouseMove(e: MouseEvent) {
20812081 title="Search settings"
20822082 @click.stop="showSettingsPopup = !showSettingsPopup"
20832083 >
2084 <Settings :size="18" stroke-width="1.25" />
2084 <Settings :size="18" stroke-width="2" />
20852085 </button>
20862086 <button
20872087 class="clear-button"
@@ -2090,7 +2090,7 @@ function onMouseMove(e: MouseEvent) {
20902090 :title="translate('modal.resetButtonTitle')"
20912091 @click="resetSearch"
20922092 >
2093 <X :size="19" stroke-width="1.25" />
2093 <X :size="18" stroke-width="2" />
20942094 </button>
20952095 </div>
20962096 </component>
@@ -2231,7 +2231,7 @@ function onMouseMove(e: MouseEvent) {
22312231 title="Clear all history"
22322232 @click.stop="searchHistory = []"
22332233 >
2234 <X :size="16" stroke-width="1.25" />
2234 <X :size="16" stroke-width="2" />
22352235 </button>
22362236 </div>
22372237 <ul class="history-items">
@@ -2261,7 +2261,7 @@ function onMouseMove(e: MouseEvent) {
22612261 <component
22622262 :is="entry.mode === 'exact' ? Regex : entry.mode === 'fuzzy' ? LocateOff : Globe"
22632263 :size="14"
2264 stroke-width="1.25"
2264 stroke-width="2"
22652265 class="history-mode-icon"
22662266 />
22672267 <button
@@ -2269,7 +2269,7 @@ function onMouseMove(e: MouseEvent) {
22692269 :title="'Remove \'' + entry.query + '\' from history'"
22702270 @click.stop="removeFromHistory(index)"
22712271 >
2272 <X :size="16" stroke-width="1.25" />
2272 <X :size="16" stroke-width="2" />
22732273 </button>
22742274 </li>
22752275 </ul>
@@ -2311,10 +2311,10 @@ function onMouseMove(e: MouseEvent) {
23112311 <Hash
23122312 v-if="item.anchor ||
23132313 item.titles.length > 0"
2314 stroke-width="1.25"
2314 stroke-width="2"
23152315 :size="18"
23162316 />
2317 <File v-else stroke-width="1.25" :size="18" />
2317 <File v-else stroke-width="2" :size="18" />
23182318 <span
23192319 v-for="(t, ti) in item.titles"
23202320 :key="ti"
@@ -2322,7 +2322,7 @@ function onMouseMove(e: MouseEvent) {
23222322 >
23232323 <span class="text" v-html="t" />
23242324 <ArrowRight
2325 stroke-width="1.25"
2325 stroke-width="2"
23262326 :size="18"
23272327 class="mx-0.5"
23282328 />
@@ -2382,10 +2382,10 @@ function onMouseMove(e: MouseEvent) {
23822382 <Hash
23832383 v-if="getDocAnchor(p.id) ||
23842384 p.titles.length > 0"
2385 stroke-width="1.25"
2385 stroke-width="2"
23862386 :size="18"
23872387 />
2388 <File v-else stroke-width="1.25" :size="18" />
2388 <File v-else stroke-width="2" :size="18" />
23892389 <span
23902390 v-for="(t, index) in p.titles"
23912391 :key="index"
@@ -2393,7 +2393,7 @@ function onMouseMove(e: MouseEvent) {
23932393 >
23942394 <span class="text" v-html="t" />
23952395 <ArrowRight
2396 stroke-width="1.25"
2396 stroke-width="2"
23972397 :size="18"
23982398 class="mx-0.5"
23992399 />
@@ -3523,13 +3523,43 @@ svg {
35233523 background: transparent;
35243524}
35253525
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 {
35283529 display: flex;
35293530 border: none;
3530 border-radius: 5px;
3531 border-radius: 0;
3532 background: transparent;
35313533 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;
35333563}
35343564
35353565/* Settings popup card */