UNPKG

react-glass-ui

Version:

A customizable React component library for building liquid-glass interfaces with dynamic, realistic fluid distortion. Powered by advanced SVG filters, the library simulates true refraction, blur, and chromatic distortion to create authentic glass-like sur

80 lines (79 loc) 1.54 kB
.glass-ui-input-container { display: flex; flex-direction: column; } .glass-ui-input-label { position: relative; margin: 0 !important; } .glass-ui-input-content { width: 100%; height: 100%; position: relative; backface-visibility: hidden; z-index: 0; } .glass-input { width: 100%; height: 100%; top: 0; margin: 0; position: absolute; background: none; border: none; outline: none; } .glass-input::placeholder { opacity: 0.7; color: white; } .glass-input[type="number"] { -moz-appearance: textfield; } .glass-input[type="number"]::-webkit-outer-spin-button, .glass-input[type="number"]::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; } input[type="file"] { width: 100%; height: 100%; opacity: 0; position: absolute; } .file-type-placeholder { user-select: none; } .glass-range-track { width: 100%; height: 10px; position: relative; cursor: pointer; border-radius: 5px; transition: border 0.2s ease; } .glass-range-fill { position: absolute; height: 100%; border-radius: 5px; pointer-events: none; transition: opacity 0.3s ease; } .glass-range-after-fill { position: absolute; top: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.202); pointer-events: none; border-radius: 0 5px 5px 0; } .glass-range-thumb { width: 30px; height: 15px; position: absolute; top: 50%; transition: transform 0.2s ease; } .glass-range-border { z-index: 10; }