Some new colours might be nice
[isso.git] / printer.css.php
1 <?php
2 /*=====================================================================*\
3 || ###################################################################
4 || # Iris Studios Shared Object Framework [#]issoversion[#]
5 || # Copyright ©2002-[#]year[#] Iris Studios, Inc.
6 || #
7 || # This program is free software; you can redistribute it and/or modify
8 || # it under the terms of the GNU General Public License as published by
9 || # the Free Software Foundation; version [#]gpl[#] of the License.
10 || #
11 || # This program is distributed in the hope that it will be useful, but
12 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 || # more details.
15 || #
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
21
22 error_reporting(E_ALL & ~E_NOTICE);
23
24 $included = true;
25
26 if (!isset($GLOBALS['isso:callback']))
27 {
28 if (!method_exists($GLOBALS['isso:callback'], 'load'))
29 {
30 $included = false;
31 $path = (isset($_SERVER['SCRIPT_URL']) ? $_SERVER['SCRIPT_URL'] : $_SERVER['REQUEST_URI']);
32 $GLOBALS['isso:callback']->webpath = dirname($path) . '/';
33
34 // Gecko browsers need this to display right
35 header("Content-Type: text/css");
36 }
37 }
38
39 $css = <<<CSS
40 /*=====================================================================*\
41 || ###################################################################
42 || # Iris Studios Shared Object Framework [#]issoversion[#]
43 || # Copyright ©2002-[#]year[#] Iris Studios, Inc.
44 || #
45 || # This program is free software; you can redistribute it and/or modify
46 || # it under the terms of the GNU General Public License as published by
47 || # the Free Software Foundation; version [#]gpl[#] of the License.
48 || #
49 || # This program is distributed in the hope that it will be useful, but
50 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
51 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
52 || # more details.
53 || #
54 || # You should have received a copy of the GNU General Public License along
55 || # with this program; if not, write to the Free Software Foundation, Inc.,
56 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
57 || ###################################################################
58 \*=====================================================================*/
59
60 /* ################################################################### */
61 /* Body and table elements */
62 /* ################################################################### */
63
64 /* Work-around for Mozilla (bug #243751) and Opera (bug #???) bugs in viewpoint rendering */
65 html
66 {
67 height: 100%;
68 }
69
70 /* Main window background colour and font colour */
71 body
72 {
73 color: rgb(214, 216, 222);
74
75 background-color: rgb(47, 53, 64);
76 }
77
78 /* Border area around tables and inbetween spacing */
79 .tborder
80 {
81 border-style: groove;
82 border-width: 2px;
83 border-color: rgb(255, 255, 255);
84 }
85
86 /* First row set in all tables */
87 .tcat
88 {
89 color: rgb(30, 35, 46);
90
91 background-image: url({$GLOBALS['isso:callback']->webpath}images/tcat.gif);
92 background-color: rgb(91, 96, 101);
93 background-repeat: repeat-x;
94
95 border-style: outset;
96 border-width: 1px;
97 }
98
99 /* Links within the TCAT class */
100 .tcat a:link, .tcat a:visited, .tcat a:active
101 {
102 color: rgb(55, 55, 55);
103 }
104
105 /* Row under the TCAT row (often used for column headers) */
106 td.thead, .thead td, .alt3
107 {
108 color: rgb(45, 45, 45);
109
110 font-weight: bold;
111 font-size: 11px;
112
113 background-image: url({$GLOBALS['isso:callback']->webpath}images/thead.gif);
114 background-repeat: repeat-x;
115 background-color: rgb(156, 156, 156);
116
117 border-style: outset;
118 border-width: 1px;
119 }
120
121 /* Links for the THEAD class */
122 .thead a:link, .thead a:visited, .thead a:active, .alt3 a:link, .alt3 a:visited, .alt3 a:active
123 {
124 color: rgb(45, 45, 45);
125 }
126
127 /* The first type of row used in the alternation cycle */
128 .alt1
129 {
130 color: rgb(41, 63, 91);
131
132 background-color: rgb(143, 147, 158);
133 }
134
135 /* The second type of row used in the alternation cycle */
136 .alt2
137 {
138 color: rgb(41, 63, 91);
139
140 background-color: rgb(126, 131, 143);
141 }
142
143 /* The third alternation, used in special cases */
144 .alt3
145 {
146 border-width: 0px;
147 }
148
149 /* The last row in the table (often used for the submit buttons) */
150 .tfoot
151 {
152 color: rgb(55, 55, 55);
153
154 background-color: rgb(63, 66, 72);
155
156 border-style: outset;
157 border-width: 1px;
158 }
159
160 /* ################################################################### */
161 /* Text elements */
162 /* ################################################################### */
163
164 /* Font settings for all non-styled elements */
165 body, p, td, tr, ol, ul
166 {
167 font-family: verdana, geneva, arial, helvetica, sans-serif;
168 font-size: 11px;
169 }
170
171 /* Small text (used in copyright) */
172 .smallfont, .copyright, dfn
173 {
174 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
175 font-size: 9px;
176 }
177
178 /* Description text */
179 dfn
180 {
181 font-style: italic;
182 }
183
184 /* Table headings */
185 .tcat, .thead, .tfoot
186 {
187 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
188 font-size: 12px;
189 }
190
191 /* Normal links */
192 a:link, a:visited, a:active
193 {
194 color: rgb(180, 185, 199);
195 }
196
197 /* Hover links */
198 a:hover, .tcat a:hover, .thead a:hover, .tfoot a:hover, .alt3 a:hover
199 {
200 color: rgb(219, 227, 244);
201 }
202
203 .copyright a:hover, .copyright a:link, .copyright a:visited, .copyright a:active
204 {
205 text-decoration: none;
206 }
207
208 /* Mono-space */
209 .code
210 {
211 font-family: 'courier new', courier, monospace;
212 font-size: 9pt;
213 }
214
215 /* ################################################################### */
216 /* Form styling elements */
217 /* ################################################################### */
218
219 /* Input elements in a form */
220 input, textarea, select, option
221 {
222 font-family: verdana, geneva, arial, helvetica, sans-serif;
223 font-size: 11px;
224 }
225
226 /* Input formatting */
227 .input
228 {
229 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
230 font-size: 11px;
231
232 text-indent: 5px;
233
234 margin: 3px 1px 1px 1px;
235 }
236
237 /* Button styling */
238 .button
239 {
240 color: rgb(0, 0, 0);
241
242 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
243 font-size: 11px;
244 font-weight: bold;
245
246 margin: 3px 1px 1px 1px;
247 }
248
249 /* ################################################################### */
250 /* Navigation panel */
251 /* ################################################################### */
252
253 /* The background colour for the navigation frame */
254 .nav_body
255 {
256 background: rgb(136, 136, 136);
257 }
258
259 .nav_body a:link, .nav_body a:active, .nav_body a:hover, .nav_body a:visited
260 {
261 color: rgb(0, 0, 0);
262 text-decoration: none;
263 }
264
265 /* Formatting for groups of nav elements */
266 .nav_group
267 {
268 border-color: rgb(80, 84, 89);
269 border-style: solid;
270 border-width: 0px 2px 1px 2px;
271 }
272
273 /* Nav title border */
274 .nav_title
275 {
276 font-size: 11px;
277 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
278 font-weight: bold;
279
280 padding: 2px;
281 margin-top: 4px;
282
283 background-image: url({$GLOBALS['isso:callback']->webpath}images/thead.gif);
284 background-repeat: repeat-x;
285 background-color: rgb(156, 156, 156);
286
287 border-color: rgb(80, 84, 89);
288 border-style: solid;
289 border-width: 2px;
290 }
291
292 /* Cold nav items */
293 .nav_item
294 {
295 padding: 2px 2px 1px 7px;
296
297 font-size: 11px;
298 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
299 font-weight: normal;
300
301 color: rgb(0, 0, 0);
302
303 background-color: rgb(204, 204, 204);
304
305 border-color: rgb(80, 84, 89);
306 border-style: solid;
307 border-width: 0px 0px 1px 0px;
308 }
309
310 /* Hot nav items */
311 .nav_item:hover
312 {
313 background-color: rgb(242, 242, 242);
314 }
315
316 /* ################################################################### */
317 /* Template manager */
318 /* ################################################################### */
319
320 /* The body of the template manager */
321 .manager_body
322 {
323 background: rgb(0, 0, 0);
324 color: rgb(255, 255, 255);
325 }
326
327 /* A group of templates */
328 .manager_group
329 {
330 background: rgb(104, 110, 116);
331 color: rgb(255, 255, 255);
332 }
333
334 /* Items in a template group */
335 .manager_group_item
336 {
337 background: rgb(159, 169, 179);
338 color: rgb(55, 55, 55);
339 }
340 CSS;
341
342 if (!$included)
343 {
344 echo $css;
345 }
346
347 /*=====================================================================*\
348 || ###################################################################
349 || # $HeadURL$
350 || # $Id$
351 || ###################################################################
352 \*=====================================================================*/
353 ?>