/* * 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 { /* Respect standard font settings */ font: inherit; /* Disable default rendering */ appearance: none; background: none; padding: 0.5em var(--input-xpadding); border: 1px solid rgb(192, 192, 192); border-radius: 5px; color: black; --bg-gradient: linear-gradient(to top, rgb(255, 255, 255) 80%, rgb(240, 240, 240)); background-image: var(--bg-gradient); } /* * Buttons */ input[type=button], input[type=color], input[type=image], input[type=reset], input[type=submit], input::file-selector-button, button, select { border-bottom-width: 2px; /* This avoids it jumping around when :active */ vertical-align: middle; margin-top: 0; /* Disable Chrome's touch tap highlight */ -webkit-tap-highlight-color: transparent; } /* * Select dropdowns */ select { --select-arrow: url('data:image/svg+xml;utf8, \ \ \ '); background-image: var(--select-arrow), var(--bg-gradient); background-position: calc(100% - var(--input-xpadding)), left top, left top; background-repeat: no-repeat; padding-right: calc(2*var(--input-xpadding) + 8px); } /* FIXME: :active isn't set when the