UNPKG

ayovue

Version:

A progressive vue components library designed to simplify and accelerate your web development process.

67 lines (56 loc) 1.37 kB
.a-input { display: flex; position: relative; align-items: center; /* width: 100%; */ } .a-input .a-input-field { flex-grow: 1; outline: none; border: none; background: transparent; width: 100%; z-index: 1; line-height: 1; font-size: inherit; } .a-input .a-fl-label ~ .a-input-field::-moz-placeholder { opacity: 1; -moz-transition: all 0.3s linear; transition: all 0.3s linear; } .a-input .a-fl-label ~ .a-input-field::placeholder { opacity: 1; transition: all 0.3s linear; } .a-input .a-fl-label ~ .a-input-field:not(:focus)::-moz-placeholder { opacity: 0; } .a-input .a-fl-label ~ .a-input-field:not(:focus)::placeholder { opacity: 0; } .a-input > .a-fl-label { position: absolute; transition: all 0.3s ease-in-out; line-height: normal; letter-spacing: normal; display: flex; align-items: center; } .a-input.a-input-is-floating > .a-fl-label { opacity: 1; -webkit-backdrop-filter: blur(2em); backdrop-filter: blur(2em); padding: 0 0.2em; } .a-input .a-placeholder { line-height: 1; } .a-input:has(input:disabled) { opacity: 0.5; pointer-events: none; } /* .a-input-field::-webkit-slider-thumb, .a-input-field::-moz-range-thumb { height: 1em; } */