Add Decorator.js to do the nav javascript stuff
[isso.git] / Decorator.css.php
1 <?php
2
3 $path = dirname(isset($_SERVER['SCRIPT_URL']) ? $_SERVER['SCRIPT_URL'] : $_SERVER['REQUEST_URI']);
4 header("Content-Type: text/css");
5
6 ?>
7 /*=====================================================================*
8 || ###################################################################
9 || # Blue Static ISSO Framework
10 || # Copyright (c)2005-2008 Blue Static
11 || #
12 || # This program is free software; you can redistribute it and/or modify
13 || # it under the terms of the GNU General Public License as published by
14 || # the Free Software Foundation; version 2 of the License.
15 || #
16 || # This program is distributed in the hope that it will be useful, but
17 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
19 || # more details.
20 || #
21 || # You should have received a copy of the GNU General Public License along
22 || # with this program; if not, write to the Free Software Foundation, Inc.,
23 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 || ###################################################################
25 \*=====================================================================*/
26
27 /* Reset all the annoying browser defaults */
28 * { margin: 0px; padding: 0px; }
29
30 html, body
31 {
32 height: 100%;
33 }
34
35 /* Main body tag */
36 body
37 {
38 background-color: rgb(232, 255, 198);
39 font-family: Verdana, Helvetica, Arial, sans-serif;
40 font-size: 12px;
41 }
42
43 /* Title section that appears at the top of pages */
44 #title
45 {
46 border-width: 0px 0px 1px 0px;
47 border-color: rgb(0, 0, 0);
48 border-style: solid;
49
50 height: 50px;
51 line-height: 50px;
52 width: 100%;
53
54 text-indent: 10px;
55 margin-bottom: -15px;
56
57 background-image: url(<?php echo $path ?>/DecoratorResources/title.jpg);
58 background-repeat: repeat-x;
59
60 font-size: 24px;
61 font-weight: bold;
62 color: rgb(255, 255, 255);
63 }
64
65 /* Body container that puts some padding on elements */
66 #body
67 {
68 padding: 20px;
69 }
70
71 /* Adds a small copyright footer */
72 #footer
73 {
74 margin-top: 25px;
75
76 text-align: center;
77 font-size: 10px;
78 }
79
80 #footer a
81 {
82 color: rgb(62, 76, 49);
83 text-decoration: none;
84 }
85
86 #footer a:hover
87 {
88 text-decoration: underline;
89 }
90
91 /*******************************************************************/
92 /* Form Elements */
93 /*******************************************************************/
94
95 /* Main form wrapper */
96 fieldset
97 {
98 border-width: 1px;
99 border-style: solid;
100 border-color: rgb(123, 170, 90);
101
102 background-color: rgb(255, 255, 255);
103
104 padding: 5px 9px 5px 9px;
105 margin: 10px 0px 10px 0px;
106 }
107
108 /* Form title */
109 legend
110 {
111 border-width: 0px 1px 0px 1px;
112 border-style: solid;
113 border-color: rgb(123, 170, 90);
114
115 padding: 3px 7px 3px 7px;
116
117 font-size: 14px;
118 font-weight: bold;
119 color: rgb(62, 76, 49);
120 }
121
122 /* Naming form elements */
123 fieldset dt label
124 {
125 font-weight: bold;
126 font-size: 12px;
127 }
128
129 /* Description for form elements/names */
130 fieldset label dfn
131 {
132 font-weight: normal;
133 font-style: italic;
134 font-size: 10px;
135 color: rgb(100, 100, 100);
136
137 display: block;
138 }
139
140 /* A field name */
141 fieldset dl dt
142 {
143 border-width: 0px 1px 0px 0px;
144 border-color: #7BAA5A;
145 border-style: solid;
146
147 padding: 0px 4px 0px 2px;
148 margin: 5px 0px 5px 0px;
149
150 width: 50%;
151 float: left;
152 }
153
154 /* Field value editor */
155 fieldset dl dd
156 {
157 padding: 4px 0px 2px 4px;
158 margin: 5px 0px 5px 0px;
159
160 width: 48%;
161 float: right;
162 }
163
164 /*******************************************************************/
165 /* Input Elements */
166 /*******************************************************************/
167
168 /* Give the input elements some styling */
169 input, select, textarea
170 {
171 border-width: 1px;
172 border-style: solid;
173 border-color: rgb(123, 170, 90);
174
175 padding: 3px;
176
177 background-color: rgb(237, 245, 230);
178 }
179
180 /*******************************************************************/
181 /* Tables */
182 /*******************************************************************/
183
184 table
185 {
186 border-width: 1px;
187 border-style: solid;
188 border-color: rgb(123, 170, 90);
189 border-collapse: collapse;
190
191 background-color: rgb(255, 255, 255);
192
193 margin: 10px 0px 10px 0px;
194
195 width: 100%;
196 }
197
198 thead
199 {
200 background-color: rgb(123, 170, 90);
201
202 font-size: 14px;
203 font-weight: bold;
204 color: rgb(0, 0, 0);
205
206 text-align: center;
207 }
208
209 thead td
210 {
211 padding: 7px;
212 }
213
214 tr
215 {
216 border-collapse: collapse;
217 }
218
219 .headings
220 {
221 background-color: rgb(203, 234, 148);
222
223 font-size: 12px;
224 font-weight: bold;
225 color: rgb(62, 76, 49);
226 }
227
228 .headings td
229 {
230 text-align: center;
231 }
232
233 .headings td:first-child
234 {
235 text-align: left;
236 }
237
238 .headings td:last-child
239 {
240 text-align: right;
241 }
242
243 table tr td
244 {
245 padding: 4px;
246 }
247
248 table .alt1
249 {
250 background-color: rgb(255, 255, 255);
251 }
252
253 table .alt2
254 {
255 background-color: rgb(237, 245, 230);
256 }
257
258 /*******************************************************************/
259 /* Boxes */
260 /*******************************************************************/
261
262 /* Big, red box to display errors */
263 .error-box
264 {
265 border-width: 5px;
266 border-style: solid;
267 border-color: rgb(252, 11, 29);
268
269 padding: 4px;
270 margin: 10px 0px 10px 0px;
271
272 background-color: rgb(247, 170, 170);
273
274 color: rgb(252, 11, 29);
275 }
276
277 /* Naming the error box */
278 .error-box h1
279 {
280 font-size: 14px;
281 }
282
283 /* Green box to display messages */
284 .message-box
285 {
286 border-width: 5px;
287 border-style: solid;
288 border-color: rgb(109, 187, 45);
289
290 padding: 4px;
291 margin: 10px 0px 10px 0px;
292
293 background-color: rgb(209, 249, 170);
294
295 color: rgb(109, 187, 45);
296 }
297
298 /* Naming the box */
299 .message-box h1
300 {
301 font-size: 14px;
302 }
303
304 /*******************************************************************/
305 /* Navigation */
306 /*******************************************************************/
307
308 /* Creates the navigation bar */
309 #nav
310 {
311 border-width: 0px 4px 0px 0px;
312 border-color: rgb(109, 187, 45);
313 border-style: solid;
314
315 position: absolute;
316 top: 0px;
317 bottom: 0px;
318 left: 0px;
319 z-index: 100;
320
321 width: 250px;
322 height: 100%;
323
324 background-color: rgb(64, 64, 64);
325 }
326
327 /* Adjust the body div if there's a navigation bar */
328 #nav + #body, #nav + #title + #body, #nav + #title
329 {
330 position: fixed;
331 top: 0px;
332 bottom: 0px;
333 left: 250px;
334 right: 0px;
335
336 overflow: auto;
337 }
338
339 /* With a title and navigation bar, we need to move body content down a little */
340 #nav + #title + #body
341 {
342 top: 40px;
343 }
344
345 /* Used to title the system */
346 #nav h1
347 {
348 font-size: 24px;
349 font-weight: bold;
350 color: rgb(255, 255, 255);
351 text-align: center;
352 }
353
354 /* Used for top links in the navbar */
355 #nav h2, #nav h2 a:link, #hav h2 a:active, #nav h2 a:visited
356 {
357 font-size: 12px;
358 font-weight: normal;
359 color: rgb(203, 234, 148);
360 text-align: center;
361 text-decoration: none;
362 }
363
364 #nav h2 a:hover
365 {
366 text-decoration: underline;
367 }
368
369 /* Navigation list */
370 #nav ul
371 {
372 margin-top: 10px;
373 }
374
375 /* Navigation sections */
376 #nav ul li
377 {
378 list-style-type: none;
379
380 border-width: 0px 0px 1px 0px;
381 border-style: solid;
382 border-color: rgb(0, 0, 0);
383
384 font-size: 18px;
385 font-weight: bold;
386 color: rgb(203, 234, 148);
387 text-indent: 10px;
388
389 line-height: 50px;
390
391 background-image: url(<?php echo $path ?>/DecoratorResources/nav-section.jpg);
392 background-repeat: repeat-x;
393 }
394
395 #nav ul li:first-child
396 {
397 border-top-width: 1px;
398 }
399
400 /* Expanded navigation section */
401 #nav ul li.expand
402 {
403 text-align: center;
404 color: rgb(40, 42, 34);
405
406 background-image: url(<?php echo $path ?>/DecoratorResources/nav-section-open.jpg);
407 }
408
409 /* Navigation items list */
410 #nav ul li ul
411 {
412 margin: 0px;
413 display: none;
414 }
415
416 /* Navigation items */
417 #nav ul li ul li
418 {
419 border: none;
420
421 padding: 2px 4px 2px 10px;
422 margin: 0px;
423
424 height: auto;
425
426 font-size: 12px;
427 font-weight: normal;
428 color: rgb(0, 0, 0);
429 line-height: 15px;
430
431 background-color: rgb(203, 234, 148);
432 background-image: none;
433 }
434
435 #nav ul li ul li:first-child
436 {
437 padding-top: 10px;
438 }
439
440 #nav ul li ul li:last-child
441 {
442 padding-bottom: 10px;
443 }
444
445 #nav ul li ul li a
446 {
447 text-decoration: none;
448 color: rgb(0, 0, 0);
449 }
450
451 #nav ul li ul li a:hover
452 {
453 text-decoration: underline;
454 }
455
456 /* Selected navigation items */
457 #nav ul li ul li.selected
458 {
459 font-weight: bold;
460 font-style: italic;
461 }