1/*
2* this file is part of the oxygen gtk engine
3* Copyright (c) 2010 Hugo Pereira Da Costa <hugo.pereira@free.fr>
4* Copyright (c) 2010 Ruslan Kabatsayev <b7.10110111@gmail.com>
5*
6* This library is free software; you can redistribute it and/or
7* modify it under the terms of the GNU Lesser General Public
8* License as published by the Free Software Foundation; either
9* version 2 of the License, or( at your option ) any later version.
10*
11* This library is distributed in the hope that it will be useful,
12* but WITHOUT ANY WARRANTY; without even the implied warranty of
13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14* Lesser General Public License for more details.
15*
16* You should have received a copy of the GNU Lesser General Public
17* License along with this library; if not, write to the Free
18* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
19* MA 02110-1301, USA.
20*/
21/*
22hard coded colors for infobars
23these used to have valid default values set by Gtk,
24but is not the case anymore.
25TODO: use the same colors as KDE's message boxes
26*/
27
28@define-color info_fg_color black;
29@define-color info_bg_color rgb (252, 252, 189);
30
31@define-color warning_fg_color black;
32@define-color warning_bg_color rgb (250, 173, 61);
33
34@define-color question_fg_color white;
35@define-color question_bg_color rgb (138, 173, 212);
36
37@define-color error_fg_color white;
38@define-color error_bg_color rgb (237, 54, 54);
39
40/*
41INFO: css border and padding ordering is either:
42   - all-sides;
43   - top/bottom left/right;
44   - top left/right bottom;
45   - top right bottom left;
46*/
47
48* {
49    -GtkPaned-handle-size: 3px;
50    -GtkButton-child_displacement_x: 0;
51    -GtkButton-child_displacement_y: 0;
52
53    -GtkButton-default_border: 0;
54    -GtkButton-default_outside_border: 0;
55
56    -GtkComboBox-appears-as-list: 1;
57
58    -GtkMenu-horizontal-offset: -7px;
59    -GtkMenuBar-internal-padding: 0;
60
61    -GtkScrolledWindow-scrollbar-spacing: 1px;
62
63    -GtkCheckButton-indicator-size: 18px;
64    -GtkCheckMenuItem-indicator-size: 16px;
65    -GtkExpander-expander-size: 15px;
66    -GtkTreeView-expander-size: 15px;
67
68    -GtkTreeView-allow-rules: 1px;
69
70    -GtkStatusbar-shadow-type: none;
71    -GtkMenubar-shadow-type: none;
72    -GtkToolbar-shadow-type: none;
73
74    -GtkWindow-resize-grip-height: 0;
75    -GtkWindow-resize-grip-width: 0;
76
77    -GtkWidget-wide-separators: 1;
78    -GtkWidget-separator-width: 3;
79    -GtkWidget-separator-height: 3;
80
81    engine: oxygen-gtk;
82}
83
84/* customize border styles */
85.toolbar { border-style: none; }
86.menubar { border-style: none; }
87GtkStatusBar { border-style: none; }
88
89/* sliders and scrollbars */
90.scale
91{
92    -GtkRange-slider-width: 23px;
93    -GtkScale-slider-length: 21px;
94}
95
96.scrollbar
97{
98    -GtkRange-stepper-size: 12px;
99    -GtkRange-trough-border: 0;
100}
101
102/* menuitems padding */
103.menubar
104{
105    padding: 0;
106    border-width: 0;
107}
108
109GtkMenuBar>GtkMenuItem { padding: 4px 5px; }
110
111/* menu toolbutton */
112GtkMenuToolButton, GtkMenuToolButton *
113{
114    border-width: 0;
115    -GtkButton-focus-padding: 0;
116    -GtkWidget-focus-line-width: 0;
117}
118
119/* notebooks */
120.notebook
121{
122    padding: 6px 8px 2px 8px;
123    border-width: 2px 0 6px 0;
124    border-style: outset;
125}
126
127/* notebooks */
128.notebook.header { border-style: none; }
129
130/* option menu */
131GtkOptionMenu { padding: 0 4px; }
132
133/* separators */
134.separator
135{
136    border-style: solid;
137    border-width: 3px;
138}
139
140/* frames */
141GtkFrame { padding: 4px; }
142GtkScrolledWindow.frame
143{
144    border-style: inset;
145    border-width: 1px;
146    padding: 1px;
147}
148
149.progressbar { padding: 0; }
150GtkViewport { padding: 0; }
151GtkAssistant .sidebar { padding: 4px; }
152
153GtkInfoBar
154{
155    border-style: solid;
156    border-width: 8px;
157}
158
159GtkCalendar.view { border-style: inset; }
160
161/* switchs */
162GtkSwitch { padding: 0; }
163
164/* combo boxes */
165GtkComboBox { padding: 0; }
166GtkComboBox>GtkFrame { padding: 0 0 0 4px; }
167
168/* tooltips */
169.tooltip { padding: 0; }
170
171/* buttons */
172.button { padding: 6px 6px 4px; }
173
174/* header buttons */
175column-header.button
176{
177    border-width: 0 2px;
178    border-style: solid;
179}
180
181/* entry */
182.entry { padding: 4px 7px; }
183
184/* menu */
185.menu
186{
187    padding: 5px;
188    border-width: 0;
189}
190
191GtkMenu>GtkMenuItem { padding: 5px 4px; }
192GtkMenu>GtkSeparatorMenuItem { padding: 1px 4px; }
193
194/* import spinner code */
195@import url("gtk-spinner.css");
196@import url("gtk-csd.css");
197