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