diff options
author | Ingrid Budau <twigle_ingrid@yahoo.com> | 2021-11-30 12:15:17 +0100 |
---|---|---|
committer | Ingrid Budau <twigle_ingrid@yahoo.com> | 2021-11-30 12:15:17 +0100 |
commit | 3ace60c93b008d791fcb38d5378813f9f5f38a66 (patch) | |
tree | 78b69d55760505d4f09f566e3256ff429174cb08 | |
parent | 2dea331ac07f937df4328e17f7d99a2a50b96bf5 (diff) | |
download | qutebrowser-3ace60c93b008d791fcb38d5378813f9f5f38a66.tar.gz qutebrowser-3ace60c93b008d791fcb38d5378813f9f5f38a66.zip |
Hide radio button using CSS `appearance` property
- Hide radio button using the property `-webkit-appearance: none;`
instead of `opacity`
- It is also supported on older QtWebEngine version 5.12
-rw-r--r-- | qutebrowser/html/settings.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qutebrowser/html/settings.html b/qutebrowser/html/settings.html index e89cd6437..dfbc5c168 100644 --- a/qutebrowser/html/settings.html +++ b/qutebrowser/html/settings.html @@ -59,12 +59,12 @@ input:focus { border: 2px solid #7a589ea6; } -/* Hides the radio button */ input[type="radio"] { - position: absolute; - opacity: 1%; + position: absolute; /* Positions the radio button relative to the edges of its containing element */ + -webkit-appearance: none; /* Removes its native styling */ width: min-content; margin: 0; + border: none; } label { @@ -111,7 +111,7 @@ input[type="radio"]:checked + label { } .radio-button { - position: relative; + position: relative; /* The absolutely positioned element inside this tag (the radio button) gets positioned relative to it. */ display: inline-flex; margin: 3px 1px; } |