From 2f69ac896ab4b24e71b8f8255e9ab4ef56d4863a Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Mon, 2 Oct 2023 05:50:09 +0900 Subject: [PATCH] Fix: Content - Odd rows color at pippki #783 --- css/leptonContent.css | 10 ++++++---- css/leptonContentESR.css | 10 ++++++---- src/contents/proton_contents/_about_preferences.scss | 7 ++++--- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/css/leptonContent.css b/css/leptonContent.css index e15dac2..d2512a0 100644 --- a/css/leptonContent.css +++ b/css/leptonContent.css @@ -2182,19 +2182,21 @@ height: 48px; } } - @-moz-document url-prefix("about:preferences"), url-prefix("chrome://browser/content/preferences/dialogs/") + @-moz-document url-prefix("about:preferences"), url-prefix("chrome://browser/content/preferences/dialogs/"), url-prefix("chrome://pippki/content/") { - :is(.contentPane, .main-content) richlistbox > richlistitem:hover, + :is(.contentPane, .main-content, #certmanagertabs) richlistbox > richlistitem:hover, #translations-manage-install-list > .translations-manage-language:hover { background-color: var(--in-content-item-hover); color: var(--in-content-item-hover-text); } - :is(.contentPane, .main-content) richlistbox > richlistitem[selected="true"], + :is(.contentPane, .main-content, #certmanagertabs) richlistbox > richlistitem[selected="true"], #translations-manage-install-list > .translations-manage-language[selected="true"] { background-color: var(--in-content-item-selected); color: var(--in-content-item-selected-text); } - :is(.contentPane, .main-content) richlistbox > richlistitem:nth-child(even):not([selected="true"], :hover), + :is(.contentPane, .main-content, #certmanagertabs) + richlistbox + > richlistitem:nth-child(even):not([selected="true"], :hover), #translations-manage-install-list > .translations-manage-language:nth-child(even):not([selected="true"], :hover) { background-color: var(--in-content-box-background-odd); } diff --git a/css/leptonContentESR.css b/css/leptonContentESR.css index 224b3eb..e5288cf 100644 --- a/css/leptonContentESR.css +++ b/css/leptonContentESR.css @@ -2185,19 +2185,21 @@ height: 48px; } } - @-moz-document url-prefix("about:preferences"), url-prefix("chrome://browser/content/preferences/dialogs/") + @-moz-document url-prefix("about:preferences"), url-prefix("chrome://browser/content/preferences/dialogs/"), url-prefix("chrome://pippki/content/") { - :is(.contentPane, .main-content) richlistbox > richlistitem:hover, + :is(.contentPane, .main-content, #certmanagertabs) richlistbox > richlistitem:hover, #translations-manage-install-list > .translations-manage-language:hover { background-color: var(--in-content-item-hover); color: var(--in-content-item-hover-text); } - :is(.contentPane, .main-content) richlistbox > richlistitem[selected="true"], + :is(.contentPane, .main-content, #certmanagertabs) richlistbox > richlistitem[selected="true"], #translations-manage-install-list > .translations-manage-language[selected="true"] { background-color: var(--in-content-item-selected); color: var(--in-content-item-selected-text); } - :is(.contentPane, .main-content) richlistbox > richlistitem:nth-child(even):not([selected="true"], :hover), + :is(.contentPane, .main-content, #certmanagertabs) + richlistbox + > richlistitem:nth-child(even):not([selected="true"], :hover), #translations-manage-install-list > .translations-manage-language:nth-child(even):not([selected="true"], :hover) { background-color: var(--in-content-box-background-odd); } diff --git a/src/contents/proton_contents/_about_preferences.scss b/src/contents/proton_contents/_about_preferences.scss index dc3e7c8..d8a43f1 100644 --- a/src/contents/proton_contents/_about_preferences.scss +++ b/src/contents/proton_contents/_about_preferences.scss @@ -4,10 +4,11 @@ @include moz-document( url-prefix "about:preferences", - url-prefix "chrome://browser/content/preferences/dialogs/" + url-prefix "chrome://browser/content/preferences/dialogs/", + url-prefix "chrome://pippki/content/" ) { - // Odd table #737 #751 - :is(.contentPane, .main-content) richlistbox > richlistitem, + // Odd table #737 #751 #783 + :is(.contentPane, .main-content, #certmanagertabs) richlistbox > richlistitem, #translations-manage-install-list > .translations-manage-language { &:hover { background-color: var(--in-content-item-hover);