Debian Codegraph @

common/gtk-3.0/sass/_granite.scss

raw
1 // Granite Widgets
2
3 //
4 // Overlay Bar
5 //
6 .overlay-bar {
7 background-color: $selected_bg_color;
8 border-color: $selected_bg_color;
9 border-radius: 2px;
10 padding: 3px 6px;
11 margin: 3px;
12
13 label { color: $selected_fg_color; }
14 }
15
16 //
17 // Thin Pane Separator
18 //
19 GraniteWidgetsThinPaned {
20 background-color: transparent;
21 background-image: none;
22 margin: 0;
23 border-left: 1px solid $borders_color;
24 border-right: 1px solid $borders_color;
25
26 }
27
28 // avoid borders when a viewport is
29 // packed into a Static Notebook, or Popover
30 GraniteWidgetsPopOver .frame,
31 GraniteWidgetsStaticNotebook .frame {
32 border: none;
33 }
34
35 //
36 // Help Button
37 //
38 .help_button {
39 border-radius: 100px;
40 padding: 3px 9px;
41 }
42
43 //
44 // Secondary Toolbars
45 //
46 toolbar.secondary-toolbar {
47 padding: 3px;
48 border-bottom: 1px solid $borders_color;
49
50 button { padding: 0 3px 0 3px; }
51 }
52
53 //
54 // Bottom Toolbars
55 //
56 toolbar.bottom-toolbar {
57 padding: 5px;
58 border-width: 1px 0 0 0;
59 border-style: solid;
60 border-color: $borders_color;
61 background-color: $bg_color;
62
63 button { padding: 2px 3px 2px 3px; }
64 }
65
66 //
67 // Sidebar & Source List
68 //
69 .source-list {
70 -GtkTreeView-horizontal-separator: 1px;
71 -GtkTreeView-vertical-separator: 6px;
72 }
73
74 .source-list,
75 .source-list.view {
76 background-color: $bg_color;
77 color: $fg_color;
78 -gtk-icon-style: regular;
79 }
80
81 .source-list.category-expander {
82 color: transparent;
83 }
84
85 .source-list.view:hover {
86 background-color: lighten($bg_color, 5%);
87 }
88
89 .source-list.view:selected,
90 .source-list.view:hover:selected,
91 .source-list.view:selected:focus,
92 .source-list.category-expander:hover {
93 color: $selected_fg_color;
94 background-color: $selected_bg_color;
95 }
96
97 .source-list scrollbar,
98 .source-list junction {
99 border-image: none;
100 border-color: transparent;
101 background-color: $bg_color;
102 background-image: none;
103 }
104
105 .source-list.badge,
106 .source-list.badge:hover,
107 .source-list.badge:selected,
108 .source-list.badge:selected:focus,
109 .source-list.badge:hover:selected {
110 background-image: none;
111 background-color: $selected_bg_color;
112 color: $selected_fg_color;
113 border-radius: 10px;
114 padding: 0 6px;
115 margin: 0 3px;
116 border-width: 0;
117 }
118
119 .source-list.badge:selected,
120 .source-list.badge:selected:focus,
121 .source-list.badge:hover:selected {
122 background-color: $selected_fg_color;
123 color: $selected_bg_color;
124 }
125
126 //
127 // Expander
128 //
129 .source-list.category-expander {
130 color: $fg_color;
131 -gtk-icon-source: -gtk-icontheme("pan-end-symbolic");
132 -GtkTreeView-expander-size: 16;
133 }
134
135 .source-list.category-expander,
136 .source-list.category-expander:backdrop {
137 color: transparent;
138 border: none;
139 }
140
141 .source-list.category-expander:checked {
142 -gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
143 }
144
145 //
146 // Welcome
147 //
148 GraniteWidgetsWelcome {
149 background-color: $base_color;
150 }
151
152 GraniteWidgetsWelcome label {
153 color: mix($fg_color, $bg_color, 50%);
154 font-size: 11px;
155 text-shadow: none;
156 }
157
158 GraniteWidgetsWelcome .h1,
159 GraniteWidgetsWelcome .h3 {
160 color: transparentize($fg_color, 0.2);
161 }
162
163 //
164 // Help Button
165 //
166 .help_button {
167 border-radius: 0;
168 }
169
170 //
171 // Popover
172 //
173 GraniteWidgetsPopOver {
174 -GraniteWidgetsPopOver-arrow-width: 21;
175 -GraniteWidgetsPopOver-arrow-height: 10;
176 -GraniteWidgetsPopOver-border-radius: 2px;
177 -GraniteWidgetsPopOver-border-width: 1;
178 -GraniteWidgetsPopOver-shadow-size: 12;
179
180 border: 1px solid transparentize(black, 0.7);
181 margin: 0;
182 }
183
184 .popover_bg {
185 background-image: _solid($base_color);
186 border: 1px solid transparentize(black, 0.7);
187 }
188
189 GraniteWidgetsPopOver .sidebar.view,
190 GraniteWidgetsPopOver * {
191 background-color: transparent;
192 }
193
194 //
195 // Xs Entry
196 //
197 GraniteWidgetsXsEntry entry { padding: 4px; }
198
199 //
200 // Text Styles
201 //
202 .h1 { font-size: 24px; }
203 .h2 { font-size: 18px; }
204 .h3 { font-size: 11px; }
205 .h4,
206 .category-label {
207 color: mix($bg_color, $text_color, 30%);
208 font-weight: 600;
209 }
210
211 .h4 {
212 padding-bottom: 6px;
213 padding-top: 6px;
214 }
215
216 GtkListBox .h4{
217 padding-left: 6px;
218 }