From 90e0b1e479f36e2d8a944f0516ce62ebb3ade0dd Mon Sep 17 00:00:00 2001 From: BlaCk_Void Date: Mon, 11 Oct 2021 05:05:33 +0900 Subject: [PATCH] Add: Proton - Cert exception dialog --- userChrome.css | 51 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/userChrome.css b/userChrome.css index 9494d2f..cfa3b1a 100644 --- a/userChrome.css +++ b/userChrome.css @@ -1098,6 +1098,7 @@ @-moz-document url("chrome://global/content/commonDialog.xhtml"), url("chrome://pippki/content/editcacert.xhtml"), url("chrome://pippki/content/deletecert.xhtml"), + url("chrome://pippki/content/exceptionDialog.xhtml"), url("chrome://mozapps/content/downloads/unknownContentType.xhtml"), url("chrome://browser/content/pageinfo/pageInfo.xhtml") { @@ -1123,6 +1124,7 @@ #commonDialog, #editCaCert, #deleteCertificate, + #exceptiondialog, #unknownContentType, #topBar, /* #topBar, #mainDeck: Page Info */ #mainDeck { @@ -1596,7 +1598,7 @@ } } - /*= Delete Cert =============================================================*/ + /*= Delete Cert ============================================================*/ @-moz-document url("chrome://pippki/content/deletecert.xhtml") { :root { @@ -1608,6 +1610,53 @@ } } + /*= Cert Exeption Dialog ===================================================*/ + @-moz-document url("chrome://pippki/content/exceptionDialog.xhtml") + { + :root { + --in-content-border-color: color-mix(in srgb, currentColor 41%, transparent) !important; + } + #locationTextBox { + appearance: none !important; + border: 1px solid var(--in-content-box-border-color) !important; + border-radius: 4px !important; + color: inherit !important; + background-color: var(--in-content-box-background) !important; + + font-family: inherit !important; + 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; + } + + #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; + } + } + /*= Page Info ==============================================================*/ @-moz-document url("chrome://browser/content/pageinfo/pageInfo.xhtml") {