Add: Content - Odd rows color at dialog's richlistbox #751

This commit is contained in:
alstjr7375 2023-09-07 23:28:22 +09:00
parent 2ce0c62520
commit 2998e21838
3 changed files with 16 additions and 11 deletions

9
css/leptonContent.css generated
View file

@ -2172,18 +2172,19 @@
height: 48px;
}
}
@-moz-document url-prefix("about:preferences") {
#handlersView > richlistitem:hover,
@-moz-document url-prefix("about:preferences"), url-prefix("chrome://browser/content/preferences/dialogs/")
{
:is(.contentPane, .main-content) 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);
}
#handlersView > richlistitem[selected="true"],
:is(.contentPane, .main-content) 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);
}
#handlersView > richlistitem:nth-child(even):not([selected="true"], :hover),
:is(.contentPane, .main-content) 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);
}

View file

@ -2175,18 +2175,19 @@
height: 48px;
}
}
@-moz-document url-prefix("about:preferences") {
#handlersView > richlistitem:hover,
@-moz-document url-prefix("about:preferences"), url-prefix("chrome://browser/content/preferences/dialogs/")
{
:is(.contentPane, .main-content) 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);
}
#handlersView > richlistitem[selected="true"],
:is(.contentPane, .main-content) 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);
}
#handlersView > richlistitem:nth-child(even):not([selected="true"], :hover),
:is(.contentPane, .main-content) 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);
}

View file

@ -2,9 +2,12 @@
@import "../../theme/proton_chrome/sanitize_everything";
}
@include moz-document(url-prefix "about:preferences") {
// Odd table #737
#handlersView > richlistitem,
@include moz-document(
url-prefix "about:preferences",
url-prefix "chrome://browser/content/preferences/dialogs/"
) {
// Odd table #737 #751
:is(.contentPane, .main-content) richlistbox > richlistitem,
#translations-manage-install-list > .translations-manage-language {
&:hover {
background-color: var(--in-content-item-hover);