diff --git a/app/styles/input.css b/app/styles/input.css index 4eb30dd1..464a143c 100644 --- a/app/styles/input.css +++ b/app/styles/input.css @@ -149,61 +149,6 @@ input[type=image]:disabled { cursor: default; } -/* ------- SELECT BUTTONS ------- */ - -select { - --select-arrow: url('data:image/svg+xml;utf8, \ - \ - \ - '); - - /* FIXME: A bug in Firefox, requires a workaround for the background: - https://bugzilla.mozilla.org/show_bug.cgi?id=1810958 */ - /* The dropdown list will show the select element's background above and - below the options in Firefox. We want the entire dropdown to be white. */ - background-color: white; - /* However, we don't want the select element to actually show a white - background, so let's place a gradient above it with the color we want. */ - --grey-background: linear-gradient(var(--novnc-buttongrey) 100%, - transparent); - background-image: - var(--select-arrow), - var(--button-activation-overlay), - var(--grey-background); - background-position: calc(100% - var(--input-xpadding)), left top, left top; - background-repeat: no-repeat; - padding-right: calc(2*var(--input-xpadding) + 11px); -} -/* FIXME: :active isn't set when the */ - background-color: white; - color: black; - font-weight: normal; - background-image: var(--button-activation-overlay); -} - /* -- SHARED BETWEEN CHECKBOXES AND RADIOBUTTONS -- */ input[type=radio], @@ -381,3 +326,58 @@ input::file-selector-button { input[type=file]:focus-visible { outline: none; /* We outline the button instead of the entire element */ } + +/* ------- SELECT BUTTONS ------- */ + +select { + --select-arrow: url('data:image/svg+xml;utf8, \ + \ + \ + '); + + /* FIXME: A bug in Firefox, requires a workaround for the background: + https://bugzilla.mozilla.org/show_bug.cgi?id=1810958 */ + /* The dropdown list will show the select element's background above and + below the options in Firefox. We want the entire dropdown to be white. */ + background-color: white; + /* However, we don't want the select element to actually show a white + background, so let's place a gradient above it with the color we want. */ + --grey-background: linear-gradient(var(--novnc-buttongrey) 100%, + transparent); + background-image: + var(--select-arrow), + var(--button-activation-overlay), + var(--grey-background); + background-position: calc(100% - var(--input-xpadding)), left top, left top; + background-repeat: no-repeat; + padding-right: calc(2*var(--input-xpadding) + 11px); +} +/* FIXME: :active isn't set when the */ + background-color: white; + color: black; + font-weight: normal; + background-image: var(--button-activation-overlay); +}