Sha256: 816c1a8b3a6988413118e3c901363803d41bfa96d3bf808a5324ff8da562b680
Contents?: true
Size: 1.43 KB
Versions: 4
Compression:
Stored size: 1.43 KB
Contents
.input { appearance: none; background-color: var(--color-bg); border-color: var(--color-border); border-radius: var(--rounded-md); border-width: var(--border); font-size: var(--text-sm); inline-size: var(--size-full); padding: var(--size-2) var(--size-3); resize: none; option { padding-block: var(--size-1); } &:is(textarea):not([rows]) { field-sizing: content; max-block-size: calc(10lh + var(--size-6)); min-block-size: calc(3lh + var(--size-6)); } &:is(select):not([multiple], [size]) { background-image: url("select-arrow.svg"); background-position: center right var(--size-2); background-repeat: no-repeat; background-size: var(--size-4) auto; } &::file-selector-button { font-weight: var(--font-medium); margin-inline-end: var(--size-2); } &::placeholder { color: var(--color-text-subtle); } &:user-invalid { border-color: var(--color-negative); } &:disabled { cursor: not-allowed; opacity: var(--opacity-50); } } .range { accent-color: var(--color-primary); } .checkbox, .radio { accent-color: var(--color-primary); transform: scale(1.15); } :is(.input, .range, .checkbox, .radio) { /* Keyboard navigation */ &:focus-visible { outline: var(--border-2) solid var(--color-primary); outline-offset: var(--border-2); } /* Server side validation */ .field_with_errors & { border-color: var(--color-negative); } }
Version data entries
4 entries across 4 versions & 1 rubygems