Need to add the navigation background images
[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 /* Tables */
166 /*******************************************************************/
167
168 table
169 {
170 border-width: 1px;
171 border-style: solid;
172 border-color: rgb(123, 170, 90);
173 border-collapse: collapse;
174
175 background-color: rgb(255, 255, 255);
176
177 margin: 10px 0px 10px 0px;
178
179 width: 100%;
180 }
181
182 thead
183 {
184 background-color: rgb(123, 170, 90);
185
186 font-size: 14px;
187 font-weight: bold;
188 color: rgb(0, 0, 0);
189
190 text-align: center;
191 }
192
193 thead td
194 {
195 padding: 7px;
196 }
197
198 tr
199 {
200 border-collapse: collapse;
201 }
202
203 .headings
204 {
205 background-color: rgb(203, 234, 148);
206
207 font-size: 12px;
208 font-weight: bold;
209 color: rgb(62, 76, 49);
210 }
211
212 .headings td
213 {
214 text-align: center;
215 }
216
217 .headings td:first-child
218 {
219 text-align: left;
220 }
221
222 .headings td:last-child
223 {
224 text-align: right;
225 }
226
227 table tr td
228 {
229 padding: 4px;
230 }
231
232 table .alt1
233 {
234 background-color: rgb(255, 255, 255);
235 }
236
237 table .alt2
238 {
239 background-color: rgb(237, 245, 230);
240 }
241
242 /*******************************************************************/
243 /* Boxes */
244 /*******************************************************************/
245
246 /* Big, red box to display errors */
247 .error-box
248 {
249 border-width: 5px;
250 border-style: solid;
251 border-color: rgb(252, 11, 29);
252
253 padding: 4px;
254 margin: 10px 0px 10px 0px;
255
256 background-color: rgb(247, 170, 170);
257
258 color: rgb(252, 11, 29);
259 }
260
261 /* Naming the error box */
262 .error-box h1
263 {
264 font-size: 14px;
265 }
266
267 /* Green box to display messages */
268 .message-box
269 {
270 border-width: 5px;
271 border-style: solid;
272 border-color: rgb(109, 187, 45);
273
274 padding: 4px;
275 margin: 10px 0px 10px 0px;
276
277 background-color: rgb(209, 249, 170);
278
279 color: rgb(109, 187, 45);
280 }
281
282 /* Naming the box */
283 .message-box h1
284 {
285 font-size: 14px;
286 }
287
288 /*******************************************************************/
289 /* Navigation */
290 /*******************************************************************/
291
292 /* Creates the navigation bar */
293 #nav
294 {
295 border-width: 0px 4px 0px 0px;
296 border-color: rgb(109, 187, 45);
297 border-style: solid;
298
299 position: absolute;
300 top: 0px;
301 bottom: 0px;
302 left: 0px;
303 z-index: 100;
304
305 width: 250px;
306 height: 100%;
307
308 background-color: rgb(64, 64, 64);
309 }
310
311 /* Adjust the body div if there's a navigation bar */
312 #nav + #body, #nav + #title + #body, #nav + #title
313 {
314 position: fixed;
315 top: 0px;
316 bottom: 0px;
317 left: 250px;
318 right: 0px;
319
320 overflow: auto;
321 }
322
323 /* With a title and navigation bar, we need to move body content down a little */
324 #nav + #title + #body
325 {
326 top: 40px;
327 }
328
329 /* Used to title the system */
330 #nav h1
331 {
332 font-size: 24px;
333 font-weight: bold;
334 color: rgb(255, 255, 255);
335 text-align: center;
336 }
337
338 /* Used for top links in the navbar */
339 #nav h2, #nav h2 a:link, #hav h2 a:active, #nav h2 a:visited
340 {
341 font-size: 12px;
342 font-weight: normal;
343 color: rgb(203, 234, 148);
344 text-align: center;
345 text-decoration: none;
346 }
347
348 #nav h2 a:hover
349 {
350 text-decoration: underline;
351 }
352
353 /* Navigation list */
354 #nav ul
355 {
356 margin-top: 10px;
357 }
358
359 /* Navigation sections */
360 #nav ul li
361 {
362 list-style-type: none;
363
364 border-width: 0px 0px 1px 0px;
365 border-style: solid;
366 border-color: rgb(0, 0, 0);
367
368 font-size: 18px;
369 font-weight: bold;
370 color: rgb(203, 234, 148);
371 text-indent: 10px;
372
373 line-height: 50px;
374
375 background-image: url(<?php echo $path ?>/DecoratorResources/nav-section.jpg);
376 background-repeat: repeat-x;
377 }
378
379 #nav ul li:first-child
380 {
381 border-top-width: 1px;
382 }
383
384 /* Expanded navigation section */
385 #nav ul li.expand
386 {
387 text-align: center;
388 color: rgb(40, 42, 34);
389
390 background-image: url(<?php echo $path ?>/DecoratorResources/nav-section-open.jpg);
391 }
392
393 /* Navigation items list */
394 #nav ul li ul
395 {
396 margin: 0px;
397 }
398
399 /* Navigation items */
400 #nav ul li ul li
401 {
402 border: none;
403
404 padding: 2px 4px 2px 10px;
405 margin: 0px;
406
407 height: auto;
408
409 font-size: 12px;
410 font-weight: normal;
411 color: rgb(0, 0, 0);
412 line-height: 15px;
413
414 background-color: rgb(203, 234, 148);
415 background-image: none;
416 }
417
418 #nav ul li ul li:first-child
419 {
420 padding-top: 10px;
421 }
422
423 #nav ul li ul li:last-child
424 {
425 padding-bottom: 10px;
426 }
427
428 #nav ul li ul li a
429 {
430 text-decoration: none;
431 color: rgb(0, 0, 0);
432 }
433
434 #nav ul li ul li a:hover
435 {
436 text-decoration: underline;
437 }
438
439 /* Selected navigation items */
440 #nav ul li ul li.selected
441 {
442 font-weight: bold;
443 font-style: italic;
444 }