GUI: Move .ui files from goffice resources to glib resources
[gnumeric.git] / src / gnumeric.css
blob55e8fc0e3222422af0dfabe5a5a16a6e87402628
1 /* ------------------------------------------------------------------------- */
3 /* GnmPane is the canvas we use for sheets. We store custom properties
4 here because there is no un-deprecated way to store them for the
5 canvas items which aren't widgets. */
6 GnmPane {
7 -GnmPane-function-indicator-size: 10px;
8 -GnmPane-cell-comment-indicator-size: 6px;
9 -GnmPane-resize-guide-width: 1px;
10 -GnmPane-pane-resize-guide-width: 7px;
11 -GnmPane-control-circle-size: 5px;
12 -GnmPane-control-circle-outline: 1px;
15 /* ------------------------------------------------------------------------- */
16 /* The GnmItemGrid is the canvas area that holds all the cells. */
17 /* GnmPreviewGrid is the canvas used for auto-format previews. */
18 GnmItemGrid,
19 GnmPreviewGrid,
20 GocCanvas.full-sheet,
21 GtkBin.auto-expr {
22 /* GnmItemGrid requires that the background be solid and rectangular
23 since we cheat and print only parts of it. */
24 background-image: none;
25 background-color: white;
26 padding: 0;
27 border-style: none;
28 border-width: 0;
31 GnmItemGrid:selected {
32 background-color: lavender;
35 /* Function markers are enabled from View->View Properties->Cell Markers */
36 GnmItemGrid function-marker {
37 color: #80ff80;
38 border-color: #555555;
39 /* See also GnmPane */
42 /* This is the divider between panes when an area is frozen. */
43 GnmItemGrid pane-divider {
44 color: #333333;
46 /* This isn't working well yet: */
47 border-style: solid;
48 border-width: 1px;
51 /* ------------------------------------------------------------------------- */
52 /* The GnmItemCursor item is what marks a cell or selection on the sheet. */
54 /* The default cursor. */
55 GnmItemCursor.normal {
56 color: #000000;
59 /* The anted cursor. We clearly should be using an animation, but neither
60 we nor gtk are ready for that. */
61 GnmItemCursor.ant {
62 color: #333333;
63 background-color: #c7c7c7;
66 /* The dragging/autofill cursor. These colors are combined in a stipple. */
67 GnmItemCursor.drag,
68 GnmItemCursor.autofill {
69 color: white;
70 background-color: black;
73 /* ------------------------------------------------------------------------- */
75 CommentView {
76 color: red;
77 /* See also GnmPane */
80 /* ------------------------------------------------------------------------- */
81 /* GnmItemEdit canvas items are the in-sheet editing area. */
83 GnmItemEdit {
84 background-color: #ffffe0;
86 /* This doens't seem to kick in. We seem to get the color from the
87 style. */
88 color: black;
91 /* ------------------------------------------------------------------------- */
92 /* GnmItemBar canvas items are the header buttons "A".."IV" and "1".."65536" */
93 /* These are also styled with class button */
95 GnmItemBar {
96 padding-left: 5px;
97 padding-right: 5px;
98 padding-top: 2px;
99 padding-bottom: 2px;
102 /* The whole column/row selected. */
103 GnmItemBar:active {
104 color: red;
105 font-weight: bold;
108 /* Some, but not all, of a column/row selected. */
109 GnmItemBar:hover {
110 color: red;
111 font-weight: bold;
114 /* ------------------------------------------------------------------------- */
115 /* The resize guide used when resizing columns or rows. This can be
116 subclassed with "row" or "col" as well as with "start" or "end". */
117 GnmPane GocLine.resize-guide {
118 color: black;
119 /* See also GnmPane */
122 /* The resize guide used when resizing panes. This can be subclassed with
123 "row" or "col". */
124 GnmPane GocLine.pane-resize-guide {
125 color: #c0c0c0;
126 /* See also GnmPane */
129 /* ------------------------------------------------------------------------- */
130 /* This GtkDrawingArea is the select-all button above the row buttons. */
132 GtkDrawingArea.button.all {
135 /* ------------------------------------------------------------------------- */
137 /* GnmNotebook is a fake notebook holding just the sheet tabs area */
139 GnmNotebook {
140 padding-top: 0;
141 padding-bottom: 0;
144 /* ------------------------------------------------------------------------- */
146 GtkHandleBox {
147 padding: 0;
150 /* ------------------------------------------------------------------------- */
151 /* Add a little bit of space around our pseudo tooltips, but not so much as
152 to be a problem if the theme somehow adds its own. */
154 GtkWindow>GtkFrame.pseudo-tooltip {
155 border-style: none;
156 border-width: 0;
157 padding: 5px;
160 GtkWindow>GtkFrame>GtkLabel.pseudo-tooltip {
161 border-style: none;
162 border-width: 0;
163 padding: 0;
166 GtkWindow *.pseudo-tooltip {
167 background-image: none;
168 background-color: rgba(0,0,0,0);
171 GtkTextView.pseudo-tooltip {
172 color: inherit;
175 /* ------------------------------------------------------------------------- */
176 /* This is used for the eight circles put around a sheet object being sized. */
178 GnmControlCircle {
179 background-color: white;
180 color: black;
181 /* See also GnmPane */
184 GnmControlCircle:hover {
185 background-color: green;
188 GocItem.object-size.rubber-band {
189 color: black;
192 /* ------------------------------------------------------------------------- */
193 /* Auto filter in two versions: the first one for "all", second for others. */
195 GtkArrow.auto-filter {
196 color: black;
199 GtkArrow.auto-filter:active {
200 color: yellow;
203 /* ------------------------------------------------------------------------- */
204 /* GnmNotebookButton is the sheet name buttons used to select sheets. */
206 GnmNotebookButton:active {
207 font-weight: bold;
210 /* ------------------------------------------------------------------------- */
211 /* Functions' arguments link-like appearance in pseudo-tooltips. */
213 GtkTextView.pseudo-tooltip.function-help {
214 -GtkWidget-link-color: #4040ff;
217 /* Ditto in the function selector. */
218 GtkDialog GtkTextView.function-help {
219 -GtkWidget-link-color: #4040ff;
222 /* ------------------------------------------------------------------------- */
223 /* This is the vertical line used in the fixed-width part of the stf */
224 /* import dialog to show where a new column division will be placed */
226 GtkDialog#stf-import fixed-format-ruler {
227 color: red;
230 /* ------------------------------------------------------------------------- */
231 /* Extra space around multiple toolbars adds up quickly so avoid it. */
233 GtkBox.toolbarzone GtkToolbar {
234 padding: 0px;
236 GtkBox.toolbarzone GtkToolbar * {
237 padding: 1px;
240 /* ------------------------------------------------------------------------- */
241 /* Styles for Gtk+ 3.20 and later */
242 /* ------------------------------------------------------------------------- */
243 /* See bug 765921 as to why we duplicate the selectors. */
245 button.itembar, button.itembar * {
246 padding-left: 5px;
247 padding-right: 5px;
248 padding-top: 2px;
249 padding-bottom: 2px;
252 /* The whole column/row selected. */
253 button:active.itembar, button:active.itembar * {
254 color: red;
255 font-weight: bold;
258 /* Some, but not all, of a column/row selected. */
259 button:hover.itembar, button:hover.itembar * {
260 color: red;
261 font-weight: bold;
265 /* Small padding between and around toolbars, but not double between */
266 box > box > toolbar {
267 padding-top: 1pt;
268 padding-bottom: 0pt;
271 box > box:last-child > toolbar {
272 padding-top: 1pt;
273 padding-bottom: 1pt;
276 /* ------------------------------------------------------------------------- */