Add outline and cancel button to Search input

This commit is contained in:
Denevola 2022-09-28 00:26:11 +09:00
parent d7d7de15e4
commit 70c9ab9520
3 changed files with 16 additions and 2 deletions

View file

@ -208,6 +208,20 @@ select:focus {
outline: 0.1rem solid var(--color-foreground);
}
/* Search cancel button */
::-webkit-search-cancel-button {
-webkit-appearance: none;
height: 1.5rem;
margin: 0 0.5em;
padding: 0.1rem;
border-radius: 0.25rem;
cursor: pointer;
content: url('/x-lg.svg');
}
::-webkit-search-cancel-button:hover {
background-color: var(--color-border);
}
/* Components and Helpers */
.bi {

View file

@ -16,7 +16,7 @@ const { t } = useI18n(),
<Transition name="fade">
<div v-show="show" class="popup">
<input
type="text"
type="search"
aria-label="Search Input"
:placeholder="t('title.search') + '...'"
@change="
@ -45,7 +45,6 @@ const { t } = useI18n(),
border: none;
border-radius: inherit;
background: var(--color-background-mute);
outline: none;
text-align: center;
}
</style>