package page→ /design/shtukbase-ui-html/components/primitive/input/input.css
pages/design/shtukbase-ui-html/components/primitive/input/input.css
17 lines, 1.6 KB. Open as is (in a project other files lie next to it; they may be missing here).
- /* input: filled is the compact grey of the settings bar; outline is the shadcn input with the line in the input colour. */
- .input {
- box-sizing: border-box; min-width: 0; margin: 0; border: 0; outline: none;
- font: 500 12px/1.2 var(--font-sans); color: var(--foreground);
- padding: 5px 9px; border-radius: calc(var(--radius) - 3px);
- background: var(--secondary); box-shadow: 0 0 0 0 transparent;
- transition: background-color var(--sb-dur, .18s) var(--sb-ease, ease), box-shadow var(--sb-dur, .18s) var(--sb-ease, ease);
- }
- .input::placeholder { color: var(--muted-foreground); opacity: 1; }
- .input:is(:hover, [data-hover]):not(:disabled) { background-color: color-mix(in srgb, var(--foreground) 7%, var(--muted)); }
- .input:is(:focus-visible, [data-focus]) { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 45%, transparent); }
- .input[data-size="default"] { height: 32px; padding: 0 10px; font: 400 13px/1.2 var(--font-sans); border-radius: calc(var(--radius) - 2px); }
- .input[data-variant="outline"] { background: var(--background); box-shadow: inset 0 0 0 1px var(--input); }
- .input[data-variant="outline"]:is(:hover, [data-hover]):not(:disabled) { background: var(--background); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--input) 70%, var(--foreground)); }
- .input[data-variant="outline"]:is(:focus-visible, [data-focus]) { box-shadow: inset 0 0 0 1px var(--ring), 0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent); }
- .input:is([aria-invalid="true"], [data-status="error"]) { box-shadow: inset 0 0 0 1px var(--destructive), 0 0 0 3px color-mix(in srgb, var(--destructive) 18%, transparent); }
- .input:disabled { opacity: .5; cursor: not-allowed; }