mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-27 20:50:21 +08:00
46 lines
931 B
HTML
46 lines
931 B
HTML
<div class="input">
|
|
<input type="text" required="" autocomplete="off">
|
|
<label for="name">Username</label>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by ClawHack1 - Tags: input */
|
|
.input {
|
|
font-family: 'Segoe UI', sans-serif;
|
|
margin: 1em 0 1em 0;
|
|
max-width: 190px;
|
|
position: relative;
|
|
}
|
|
|
|
.input input {
|
|
font-size: 100%;
|
|
padding: 0.8em;
|
|
outline: none;
|
|
border: 2px solid rgb(141, 109, 255);
|
|
background-color: transparent;
|
|
border-radius: 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
.input label {
|
|
font-size: 100%;
|
|
position: absolute;
|
|
left: 0;
|
|
padding: 0.8em;
|
|
margin-left: 0.5em;
|
|
pointer-events: none;
|
|
transition: all 0.3s ease;
|
|
color: rgb(255, 255, 255);
|
|
}
|
|
|
|
.input :is(input:focus, input:valid)~label {
|
|
transform: translateY(-50%) scale(.9);
|
|
margin: 0em;
|
|
margin-left: 1.3em;
|
|
padding: 0.4em;
|
|
background-color: #212121;
|
|
}
|
|
|
|
.inputGroup :is(input:focus, input:valid) {
|
|
border-color: rgb(37, 37, 211);
|
|
}
|
|
</style>
|