From da4f3f30ea882b44022efbdb1b6536e11f363a2b Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Fri, 9 Dec 2022 16:35:41 +0100 Subject: Move workaround for Firefox bug to input.css This applies to all input[type=image]:disabled elements, not only control bar buttons. --- app/styles/base.css | 3 --- app/styles/input.css | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/styles/base.css b/app/styles/base.css index a55ca61..1bf8064 100644 --- a/app/styles/base.css +++ b/app/styles/base.css @@ -397,9 +397,6 @@ html { } #noVNC_control_bar .noVNC_button:disabled { opacity: 0.4; - /* See firefox bug regarding cursor on disabled : - https://bugzilla.mozilla.org/show_bug.cgi?id=1798304 */ - cursor: default; } #noVNC_control_bar .noVNC_button:not(:disabled):active { padding-top: 5px; diff --git a/app/styles/input.css b/app/styles/input.css index f090577..cc4087c 100644 --- a/app/styles/input.css +++ b/app/styles/input.css @@ -280,3 +280,8 @@ input[type=file]:disabled { background-image: var(--select-arrow), linear-gradient(to top, rgb(255, 255, 255), rgb(240, 240, 240)); } +input[type=image]:disabled { + /* See Firefox bug: + https://bugzilla.mozilla.org/show_bug.cgi?id=1798304 */ + cursor: default; +} -- cgit v1.2.1