Commit 62aca6d534

62aca6d5346c93e0a93d82476277d24efc30e9ad

parent: 3c945a0ad7

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-11-09 15:42 UTC

x

Layout: unified · split

docs/.vitepress/theme/components/extrepo/ExtensionRepos.vue +43
@@ -222,6 +222,16 @@ const searchPlaceholder = computed(() => {
222 <div class="ext-search"> 222 <div class="ext-search">
223 <span class="i-lucide:search" /> 223 <span class="i-lucide:search" />
224 <input v-model="query" type="text" :placeholder="searchPlaceholder" /> 224 <input v-model="query" type="text" :placeholder="searchPlaceholder" />
225 <button
226 type="button"
227 class="ext-search-clear"
228 :disabled="!query"
229 title="Clear search"
230 aria-label="Clear search"
231 @click="query = ''"
232 >
233 <span class="i-lucide:x" />
234 </button>
225 </div> 235 </div>
226 <button 236 <button
227 type="button" 237 type="button"
@@ -324,6 +334,39 @@ const searchPlaceholder = computed(() => {
324.ext-search > span { 334.ext-search > span {
325 flex-shrink: 0; 335 flex-shrink: 0;
326} 336}
337.ext-search-clear {
338 display: flex;
339 align-items: center;
340 justify-content: center;
341 flex-shrink: 0;
342 padding: 0;
343 border: none;
344 border-radius: 0;
345 background: transparent;
346 color: var(--vp-c-text-1);
347 opacity: 0.55;
348 cursor: pointer;
349 transition: opacity 0.25s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
350}
351.ext-search-clear:hover:not(:disabled) {
352 opacity: 1;
353}
354.ext-search-clear:disabled {
355 opacity: 0.37;
356 cursor: default;
357}
358.ext-search-clear:not(:disabled):active {
359 transform: scale(0.94);
360}
361.ext-search-clear span {
362 font-size: 18px;
363}
364html.effects-disabled .ext-search-clear {
365 transition: none;
366}
367html.effects-disabled .ext-search-clear:active {
368 transform: none;
369}
327.ext-status-btn { 370.ext-status-btn {
328 display: flex; 371 display: flex;
329 align-items: center; 372 align-items: center;
docs/.vitepress/theme/components/themerepo/ThemeRepos.vue +43
@@ -260,6 +260,16 @@ function toggleTheme(theme: LoadedTheme): void {
260 <div class="theme-search"> 260 <div class="theme-search">
261 <span class="i-lucide:search" /> 261 <span class="i-lucide:search" />
262 <input v-model="query" type="text" :placeholder="searchPlaceholder" /> 262 <input v-model="query" type="text" :placeholder="searchPlaceholder" />
263 <button
264 type="button"
265 class="theme-search-clear"
266 :disabled="!query"
267 title="Clear search"
268 aria-label="Clear search"
269 @click="query = ''"
270 >
271 <span class="i-lucide:x" />
272 </button>
263 </div> 273 </div>
264 <button 274 <button
265 type="button" 275 type="button"
@@ -404,6 +414,39 @@ function toggleTheme(theme: LoadedTheme): void {
404.theme-search > span { 414.theme-search > span {
405 flex-shrink: 0; 415 flex-shrink: 0;
406} 416}
417.theme-search-clear {
418 display: flex;
419 align-items: center;
420 justify-content: center;
421 flex-shrink: 0;
422 padding: 0;
423 border: none;
424 border-radius: 0;
425 background: transparent;
426 color: var(--vp-c-text-1);
427 opacity: 0.55;
428 cursor: pointer;
429 transition: opacity 0.25s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
430}
431.theme-search-clear:hover:not(:disabled) {
432 opacity: 1;
433}
434.theme-search-clear:disabled {
435 opacity: 0.37;
436 cursor: default;
437}
438.theme-search-clear:not(:disabled):active {
439 transform: scale(0.94);
440}
441.theme-search-clear span {
442 font-size: 18px;
443}
444html.effects-disabled .theme-search-clear {
445 transition: none;
446}
447html.effects-disabled .theme-search-clear:active {
448 transform: none;
449}
407.theme-status-btn { 450.theme-status-btn {
408 display: flex; 451 display: flex;
409 align-items: center; 452 align-items: center;