/* * noVNC general input element CSS * Copyright (C) 2025 The noVNC authors * noVNC is licensed under the MPL 2.0 (see LICENSE.txt) * This file is licensed under the 2-Clause BSD license (see LICENSE.txt). */ /* * Common for all inputs */ :root { --input-xpadding: 1em; } input, textarea, button, select, input::file-selector-button { padding: 0.5em var(--input-xpadding); border-radius: 6px; appearance: none; /* Respect standard font settings */ font: inherit; } input:disabled, textarea:disabled, button:disabled, select:disabled, label[disabled] { opacity: 0.4; } input:focus-visible, textarea:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible::file-selector-button { outline: 2px solid var(--novnc-lightblue); outline-offset: 1px; } /* * Text input */ input:not([type]), input[type=date], input[type=datetime-local], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], textarea { border: 1px solid var(--novnc-lightgrey); /* Account for borders on text inputs, buttons dont have borders */ padding: calc(0.5em - 1px) var(--input-xpadding); } /* * Button activations */ /* A color overlay that depends on the activation level. The level can then be set for different states on an element, for example hover and click on a