| 1 |
@charset "UTF-8"; |
| 2 |
|
| 3 |
/********* |
| 4 |
* Lists * |
| 5 |
*********/ |
| 6 |
|
| 7 |
@mixin list-item-highlight { |
| 8 |
@if $new-highlight { |
| 9 |
background-color: gtk("@theme_selected_bg_color"); |
| 10 |
color: gtk("@theme_button_foreground_active"); |
| 11 |
border-top: 1px |
| 12 |
solid |
| 13 |
gtk("@theme_button_decoration_focus"); |
| 14 |
border-bottom: 1px |
| 15 |
solid |
| 16 |
gtk("@theme_button_decoration_focus"); |
| 17 |
border-radius: 0px; |
| 18 |
} @else { |
| 19 |
background-color: gtk("@theme_selected_bg_color"); |
| 20 |
} |
| 21 |
} |
| 22 |
|
| 23 |
list { |
| 24 |
color: gtk("@theme_fg_color"); |
| 25 |
background: gtk("@theme_base_color"); |
| 26 |
border-radius: 3px; |
| 27 |
&.content { |
| 28 |
border: 1px solid gtk("@borders"); |
| 29 |
} |
| 30 |
|
| 31 |
row { |
| 32 |
background: gtk("@theme_base_color"); |
| 33 |
padding: 2px; |
| 34 |
} |
| 35 |
} |
| 36 |
|
| 37 |
row { |
| 38 |
&:hover { |
| 39 |
} |
| 40 |
|
| 41 |
&.activatable { |
| 42 |
@if $new-highlight { |
| 43 |
border: 1px solid transparent; |
| 44 |
} |
| 45 |
|
| 46 |
&.has-open-popup, // this is for indicathing which row generated a popover see https://bugzilla.gnome.org/show_bug.cgi?id=754411 |
| 47 |
|
| 48 |
&:hover { |
| 49 |
@include list-item-highlight(); |
| 50 |
} |
| 51 |
|
| 52 |
&:active { |
| 53 |
box-shadow: none; |
| 54 |
@include list-item-highlight(); |
| 55 |
} |
| 56 |
|
| 57 |
&:selected { |
| 58 |
&:active { |
| 59 |
box-shadow: none; |
| 60 |
@include list-item-highlight(); |
| 61 |
} |
| 62 |
|
| 63 |
&.has-open-popup, |
| 64 |
&:hover { |
| 65 |
@include list-item-highlight(); |
| 66 |
} |
| 67 |
|
| 68 |
&:backdrop { |
| 69 |
background-color: gtk( |
| 70 |
"@theme_unfocused_selected_bg_color_alt" |
| 71 |
); |
| 72 |
} |
| 73 |
} |
| 74 |
} |
| 75 |
|
| 76 |
&:selected { |
| 77 |
@extend %selected_items; |
| 78 |
} |
| 79 |
} |