Bug 1163954 - Set text and background color for listboxes and tree. r=gijskruitbosch

--HG--
extra : rebase_source : c4ffb0ccaaffe688c5996bdaa1d0743b70d01aea
This commit is contained in:
Martin Stransky 2015-06-10 05:35:00 +02:00
Родитель 6edca573d9
Коммит 89deaf2667
2 изменённых файлов: 19 добавлений и 0 удалений

Просмотреть файл

@ -91,3 +91,20 @@ xul|*.inline-link:-moz-focusring {
xul|spinbuttons { xul|spinbuttons {
-moz-appearance: none; -moz-appearance: none;
} }
xul|treechildren::-moz-tree-row(multicol, odd) {
background-color: var(--in-content-box-background-odd);
}
/* These rules are duplicated from common.inc.css
* because above -moz-tree-row(multicol, odd) rule
* overrides also hover/selected states.
*/
xul|treechildren::-moz-tree-row(hover) {
background-color: var(--in-content-item-hover);
}
xul|treechildren::-moz-tree-row(selected) {
background-color: var(--in-content-item-selected);
}

Просмотреть файл

@ -13,6 +13,7 @@
--in-content-selected-text: #fff; --in-content-selected-text: #fff;
--in-content-header-border-color: #c8c8c8; --in-content-header-border-color: #c8c8c8;
--in-content-box-background: #fff; --in-content-box-background: #fff;
--in-content-box-background-odd: #f3f6fa;
--in-content-box-background-hover: #ebebeb; --in-content-box-background-hover: #ebebeb;
--in-content-box-background-active: #dadada; --in-content-box-background-active: #dadada;
--in-content-box-border-color: #c1c1c1; --in-content-box-border-color: #c1c1c1;
@ -704,6 +705,7 @@ xul|tree {
-moz-appearance: none; -moz-appearance: none;
font-size: 1em; font-size: 1em;
border: 1px solid var(--in-content-box-border-color); border: 1px solid var(--in-content-box-border-color);
background-color: var(--in-content-box-background);
margin: 0; margin: 0;
} }