annotate gtk-3.0/_common.scss @ 95:f3009ca89a46

Fix exported colours and export dark ones
author IBBoard <dev@ibboard.co.uk>
date Mon, 14 Oct 2019 21:00:06 +0100
parents cb3e1a45b770
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 @function gtkalpha($c,$a) {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 @return unquote("alpha(#{$c},#{$a})");
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 $ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 * {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 padding: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 -GtkToolButton-icon-spacing: 4;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 -GtkTextView-error-underline-color: $error_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 -GtkCheckButton-indicator-size: 16;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 -GtkCheckMenuItem-indicator-size: 16;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 // The size for scrollbars. The slider is 2px smaller, but we keep it
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 // up so that the whole area is sensitive to button presses for the
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 // slider. The stepper button is larger in both directions, the slider
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 // only in the width
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 -GtkScrolledWindow-scrollbar-spacing: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 -GtkScrolledWindow-scrollbars-within-bevel: 1;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 -GtkToolItemGroup-expander-size: 11;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 -GtkExpander-expander-size: 16;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 -GtkTreeView-expander-size: 11;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 -GtkTreeView-horizontal-separator: 4;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 -GtkMenu-horizontal-padding: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 -GtkMenu-vertical-padding: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 -GtkWidget-link-color: $link_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 -GtkWidget-visited-link-color: $link_visited_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 -GtkWidget-focus-padding: 2; // FIXME: do we still need these?
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 -GtkWidget-focus-line-width: 1; //
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38 -GtkWidget-text-handle-width: 20;
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
39 -GtkWidget-text-handle-height: 20;
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 -GtkDialog-button-spacing: 4;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 -GtkDialog-action-area-border: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 -GtkStatusbar-shadow-type: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
46 // We use the outline properties to signal the focus properties
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 // to the adwaita engine: using real CSS properties is faster,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48 // and we don't use any outlines for now.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 outline-color: transparentize($fg_color, 0.7);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51 outline-style: dashed;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52 outline-offset: -3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53 outline-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 outline-radius: 2px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58 /***************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59 * Base States *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60 ***************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62 .background {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
63 color: $fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
64 background-color: if($variant == 'light', darken($bg_color, 1.5%), $bg_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
66 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 text-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 icon-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69 color: $backdrop_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
70 background-color: $backdrop_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
71 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
72 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
73
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
74 /*
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
75 These wildcard seems unavoidable, need to investigate.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
76 Wildcards are bad and troublesome, use them with care,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
77 or better, just don't.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
78 Everytime a wildcard is used a kitten dies, painfully.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
79 */
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
80
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
81 *:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
82 -gtk-image-effect: dim;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
83 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
84
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
85 .gtkstyle-fallback {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
86 background-color: $bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
87 color: $fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
88 &:prelight {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
89 background-color: lighten($bg_color, 10%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
90 color: $fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
91 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
92 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
93 background-color: darken($bg_color, 10%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
94 color: $fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
95 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
96 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
97 background-color: $insensitive_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
98 color: $insensitive_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
99 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
100 &:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
101 background-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
102 color: $selected_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
103 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
104 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
105
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
106 .view {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
107 color: $text_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
108 background-color: $base_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
109
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
110 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
111 color: $backdrop_text_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
112 background-color: $backdrop_base_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
113 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
114
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
115 &:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
116 border-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
117 @extend %selected_items;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
118 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
119 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
120
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
121 .rubberband {
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
122 border: 1px solid $selected_bg_color;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
123 background-color: transparentize($selected_bg_color,0.8);
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
124 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
125
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
126 .label {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
127 &.separator {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
128 color: $fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
129 @extend .dim-label;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
130 &:backdrop { color: $backdrop_fg_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
131 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
132 &:selected,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
133 &:selected:focus,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
134 &:selected:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
135 @extend %selected_items;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
136 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
137 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
138 color: $insensitive_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
139 &:backdrop { color: $backdrop_insensitive_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
140 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
141 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
142
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
143 .dim-label {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
144 opacity: 0.55;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
145 text-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
146 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
147
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
148 GtkAssistant {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
149 .sidebar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
150 background-color: $base_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
151 border-top: 1px solid $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
152 &:dir(ltr) { border-right: 1px solid $borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
153 &:dir(rtl) { border-left: 1px solid $borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
154 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
155 background-color: $backdrop_base_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
156 border-color: $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
157 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
158 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
159 &.csd .sidebar { border-top-style: none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
160 .sidebar .label {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
161 padding: 6px 12px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
162 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
163 .sidebar .label.highlight {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
164 background-color: mix($bg_color, $fg_color, 80%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
165 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
166 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
167
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
168 GtkTextView { // This will get overridden by .view, needed by gedit line numbers
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
169 background-color: mix($bg_color, $base_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
170 &:backdrop { background-color: mix($backdrop_bg_color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
171 $backdrop_base_color, 50%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
172 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
173
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
174 .grid-child {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
175 padding: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
176 border-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
177 &:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
178 @extend %selected_items;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
179 outline-offset: -2px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
180 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
181 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
182
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
183 %osd, .osd {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
184 color: $osd_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
185 border: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
186 background-color: $osd_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
187 background-clip: padding-box;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
188 outline-color: transparentize($osd_fg_color, 0.7);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
189 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
190 text-shadow: 0 1px black;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
191 icon-shadow: 0 1px black;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
192 &:backdrop { text-shadow: none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
193 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
194
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
195 /*********************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
196 * Spinner Animation *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
197 *********************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
198
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
199 @keyframes spin {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
200 to { -gtk-icon-transform: rotate(1turn); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
201 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
202
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
203 .spinner {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
204 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
205 background-color: blue;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
206 opacity: 0; // non spinning spinner makes no sense
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
207 -gtk-icon-source: -gtk-icontheme('process-working-symbolic');
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
208 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
209 opacity: 1;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
210 animation: spin 1s linear infinite;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
211 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
212 opacity: 0.5;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
213 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
214 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
215 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
216
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
217 /****************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
218 * Text Entries *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
219 ****************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
220
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
221 .entry {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
222 border: 1px solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
223 padding: 5px 8px 6px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
224
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
225 &.image { // icons inside the entry
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
226 &.left { padding-left: 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
227 &.right { padding-right: 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
228 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
229
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
230 border-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
231 transition: all 200ms $ease-out-quad;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
232 @include entry(normal);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
233
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
234 &.flat, &.flat:focus {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
235 padding: 2px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
236 @include entry(normal, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
237 border: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
238 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
239 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
240
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
241 &:focus { @include entry(focus); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
242 &:insensitive { @include entry(insensitive); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
243 &:backdrop { @include entry(backdrop); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
244 &:backdrop:insensitive { @include entry(backdrop-insensitive); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
245
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
246 &:selected,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
247 &:selected:focus {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
248 @extend %selected_items;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
249 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
250
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
251 &.progressbar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
252 margin: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
253 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
254 border-width: 0 0 2px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
255 border-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
256 border-style: solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
257 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
258 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
259 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
260 &:backdrop { background-color: transparent; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
261 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
262
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
263 .linked > & { //FIXME: use same buttons linking logic and template
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
264 border-radius: 0;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
265 &:first-child {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
266 border-top-left-radius: 3px;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
267 border-bottom-left-radius: 3px;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
268 &:dir(rtl) { border-right-style: none;}
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
269 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
270 &:last-child {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
271 border-top-right-radius: 3px;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
272 border-bottom-right-radius: 3px;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
273 border-left-style: none;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
274 &:dir(rtl) { border-left-style: solid; }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
275 }
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
276 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
277
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
278 &.error { // FIXME: dark variant love needed
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
279 color: $error_color;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
280 border-color: $error_color;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
281 &:focus { @include entry(focus, $error_color); }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
282 &:selected, &:selected:focus {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
283 background-color: $error_color;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
284 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
285 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
286
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
287 &.warning { // FIXME: dark variant love needed
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
288 color: $warning_color;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
289 border-color: $warning_color;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
290 &:focus { @include entry(focus, $warning_color); }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
291 &:selected, &:selected:focus {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
292 background-color: $warning_color;
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
293 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
294 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
295
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
296 &.image { // entry icons colors
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
297 color: mix($fg_color, $base_color, 80%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
298 &:hover { color: $fg_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
299 &:active { color: $selected_bg_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
300 &:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 80%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
301 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
302
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
303 .linked.vertical > & { //FIXME comment stuff and make the whole thing smarter.
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
304 @include entry(normal, $edge: none);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
305 background-image: linear-gradient(to bottom, $base_color);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
306 border-bottom-color: mix($borders_color, $base_color, 30%);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
307 box-shadow: none;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
308 @extend %linked_vertical;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
309 &:focus {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
310 border-color: entry_focus_border($selected_bg_color);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
311 box-shadow: entry_focus_glow($selected_bg_color),
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
312 0 -1px 0 0 entry_focus_border($selected_bg_color);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
313 @extend %linked_vertical;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
314 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
315 &:insensitive {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
316 @include entry(insensitive, $edge: none);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
317 border-bottom-color: mix($borders_color, $base_color, 30%);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
318 @extend %linked_vertical;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
319 &:backdrop {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
320 @include entry(backdrop-insensitive, $edge: none);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
321 border-bottom-color: mix($backdrop_borders_color, $backdrop_base_color, 30%);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
322 @extend %linked_vertical;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
323 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
324 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
325 &:backdrop {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
326 @include entry(backdrop, $edge: none);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
327 border-bottom-color: mix($backdrop_borders_color, $backdrop_base_color, 30%);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
328 @extend %linked_vertical;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
329 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
330 &:first-child {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
331 @include entry(normal, $edge: none);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
332 border-bottom-color: mix($borders_color, $base_color, 30%);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
333 &:focus { @include entry(focus, $edge: none); }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
334 &:insensitive {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
335 @include entry(insensitive, $edge: none);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
336 border-bottom-color: mix($backdrop_borders_color, $backdrop_base_color, 30%);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
337 @extend %linked_vertical:first-child;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
338 &:backdrop {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
339 @include entry(backdrop-insensitive, $edge: none);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
340 border-bottom-color: mix($backdrop_borders_color, $backdrop_base_color, 30%);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
341 border-top-style: solid;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
342 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
343 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
344 &:backdrop {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
345 @include entry(backdrop, $edge: none);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
346 border-bottom-color: mix($backdrop_borders_color, $backdrop_base_color, 30%);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
347 @extend %linked_vertical:first-child;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
348 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
349 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
350 &:last-child {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
351 @include entry(normal);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
352 background-image: linear-gradient(to bottom, $base_color);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
353 box-shadow: _widget_edge();
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
354 &:focus {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
355 border-color: entry_focus_border($selected_bg_color);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
356 box-shadow: entry_focus_glow($selected_bg_color),
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
357 0 -1px 0 0 entry_focus_border($selected_bg_color),
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
358 _widget_edge();
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
359 @extend %linked_vertical:last-child;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
360 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
361 &:insensitive {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
362 @include entry(insensitive);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
363 @extend %linked_vertical:last-child;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
364 &:backdrop {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
365 @include entry(backdrop-insensitive);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
366 @extend %linked_vertical:last-child;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
367 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
368 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
369 &:backdrop {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
370 @include entry(backdrop);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
371 @extend %linked_vertical:last-child;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
372 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
373 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
374 }
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
375 .osd & {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
376 @include entry(osd);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
377 &:focus { @include entry(osd-focus); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
378 &:backdrop { @include entry(osd-backdrop); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
379 &:insensitive { @include entry(osd-insensitive); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
380 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
381 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
382
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
383 /***********
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
384 * Buttons *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
385 ***********/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
386
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
387 // stuff for .needs-attention
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
388 $_dot_color: if($variant=='light', $selected_bg_color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
389 lighten($selected_bg_color,15%));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
390 @keyframes needs_attention {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
391 from {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
392 background-image: -gtk-gradient(radial,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
393 center center, 0,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
394 center center, 0.01,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
395 to($_dot_color),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
396 to(transparent));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
397 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
398 to {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
399 background-image: -gtk-gradient(radial,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
400 center center, 0,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
401 center center, 0.5,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
402 to($selected_bg_color),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
403 to(transparent));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
404 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
405 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
406
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
407
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
408 .button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
409
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
410 $_button_transition: all 200ms $ease-out-quad;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
411
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
412 border: 1px solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
413 border-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
414 padding: 5px 8px 6px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
415 transition: $_button_transition;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
416 @include button(normal);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
417 &.flat {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
418 @include button(undecorated);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
419 // to avoid adiacent buttons borders clashing when transitioning, the transition on the normal state is set
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
420 // to none, while it's added back in the hover state, so the button decoration will fade in on hover, but
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
421 // it won't fade out when the pointer leave the button allocation area. To make the transition more evident
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
422 // in this case the duration is increased.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
423 transition: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
424 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
425 transition: $_button_transition;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
426 transition-duration: 500ms;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
427 &:active { transition: $_button_transition; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
428 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
429 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
430 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
431 @include button(hover);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
432 -gtk-image-effect: highlight;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
433 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
434 &:active, &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
435 @include button(active);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
436 transition-duration: 50ms;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
437 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
438 &:backdrop, &.flat:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
439 @include button(backdrop);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
440 -gtk-image-effect: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
441 &:active, &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
442 @include button(backdrop-active);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
443 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
444 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
445 @include button(backdrop-insensitive);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
446 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
447 &:insensitive:active, &:insensitive:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
448 @include button(backdrop-insensitive-active);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
449 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
450 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
451 &.flat:backdrop, &.flat:insensitive, &.flat:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
452 @include button(undecorated);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
453 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
454 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
455 @include button(insensitive);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
456 &:active, &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
457 @include button(insensitive-active);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
458 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
459 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
460 // big standalone buttons like in Documents pager
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
461 &.osd {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
462 &.image-button { padding: 13px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
463 color: $osd_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
464 border-radius: 5px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
465 outline-color: transparentize($osd_fg_color, 0.7); //FIXME: define a color var?
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
466 @include button(osd);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
467 border: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
468 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
469 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
470 @include button(osd-hover);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
471 border: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
472 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
473 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
474 &:active, &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
475 @include button(osd-active);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
476 border: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
477 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
478 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
479 &:insensitive, &:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
480 @include button(osd-insensitive);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
481 border: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
482 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
483 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
484 @include button(osd-backdrop);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
485 border: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
486 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
487 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
488 //overlay / OSD style
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
489 .osd & {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
490 @include button(osd);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
491 // there's a problem with sass which prevents it to extend the linked
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
492 // placeholder as expected, it should just be "@extend %linked;", the
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
493 // placeholder is basically replicated here
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
494 //
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
495 // Workaround START
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
496 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
497 border-left-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
498 &:dir(rtl) {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
499 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
500 border-right-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
501 border-left-style: solid
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
502 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
503 &:first-child {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
504 border-radius: 3px 0 0 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
505 border-left-style: solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
506 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
507 &:last-child {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
508 border-radius: 0 3px 3px 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
509 &:dir(rtl) { border-right-style: solid; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
510 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
511 &:only-child {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
512 border-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
513 border-style: solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
514 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
515 // Workaround END
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
516 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
517 @include button(osd-hover);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
518 @extend %linked;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
519 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
520 &:active, &:checked, &:backdrop:active, &:backdrop:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
521 @include button(osd-active);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
522 @extend %linked;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
523 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
524 &:insensitive, &:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
525 @include button(osd-insensitive);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
526 @extend %linked;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
527 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
528 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
529 @include button(osd-backdrop);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
530 @extend %linked;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
531 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
532 &.flat {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
533 @include button(undecorated);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
534 box-shadow: none; //FIXME respect no edge on the button mixin
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
535 text-shadow: 0 1px black;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
536 icon-shadow: 0 1px black;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
537 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
538 @include button(osd-hover);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
539 background-clip: padding-box;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
540 border-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
541 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
542 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
543 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
544 @include button(osd-insensitive);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
545 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
546 border-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
547 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
548 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
549 &:backdrop { @include button(undecorated); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
550 &:active, &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
551 @include button(osd-active);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
552 background-clip: padding-box;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
553 border-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
554 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
555 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
556 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
557 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
558
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
559 // Suggested and Destructive Action buttons
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
560 @each $b_type, $b_color in (suggested-action, $selected_bg_color),
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
561 (destructive-action, $destructive_color) {
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
562 &.#{$b_type} {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
563 @include button(normal, $b_color, white);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
564 &.flat {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
565 @include button(undecorated);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
566 color: $b_color; //FIXME: does it work on the dark variant?
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
567 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
568 &:hover { @include button(hover, $b_color, white); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
569 &:active, &:checked { @include button(active, $b_color, white); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
570 &:backdrop, &.flat:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
571 @include button(backdrop, $b_color, white);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
572 &:active, &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
573 @include button(backdrop-active, $b_color, white);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
574 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
575 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
576 @include button(backdrop-insensitive);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
577 &:active, &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
578 @include button(backdrop-insensitive-active, $b_color, white);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
579 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
580 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
581 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
582 &.flat:backdrop, &.flat:insensitive, &.flat:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
583 @include button(undecorated);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
584 color: transparentize($b_color, 0.2);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
585 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
586 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
587 @include button(insensitive);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
588 &:active, &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
589 @include button(insensitive-active, $b_color, white);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
590 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
591 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
592 .osd & {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
593 @include button(osd, $b_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
594 @extend %linked;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
595 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
596 @include button(osd-hover, $b_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
597 @extend %linked;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
598 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
599 &:active, &:checked, &:backdrop:active, &:backdrop:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
600 @include button(osd-active, $b_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
601 @extend %linked;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
602 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
603 &:insensitive, &:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
604 @include button(osd-insensitive, $b_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
605 @extend %linked;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
606 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
607 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
608 @include button(osd-backdrop, $b_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
609 @extend %linked;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
610 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
611 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
612 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
613 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
614
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
615 &.image-button { padding: 8px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
616
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
617 &.text-button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
618 padding-left: 16px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
619 padding-right: 16px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
620 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
621
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
622 &.text-button.image-button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
623 // those buttons needs uneven horizontal padding, we want the icon side
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
624 // to have the image-button padding, while the text side the text-button
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
625 // one, so we're adding the missing padding to the label depending on
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
626 // its position inside the button
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
627 padding: 5px 8px 6px; // same as .button
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
628 .label:first-child { padding-left: 8px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
629 .label:last-child { padding-right: 8px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
630 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
631
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
632 .stack-switcher > & {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
633 // to position the needs attention dot, padding is added to the button
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
634 // child, a label needs just lateral padding while an icon needs vertical
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
635 // padding added too.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
636
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
637 outline-offset: -3px; // needs to be set or it gets overriden by GtkRadioButton outline-offset
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
638
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
639 > .label {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
640 padding-left: 6px; // label padding
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
641 padding-right: 6px; //
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
642 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
643 > GtkImage {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
644 padding-left: 6px; // image padding
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
645 padding-right: 6px; //
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
646 padding-top: 3px; //
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
647 padding-bottom: 3px; //
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
648 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
649 &.text-button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
650 padding: 5px 10px 6px; // needed or it will get overridden
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
651 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
652 &.image-button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
653 // we want image buttons to have a 1:1 aspect ratio, so compensation
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
654 // of the padding added to the GtkImage is needed
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
655 padding: 5px 2px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
656 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
657 &.needs-attention > .label,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
658 &.needs-attention > GtkImage { @extend %needs_attention; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
659 &.needs-attention:active > .label,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
660 &.needs-attention:active > GtkImage,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
661 &.needs-attention:checked > .label,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
662 &.needs-attention:checked > GtkImage {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
663 animation: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
664 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
665 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
666 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
667
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
668 //inline-toolbar buttons
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
669 .inline-toolbar &, .inline-toolbar &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
670 border-radius: 2px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
671 border-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
672 @extend %linked;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
673 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
674
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
675 .primary-toolbar & { icon-shadow: none; } // tango icons don't need shadows
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
676
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
677 .linked > &,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
678 .linked > &:hover,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
679 .linked > &:active,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
680 .linked > &:checked,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
681 .linked > &:backdrop { @extend %linked; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
682
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
683 .linked.vertical > &,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
684 .linked.vertical > &:hover,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
685 .linked.vertical > &:active,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
686 .linked.vertical > &:checked,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
687 .linked.vertical > &:backdrop { @extend %linked_vertical; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
688 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
689
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
690 %needs_attention {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
691 animation: needs_attention 150ms ease-in;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
692 $_dot_shadow: _text_shadow_color();
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
693 $_dot_shadow_r: if($variant=='light',0.5,0.45);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
694 background-image: -gtk-gradient(radial,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
695 center center, 0,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
696 center center, 0.5,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
697 to($_dot_color),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
698 to(transparent)),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
699 -gtk-gradient(radial,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
700 center center, 0,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
701 center center, $_dot_shadow_r,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
702 to($_dot_shadow),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
703 to(transparent));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
704 background-size: 6px 6px, 6px 6px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
705 background-repeat: no-repeat;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
706 @if $variant == 'light' { background-position: right 3px, right 4px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
707 @else { background-position: right 3px, right 2px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
708 &:backdrop { background-size: 6px 6px, 0 0;}
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
709 &:dir(rtl) {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
710 @if $variant == 'light' { background-position: left 3px, left 4px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
711 @else { background-position: left 3px, left 2px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
712 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
713 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
714
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
715
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
716 // all the following is for the +|- buttons on inline toolbars, that way
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
717 // should really be deprecated...
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
718 .inline-toolbar GtkToolButton > .button { // redefining the button look is
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
719 // needed since those are flat...
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
720 @include button(normal);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
721 &:hover { @include button(hover); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
722 &:active,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
723 &:checked{ @include button(active); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
724 &:insensitive { @include button(insensitive); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
725 &:insensitive:active,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
726 &:insensitive:checked { @include button(insensitive-active); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
727 &:backdrop { @include button(backdrop); };
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
728 &:backdrop:active,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
729 &:backdrop:checked { @include button(backdrop-active); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
730 &:backdrop:insensitive { @include button(backdrop-insensitive); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
731 &:backdrop:insensitive:active,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
732 &:backdrop:insensitive:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
733 @include button(backdrop-insensitive-active); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
734 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
735
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
736 // More inline toolbar buttons
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
737 .inline-toolbar.toolbar GtkToolButton,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
738 .inline-toolbar.toolbar GtkToolButton:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
739 & > .button.flat { @extend %linked_middle; }
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
740 &:dir(rtl) > .button.flat { @extend %linked_middle:dir(rtl); }
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
741 &:first-child > .button.flat { @extend %linked:first-child; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
742 &:last-child > .button.flat { @extend %linked:last-child; }
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
743 &:last-child:dir(rtl) > .button.flat { @extend %linked:last-child:dir(rtl); }
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
744 &:only-child > .button.flat { @extend %linked:only-child; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
745 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
746
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
747 %linked_middle {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
748 border-radius: 0;
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
749 border-left-style: none;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
750 &:dir(rtl) {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
751 border-radius: 0; // needed when including %linked_middle:dir(rtl)
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
752 border-right-style: none;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
753 border-left-style: solid
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
754 }
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
755 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
756
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
757 %linked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
758 @extend %linked_middle;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
759 &:first-child {
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
760 border-radius: 3px 0 0 3px;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
761 border-left-style: solid;
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
762 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
763 &:last-child {
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
764 border-radius: 0 3px 3px 0;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
765 &:dir(rtl) { border-right-style: solid; }
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
766 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
767 &:only-child {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
768 border-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
769 border-style: solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
770 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
771 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
772
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
773 %linked_vertical_middle {
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
774 border-left-style: solid;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
775 border-top-style: none;
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
776 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
777 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
778
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
779 %linked_vertical{
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
780 @extend %linked_vertical_middle;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
781 &:first-child {
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
782 border-style: solid;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
783 border-radius: 3px 3px 0 0;
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
784 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
785 &:last-child {
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
786 border-radius: 0 0 3px 3px;
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
787 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
788 &:only-child {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
789 border-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
790 border-style: solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
791 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
792 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
793
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
794 %undecorated_button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
795 border-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
796 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
797 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
798 box-shadow: inset 0 1px transparentize(white,1),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
799 0 1px transparentize(white, 1);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
800 text-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
801 icon-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
802 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
803
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
804 /* menu buttons */
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
805 .menuitem.button.flat {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
806 @extend %undecorated_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
807 outline-offset: -1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
808 &:hover { background-color: mix($fg_color, $bg_color, 10%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
809 &:selected { @extend %selected_items; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
810 &:backdrop, &:backdrop:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
811 @extend %undecorated_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
812 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
813 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
814
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
815
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
816 GtkColorButton.button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
817 padding: 5px; // Uniform padding on the GtkColorButton
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
818
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
819 GtkColorSwatch:first-child:last-child { // :first-child:last-child for a specificity bump, it gets overridden by the
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
820 // colorpicker style, otherwise
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
821 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
822 box-shadow: inset 0 1px 1px transparentize(black, 0.9),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
823 _widget_edge();
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
824 &:insensitive,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
825 &:backdrop { box-shadow: none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
826 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
827 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
828
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
829 /*********
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
830 * Links *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
831 *********/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
832
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
833 *:link {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
834 color: $link_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
835 &:visited {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
836 color: $link_visited_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
837 *:selected & { color: mix($selected_fg_color, $selected_bg_color, 60%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
838 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
839 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
840 color: lighten($link_color,10%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
841 *:selected & { color: mix($selected_fg_color, $selected_bg_color, 90%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
842 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
843 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
844 color: $link_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
845 *:selected & { color: mix($selected_fg_color, $selected_bg_color, 80%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
846 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
847 &:backdrop, &:backdrop:hover, &:backdrop:hover:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
848 color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
849 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
850 &:selected, *:selected & {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
851 color: mix($selected_fg_color, $selected_bg_color, 80%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
852 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
853 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
854
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
855 .button:link, .button:visited {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
856 @extend %undecorated_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
857 @extend *:link;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
858 text-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
859 &:hover, &:active, &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
860 @extend %undecorated_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
861 text-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
862 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
863 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
864 @extend %undecorated_button; //This shouldn't be needed but avoids
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
865 //a weird transition which for some reason
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
866 //makes borders blink on hover
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
867 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
868 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
869
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
870 /*****************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
871 * GtkSpinButton *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
872 *****************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
873
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
874 .spinbutton {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
875 .button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
876 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
877 border-style: none none none solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
878 border-color: transparentize($borders_color, 0.7);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
879 color: mix($fg_color, $base_color, 90%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
880 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
881 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
882 // padding-left: 6px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
883 // padding-right: 6px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
884 &:dir(rtl) { border-style: none solid none none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
885 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
886 color: $fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
887 background-color: transparentize($fg_color, 0.95);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
888 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
889 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
890 color: transparentize($insensitive_fg_color, 0.7);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
891 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
892 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
893 box-shadow: inset 0 2px 3px -1px transparentize(black, 0.8);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
894 background-color: transparentize(black, 0.9);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
895 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
896 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
897 color: mix($backdrop_fg_color, $backdrop_base_color, 90%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
898 border-color: transparentize($backdrop_borders_color, 0.7);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
899 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
900 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
901 &:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
902 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
903 color: transparentize($backdrop_insensitive_color,0.7);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
904 border-style: none none none solid; // It is needed or it gets overridden
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
905 &:dir(rtl) { border-style: none solid none none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
906 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
907 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
908 .osd & {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
909 .button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
910 @include button(undecorated);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
911 color: $osd_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
912 border-style: none none none solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
913 border-color: transparentize($osd_borders_color, 0.3);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
914 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
915 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
916 icon-shadow: 0 1px black;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
917 &:dir(rtl) { border-style: none solid none none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
918 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
919 @include button(undecorated);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
920 color: $osd_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
921 border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
922 background-color: transparentize($osd_fg_color, 0.9);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
923 icon-shadow: 0 1px black;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
924 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
925 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
926 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
927 @include button(undecorated);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
928 color: $osd_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
929 border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
930 icon-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
931 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
932 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
933 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
934 @include button(undecorated);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
935 color: $osd_insensitive_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
936 border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
937 icon-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
938 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
939 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
940 &:last-child { border-radius: 0 3px 3px 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
941 &:dir(rtl):first-child { border-radius: 3px 0 0 3px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
942 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
943 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
944 &.vertical, &.vertical:dir(rtl) { //FIXME: try using linking templates for vertically linked stuff
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
945 .button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
946 padding-top: 8px; // Same vertical padding as image-buttons
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
947 padding-bottom: 8px; //
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
948 &:first-child {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
949 @extend %top_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
950 @include button(normal, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
951 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
952 @extend %top_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
953 @include button(active, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
954 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
955 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
956 @extend %top_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
957 @include button(hover, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
958 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
959 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
960 @extend %top_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
961 @include button(insensitive, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
962 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
963 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
964 @extend %top_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
965 @include button(backdrop, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
966 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
967 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
968 &:last-child {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
969 @extend %bottom_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
970 @include button(normal);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
971 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
972 @extend %bottom_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
973 @include button(active);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
974 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
975 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
976 @extend %bottom_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
977 @include button(hover);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
978 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
979 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
980 @extend %bottom_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
981 @include button(insensitive);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
982 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
983 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
984 @extend %bottom_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
985 @include button(backdrop);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
986 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
987 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
988 &:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
989 @include button(backdrop-insensitive);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
990 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
991 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
992 &.entry {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
993 // we should remove the bottom edge hilight here, but seems
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
994 // like buttons are on top of it so it doesn't show up
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
995 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
996 padding-left: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
997 padding-right: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
998 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
999 %top_button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1000 border-radius: 3px 3px 0 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1001 border-style: solid solid none solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1002 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1003 %bottom_button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1004 border-radius: 0 0 3px 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1005 border-style: none solid solid solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1006 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1007 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1008 GtkTreeView & {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1009 &.entry, &.entry:focus {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1010 padding: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1011 border-width: 1px 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1012 border-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1013 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1014 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1015 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1016 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1017 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1018
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1019 /**************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1020 * ComboBoxes *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1021 **************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1022 GtkComboBox {
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1023 > .button { padding-top: 3px; padding-bottom: 4px; } // Otherwise combos
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1024 // are bigger then
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1025 // buttons
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1026 -GtkComboBox-arrow-scaling: 0.5;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1027 -GtkComboBox-shadow-type: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1028
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1029 box-shadow: 0 1px $borders_edge;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1030
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1031 @include _button_text_shadow;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1032
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1033 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1034 color: $insensitive_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1035 text-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1036 icon-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1037 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1038 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1039 color: $backdrop_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1040 text-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1041 icon-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1042 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1043 &:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1044 color: $backdrop_insensitive_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1045 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1046 .menuitem { text-shadow: none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1047 .separator.vertical {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1048 // always disable separators
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1049 -GtkWidget-wide-separators: true;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1050 }
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1051 &.combobox-entry .entry { @extend %linked; }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1052 &.combobox-entry .button, &.combobox-entry .button:backdrop {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1053 // It is needed to specify the backdrop button or it gets overridden
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1054 @extend %linked;
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1055 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1056 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1057
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1058 .linked > GtkComboBox > .button {
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1059 // the combo is a composite widget so the way we do button linkind doesn't
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1060 // work, special case needed. See
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1061 // https://bugzilla.gnome.org/show_bug.cgi?id=733979
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1062 &:dir(ltr) { @extend %linked_middle; } // specificity bump
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1063 &:dir(rtl) { @extend %linked_middle:dir(rtl); }
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1064 }
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1065 .linked > GtkComboBox:first-child > .button {
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1066 @extend %linked:first-child;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1067 }
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1068 .linked > GtkComboBox:last-child > .button {
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1069 @extend %linked:last-child;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1070 }
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1071 .linked > GtkComboBox:only-child > .button {
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1072 @extend %linked:only-child;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1073 }
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1074 .linked.vertical > GtkComboBoxText > .button,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1075 .linked.vertical > GtkComboBox > .button { @extend %linked_vertical_middle; }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1076 .linked.vertical > GtkComboBoxText:first-child > .button,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1077 .linked.vertical > GtkComboBox:first-child > .button { @extend %linked_vertical:first-child; }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1078 .linked.vertical > GtkComboBoxText:last-child > .button,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1079 .linked.vertical > GtkComboBox:last-child > .button { @extend %linked_vertical:last-child; }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1080 .linked.vertical > GtkComboBoxText:only-child > .button,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1081 .linked.vertical > GtkComboBox:only-child > .button { @extend %linked_vertical:only-child; }
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1082
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1083 /************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1084 * Toolbars *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1085 ************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1086 .toolbar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1087 -GtkWidget-window-dragging: true;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1088 padding: 4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1089 background-color: $bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1090 .osd &, &.osd {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1091 padding: 13px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1092 border: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1093 border-radius: 5px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1094 background-color: $osd_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1095 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1096 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1097
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1098 //searchbar, location-bar & inline-toolbar
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1099 .inline-toolbar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1100 @extend .toolbar;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1101 @extend %inset-bar;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1102 border-width: 0 1px 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1103 padding: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1104 border-radius: 0 0 5px 5px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1105 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1106 .search-bar, .location-bar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1107 @extend .toolbar;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1108 @extend %inset-bar;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1109 border-width: 0 0 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1110 padding: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1111 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1112
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1113 %inset-bar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1114 border-style: solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1115 border-color: $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1116 $_bg: mix($bg_color, $borders_color, 70%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1117 background-color: $_bg;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1118 box-shadow: inset 0 2px 3px -1px mix($borders_color, $_bg, 60%),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1119 _widget_edge();
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1120 //FIXME edge would be nice, but doesn't work
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1121 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1122 border-color: $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1123 background-color: $backdrop_dark_fill;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1124 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1125 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1126 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1127
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1128 /***************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1129 * Header bars *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1130 ***************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1131
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1132 .titlebar,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1133 .header-bar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1134 padding: 6px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1135 border-width: 0 0 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1136 border-style: solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1137 border-color: $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1138 border-radius: 7px 7px 0 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1139 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1140
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1141 @include headerbar_fill;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1142
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1143 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1144 border-color: $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1145 background-color: $bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1146 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1147 box-shadow: inset 0 1px $top_hilight;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1148 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1149
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1150 .title {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1151 font-weight: bold;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1152 padding-left: 12px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1153 padding-right: 12px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1154 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1155
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1156 .subtitle {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1157 font-size: smaller;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1158 padding-left: 12px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1159 padding-right: 12px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1160 @extend .dim-label;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1161 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1162
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1163 .header-bar-separator,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1164 & > GtkBox > .separator.vertical {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1165 -GtkWidget-wide-separators: true;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1166 -GtkWidget-separator-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1167 border-width: 0 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1168 border-image: linear-gradient(to bottom,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1169 transparentize($borders_color,1),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1170 $borders_color 30%,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1171 $borders_color 70%,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1172 transparentize($borders_color,1) 100%)
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1173 0 1 / 0 1px stretch; //FIXME use a proper color
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1174
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1175 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1176 border-image: linear-gradient(to bottom, transparentize($backdrop_borders_color, 0.5))
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1177 0 1 / 1px 1px; //FIXME use a proper color
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1178 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1179 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1180
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1181 &.selection-mode {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1182 $_hc: mix($top_hilight,$selected_bg_color, 50%); // hilight color
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1183
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1184 color: $selected_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1185 text-shadow: 0 -1px transparentize(black, 0.5);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1186 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1187 background-image: linear-gradient(to bottom,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1188 lighten($selected_bg_color,5%),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1189 $selected_bg_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1190 box-shadow: inset 0 -1px mix($selected_borders_color, $selected_bg_color, 35%), //bottom shade
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1191 inset 0 1px $_hc;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1192
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1193 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1194 background-image: linear-gradient(to bottom, $selected_bg_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1195 box-shadow: inset 0 1px mix($top_hilight, $selected_bg_color, 60%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1196 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1197
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1198 .subtitle:link { @extend *:link:selected; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1199
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1200 .button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1201 @include button(normal, $selected_bg_color, $selected_fg_color, $_hc);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1202
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1203 &.flat { @include button(undecorated); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1204
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1205 &:hover { @include button(hover, $selected_bg_color, $selected_fg_color, $_hc); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1206
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1207 &:active, &:checked { @include button(active, $selected_bg_color, $selected_fg_color, $_hc); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1208
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1209 &:backdrop,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1210 &.flat:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1211 @include button(backdrop, $selected_bg_color, $selected_fg_color, $_hc);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1212 -gtk-image-effect: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1213 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1214
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1215 &:active,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1216 &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1217 @include button(backdrop-active, $selected_bg_color, $selected_fg_color, $_hc);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1218 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1219 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1220
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1221 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1222 @include button(backdrop-insensitive, $selected_bg_color, $selected_fg_color, $_hc);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1223 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1224 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1225
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1226 &:insensitive:active,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1227 &:insensitive:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1228 @include button(backdrop-insensitive-active, $selected_bg_color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1229 $selected_fg_color, $_hc);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1230 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1231 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1232 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1233
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1234 &.flat:backdrop,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1235 &.flat:insensitive,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1236 &.flat:insensitive:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1237 @include button(undecorated);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1238 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1239
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1240 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1241 @include button(insensitive, $selected_bg_color, $selected_fg_color, $_hc);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1242
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1243 &:active, &:checked { @include button(insensitive-active, $selected_bg_color, $selected_fg_color, $_hc); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1244 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1245
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1246 &.suggested-action {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1247 @include button(normal, $edge:$_hc);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1248 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1249
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1250 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1251 @include button(hover, $edge:$_hc);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1252 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1253 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1254
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1255 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1256 @include button(active, $edge:$_hc);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1257 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1258 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1259
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1260 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1261 @include button(insensitive, $edge:$_hc);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1262 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1263 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1264
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1265 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1266 @include button(backdrop, $edge:$_hc);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1267 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1268 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1269
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1270 &:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1271 @include button(backdrop-insensitive, $edge:$_hc);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1272 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1273 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1274 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1275 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1276
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1277 .selection-menu {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1278 border-color: transparentize($selected_bg_color, 1);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1279 background-image: linear-gradient(to bottom, transparentize($selected_bg_color, 1));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1280 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1281 padding-left: 10px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1282 padding-right: 10px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1283
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1284 GtkArrow { -GtkArrow-arrow-scaling: 1; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1285
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1286 .arrow {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1287 -gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1288 color: transparentize($selected_fg_color,0.5);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1289 icon-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1290 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1291
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1292 &:backdrop { @extend .selection-menu };
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1293 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1294 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1295
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1296 .tiled &, .maximized & {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1297 border-radius: 0; // squared corners when the window is max'd or tiled
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1298 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1299
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1300 &.default-decoration {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1301 padding: 4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1302 .button { padding: 5px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1303 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1304 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1305
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1306 /************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1307 * Pathbars *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1308 ************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1309
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1310 .path-bar .button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1311 padding: 5px 6px 6px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1312 &:first-child { padding-left: 8px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1313 &:last-child { padding-right: 8px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1314 &:only-child {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1315 padding-left: 12px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1316 padding-right: 12px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1317 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1318
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1319 // the following is for spacing the icon and the label inside the home button
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1320 .label:last-child { padding-left: 2px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1321 .label:first-child { padding-right: 2px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1322 .label:only-child { padding-right: 0; padding-left: 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1323 GtkImage { padding-top: 1px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1324 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1325
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1326 /**************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1327 * Tree Views *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1328 **************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1329 GtkTreeView.view {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1330 -GtkTreeView-grid-line-width: 1;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1331 -GtkTreeView-grid-line-pattern: '';
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1332 -GtkTreeView-tree-line-width: 1;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1333 -GtkTreeView-tree-line-pattern: '';
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1334 -GtkTreeView-expander-size: 16;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1335
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1336 border-left-color: mix($fg_color, $base_color, 50%); // this is actually the tree lines color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1337 border-top-color: $bg_color; // while this is the grid lines color, better then nothing
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1338
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1339 &:selected { border-radius: 0; } // rest border radius in lists
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1340
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1341 &:selected, &:backdrop:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1342 border-left-color: mix($selected_fg_color, $selected_bg_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1343 border-top-color: transparentize($fg_color, 0.9); // doesn't work unfortunatelly
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1344 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1345
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1346 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1347 color: $insensitive_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1348 &:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1349 color: mix($selected_fg_color, $selected_bg_color, 40%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1350 &:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1351 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1352 &:backdrop { color: $backdrop_insensitive_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1353 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1354
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1355 &.separator:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1356 color: transparentize(black, 0.9);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1357 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1358
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1359 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1360 border-left-color: mix($backdrop_fg_color, $backdrop_bg_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1361 border-top: $backdrop_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1362 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1363
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1364 &.dnd {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1365 border-style: solid none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1366 border-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1367 border-color: mix($fg_color, $selected_bg_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1368 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1369
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1370 &.expander {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1371 -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1372 &:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1373 color: mix($fg_color, $base_color, 70%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1374 &:hover { color: $fg_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1375 &:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1376 color: mix($selected_fg_color, $selected_bg_color, 70%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1377 &:hover { color: $selected_fg_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1378 &:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 70%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1379 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1380
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1381 &:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1382
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1383 &:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 70%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1384 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1385
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1386 &.progressbar { // progress bar in treeviews
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1387 @if $variant == light { color: $base_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1388
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1389 border: 1px solid $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1390 border-radius: 4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1391 background-image: linear-gradient(to bottom,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1392 $selected_bg_color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1393 darken($selected_bg_color,10%));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1394 box-shadow: inset 0 1px if($variant=='light', transparentize(white,0.7),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1395 transparentize(white,0.85)),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1396 0 1px if($variant=='light', transparentize(black, 0.8),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1397 transparentize(black,0.9));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1398
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1399 &:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1400 @if $variant == 'light' {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1401 color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1402 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1403 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1404
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1405 @else { box-shadow: inset 0 1px transparentize(white, 0.95); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1406
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1407 background-image: linear-gradient(to bottom,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1408 $base_color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1409 darken($base_color,10%));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1410
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1411 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1412 @if $variant == 'light' {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1413 color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1414 border-color: $selected_borders_color; // otherwise it gets inherited by .view(?!?)
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1415 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1416 @else { border-color: $backdrop_base_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1417 background-color: $backdrop_base_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1418 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1419 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1420
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1421 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1422 @if $variant == 'light' { color: $backdrop_base_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1423 @else { border-color: $backdrop_base_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1424 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1425 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1426 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1427 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1428
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1429 &.trough { // progress bar trough in treeviews
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1430 background-color: transparentize($fg_color,0.9);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1431 border-radius: 4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1432
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1433 &:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1434 background-color: if($variant == 'light',
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1435 transparentize($selected_fg_color, 0.7),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1436 darken($selected_bg_color, 10%));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1437 @if $variant == 'light' {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1438 border-width: 1px 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1439 border-style: solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1440 border-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1441 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1442 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1443 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1444 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1445
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1446 column-header {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1447 .button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1448 @extend %column_header_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1449 $_column_header_color: mix($fg_color, $base_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1450 color: $_column_header_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1451 background-color: $base_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1452 font-weight: bold;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1453 text-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1454 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1455 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1456 @extend %column_header_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1457 color: mix($_column_header_color, $fg_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1458 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1459 transition: none; //I shouldn't need this
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1460 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1461 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1462 @extend %column_header_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1463 color: $fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1464 transition: none; //I shouldn't need this
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1465 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1466 &.dnd {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1467 @extend column-header.button.dnd;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1468 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1469 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1470 &:last-child .button,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1471 &:last-child .button:backdrop, // set :backdrop too or the border will be visibile there
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1472 &:last-child.button,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1473 &:last-child.button:backdrop { //treeview-like derived widgets in Banshee and Evolution
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1474 border-right-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1475 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1476 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1477
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1478 column-header.button.dnd { // for treeview-like derive widgets
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1479 transition: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1480 color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1481 box-shadow: inset 1px 1px 0 1px $selected_bg_color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1482 inset -1px 0 0 1px $selected_bg_color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1483 inset 1px 1px $base_color, inset -1px 0 $base_color;;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1484 &:active { @extend column-header.button.dnd; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1485 &:selected { @extend column-header.button.dnd; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1486 &:hover { @extend column-header.button.dnd; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1487 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1488
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1489 %column_header_button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1490 padding: 3px 6px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1491 border-style: none solid solid none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1492 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1493 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1494 border-color: $bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1495 text-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1496 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1497 border-color: $bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1498 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1499 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1500 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1501 border-color: $backdrop_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1502 border-style: none solid solid none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1503 color: mix($backdrop_fg_color, $backdrop_bg_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1504 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1505 background-color: $backdrop_base_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1506 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1507 border-color: $backdrop_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1508 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1509 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1510 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1511 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1512
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1513
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1514 /*********
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1515 * Menus *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1516 *********/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1517 .menubar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1518 -GtkWidget-window-dragging: true;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1519 padding: 0px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1520 box-shadow: inset 0 -1px transparentize(black, 0.9);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1521 &:backdrop { background-color: $backdrop_bg_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1522 & > .menuitem {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1523 padding: 4px 8px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1524 &:hover { //Seems like it :hover even with keyboard focus
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1525 box-shadow: inset 0 -3px $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1526 color: $link_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1527 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1528 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1529 color: $insensitive_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1530 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1531 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1532 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1533 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1534
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1535 .menu {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1536 margin: 4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1537 padding: 0px;
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1538 background-color: $base_color;
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1539 border: 1px solid $borders_color; // adds borders in a non composited env
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1540 .csd & { border: none; } // axes borders in a composited env
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1541 .menuitem {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1542 text-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1543 padding: 4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1544 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1545 color: $selected_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1546 background-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1547 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1548 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1549 color: $insensitive_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1550 &:backdrop { color: $backdrop_insensitive_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1551 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1552 &:backdrop, &:backdrop:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1553 color: $backdrop_fg_color;
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1554 background-color: $backdrop_base_color;
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1555 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1556 //submenu indicators
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1557 &.arrow { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1558 &.arrow:dir(rtl) {-gtk-icon-source:-gtk-icontheme('pan-end-symbolic-rtl'); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1559 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1560 &.button { // overlow buttons
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1561 @extend %undecorated_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1562 border-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1563 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1564 &.top { border-bottom: 1px solid mix($fg_color, $base_color, 10%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1565 &.bottom { border-top: 1px solid mix($fg_color, $base_color, 10%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1566 &:hover { background-color: mix($fg_color, $base_color, 10%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1567 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1568 color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1569 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1570 border-color: transparent ;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1571 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1572 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1573 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1574
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1575 .menuitem .accelerator { color: gtkalpha(currentColor,0.55); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1576
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1577
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1578 /***************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1579 * Popovers *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1580 ***************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1581
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1582 .popover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1583 padding: 2px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1584 border: 1px solid $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1585 border-radius: 5px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1586 background-color: mix($bg_color, $base_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1587
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1588 box-shadow: 0 1px 2px transparentize(black, 0.7);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1589
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1590 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1591 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1592 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1593
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1594 > .list,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1595 > .view,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1596 > .toolbar,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1597 &.osd > .toolbar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1598 border-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1599 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1600 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1601
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1602 .button.flat,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1603 .button.flat:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1604 text-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1605 transition: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1606 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1607
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1608 &.osd { @extend %osd; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1609 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1610
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1611 //touch selection handlebars for the Popover.osd above
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1612 .entry.cursor-handle,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1613 .cursor-handle {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1614 background-color: transparent;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1615 background-image: none;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1616 box-shadow: none;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1617 border-style: none;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1618 &.top { -gtk-icon-source: -gtk-icontheme('selection-start-symbolic'); }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1619 &.bottom { -gtk-icon-source: -gtk-icontheme('selection-end-symbolic'); }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1620 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
1621
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1622 /*****************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1623 * Notebooks and *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1624 * Tabs *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1625 *****************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1626
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1627 .notebook {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1628 // Through me you go to the grief wracked city;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1629 // Through me you go to everlasting pain;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1630 // Through me you go a pass among lost souls.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1631 // ...
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1632 // Abandon all hope — Ye Who Enter Here
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1633 padding: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1634 background-color: $base_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1635 -GtkNotebook-initial-gap: 10;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1636 -GtkNotebook-arrow-spacing: 5;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1637 -GtkNotebook-tab-curvature: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1638 -GtkNotebook-tab-overlap: -8;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1639 -GtkNotebook-has-tab-gap: false;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1640 -GtkWidget-focus-padding: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1641 -GtkWidget-focus-line-width: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1642 transition: all 200ms $ease-out-quad;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1643 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1644 background-color: $backdrop_base_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1645 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1646 &.frame {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1647 border: 1px solid $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1648 // FIXME doesn't work
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1649 &.top { border-top-width: 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1650 &.bottom { border-bottom-width: 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1651 &.right { border-right-width: 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1652 &.left { border-left-width: 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1653 &:backdrop { border-color: $backdrop_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1654 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1655 &.header {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1656 // FIXME: double borders in some case, can't fix it w/o a class tho
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1657 // FIXME: doesn't work on dark var
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1658 background-color: mix($bg_color, $borders_color, 70%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1659
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1660 // this is the shading of the header behind the tabs
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1661 &.frame {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1662 border: 1px solid $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1663 &.top { border-bottom-width: 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1664 &.bottom { border-top-width: 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1665 &.right { border-left-width: 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1666 &.left { border-right-width: 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1667 &:backdrop { border-color: $backdrop_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1668 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1669
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1670 $_header_shade: inset 0 2px 3px -1px transparentize(black, 0.85);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1671 &.top {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1672 box-shadow: $_header_shade,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1673 inset 0 -1px $borders_color; // border
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1674 &:backdrop { box-shadow: inset 0 -1px $backdrop_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1675 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1676 &.bottom {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1677 box-shadow: $_header_shade,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1678 inset 0 1px $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1679 &:backdrop { box-shadow: inset 0 1px $backdrop_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1680 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1681 &.right {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1682 box-shadow: $_header_shade,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1683 inset 1px 0 $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1684 &:backdrop { box-shadow: inset 1px 0 $backdrop_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1685 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1686 &.left {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1687 box-shadow: $_header_shade,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1688 inset -1px 0 $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1689 &:backdrop { box-shadow: inset -1px 0 $backdrop_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1690 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1691 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1692 // same color as backdrop pushed button
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1693 background-color: $backdrop_dark_fill;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1694 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1695 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1696 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1697 tab {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1698 border-width: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1699 border-style: solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1700 border-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1701 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1702
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1703 outline-offset: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1704
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1705 $tab_indicator_size: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1706 //vertical tab sizing
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1707 $vt_vpadding: 8px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1708 $vt_hpadding: 20px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1709 // horizontal tab sizing
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1710 $ht_vpadding: 5px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1711 $ht_hpadding: 20px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1712
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1713 //FIXME: we get double border in some cases, not considering the broken
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1714 //notebook content frame...
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1715 &.top, &.bottom { padding: $vt_vpadding $vt_hpadding; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1716 &.left, &.right { padding: $ht_vpadding $ht_hpadding; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1717
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1718
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1719 /* works for testnotebookdnd, but there's a superfluous border
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1720 in gedit or web, commented out for now, needs gtk fixes
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1721 &.reorderable-page {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1722 &.top {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1723 padding-top: ($vt_vpadding - 1px);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1724 border-top-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1725 border-left-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1726 border-right-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1727 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1728 &.bottom {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1729 padding-bottom: ($vt_vpadding - 1px);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1730 border-bottom-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1731 border-left-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1732 border-right-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1733 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1734 &.left {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1735 padding-left: ($ht_hpadding - 1px);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1736 border-left-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1737 border-top-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1738 border-bottom-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1739 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1740 &.right {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1741 padding-right: ($ht_hpadding - 1px);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1742 border-right-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1743 border-top-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1744 border-bottom-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1745 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1746 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1747 */
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1748 &.reorderable-page {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1749 &.top, &.bottom {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1750 padding-left: 12px; // for a nicer close button
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1751 padding-right: 12px; // placement
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1752 border-left-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1753 border-right-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1754 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1755 &.left, &.right {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1756 border-bottom-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1757 border-top-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1758 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1759 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1760 &.top {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1761 //padding-bottom: ($vt_vpadding -$tab_indicator_size);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1762 border-bottom-width: $tab_indicator_size;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1763 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1764 &.bottom {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1765 //padding-top: ($vt_vpadding -$tab_indicator_size);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1766 border-top-width: $tab_indicator_size;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1767 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1768 &.left {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1769 //padding-right: ($ht_hpadding -$tab_indicator_size);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1770 border-right-width: $tab_indicator_size;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1771 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1772 &.right {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1773 //padding-left: ($ht_hpadding -$tab_indicator_size);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1774 border-left-width: $tab_indicator_size;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1775 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1776
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1777 //here's the interesting stuff
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1778 &:hover, &.prelight-page {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1779 border-color: $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1780 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1781 &:active, &.active-page, &:backdrop:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1782 border-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1783 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1784 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1785 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1786 border-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1787 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1788 @each $_tab, $_border in (top, bottom),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1789 (bottom, top),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1790 (left, right),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1791 (right, left) {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1792 &.reorderable-page.#{$_tab} {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1793 border-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1794 &:hover, &.prelight-page {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1795 border-color: transparentize($borders_color,0.7);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1796 border-#{$_border}-color: $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1797 background-color: transparentize($bg_color,0.8);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1798 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1799 &:active, &.active-page {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1800 background-color: transparentize($bg_color,0.5);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1801 border-color: transparentize($borders_color,0.5);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1802 border-#{$_border}-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1803 &:hover { background-color: transparentize($bg_color,0.3); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1804 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1805 border-color: $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1806 background-color: $backdrop_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1807 border-#{$_border}-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1808 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1809 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1810 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1811 border-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1812 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1813 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1814 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1815 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1816 .label { //tab text
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1817 padding: 0 2px; // needed for a nicer focus ring
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1818 font-weight: bold;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1819 color: $insensitive_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1820 &:backdrop, &.prelight-page:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1821 color: mix($backdrop_fg_color, $backdrop_insensitive_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1822 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1823 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1824 .prelight-page .label, .label.prelight-page {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1825 // prelight tab text
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1826 color: mix($fg_color, $insensitive_fg_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1827 &:backdrop { // FIXME, it's the same as .label:backdrop up here
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1828 color: mix($backdrop_fg_color, $backdrop_insensitive_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1829 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1830 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1831 .active-page .label, .label.active-page {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1832 // active tab text
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1833 color: $fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1834 &:backdrop { color: $backdrop_fg_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1835 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1836 .button { //tab close button
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1837 padding: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1838 border: 1px solid transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1839 @extend %undecorated_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1840 icon-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1841 transition: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1842 color: transparentize($fg_color,0.7);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1843 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1844 color: $fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1845 @include button(hover, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1846 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1847 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1848 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1849 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1850 @include button(active, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1851 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1852 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1853 color: transparentize($backdrop_fg_color,0.7);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1854 border-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1855 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1856 & > GtkImage { // this is a hack which makes tabs grow
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1857 padding: 2px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1858 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1859 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1860 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1861 &.arrow {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1862 color: $insensitive_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1863 &:hover { color: mix($fg_color, $insensitive_fg_color, 50%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1864 &:active { color: $fg_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1865 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1866 color: transparentize($insensitive_fg_color,0.7);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1867 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1868 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1869 color: transparentize($backdrop_fg_color,0.6);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1870 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1871 color: $backdrop_insensitive_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1872 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1873 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1874 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1875 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1876
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1877 /**************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1878 * Scrollbars *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1879 **************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1880
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1881 .scrollbar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1882 -GtkRange-slider-width: 13;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1883 -GtkRange-trough-border: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1884 -GtkScrollbar-has-backward-stepper: false;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1885 -GtkScrollbar-has-forward-stepper: false;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1886 -GtkScrollbar-min-slider-length: 42; // minimum size for the slider.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1887 // sadly can't be in '.slider'
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1888 // where it belongs
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1889 -GtkRange-stepper-spacing: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1890 -GtkRange-trough-under-steppers: 1;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1891
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1892 $_slider_margin: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1893 $_slider_fine_tune_margin: 4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1894
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1895 .button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1896 border: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1897 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1898
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1899 &.overlay-indicator {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1900 &:not(.dragging):not(.hovering) { // Overlay scrolling indicator
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1901 opacity: 0.4;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1902
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1903 -GtkRange-slider-width: 5px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1904
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1905 .slider {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1906 margin: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1907 background-color: $fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1908 border: 1px solid if($variant==light, white, black);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1909 background-clip: padding-box;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1910 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1911
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1912 .trough {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1913 border-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1914 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1915 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1916
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1917 // w/o the following margin tweaks the slider shrinks when hovering/dragging
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1918 &.vertical .slider {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1919 margin-top: $_slider_margin - 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1920 margin-bottom: $_slider_margin - 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1921 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1922
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1923 &.horizontal .slider {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1924 margin-left: $_slider_margin - 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1925 margin-right: $_slider_margin - 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1926 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1927
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1928 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1929
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1930 &.dragging,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1931 &.hovering { opacity: 0.7; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1932 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1933
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1934 // trough coloring
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1935 .trough {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1936 background-color: $scrollbar_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1937 border: 1px none $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1938
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1939 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1940 background-color: $backdrop_scrollbar_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1941 border-color: $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1942 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1943 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1944
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1945 // slider coloring
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1946 .slider {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1947 background-color: mix($fg_color, $bg_color, 60%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1948
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1949 &:hover { background-color: mix($fg_color, $bg_color, 80%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1950
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1951 &:prelight:active { background-color: if($variant=='light', darken($selected_bg_color, 10%), lighten($selected_bg_color, 10%));}
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1952
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1953 &:backdrop { background-color: mix($backdrop_fg_color, $backdrop_bg_color, 40%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1954
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1955 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1956 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1957 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1958 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1959
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1960
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1961 // sizing
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1962 .slider {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1963 border-radius: 100px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1964 margin: $_slider_margin;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1965 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1966
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1967 &.fine-tune .slider { margin: $_slider_fine_tune_margin; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1968
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1969 &.vertical {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1970
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1971 .slider {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1972 margin-left: 1px + $_slider_margin;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1973
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1974 &:dir(rtl) {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1975 margin-left: $_slider_margin;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1976 margin-right: 1px + $_slider_margin;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1977 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1978 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1979
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1980 &.fine-tune .slider {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1981 margin-left: 1px + $_slider_fine_tune_margin;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1982
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1983 &:dir(rtl) {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1984 margin-left: $_slider_fine_tune_margin;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1985 margin-right: 1px + $_slider_fine_tune_margin;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1986 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1987 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1988
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1989 .trough {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1990 border-left-style: solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1991
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1992 &:dir(rtl) {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1993 border-left-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1994 border-right-style: solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1995 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1996 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1997 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1998
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1999 &.horizontal {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2000
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2001 .slider { margin-top: 1px + $_slider_margin; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2002
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2003 &.fine-tune .slider { margin-top: 1px + $_slider_fine_tune_margin; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2004
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2005 .trough { border-top-style: solid; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2006 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2007 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2008
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2009 .scrollbars-junction,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2010 .scrollbars-junction.frame { // the small square between two scrollbars
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2011 border-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2012 // the border image is used to add the missing dot between the borders, details, details, details...
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2013 border-image: linear-gradient(to bottom, $borders_color 1px, transparent 1px) 0 0 0 1 / 0 1px stretch;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2014 background-color: $scrollbar_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2015
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2016 &:dir(rtl) { border-image-slice: 0 1 0 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2017
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2018 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2019 border-image-source: linear-gradient(to bottom, $backdrop_borders_color 1px, transparent 1px);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2020 background-color: $backdrop_scrollbar_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2021 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2022 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2023
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2024
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2025 /**********
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2026 * Switch *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2027 **********/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2028
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2029 GtkSwitch {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2030 -GtkSwitch-slider-width: 45px; // 55px is the right value to make it as tall
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2031 // as buttons, not doing that for now
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2032 font-weight: bold;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2033 font-size: smaller;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2034 outline-offset: -4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2035 box-shadow: inset 0 1px transparentize(black, 0.9), // needs to be set here
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2036 _widget_edge(); // otherwise it gets
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2037 // clipped
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2038 &.trough {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2039 // similar to the .scale
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2040 border: 1px solid $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2041 border-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2042 color: $fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2043 background-image: linear-gradient(to bottom, mix($bg_color, $borders_color, 60%));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2044 text-shadow: 0 1px transparentize(black, 0.9);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2045 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2046 @include progressbar_fill;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2047 color: white;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2048 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2049 box-shadow: _widget_edge();
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2050 text-shadow: 0 1px transparentize($selected_borders_color, 0.5),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2051 0 0 2px transparentize(white, 0.4);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2052 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2053 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2054 color: $insensitive_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2055 border-color: $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2056 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2057 background-color: $insensitive_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2058 box-shadow: _widget_edge();
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2059 text-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2060 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2061 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2062 color: $backdrop_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2063 border-color: $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2064 background-image: linear-gradient(to bottom, $backdrop_dark_fill);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2065 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2066 text-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2067 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2068 @if $variant == 'light' { color: $backdrop_bg_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2069 border-color: if($variant == 'light', $selected_bg_color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2070 $selected_borders_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2071 background-image: linear-gradient(to bottom, $selected_bg_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2072 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2073 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2074 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2075 color: $backdrop_insensitive_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2076 border-color: $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2077 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2078 background-color: $insensitive_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2079 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2080 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2081 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2082 &.slider {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2083 border: 1px solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2084 border-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2085 @include button(normal);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2086 box-shadow: inset 0 1px if($variant=='light', white,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2087 transparentize(white, 0.85)),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2088 inset 0 -2px transparentize($bg_color, 0.4),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2089 inset 0 -1px mix($bg_color, $borders_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2090 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2091 @include button(hover);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2092 box-shadow: inset 0 1px if($variant=='light', white,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2093 transparentize(white, 0.85)),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2094 inset 0 -2px transparentize($bg_color, 0.4),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2095 inset 0 -1px mix($bg_color, $borders_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2096 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2097 &:active { border: 1px solid $selected_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2098 &:insensitive { @include button(insensitive, $edge:none); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2099 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2100 @include button(backdrop);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2101 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2102 &:active{
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2103 border-color: if($variant == 'light', $selected_bg_color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2104 $selected_borders_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2105 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2106 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2107 @include button(backdrop-insensitive);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2108 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2109 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2110 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2111 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2112 .list-row:selected & {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2113 @if $variant == 'light' {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2114 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2115 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2116 &:backdrop { border-color: $selected_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2117 &.slider:dir(rtl) { border-left-color: $borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2118 &.slider:dir(ltr) { border-right-color: $borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2119 &.slider,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2120 &.slider:active { border-color: $selected_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2121 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2122 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2123
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2124 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2125
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2126 /*************************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2127 * Check and Radio items *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2128 *************************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2129
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2130 // draw regular check and radio items using our PNG assets
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2131 // all assets are rendered from assets.svg. never add pngs directly
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2132
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2133 $asset_suffix: if($variant=='dark', '-dark', '');
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2134 @each $w,$a in ('check', 'checkbox'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2135 ('radio','radio') {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2136
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2137 //standard checks and radios
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2138 @each $s,$as in ('','-unchecked'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2139 (':hover', '-unchecked-hover'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2140 (':active', '-unchecked-active'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2141 (':insensitive','-unchecked-insensitive'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2142 (':backdrop', '-unchecked-backdrop'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2143 (':backdrop:insensitive', '-unchecked-backdrop-insensitive'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2144 (':inconsistent', '-mixed'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2145 (':inconsistent:hover', '-mixed-hover'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2146 (':inconsistent:selected', '-mixed-active'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2147 (':inconsistent:backdrop', '-mixed-backdrop'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2148 (':inconsistent:insensitive', '-mixed-insensitive'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2149 (':inconsistent:insensitive:backdrop', '-mixed-backdrop-insensitive'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2150 (':checked', '-checked'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2151 (':checked:insensitive','-checked-insensitive'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2152 (':checked:hover', '-checked-hover'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2153 (':checked:active', '-checked-active'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2154 (':backdrop:checked', '-checked-backdrop'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2155 (':backdrop:checked:insensitive', '-checked-backdrop-insensitive') {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2156 .#{$w}#{$s} {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2157 -gtk-icon-source: -gtk-scaled(url("assets/#{$a}#{$as}#{$asset_suffix}.png"),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2158 url("assets/#{$a}#{$as}#{$asset_suffix}@2.png"));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2159 icon-shadow: if(str-index($s,"backdrop"), none, 0 1px 0 $borders_edge); //no edge highlight for :backdrop
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2160 &.button.flat { icon-shadow: none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2161 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2162 @if $variant == 'light' {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2163 // the borders of the light variant versions of checks and radios are
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2164 // too similar in luminosity to the selected background color, hence
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2165 // we need special casing.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2166 .view.#{$w}#{$s}:selected,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2167 .list-row:selected .#{$w}#{$s} {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2168 -gtk-icon-source: -gtk-scaled(url("assets/selected-#{$a}#{$as}#{$asset_suffix}.png"),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2169 url("assets/selected-#{$a}#{$as}#{$asset_suffix}@2.png"));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2170 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2171 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2172 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2173
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2174 //menu
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2175 .menu .menuitem.#{$w} {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2176 -gtk-icon-source: -gtk-icontheme('#{$a}-symbolic');
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2177 color: mix($fg_color, $bg_color, 60%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2178 icon-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2179 &:active, &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2180 -gtk-icon-source: -gtk-icontheme('#{$a}-checked-symbolic');
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2181 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2182 &:inconsistent {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2183 -gtk-icon-source: -gtk-icontheme('#{$a}-mixed-symbolic');
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2184 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2185 &:hover { color: $selected_fg_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2186 &:insensitive { color: mix($insensitive_fg_color, $bg_color, 50%); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2187 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2188 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2189
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2190 //treeview and list-rows
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2191 .view.check, .view.radio,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2192 .list-row .check, list-row .radio {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2193 icon-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2194 &:selected, &:hover { icon-shadow: none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2195 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2196
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2197 //content view (grid/list)
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2198
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2199 .content-view {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2200 background-color: darken($bg_color,7%);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2201 &:backdrop { background-color: darken($bg_color,7%); }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2202 &.rubberband { @extend .rubberband; }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2203 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2204
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2205 //selection-mode
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2206 @each $s,$as in ('','-selectionmode'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2207 (':hover', '-hover-selectionmode'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2208 (':active', '-active-selectionmode'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2209 (':backdrop', '-backdrop-selectionmode'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2210 (':checked', '-checked-selectionmode'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2211 (':checked:hover', '-checked-hover-selectionmode'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2212 (':checked:active', '-checked-active-selectionmode'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2213 (':backdrop:checked', '-checked-backdrop-selectionmode') {
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2214 .view.content-view.check#{$s} {
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2215 icon-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2216 -gtk-icon-source: -gtk-scaled(url("assets/checkbox#{$as}.png"),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2217 url("assets/checkbox#{$as}@2.png"));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2218 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2219 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2220 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2221
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2222 GtkCheckButton.text-button, GtkRadioButton.text-button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2223 // this is for a nice focus on check and radios text
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2224 padding: 1px 2px 4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2225 outline-offset: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2226 &:insensitive,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2227 &:insensitive:active,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2228 &:insensitive:inconsistent {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2229 // set insensitive color, which is overriden otherwise
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2230 color: $insensitive_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2231 &:backdrop { color: $backdrop_insensitive_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2232 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2233 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2234
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2235 /************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2236 * GtkScale *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2237 ************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2238 .scale,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2239 .scale.scale-has-marks-above.scale-has-marks-below,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2240 .scale.vertical.scale-has-marks-above.scale-has-marks-below {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2241 // FIXME: rationalize
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2242 -GtkScale-slider-length: 20;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2243 -GtkRange-slider-width: 20;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2244 -GtkRange-trough-border: 2;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2245 outline-offset: -9px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2246 outline-radius: 4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2247
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2248 &.fine-tune {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2249 outline-offset: -7px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2250 outline-radius: 6px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2251 &.trough {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2252 margin: 8px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2253 border-radius: 4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2254 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2255 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2256
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2257 &.slider {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2258 //FIXME: better gradient on the slider and hover state
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2259 @include button(normal);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2260 border: 1px solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2261 border-radius: 50%;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2262 border-color: darken($borders_color,3%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2263 box-shadow: inset 0 1px if($variant=='light', white,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2264 transparentize(white,0.85)),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2265 inset 0 #{-2px} $bg_color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2266 inset 0 #{-1px} mix($bg_color, $borders_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2267 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2268 @include button(hover);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2269 border-color: darken($borders_color,3%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2270 border-radius: 50%; // needed for double marks scales
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2271 box-shadow: inset 0 1px if($variant=='light', white,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2272 transparentize(white, 0.85)),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2273 inset 0 #{-2px} if($variant=='light', white,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2274 transparentize(white, 0.86)),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2275 inset 0 #{-1px} mix($bg_color, $borders_color, 70%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2276 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2277 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2278 border-style: solid; // needed for double marks scales or they'll get
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2279 border-radius: 50%; // overridden
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2280 background-image: linear-gradient(to bottom, $insensitive_bg_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2281 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2282 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2283 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2284 border-style: solid; // needed for double marks scales or they'll get
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2285 border-radius: 50%; // overridden
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2286 border-color: darken($backdrop_borders_color,3%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2287 background-image: linear-gradient(to bottom, $backdrop_bg_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2288 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2289 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2290 &:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2291 @include button(backdrop-insensitive);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2292 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2293 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2294 border: 1px solid if($variant=='light',darken($selected_borders_color,3%),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2295 darken($selected_bg_color,15%));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2296 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2297 //OSD sliders
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2298 .osd & {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2299 @include button(osd);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2300 background-color: opacify($osd_bg_color, 1);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2301 &:hover { @include button(osd-hover); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2302 &:active { @include button(osd-active); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2303 &:backdrop { @include button(osd-backdrop); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2304 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2305 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2306 &.trough {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2307 margin: 10px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2308 border: 1px solid $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2309 border-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2310 background-color: mix($bg_color, $borders_color, 60%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2311 box-shadow: inset 1px 1px transparentize(black, 0.9),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2312 _widget_edge();
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2313 &.highlight {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2314 @include progressbar_fill;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2315 border-color: $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2316 box-shadow: _widget_edge();
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2317 &.vertical { @include progressbar_fill(vertical); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2318 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2319 border-color: if($variant=='light', $selected_bg_color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2320 $selected_borders_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2321 background-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2322 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2323 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2324 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2325 &:insensitive, &.vertical:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2326 border-color: $insensitive_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2327 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2328 background-color: $insensitive_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2329 box-shadow: _widget_edge();
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2330 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2331 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2332 border-color: $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2333 background-color: mix($backdrop_bg_color, $borders_color, 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2334 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2335 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2336 &:backdrop:insensitive, .highlight:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2337 border-color: $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2338 background-color: $insensitive_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2339 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2340 //OSD troughs
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2341 .osd & {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2342 border-color: $osd_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2343 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2344 margin: 9px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2345 &.fine-tune { margin: 7px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2346 background-color: transparentize($osd_borders_color, 0.2);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2347 outline-color: transparentize($osd_fg_color, 0.8);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2348 outline-offset: -8px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2349 &.highlight {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2350 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2351 background-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2352 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2353 &:insensitive, &:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2354 border-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2355 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2356 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2357 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2358 border-color: $osd_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2359 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2360 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2361 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2362 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2363 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2364
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2365 $asset_suffix: if($variant=='dark', '-dark', '');
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2366 @each $d,$dn in ('', 'horz'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2367 ('.vertical', 'vert') {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2368 @each $w,$we in ('scale-has-marks-below','scale_marks_below'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2369 ('scale-has-marks-above','scale_marks_above') {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2370 .scale#{$d}.#{$w} {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2371 -GtkScale-slider-length: 20;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2372 -GtkRange-slider-width: 24;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2373 -GtkRange-trough-border: 2;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2374
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2375 @extend %#{$we}_#{$dn};
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2376
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2377 @each $s,$as in ('',''),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2378 (':hover','-hover'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2379 (':active','-active'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2380 (':insensitive','-insensitive'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2381 (':backdrop','-backdrop'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2382 (':backdrop:insensitive','-backdrop-insensitive') {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2383 &.slider#{$s} {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2384 $_url: 'assets/slider-#{$dn}-#{$w}#{$as}#{$asset_suffix}';
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2385 border-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2386 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2387 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2388 background-image: -gtk-scaled(url('#{$_url}.png'),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2389 url('#{$_url}@2.png'));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2390 background-repeat: no-repeat;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2391 background-position: center;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2392 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2393 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2394 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2395 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2396 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2397 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2398
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2399 %scale_marks_above_horz {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2400 .trough { margin: 14px 10px 10px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2401 &.fine-tune .trough { margin: 12px 8px 8px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2402 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2403 %scale_marks_below_horz {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2404 .trough { margin: 10px 10px 14px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2405 &.fine-tune .trough { margin: 8px 8px 12px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2406 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2407 %scale_marks_above_vert {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2408 .trough { margin: 10px 10px 10px 14px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2409 &.fine-tune .trough { margin: 8px 8px 8px 12px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2410 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2411 %scale_marks_below_vert {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2412 .trough { margin: 10px 14px 10px 10px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2413 &.fine-tune .trough { margin: 8px 12px 8px 8px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2414 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2415
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2416 /*****************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2417 * Progress bars *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2418 *****************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2419
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2420 GtkProgressBar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2421 padding: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2422 font-size: smaller;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2423 color: transparentize($fg_color, 0.6);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2424 box-shadow: inset 1px 1px transparentize(black, 0.9), // needs to be set
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2425 _widget_edge(); // here ot it gets
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2426 // clipped
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2427 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2428 color: $backdrop_insensitive_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2429 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2430 &.osd {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2431 -GtkProgressBar-xspacing: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2432 -GtkProgressBar-yspacing: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2433 -GtkProgressBar-min-horizontal-bar-height: 3;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2434 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2435 &.trough { // background
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2436 border: 1px solid $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2437 border-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2438 background-color: mix($borders_color, $bg_color, 35%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2439 &:backdrop{
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2440 border-color: $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2441 background-color: $backdrop_dark_fill;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2442 box-shadow: 0 1px transparentize(white,1);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2443 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2444 &.osd {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2445 border-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2446 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2447 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2448 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2449 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2450 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2451
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2452 // moving bit
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2453 .progressbar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2454 @include progressbar_fill;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2455 border: 1px solid $selected_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2456 border-radius: 1.5px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2457 box-shadow: none; //needed for clipping
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2458 &.left {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2459 border-top-left-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2460 border-bottom-left-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2461 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2462 &.right {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2463 border-top-right-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2464 border-bottom-right-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2465 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2466 &.left.right {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2467 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2468 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2469 &.vertical {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2470 @include progressbar_fill(vertical);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2471 &.bottom {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2472 border-bottom-left-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2473 border-bottom-right-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2474 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2475 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2476 &.top {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2477 border-top-left-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2478 border-top-right-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2479 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2480 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2481 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2482 border-color: if($variant=='light', $selected_bg_color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2483 $selected_borders_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2484 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2485 background-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2486 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2487 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2488 &.osd {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2489 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2490 background-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2491 border-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2492 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2493 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2494 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2495
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2496
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2497 /*************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2498 * Level Bar *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2499 *************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2500
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2501 .level-bar.vertical {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2502 -GtkLevelBar-min-block-width: 3;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2503 -GtkLevelBar-min-block-height: 34;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2504 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2505
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2506 .level-bar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2507 box-shadow: _widget_edge(); // needs to be set here to avoid clipping
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2508 -GtkLevelBar-min-block-width: 34;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2509 -GtkLevelBar-min-block-height: 3;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2510 &.vertical {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2511 -GtkLevelBar-min-block-width: 3;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2512 -GtkLevelBar-min-block-height: 34;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2513 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2514 &.trough {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2515 border: 1px solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2516 padding: 2px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2517 border-radius: 3px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2518 @include entry(normal);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2519 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2520 @include entry(backdrop);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2521 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2522 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2523 &.fill-block {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2524 // FIXME: it would be nice to set make fill blocks bigger, but we'd need
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2525 // :nth-child working on discrete indicators
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2526 border: 1px solid if($variant=='light', darken($selected_bg_color,10%),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2527 darken($selected_bg_color,5%));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2528 background-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2529 box-shadow: 0 1px transparentize(black, 0.9);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2530 border-radius: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2531 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2532 border-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2533 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2534 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2535 &.indicator-discrete {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2536 &.horizontal { margin: 0 1px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2537 &.vertical { margin: 1px 0; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2538 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2539 &.level-high {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2540 border-color: darken($success_color,10%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2541 background-color: $success_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2542 &:backdrop { border-color: $success_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2543 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2544 &.level-low {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2545 border-color: darken($warning_color,10%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2546 background-color: $warning_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2547 &:backdrop { border-color: $warning_color; };
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2548 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2549 &.empty-fill-block {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2550 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2551 border-color: if($variant=='light', transparentize($fg_color,0.8),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2552 transparentize($fg_color,0.9));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2553 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2554 &:backdrop { border-color: transparentize($backdrop_fg_color,0.85); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2555 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2556 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2557 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2558
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2559
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2560 /**********
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2561 * Frames *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2562 **********/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2563 .frame {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2564 border: 1px solid $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2565 &.flat { border-style: none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2566 &:backdrop { border-color: $backdrop_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2567 padding: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2568 &.action-bar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2569 padding: 6px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2570 border-width: 1px 0 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2571 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2572 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2573
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2574 GtkScrolledWindow {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2575 GtkViewport.frame { // avoid double borders when viewport inside
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2576 // scrolled window
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2577 border-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2578 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2579 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2580
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2581 //vbox and hbox separators
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2582 .separator {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2583 // always disable separators
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2584 // -GtkWidget-wide-separators: true;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2585 color: transparentize(black, 0.9);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2586
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2587 // Font and File button separators
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2588 GtkFileChooserButton &.vertical,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2589 GtkFontButton &.vertical {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2590 // always disable separators
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2591 -GtkWidget-wide-separators: true;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2592 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2593 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2594
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2595 /*********
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2596 * Lists *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2597 *********/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2598
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2599 .list, .list-row {
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2600 background-color: $base_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2601 border-color: $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2602 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2603 background-color: $backdrop_base_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2604 border-color: $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2605 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2606 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2607
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2608 .list-row,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2609 .grid-child {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2610 padding: 2px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2611 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2612
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2613 .list-row.button,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2614 .list-row.button:backdrop,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2615 .list-row.button:backdrop:active,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2616 .list-row.button:backdrop:checked,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2617 .list-row.button:backdrop:insensitive,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2618 .list-row.button:backdrop:insensitive:active,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2619 .list-row.button:backdrop:insensitive:checked,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2620 .list-row.button:insensitive:active,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2621 .list-row.button:insensitive:checked {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2622 // reset button inherited stuff
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2623 @extend %undecorated_button;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2624 background-color: transparentize($base_color,1); // for the transition
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2625 border-style: none; // I need no borders here
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2626 border-radius: 0; // and no rounded corners
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2627 box-shadow: none; // and no box-shadow
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2628
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2629 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2630
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2631 .list-row.button {
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2632 // let's take care of background colors
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2633 &:hover {
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2634 background-color: mix($fg_color, $base_color, 5%);
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2635 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2636 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2637 box-shadow: inset 0 2px 2px -2px transparentize(black, 0.8);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2638 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2639 &:backdrop:hover { background-color: transparent; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2640 &:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2641 &:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2642 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2643 background-color: mix($fg_color, $selected_bg_color, 10%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2644 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2645 &:backdrop { background-color: $selected_bg_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2646 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2647 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2648
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2649 .list-row:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2650 @extend %selected_items;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2651 .button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2652 @include button(normal, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2653 @if $variant == 'light' { border-color: $selected_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2654 &.flat {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2655 @include button(undecorated, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2656 color: $selected_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2657 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2658 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2659 @include button(hover, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2660 @if $variant == 'light' { border-color: $selected_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2661 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2662 &:active, &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2663 @include button(active, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2664 @if $variant == 'light' { border-color: $selected_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2665 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2666 &:backdrop, &.flat:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2667 @include button(backdrop, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2668 @if $variant == 'light' { border-color: $selected_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2669 &:active, &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2670 @include button(backdrop-active, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2671 @if $variant == 'light' { border-color: $selected_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2672 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2673 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2674 @include button(backdrop-insensitive, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2675 @if $variant == 'light' { border-color: $selected_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2676 &:active, &:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2677 @include button(backdrop-insensitive-active, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2678 @if $variant == 'light' { border-color: $selected_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2679 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2680 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2681 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2682 &.flat:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2683 @include button(undecorated);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2684 color: if($variant=='light', $backdrop_base_color, $backdrop_fg_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2685 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2686 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2687 @include button(insensitive, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2688 @if $variant == 'light' { border-color: $selected_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2689 &:active, &:checked { @include button(insensitive-active, $edge:none); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2690 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2691 //FIXME: make placeholder with buttons w/o edge to be extended around
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2692 // istead of repeating everytime this stuff.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2693 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2694 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2695
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2696 // transition
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2697 .list-row, list-row.button {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2698 transition: all 300ms $ease-out-quad;
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2699 &:hover { transition: none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2700 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2701
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2702
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2703 /*********************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2704 * App Notifications *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2705 *********************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2706
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2707 .app-notification,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2708 .app-notification.frame {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2709 @extend %osd;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2710 padding: 10px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2711 border: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2712 border-radius: 0 0 6px 6px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2713 background-color: $osd_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2714 background-image: linear-gradient(to bottom, transparentize(black, 0.8),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2715 transparent 2px);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2716 background-clip: padding-box;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2717 &:backdrop { background-image: none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2718 .button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2719 @include button(osd);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2720 &.flat {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2721 @extend %undecorated_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2722 icon-shadow: 0 1px black;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2723 text-shadow: 0 1px black;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2724 &:backdrop,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2725 &:insensitive,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2726 &:backdrop:insensitive { @extend %undecorated_button; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2727 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2728 &:hover { @include button(osd-hover); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2729 &:active,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2730 &:checked,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2731 &:backdrop:active,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2732 &:backdrop:checked {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2733 @include button(osd-active);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2734 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2735 &:insensitive,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2736 &:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2737 @include button(osd-insensitive);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2738 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2739 &:backdrop { @include button(osd-backdrop); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2740 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2741 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2742
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2743 /*************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2744 * Expanders *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2745 *************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2746
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2747 .expander {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2748 -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2749 &:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2750 &:hover { color: lighten($fg_color,30%); } //only lightens the arrow
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2751 &:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2752 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2753
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2754 /************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2755 * Calendar *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2756 ***********/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2757 GtkCalendar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2758 color: $text_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2759 border: 1px solid $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2760
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2761 &:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2762 @extend .view:selected;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2763 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2764
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2765 &.header {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2766 border: 1px solid transparentize(black, 0.9);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2767 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2768
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2769 &:backdrop { border-color: transparentize(black, 0.9); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2770 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2771
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2772 &.button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2773 @extend %undecorated_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2774 color: transparentize($fg_color, 0.55);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2775
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2776 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2777 @extend %undecorated_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2778 color: $fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2779 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2780
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2781 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2782 @extend %undecorated_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2783 color: transparentize($backdrop_fg_color,0.55);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2784 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2785 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2786
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2787 &:inconsistent, &:inconsistent:backdrop,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2788 &.highlight, &.highlight:backdrop { color: gtkalpha(currentColor, 0.55); }
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2789
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2790
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2791 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2792 color: $backdrop_text_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2793 border-color: $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2794 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2795 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2796
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2797 /***********
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2798 * Dialogs *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2799 ***********/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2800
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2801 .message-dialog .dialog-action-area .button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2802 padding: 8px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2803 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2804
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2805 .message-dialog { // Message Dialog styling
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2806 -GtkDialog-button-spacing: 0;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2807
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2808 @if $variant==light {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2809 // the bright variant as a slightly darker bg which in this case clashes with the window decoration, overriding
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2810 &.background { background-color: $bg_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2811 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2812
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2813 .titlebar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2814 border-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2815 box-shadow: inset 0 1px $borders_edge;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2816 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2817 &.csd { // rounded bottom border styling for csd version
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2818 &.background {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2819 // bigger radius for better antialiasing
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2820 border-bottom-left-radius: 9px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2821 border-bottom-right-radius: 9px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2822 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2823 .dialog-action-area .button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2824 padding: 12px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2825 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2826 @include button(normal, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2827 @extend %middle_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2828 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2829 @include button(hover, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2830 @extend %middle_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2831 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2832 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2833 @include button(active, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2834 @extend %middle_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2835 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2836 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2837 @include button(insensitive, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2838 @extend %middle_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2839 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2840 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2841 @include button(backdrop, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2842 @extend %middle_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2843 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2844 &:backdrop:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2845 @include button(backdrop-insensitive, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2846 @extend %middle_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2847 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2848 @each $b_type, $b_color in (suggested-action, $selected_bg_color),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2849 (destructive-action, $destructive_color) {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2850 &.#{$b_type} {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2851 @include button(normal, $b_color, white, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2852 @extend %middle_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2853 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2854 @include button(hover, $b_color, white, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2855 @extend %middle_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2856 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2857 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2858 @include button(active, $b_color, white, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2859 @extend %middle_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2860 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2861 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2862 @include button(backdrop, $b_color, white, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2863 @extend %middle_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2864 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2865 @include button(backdrop-insensitive, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2866 @extend %middle_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2867 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2868 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2869 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2870 @include button(insensitive, $edge:none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2871 @extend %middle_button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2872 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2873 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2874 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2875 &:first-child{ @extend %first_button; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2876 &:last-child { @extend %last_button; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2877 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2878 %middle_button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2879 border-left-style: solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2880 border-right-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2881 border-bottom-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2882 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2883 %last_button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2884 border-bottom-right-radius: 7px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2885 outline-bottom-right-radius: 5px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2886 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2887 %first_button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2888 border-left-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2889 border-bottom-left-radius: 7px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2890 outline-bottom-left-radius: 5px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2891 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2892 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2893 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2894
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2895 GtkFileChooserDialog {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2896 .search-bar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2897 background-color: $base_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2898 border-color: $bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2899 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2900 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2901 background-color: $backdrop_base_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2902 border-color: $backdrop_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2903 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2904 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2905 .dialog-action-box {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2906 border-top: 1px solid $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2907 &:backdrop { border-top-color: $backdrop_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2908 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2909 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2910
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2911 /***********
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2912 * Sidebar *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2913 ***********/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2914
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2915 .sidebar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2916 border: none;
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2917 background-color: $sidebar_bg_color;
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2918
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2919 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2920 background-color: $backdrop_sidebar_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2921 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2922
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2923 &:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2924 @extend %selected_items;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2925 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2926 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2927
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2928 // Places sidebar is a special case, since the view here have to look like chrome not content, so we override text color
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2929 GtkPlacesSidebar.sidebar .view {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2930
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2931 color: $fg_color;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2932 background-color: transparent;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2933
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2934 .separator,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2935 .separator:backdrop { @extend .separator; }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2936
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2937 .image { // icons color
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2938 color: mix($fg_color, $sidebar_bg_color, 70%);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2939
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2940 &:selected {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2941 color: mix($selected_fg_color, $selected_bg_color, 90%);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2942
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2943 &:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 90%); }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2944 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2945
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2946 &:insensitive { color: mix($insensitive_fg_color, $sidebar_bg_color, 70%); }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2947
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2948 &:backdrop {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2949 color: mix($backdrop_fg_color, $sidebar_bg_color, 70%);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2950
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2951 &:insensitive { color: mix($backdrop_insensitive_color, $sidebar_bg_color, 70%); }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2952 }
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2953 }
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2954
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2955 &:insensitive { color: $insensitive_fg_color; }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2956
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2957 &:backdrop {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2958 color: $backdrop_fg_color;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2959
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2960 &:insensitive { color: $backdrop_insensitive_color; }
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2961 }
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2962
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2963 &:selected {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
2964 @extend %selected_items;
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2965 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2966 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2967
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2968
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2969 .sidebar-item {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2970 padding: 10px 4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2971 > .label {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2972 padding-left: 6px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2973 padding-right: 6px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2974 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2975 &.needs-attention > .label {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2976 @extend %needs_attention;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2977 background-size: 6px 6px, 0 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2978 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2979 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2980
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2981
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2982 /*********
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2983 * Paned *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2984 *********/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2985
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2986 GtkPaned { // this is for the standard paned separator
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2987
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2988 -GtkPaned-handle-size: 1; // sets separator width
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2989
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2990 -gtk-icon-source: none; // removes handle decoration
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2991 margin: 0 8px 8px 0; // drag area of the separator, not a real margin
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2992 &:dir(rtl) {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2993 margin-right: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2994 margin-left: 8px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2995 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2996 .pane-separator {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2997 background-color: $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2998 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2999 background-color: $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3000 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3001 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3002 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3003
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3004 GtkPaned.wide { // this is for the paned with wide separator
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3005 -GtkPaned-handle-size: 5; // wider separator here
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3006 margin: 0; // no need of the invisible drag area so, reset margin
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3007 .pane-separator {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3008 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3009 border-style: none solid;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3010 border-color: $borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3011 border-width: 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3012 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3013 &.vertical .pane-separator { border-style: solid none;}
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3014 .pane-separator:backdrop { border-color: $backdrop_borders_color; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3015 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3016
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3017
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3018 /**************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3019 * GtkInfoBar *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3020 **************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3021 GtkInfoBar {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3022 border-style: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3023 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3024
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3025 .info,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3026 .question,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3027 .warning,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3028 .error {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3029 background-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3030 color: $selected_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3031 text-shadow: 0 1px darken($selected_bg_color, 10%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3032 border-color: darken($selected_bg_color, 10%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3033 .button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3034 // FIXME: extend selection mode buttons
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3035 @include button(normal, $selected_bg_color, $selected_fg_color, none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3036 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3037 @include button(hover, $selected_bg_color, $selected_fg_color, none); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3038 &:active {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3039 @include button(active, $selected_bg_color, $selected_fg_color, none); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3040 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3041 @include button(insensitive,$selected_bg_color,$selected_fg_color,none); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3042 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3043 @include button(backdrop, $selected_bg_color, $selected_fg_color, none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3044 border-color: _border_color($selected_bg_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3045 &:insensitive {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3046 @include button(backdrop-insensitive, $selected_bg_color,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3047 $selected_fg_color, none);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3048 border-color: _border_color($selected_bg_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3049 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3050 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3051 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3052 .label:selected,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3053 .label:selected:focus,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3054 .label:selected:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3055 background-color: darken($selected_bg_color, 10%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3056 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3057 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3058
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3059 /************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3060 * Tooltips *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3061 ************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3062
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3063 .tooltip {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3064 &.background {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3065 // background-color needs to be set this way otherwise it gets drawn twice
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3066 // see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3067 background-color: transparentize(black, 0.2);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3068 background-clip: padding-box;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3069 border: 1px solid $tooltip_borders_color; // this suble border is meant to
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3070 // not make the tooltip melt with
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3071 // very dark backgrounds
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3072 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3073
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3074 color: white;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3075 padding: 4px; /* not working */
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3076 border-radius: 5px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3077 box-shadow: none; // otherwise it gets inherited by windowframe.csd
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3078 text-shadow: 0 1px black;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3079 // FIXME: we need a border or tooltips vanish on black background.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3080 &.window-frame.csd {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3081 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3082 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3083 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3084
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3085 .tooltip * { //Yeah this is ugly
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3086 padding: 4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3087 background-color: transparent;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3088 color: inherit; // just to be sure
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3089 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3090
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3091 /*****************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3092 * Color Chooser *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3093 *****************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3094
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3095 GtkColorSwatch {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3096 // This widget is made of two boxes one on top of the other, the lower box is GtkColorSwatch {} the other one
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3097 // is GtkColorSwatch > .overlay {}, GtkColorSwatch has the programmatically set background, so most of the style
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3098 // is applied to the overlay box.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3099
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3100 $_colorswatch_shadow: inset 0 1px transparentize(black, 0.9), _widget_edge();
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3101
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3102 $_colorswatch_radius: 5px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3103
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3104 box-shadow: $_colorswatch_shadow;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3105
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3106 // take care of colorswatches on selected elements
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3107 :selected & {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3108 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3109 &.overlay, &.overlay:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3110 border-color: $selected_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3111 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3112 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3113
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3114 // we need to re-set the shadow here since it get axed by the previous bit
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3115 &:selected { box-shadow: $_colorswatch_shadow; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3116
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3117 // base color corners rounding
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3118 // to avoid the artifacts caused by rounded corner anti-aliasing the base color
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3119 // sports a bigger radius.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3120 // nth-child is needed by the custom color strip.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3121 // The :not() madness is needed since actually the overlay is selectable by GtkColorSwatch > .overlay
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3122 // and GtkColorSwatch.overlay, I know it's weird, but this is gtk+, not a browser.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3123 &.top {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3124 border-top-left-radius: $_colorswatch-radius + 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3125 border-top-right-radius: $_colorswatch-radius + 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3126 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3127 &.bottom {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3128 border-bottom-left-radius: $_colorswatch-radius + 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3129 border-bottom-right-radius: $_colorswatch-radius + 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3130 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3131 &.left, &:first-child:not(.overlay):not(.top) {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3132 border-top-left-radius: $_colorswatch-radius + 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3133 border-bottom-left-radius: $_colorswatch-radius + 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3134 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3135 &.right, &:last-child:not(.overlay):not(.bottom) {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3136 border-top-right-radius: $_colorswatch-radius + 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3137 border-bottom-right-radius: $_colorswatch-radius + 1px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3138 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3139 &:only-child:not(.overlay) { border-radius: $_colorswatch-radius + 1px; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3140
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3141 // overlay corner rounding
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3142 &.top > .overlay {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3143 border-top-left-radius: $_colorswatch-radius;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3144 border-top-right-radius: $_colorswatch-radius;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3145 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3146 &.bottom > .overlay {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3147 border-bottom-left-radius: $_colorswatch-radius;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3148 border-bottom-right-radius: $_colorswatch-radius;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3149 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3150 &:first-child:not(.top) > .overlay {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3151 border-top-left-radius: $_colorswatch-radius;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3152 border-bottom-left-radius: $_colorswatch-radius;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3153 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3154 &:last-child:not(.bottom) > .overlay {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3155 border-top-right-radius: $_colorswatch-radius;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3156 border-bottom-right-radius: $_colorswatch-radius;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3157 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3158 &:only-child > .overlay { border-radius: $_colorswatch-radius; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3159
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3160 // hover effect
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3161 &:hover,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3162 &:hover:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3163 background-image: linear-gradient(135deg, transparentize(white, 0.3),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3164 transparentize(white, 1) 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3165 box-shadow: inset 0 1px transparentize(white, 0.6),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3166 inset 0 -1px if($variant == 'light', transparentize(black, 0.9), transparentize(black, 0.6));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3167 &.color-dark { // swatches with colors with luminosity lower than 50% get the color-dark class
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3168 background-image: linear-gradient(135deg, transparentize(white, 0.5),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3169 transparentize(white, 1) 50%);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3170 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3171 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3172 &:backdrop,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3173 &:backdrop:selected
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3174 &.color-dark:backdrop,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3175 &.color-dark:backdrop:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3176 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3177 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3178 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3179
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3180 // no hover effect for the colorswatch in the color editor
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3181 GtkColorEditor & {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3182 border-radius: 3px; // same radius as the entry
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3183 &:hover {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3184 background-image: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3185 box-shadow: inset 0 1px transparentize(black, 0.9), _widget_edge();
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3186 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3187 &:backdrop { box-shadow: none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3188 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3189
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3190 // indicator and keynav outline colors
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3191 &.color-dark {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3192 color: white;
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3193 outline-color: transparentize(black, 0.7);
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3194 &:backdrop { color: transparentize(white, 0.7); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3195 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3196 &.color-light {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3197 color: black;
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3198 outline-color: transparentize(white, 0.5);
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3199 &:backdrop { color: transparentize(black, 0.7); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3200 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3201
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3202 // border color
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3203 &.overlay,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3204 &.overlay:selected {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3205 border: 1px solid if($variant == 'light', transparentize(black, 0.7), $borders_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3206 &:hover { border-color: if($variant == 'light', transparentize(black, 0.5), black); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3207 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3208
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3209 // make the add color button looks like, well, a button
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3210 &#add-color-button {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3211 border-style: solid; // the borders are drawn by the overlay for standard colorswatches to have them semi
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3212 border-width: 1px; // translucent on the colored background, here it's not necessary so they need to be set
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3213 @include button(normal);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3214 &:hover { @include button(hover); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3215 &:backdrop { @include button(backdrop); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3216 .overlay { @include button(undecorated); } // reset the overlay to not cover the button style underneat
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3217 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3218 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3219
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3220
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3221 /********
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3222 * Misc *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3223 ********/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3224
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3225 .scale-popup .button { // +/- buttons on GtkVolumeButton popup
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3226 padding: 6px;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3227 &:hover {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3228 @extend %undecorated_button;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3229 background-color: transparentize($fg_color,0.9);
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3230 border-radius: 5px;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3231 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3232 &:backdrop,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3233 &:backdrop:hover,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3234 &:backdrop:insensitive { @extend %undecorated_button; }
17
ca246bc0af4a Update to GTK 3.18 and regenerate assets
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
3235 }
ca246bc0af4a Update to GTK 3.18 and regenerate assets
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
3236
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3237 GtkVolumeButton.button { padding: 8px; }
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3238
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3239 /**********************
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3240 * Window Decorations *
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3241 *********************/
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3242
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3243 .window-frame {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3244 border-radius: 7px 7px 0 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3245 // lamefun trick to get rounded borders regardless of CSD use
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3246 border-width: 0px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3247
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3248 // this needs to be transparent
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3249 // see bug #722563
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3250 $_wm_border: if($variant=='light', transparentize(black, 0.77), transparentize($borders_color, 0.1));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3251 $_wm_border_backdrop: if($variant=='light', transparentize(black, 0.82), transparentize($borders_color, 0.1));
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3252
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3253 box-shadow: 0 3px 9px 1px transparentize(black, 0.5),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3254 0 0 0 1px $_wm_border; //doing borders with box-shadow
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3255
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3256 // FIXME rationalize window-frame shadows
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3257
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3258 /* this is used for the resize cursor area */
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3259 margin: 10px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3260
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3261 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3262 box-shadow: 0 2px 6px 2px transparentize(black, 0.8),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3263 0 0 0 1px $_wm_border_backdrop;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3264 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3265 &.tiled {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3266 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3267 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3268 &.popup {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3269 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3270 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3271 // server-side decorations as used by mutter
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3272 &.ssd {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3273 box-shadow: 0 0 0 1px $_wm_border; //just doing borders, wm draws actual shadows
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3274 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3275 &.csd {
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3276 .popup {
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3277 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3278 box-shadow: 0 1px 2px transparentize(black, 0.8),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3279 0 0 0 1px transparentize($_wm_border,0.1);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3280 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3281 &.tooltip {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3282 border-radius: 5px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3283 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3284 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3285 &.message-dialog {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3286 border-radius: 7px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3287 box-shadow: 0 1px 2px transparentize(black, 0.8),
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3288 0 0 0 1px transparentize($_wm_border,0.1);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3289 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3290 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3291 &.solid-csd {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3292 border-radius: 0;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3293 margin: 4px;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3294 background-color: $backdrop_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3295 border: solid 1px $backdrop_borders_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3296 box-shadow: none;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3297 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3298 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3299
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3300 // Window Close button
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3301 .header-bar .button.titlebutton,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3302 .titlebar .button.titlebutton {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3303 @extend .button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3304 @extend .button.flat;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3305 @extend .image-button;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3306 @include _button_text_shadow;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3307 &:backdrop { icon-shadow: none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3308 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3309
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3310 .header-bar.selection-mode .button.titlebutton,
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3311 .titlebar.selection-mode .button.titlebutton {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3312 @include _button_text_shadow(white, $selected_bg_color);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3313 &:backdrop { icon-shadow: none; }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3314 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3315
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3316
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3317 // catch all extend :)
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3318
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3319 %selected_items {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3320 background-color: $selected_bg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3321 color: $selected_fg_color;
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3322 @if $variant == 'light' {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3323 outline-color: transparentize($selected_fg_color, 0.7);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3324 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3325 &:backdrop {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3326 color: $backdrop_selected_fg_color;
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3327 background-color: $backdrop_selected_bg_color;
17
ca246bc0af4a Update to GTK 3.18 and regenerate assets
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
3328 }
ca246bc0af4a Update to GTK 3.18 and regenerate assets
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
3329 }
ca246bc0af4a Update to GTK 3.18 and regenerate assets
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
3330
22
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3331 /* Decouple the font of context menus from their entry/textview */
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3332 .touch-selection,
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3333 .context-menu {
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3334 font: initial;
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3335 }
cb3e1a45b770 Restore gtk-3.0 to v3.16 (openSUSE 42.1) and add gtk-3.18 dir
IBBoard <dev@ibboard.co.uk>
parents: 17
diff changeset
3336
17
ca246bc0af4a Update to GTK 3.18 and regenerate assets
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
3337 .monospace {
ca246bc0af4a Update to GTK 3.18 and regenerate assets
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
3338 font: Monospace;
ca246bc0af4a Update to GTK 3.18 and regenerate assets
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
3339 }
ca246bc0af4a Update to GTK 3.18 and regenerate assets
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
3340
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3341 // This is used by GtkScrolledWindow, when content is touch-dragged past boundaries.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3342 // This draws a box on top of the content, the size changes programmatically.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3343 .overshoot {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3344 &.top {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3345 @include overshoot(top);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3346 &:backdrop { @include overshoot(top, backdrop); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3347 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3348 &.bottom {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3349 @include overshoot(bottom);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3350 &:backdrop { @include overshoot(bottom, backdrop); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3351 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3352 &.left {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3353 @include overshoot(left);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3354 &:backdrop { @include overshoot(left, backdrop); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3355 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3356 &.right {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3357 @include overshoot(right);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3358 &:backdrop { @include overshoot(right, backdrop); }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3359 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3360 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3361
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3362 // Overflow indication, works similarly to the overshoot, the size if fixed tho.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3363 .undershoot {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3364 &.top {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3365 @include undershoot(top);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3366 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3367
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3368 &.bottom {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3369 @include undershoot(bottom);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3370 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3371
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3372 &.left {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3373 @include undershoot(left);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3374 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3375
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3376 &.right {
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3377 @include undershoot(right);
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3378 }
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3379 }