Add: UserContent - Odd / hover background color #737

This commit is contained in:
alstjr7375 2023-07-10 22:22:41 +09:00
parent 411b08fe26
commit 4d87f305b5
2 changed files with 34 additions and 0 deletions

16
css/leptonContent.css generated
View file

@ -2059,6 +2059,22 @@
height: 48px;
}
}
@-moz-document url-prefix("about:preferences") {
#handlersView > 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"],
#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),
#translations-manage-install-list > .translations-manage-language:nth-child(even):not([selected="true"], :hover) {
background-color: var(--in-content-box-background-odd);
}
}
/*= chrome://browser/content/places/places.xhtml =============================*/
@-moz-document url("chrome://browser/content/places/places.xhtml")
{

View file

@ -1,3 +1,21 @@
@include moz-document(url-prefix "chrome://browser/content") {
@import "../../theme/proton_chrome/sanitize_everything";
}
@include moz-document(url-prefix "about:preferences") {
// Odd table #737
#handlersView > richlistitem,
#translations-manage-install-list > .translations-manage-language {
&:hover {
background-color: var(--in-content-item-hover);
color: var(--in-content-item-hover-text);
}
&[selected="true"] {
background-color: var(--in-content-item-selected);
color: var(--in-content-item-selected-text);
}
&:nth-child(even):not([selected="true"], :hover) {
background-color: var(--in-content-box-background-odd);
}
}
}