mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
60 lines
No EOL
1.2 KiB
HTML
60 lines
No EOL
1.2 KiB
HTML
<div class="search">
|
|
<input placeholder="Search" class="search__input" type="text" />
|
|
<button class="search__button">
|
|
<svg
|
|
viewBox="0 0 16 16"
|
|
class="bi bi-search"
|
|
fill="currentColor"
|
|
height="16"
|
|
width="16"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"
|
|
></path>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
|
|
<style>
|
|
/* From Uiverse.io by xetrov47 - Tags: simple, input, search */
|
|
.search {
|
|
display: flex;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.search__input {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
border: 1px solid #767676;
|
|
color: #767676;
|
|
padding: 5px 10px;
|
|
border-radius: 4px;
|
|
margin-right: -1.5rem;
|
|
height: 30px;
|
|
width: 15rem;
|
|
}
|
|
|
|
.search__input::-webkit-input-placeholder {
|
|
font-weight: 400;
|
|
color: #767676;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.search__button {
|
|
border: none;
|
|
background-color: #fff;
|
|
margin-top: 0.1em;
|
|
}
|
|
|
|
.search__button:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.search input:focus {
|
|
outline: none;
|
|
}
|
|
|
|
</style>
|
|
|