Commit 3b6d788991

3b6d7889918a859775ff13757eb6a13f92b9165a

parent: 9846921737

Unsigned

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

ui tweak

Layout: unified · split

docs/.vitepress/theme/components/Search.vue +7 −14
@@ -2073,7 +2073,7 @@ function onMouseMove(e: MouseEvent) {
2073 title="Clear all history" 2073 title="Clear all history"
2074 @click.stop="searchHistory = []" 2074 @click.stop="searchHistory = []"
2075 > 2075 >
2076 <X :size="14" stroke-width="1.5" /> 2076 <X :size="16" stroke-width="1.25" />
2077 </button> 2077 </button>
2078 </div> 2078 </div>
2079 <ul class="history-items"> 2079 <ul class="history-items">
@@ -2111,7 +2111,7 @@ function onMouseMove(e: MouseEvent) {
2111 :title="'Remove \'' + entry.query + '\' from history'" 2111 :title="'Remove \'' + entry.query + '\' from history'"
2112 @click.stop="removeFromHistory(index)" 2112 @click.stop="removeFromHistory(index)"
2113 > 2113 >
2114 <X :size="14" stroke-width="1.5" /> 2114 <X :size="16" stroke-width="1.25" />
2115 </button> 2115 </button>
2116 </li> 2116 </li>
2117 </ul> 2117 </ul>
@@ -3525,11 +3525,13 @@ svg {
3525 background: transparent; 3525 background: transparent;
3526 color: var(--vp-c-text-3); 3526 color: var(--vp-c-text-3);
3527 cursor: pointer; 3527 cursor: pointer;
3528 opacity: 0.7;
3528 transition: color 0.15s; 3529 transition: color 0.15s;
3529} 3530}
3530 3531
3531.history-clear-all:hover { 3532.history-clear-all:hover {
3532 color: var(--vp-c-text-1); 3533 color: var(--vp-c-text-1);
3534 opacity: 1;
3533} 3535}
3534 3536
3535.history-items { 3537.history-items {
@@ -3623,21 +3625,12 @@ svg {
3623 background: transparent; 3625 background: transparent;
3624 color: var(--vp-c-text-3); 3626 color: var(--vp-c-text-3);
3625 cursor: pointer; 3627 cursor: pointer;
3626 opacity: 0; 3628 opacity: 0.7;
3627 transition: opacity 0.15s, color 0.15s; 3629 transition: color 0.15s;
3628}
3629
3630.history-item:hover .history-remove {
3631 opacity: 1;
3632} 3630}
3633 3631
3634.history-remove:hover { 3632.history-remove:hover {
3635 color: var(--vp-c-text-1); 3633 color: var(--vp-c-text-1);
3636} 3634 opacity: 1;
3637
3638@media (any-pointer: coarse) {
3639 .history-remove {
3640 opacity: 1;
3641 }
3642} 3635}
3643</style>\ No newline at end of file 3636</style>\ No newline at end of file