mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
50 lines
1.2 KiB
HTML
50 lines
1.2 KiB
HTML
<div class="group">
|
|
<svg viewBox="0 0 24 24" aria-hidden="true" class="icon">
|
|
<g>
|
|
<path d="M21.53 20.47l-3.66-3.66C19.195 15.24 20 13.214 20 11c0-4.97-4.03-9-9-9s-9 4.03-9 9 4.03 9 9 9c2.215 0 4.24-.804 5.808-2.13l3.66 3.66c.147.146.34.22.53.22s.385-.073.53-.22c.295-.293.295-.767.002-1.06zM3.5 11c0-4.135 3.365-7.5 7.5-7.5s7.5 3.365 7.5 7.5-3.365 7.5-7.5 7.5-7.5-3.365-7.5-7.5z"></path>
|
|
</g>
|
|
</svg>
|
|
<input class="input" type="search" placeholder="Search">
|
|
</div>
|
|
|
|
<style>
|
|
/* From Uiverse.io by JaydipPrajapati1910 - Tags: input, search, border, search bar */
|
|
.group {
|
|
display: flex;
|
|
line-height: 28px;
|
|
align-items: center;
|
|
position: relative;
|
|
max-width: 190px;
|
|
}
|
|
|
|
.input {
|
|
height: 40px;
|
|
line-height: 28px;
|
|
padding: 0 1rem;
|
|
width: 100%;
|
|
padding-left: 2.5rem;
|
|
outline: none;
|
|
background: linear-gradient(180deg, rgb(56, 56, 56) 0%, rgb(36, 36, 36) 66%, rgb(41, 41, 41) 100%);
|
|
color: #fff;
|
|
transition: .3s ease;
|
|
border: 2px solid;
|
|
border-image: conic-gradient( #00F260, #0575E6,#64f38c) 1;
|
|
}
|
|
|
|
.input::placeholder {
|
|
color: #fff;
|
|
}
|
|
|
|
.input:focus::placeholder {
|
|
color: #999;
|
|
}
|
|
|
|
.icon {
|
|
position: absolute;
|
|
left: 1rem;
|
|
fill: #fff;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
}
|
|
|
|
</style>
|