Changeset View
Changeset View
Standalone View
Standalone View
src/gtk3/widgets/_tooltips.scss
1 | @charset "UTF-8"; | 1 | @charset "UTF-8"; | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | /************ | 3 | /************ | ||
4 | * Tooltips * | 4 | * Tooltips * | ||
5 | ************/ | 5 | ************/ | ||
6 | 6 | | |||
7 | tooltip { | 7 | tooltip { | ||
8 | &.background { | 8 | &.background { | ||
9 | // background-color needs to be set this way otherwise it gets drawn twice | 9 | // background-color needs to be set this way otherwise it gets drawn twice | ||
10 | // see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details. | 10 | // see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details. | ||
11 | background-color: tooltip(background); | 11 | background-color: gtk("@tooltip_background"); | ||
12 | background-clip: padding-box; | 12 | background-clip: padding-box; | ||
13 | } | 13 | } | ||
14 | 14 | | |||
15 | color: tooltip(text); | 15 | color: gtk("@tooltip_text"); | ||
16 | padding: 4px; /* not working */ | 16 | padding: 4px; /* not working */ | ||
17 | border-radius: $r; | 17 | border-radius: $r; | ||
18 | box-shadow: none; // otherwise it gets inherited by windowframe.csd | 18 | box-shadow: none; // otherwise it gets inherited by windowframe.csd | ||
19 | text-shadow: none; | 19 | text-shadow: none; | ||
20 | border: 1px solid tooltip(border); | 20 | border: 1px solid gtk("@tooltip_border"); | ||
21 | &.window-frame.csd { | 21 | &.window-frame.csd { | ||
22 | background-color: transparent; | 22 | background-color: transparent; | ||
23 | box-shadow: none; | 23 | box-shadow: none; | ||
24 | } | 24 | } | ||
25 | decoration { background-color: transparent; } | 25 | decoration { background-color: transparent; } | ||
26 | } | 26 | } | ||
27 | 27 | | |||
28 | tooltip * { //Yeah this is ugly | 28 | tooltip * { //Yeah this is ugly | ||
29 | padding: 0px; | 29 | padding: 0px; | ||
30 | background-color: transparent; | 30 | background-color: transparent; | ||
31 | color: tooltip(text); // just to be sure | 31 | color: gtk("@tooltip_text"); // just to be sure | ||
32 | } | 32 | } |