Debian Codegraph @

src/gtk4/widgets/_lists.scss

raw
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 &.activatable {
39 @if $new-highlight {
40 border: 1px solid transparent;
41 }
42
43 &.has-open-popup, // this is for indicathing which row generated a popover see https://bugzilla.gnome.org/show_bug.cgi?id=754411
44
45 &:hover {
46 @include list-item-highlight();
47 }
48
49 &:active {
50 box-shadow: none;
51 @include list-item-highlight();
52 }
53
54 &:selected {
55 &:active {
56 box-shadow: none;
57 @include list-item-highlight();
58 }
59
60 &.has-open-popup,
61 &:hover {
62 @include list-item-highlight();
63 }
64
65 &:backdrop {
66 background-color: gtk(
67 "@theme_unfocused_selected_bg_color_alt"
68 );
69 }
70 }
71 }
72
73 &:selected {
74 @extend %selected_items;
75 }
76 }