BSTemplate now uses the entire file path when caching templates in the database
[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-2009 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
56 background-image: url(<?php echo $path ?>/DecoratorResources/title.jpg);
57 background-repeat: repeat-x;
58
59 font-size: 24px;
60 font-weight: bold;
61 color: rgb(255, 255, 255);
62 }
63
64 /* Body container that puts some padding on elements */
65 #body
66 {
67 padding: 5px 20px 20px 20px;
68 }
69
70 /* Adds a small copyright footer */
71 #footer
72 {
73 margin-top: 25px;
74
75 text-align: center;
76 font-size: 10px;
77 }
78
79 #footer a
80 {
81 color: rgb(62, 76, 49);
82 text-decoration: none;
83 }
84
85 #footer a:hover
86 {
87 text-decoration: underline;
88 }
89
90 /*******************************************************************/
91 /* Form Elements */
92 /*******************************************************************/
93
94 /* Main form wrapper */
95 fieldset
96 {
97 border-width: 1px;
98 border-style: solid;
99 border-color: rgb(123, 170, 90);
100
101 background-color: rgb(255, 255, 255);
102
103 padding: 5px 9px 5px 9px;
104 margin: 10px 0px 10px 0px;
105 }
106
107 /* Form title */
108 legend
109 {
110 border-width: 0px 1px 0px 1px;
111 border-style: solid;
112 border-color: rgb(123, 170, 90);
113
114 padding: 3px 7px 3px 7px;
115
116 font-size: 14px;
117 font-weight: bold;
118 color: rgb(62, 76, 49);
119 }
120
121 /* Naming form elements */
122 fieldset dt label
123 {
124 font-weight: bold;
125 font-size: 12px;
126 }
127
128 /* Description for form elements/names */
129 fieldset label dfn
130 {
131 font-weight: normal;
132 font-style: italic;
133 font-size: 10px;
134 color: rgb(100, 100, 100);
135
136 display: block;
137 }
138
139 /* A field name */
140 fieldset dl dt
141 {
142 border-width: 0px 1px 0px 0px;
143 border-color: #7BAA5A;
144 border-style: solid;
145
146 padding: 0px 4px 0px 2px;
147 margin: 5px 0px 5px 0px;
148
149 width: 50%;
150 float: left;
151 }
152
153 /* Field value editor */
154 fieldset dl dd
155 {
156 padding: 4px 0px 2px 4px;
157 margin: 5px 0px 5px 0px;
158
159 width: 48%;
160 float: right;
161 }
162
163 /*******************************************************************/
164 /* Input Elements */
165 /*******************************************************************/
166
167 /* Give the input elements some styling */
168 input, select, textarea
169 {
170 border-width: 1px;
171 border-style: solid;
172 border-color: rgb(123, 170, 90);
173
174 padding: 3px;
175
176 background-color: rgb(237, 245, 230);
177 }
178
179 /*******************************************************************/
180 /* Tables */
181 /*******************************************************************/
182
183 /* Standard formatting for all tables */
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 /* Title of the table */
199 thead
200 {
201 background-color: rgb(123, 170, 90);
202
203 font-size: 14px;
204 font-weight: bold;
205 color: rgb(0, 0, 0);
206
207 text-align: center;
208 }
209
210 thead td
211 {
212 padding: 7px;
213 }
214
215 /* Used for mutli-column data that requires column headings */
216 .headings
217 {
218 background-color: rgb(203, 234, 148);
219
220 font-size: 12px;
221 font-weight: bold;
222 color: rgb(62, 76, 49);
223 }
224
225 .headings td
226 {
227 text-align: center;
228 }
229
230 .headings td:first-child
231 {
232 text-align: left;
233 }
234
235 .headings td:last-child
236 {
237 text-align: right;
238 }
239
240 /* Data formatting for tables */
241 table tr td
242 {
243 padding: 4px;
244 }
245
246 /* Data background color, option 1 */
247 table .alt1
248 {
249 background-color: rgb(255, 255, 255);
250 }
251
252 /* Data background color, option 2 */
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: 51px; /* Height of #title + border */
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 }