1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* This file enables alternating light and dark row colours ('zebra stripes')
* in tree view widgets. These are general good default colours for light
* themes. You can enable zebra stripes by copying this file to your
* ~/.config/gtk-3.0/gtk.css file, or you can implement similar code in your
* theme CSS.
*
* Note the extra CSS selectors which theme only tree views with more than
* one column; generally speaking, zebra stripes are only necessary when the
* list or tree contains more than one column. If you really want zebra
* stripes on all tree views, regardless of column count, remove the extra
* selectors for ':not(.first):not(.last)', '.first:not(.last)', and
* ':not(.first).last'.
*/
treeview.cell:not(.first):not(.last):not(:selected).odd.sorted,
treeview.cell.first:not(.last):not(:selected).odd.sorted,
treeview.cell:not(.first).last:not(:selected).odd.sorted,
treeview.cell:not(.first):not(.last):not(:selected).even:not(.sorted),
treeview.cell.first:not(.last):not(:selected).even:not(.sorted),
treeview.cell:not(.first).last:not(:selected).even:not(.sorted)
{
background: alpha(black, 0.07);
}
treeview.cell:not(.first):not(.last):not(:selected).even.sorted,
treeview.cell.first:not(.last):not(:selected).even.sorted,
treeview.cell:not(.first).last:not(:selected).even.sorted
{
background: alpha(black, 0.13);
}
|