CSS cleanup for the navigation links
[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: ridge;
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 0px 1px 0px;
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(126, 131, 143);
133
134 border-style: solid;
135 border-width: 1px 0px 1px 0px;
136 border-bottom-color: rgb(64, 64, 64);
137 border-top-color: rgb(151, 154, 159);
138 }
139
140 /* The second type of row used in the alternation cycle */
141 .alt2
142 {
143 color: rgb(41, 63, 91);
144
145 background-color: rgb(126, 131, 143);
146
147 border-style: solid;
148 border-width: 1px 0px 1px 0px;
149 border-bottom-color: rgb(64, 64, 64);
150 border-top-color: rgb(151, 154, 159);
151 }
152
153 /* The third alternation, used in special cases */
154 .alt3
155 {
156 border-width: 0px;
157 }
158
159 /* The last row in the table (often used for the submit buttons) */
160 .tfoot
161 {
162 color: rgb(55, 55, 55);
163
164 background-color: rgb(143, 147, 158);
165
166 border-style: outset;
167 border-width: 1px;
168 }
169
170 /* ################################################################### */
171 /* Text elements */
172 /* ################################################################### */
173
174 /* Font settings for all non-styled elements */
175 body, p, td, tr, ol, ul
176 {
177 font-family: verdana, geneva, arial, helvetica, sans-serif;
178 font-size: 11px;
179 }
180
181 /* Small text (used in copyright) */
182 .smallfont, .copyright, dfn
183 {
184 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
185 font-size: 9px;
186 }
187
188 /* Description text */
189 dfn
190 {
191 font-style: italic;
192 }
193
194 /* Table headings */
195 .tcat, .thead, .tfoot
196 {
197 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
198 font-size: 12px;
199 }
200
201 /* Normal links */
202 a:link, a:visited, a:active
203 {
204 color: rgb(219, 227, 244);
205 }
206
207 /* Hover links */
208 a:hover, .tcat a:hover, .thead a:hover, .tfoot a:hover, .alt3 a:hover
209 {
210 color: rgb(180, 185, 199);
211 }
212
213 .copyright a:hover, .copyright a:link, .copyright a:visited, .copyright a:active
214 {
215 text-decoration: none;
216 }
217
218 /* Mono-space */
219 .code
220 {
221 font-family: 'courier new', courier, monospace;
222 font-size: 9pt;
223 }
224
225 /* ################################################################### */
226 /* Form styling elements */
227 /* ################################################################### */
228
229 /* Input elements in a form */
230 input, textarea, select, option
231 {
232 font-family: verdana, geneva, arial, helvetica, sans-serif;
233 font-size: 11px;
234 }
235
236 /* Input formatting */
237 .input
238 {
239 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
240 font-size: 11px;
241
242 text-indent: 5px;
243
244 margin: 3px 1px 1px 1px;
245 }
246
247 /* Button styling */
248 .button
249 {
250 color: rgb(0, 0, 0);
251
252 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
253 font-size: 11px;
254 font-weight: bold;
255
256 margin: 3px 1px 1px 1px;
257 }
258
259 /* ################################################################### */
260 /* Navigation panel */
261 /* ################################################################### */
262
263 /* The links that appear in the upper-right corner */
264 #toplinks
265 {
266 float: right;
267
268 font-size: 14px;
269 }
270
271 #toplinks #toplinks-links
272 {
273 font-size: 10px;
274 }
275
276 /* Wrapper for the entire navigation system; including tabs */
277 #wrapper
278 {
279 padding-top: 12px;
280 }
281
282 /* The content panel that draws the background color for the panel */
283 #contentbody
284 {
285 padding: 5px;
286
287 background-color: rgb(255, 255, 255);
288
289 border-color: rgb(124, 128, 135);
290 border-width: 1px;
291 border-style: solid;
292
293 width: 100%;
294 }
295
296 /* The actual tabbar */
297 #tabbar
298 {
299 height: 35px;
300
301 padding-left: 10px;
302
303 margin-bottom: -6px;
304 }
305
306 /* Links in the tabbar */
307 #tabbar a
308 {
309 float: left;
310
311 text-transform: uppercase;
312 text-decoration: none;
313
314 padding: 8px 15px 8px 15px;
315 margin: 0px 1px 0px 0px;
316 }
317
318 /* The current, active tab */
319 #tabbar .focus
320 {
321 font-weight: bold;
322
323 background-color: white;
324
325 border-color: rgb(124, 128, 135);
326 border-width: 1px 1px 0px 1px;
327 border-style: solid;
328 }
329
330 /* Main content frame <td> */
331 #mainbody
332 {
333 width: 80%;
334
335 vertical-align: top;
336 }
337
338 /* Menu frame <td> */
339 #menu
340 {
341 width: 20%;
342
343 vertical-align: top;
344 }
345
346
347
348 CSS;
349
350 if (!$included)
351 {
352 echo $css;
353 }
354
355 /*=====================================================================*\
356 || ###################################################################
357 || # $HeadURL$
358 || # $Id$
359 || ###################################################################
360 \*=====================================================================*/
361 ?>