Making the background-position bit work by setting html{height:100%}
[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(0, 0, 0);
74
75 background-color: rgb(255, 255, 255);
76 background-image: url({$GLOBALS['isso:callback']->webpath}images/body.gif);
77 background-repeat: repeat-x;
78 background-position: bottom;
79 }
80
81 /* Border area around tables and inbetween spacing */
82 .tborder
83 {
84 border: ridge 4px;
85 }
86
87 /* First row set in all tables */
88 .tcat
89 {
90 color: rgb(55, 55, 55);
91
92 background-image: url({$GLOBALS['isso:callback']->webpath}images/tcat.gif);
93 background-color: rgb(91, 96, 101);
94 background-repeat: repeat-x;
95
96 border-style: outset;
97 border-width: 1px;
98 }
99
100 /* Links within the TCAT class */
101 .tcat a:link, .tcat a:visited, .tcat a:active
102 {
103 color: rgb(55, 55, 55);
104 }
105
106 /* Row under the TCAT row (often used for column headers) */
107 td.thead, .thead td, .alt3
108 {
109 color: rgb(45, 45, 45);
110
111 font-weight: bold;
112 font-size: 11px;
113
114 background-image: url({$GLOBALS['isso:callback']->webpath}images/thead.gif);
115 background-repeat: repeat-x;
116 background-color: rgb(156, 156, 156);
117
118 border-style: outset;
119 border-width: 1px;
120 }
121
122 /* Links for the THEAD class */
123 .thead a:link, .thead a:visited, .thead a:active, .alt3 a:link, .alt3 a:visited, .alt3 a:active
124 {
125 color: rgb(45, 45, 45);
126 }
127
128 /* The first type of row used in the alternation cycle */
129 .alt1
130 {
131 color: rgb(41, 63, 91);
132
133 background-color: rgb(204, 204, 204);
134 }
135
136 /* The second type of row used in the alternation cycle */
137 .alt2
138 {
139 color: rgb(41, 63, 91);
140
141 background-color: rgb(229, 229, 229);
142 }
143
144 /* The third alternation, used in special cases */
145 .alt3
146 {
147 border-width: 0px;
148 }
149
150 /* The last row in the table (often used for the submit buttons) */
151 .tfoot
152 {
153 color: rgb(55, 55, 55);
154
155 background-color: rgb(222, 222, 222);
156
157 border-style: outset;
158 border-width: 1px;
159 }
160
161 /* ################################################################### */
162 /* Text elements */
163 /* ################################################################### */
164
165 /* Font settings for all non-styled elements */
166 body, p, td, tr, ol, ul
167 {
168 font-family: verdana, geneva, arial, helvetica, sans-serif;
169 font-size: 12px;
170 }
171
172 /* Small text (used in copyright) */
173 .smallfont, .copyright, dfn
174 {
175 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
176 font-size: 11px;
177 }
178
179 /* Description text */
180 dfn
181 {
182 font-style: italic;
183 }
184
185 /* Table headings */
186 .tcat, .thead, .tfoot
187 {
188 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
189 font-size: 12px;
190 }
191
192 /* Normal links */
193 a:link, a:visited, a:active
194 {
195 color: rgb(41, 63, 91);
196 }
197
198 /* Hover links */
199 a:hover, .tcat a:hover, .thead a:hover, .tfoot a:hover, .alt3 a:hover
200 {
201 color: rgb(158, 0, 0);
202 }
203
204 .copyright a:hover, .copyright a:link, .copyright a:visited, .copyright a:active
205 {
206 text-decoration: none;
207 }
208
209 /* Mono-space */
210 .code
211 {
212 font-family: 'courier new', courier, monospace;
213 font-size: 9pt;
214 }
215
216 /* ################################################################### */
217 /* Form styling elements */
218 /* ################################################################### */
219
220 /* Input elements in a form */
221 input, textarea, select, option
222 {
223 font-family: 12px verdana, geneva, arial, helvetica, sans-serif;
224 font-size: 12px;
225 }
226
227 /* Input formatting */
228 .input
229 {
230 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
231 font-size: 11px;
232
233 text-indent: 5px;
234
235 margin: 3px 1px 1px 1px;
236 }
237
238 /* Button styling */
239 .button
240 {
241 color: rgb(0, 0, 0);
242
243 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
244 font-size: 11px;
245 font-weight: bold;
246
247 margin: 3px 1px 1px 1px;
248 }
249
250 /* ################################################################### */
251 /* Navigation panel */
252 /* ################################################################### */
253
254 /* The background colour for the navigation frame */
255 .nav_body
256 {
257 background: rgb(136, 136, 136);
258 }
259
260 .nav_body a:link, .nav_body a:active, .nav_body a:hover, .nav_body a:visited
261 {
262 color: rgb(0, 0, 0);
263 text-decoration: none;
264 }
265
266 /* Formatting for groups of nav elements */
267 .nav_group
268 {
269 border-color: rgb(98, 107, 152);
270 border-style: solid;
271 border-width: 0px 2px 1px 2px;
272 }
273
274 /* Nav title border */
275 .nav_title
276 {
277 font-size: 11px
278 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
279 font-weight: bold;
280
281 padding: 2px;
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(98, 107, 152);
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(98, 107, 152);
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: #28394E;
331 color: #8994A4;
332 }
333
334 /* Items in a template group */
335 .manager_group_item
336 {
337 background: #364D6F;
338 color: #AABBD3;
339 }
340 CSS;
341
342 if (!$included)
343 {
344 echo $css;
345 }
346
347 /*=====================================================================*\
348 || ###################################################################
349 || # $HeadURL$
350 || # $Id$
351 || ###################################################################
352 \*=====================================================================*/
353 ?>