From a541e0507378f13e37a060495a0f73be3ef11c48 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Wed, 1 Jun 2022 21:10:29 +0900 Subject: [PATCH] Clean: Proton - Cert --- css/leptonChrome.css | 4 --- src/theme/proton_chrome/_cert.scss | 53 ++++++++++++++++-------------- 2 files changed, 28 insertions(+), 29 deletions(-) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index 46c07a7..da0a632 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -2048,21 +2048,18 @@ padding: 8px !important; margin: 2px 4px !important; } - #locationTextBox:focus { border-color: transparent !important; outline: 2px solid var(--in-content-focus-outline-color) !important; outline-offset: -1px !important; /* Prevents antialising around the corners */ } - #locationTextBox:-moz-ui-invalid { border-color: transparent !important; outline: 2px solid var(--in-content-border-invalid) !important; outline-offset: -1px !important; /* Prevents antialising around the corners */ } - #locationTextBox:disabled { opacity: 0.4 !important; } @@ -2076,7 +2073,6 @@ -moz-context-properties: fill !important; fill: currentColor !important; } - #exceptiondialog:first-child > hbox > vbox > image { display: none !important; } diff --git a/src/theme/proton_chrome/_cert.scss b/src/theme/proton_chrome/_cert.scss index a0e6ffd..152e45f 100644 --- a/src/theme/proton_chrome/_cert.scss +++ b/src/theme/proton_chrome/_cert.scss @@ -21,32 +21,35 @@ font-size: inherit !important; padding: 8px !important; margin: 2px 4px !important; - } - #locationTextBox:focus { - border-color: transparent !important; - outline: 2px solid var(--in-content-focus-outline-color) !important; - outline-offset: -1px !important; /* Prevents antialising around the corners */ - } - #locationTextBox:-moz-ui-invalid { - border-color: transparent !important; - outline: 2px solid var(--in-content-border-invalid) !important; - outline-offset: -1px !important; /* Prevents antialising around the corners */ - } - #locationTextBox:disabled { - opacity: 0.4 !important; + + &:focus { + border-color: transparent !important; + outline: 2px solid var(--in-content-focus-outline-color) !important; + outline-offset: -1px !important; /* Prevents antialising around the corners */ + } + &:-moz-ui-invalid { + border-color: transparent !important; + outline: 2px solid var(--in-content-border-invalid) !important; + outline-offset: -1px !important; /* Prevents antialising around the corners */ + } + &:disabled { + opacity: 0.4 !important; + } } - #exceptiondialog:first-child > hbox > vbox:not([flex="1"]) { - width: 48px !important; - height: 48px !important; - background-image: url("chrome://global/skin/icons/warning.svg") !important; - background-size: 48px !important; - background-repeat: no-repeat !important; - - -moz-context-properties: fill !important; - fill: currentColor !important; - } - #exceptiondialog:first-child > hbox > vbox > image { - display: none !important; + #exceptiondialog:first-child > hbox > vbox { + &:not([flex="1"]) { + width: 48px !important; + height: 48px !important; + background-image: url("chrome://global/skin/icons/warning.svg") !important; + background-size: 48px !important; + background-repeat: no-repeat !important; + + -moz-context-properties: fill !important; + fill: currentColor !important; + } + > image { + display: none !important; + } } }