/* * 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, input::file-selector-button, button, select, textarea { padding: 0.5em var(--input-xpadding); border-radius: 6px; appearance: none; /* Respect standard font settings */ font: inherit; } /* * 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