4
Sahana - Default Theme - Stylesheet
5
-----------------------------------------------------------------------------------
6
designer : Prabhath Sirisena - prabhath@vesess.com - http://nidahas.com
7
updated : Priyanga Fonseka - jo@opensource.lk
8
updated for SahanaPy : Fran Boon - francisboon@gmail.com
9
Some content used from: http://matthewjamestaylor.com/blog/perfect-full-page.htm
11
Selectors are listed in their order of appearance in the html, where applicable.
12
----------------------------------------------------------------------------------
14
|---- Neutralizing Styles
15
|---- Basic Page Formatting Styles
19
|---- Content ( Home, Result, Module specific styles )
21
|---- Form Layout Styles
22
|---- Popup Form Styles
23
|---- Popup Menu Styles
24
|---- Message Display Styles
28
/* Neutralizing Styles
29
------------------------------------------------------------------------------- */
30
/* Neutralize styling: Elements we want to clean out entirely */
37
font: 100%/125% Arial, Helvetica, sans-serif; }
39
/* Neutralize styling: Elements with a vertical margin */
40
h1, h2, h3, h4, h5, h6, p, pre,
41
blockquote, ul, ol, dl,
42
address { margin: 0 0 1em 0;
45
/* Apply left margin: Only to the few elements that need it */
46
dd, blockquote { margin-left: 1em; }
47
/* Breaks CSS dropdown menus
48
li { margin-left: 1em; }
51
/* Clear floats without structural markup */
52
.clearfix:after { content: ".";
58
/* Hides from IE-mac */
59
* html .clearfix { height: 1%; }
61
/* Basic Page Formatting Styles
62
------------------------------------------------------------------------------- */
63
body { font-size: 0.8em;
68
/* Miscellaneous conveniences: */
69
form label { cursor: pointer; }
70
fieldset { border: none; }
71
input, select, textarea { font-size: 100%; }
72
.hide { display: none; }
73
.mini { font-size: 80%; }
74
.wide { width: 100%; }
76
/* Input fields should give visual feedback when focussed */
77
input:focus { background-color: #ffffcc; }
78
select:focus { background-color: #ffffcc; }
79
textarea:focus { background-color: #ffffcc; }
81
/* Links should ALWAYS be unvisited */
83
text-decoration: underline; outline:0; }
84
a:hover { color: #c00;
85
text-decoration: none;
86
background-color: #ffffcc;
89
a:focus { outline:0; }
90
a img { border:none; }
92
table { border-collapse: collapse }
94
/* Now to layout elements... */
95
#header { border-bottom: #069 1px solid;
99
background: url(../../YOURLOGOHERE) #336699 no-repeat left top; }
101
/* response.menu_modules */
102
#menu_modules { position: relative;
104
background: #CACACA url(../../img/S3menu_back.png) repeat-x;
109
#modulenav { position: relative;
114
#modulenav ul { list-style: none; }
115
#modulenav li div a { color: #000; }
116
#modulenav a { text-decoration: none; }
117
#modulenav a:hover { color: #000;
119
#modulenav li li a { display: block;
121
padding: 5px 5px 5px 5px; }
122
#modulenav li li a:hover { background: #d2eaff;
124
#modulenav li { float: left;
128
border-width: 1px 0; }
131
#modulenav li div { text-align:center;
132
background: url(../../img/S3menu_side.png) right 10px no-repeat;
133
text-shadow: 1px 1px 1px #ffffff;
134
padding: 8px 10px 5px 15px; }
135
#modulenav li div.hovered,
136
#modulenav li div:hover { background: #676767 url(../../img/S3menu_hilight.png) repeat-x; }
139
#modulenav li ul { display: none;
146
border: #dedede 1px solid;
147
-moz-border-radius: 5px;
148
-webkit-border-radius: 5px;
149
-moz-box-shadow: 1px 1px 5px #454545;
150
-webkit-box-shadow: 1px 1px 5px #454545;}
151
#modulenav li>ul { top: auto;
153
#modulenav li li { display: block;
156
#modulenav li:hover ul { display: block; }
157
#modulenav li.over ul { display: block; }
159
.S3menulogo { background: url(../../img/S3menu_logo.png) left top no-repeat;
164
display: inline-block;
168
.S3menuHome { padding-left: 20px; }
170
/* response.menu_options */
171
#menu_options { position: relative;
178
#subnav { position: relative; margin: 0px; padding-left: 5px;}
181
#subnav ul { list-style: none; }
182
#subnav li div a { color: #000; }
183
#subnav a { text-decoration: none; }
184
#subnav a:hover { color: #000;
186
#subnav li li a { display: block;
188
padding: 5px 5px 5px 10px; }
189
#subnav li li a:hover { background: #d2eaff;
191
#subnav li { float: left;
195
border-width: 1px 0; }
198
#subnav li div { text-align:center;
199
background: url(../../img/S3menu_side.png) right 6px no-repeat;
200
text-shadow: 1px 1px 1px #ffffff;
201
padding: 4px 10px 2px 10px; }
202
#subnav li div.hovered,
203
#subnav li div:hover { background: #fff;
204
-moz-border-radius: 5px;
205
-webkit-border-radius: 5px;}
208
#subnav li ul { display: none;
215
border:#dedede 1px solid;
216
-moz-border-radius: 5px;
217
-webkit-border-radius: 5px;
218
-moz-box-shadow: 1px 1px 5px #454545;
219
-webkit-box-shadow: 1px 1px 5px #454545;
221
#subnav li>ul { top: auto;
223
#subnav li li { display: block;
227
#subnav li.over ul { display: block; }
229
/* Column container */
231
position: relative; /* This fixes the IE7 overflow hidden bug */
234
width: 100%; /* width of whole page */
235
overflow: hidden; /* This chops off any overhanging divs */
238
/* common column settings */
239
.col3left { float:left;
242
.col3mid, .col3right { float:right;
245
.col2left { float:left;
248
.col2right { float:right;
251
.col1, .col2, .col3 { float:left;
256
/* Full page settings */
258
background: #ccc; /* page background colour */
262
width: 98%; /* page width minus left and right padding */
263
left: 1%; /* page left padding */
269
border: 1px solid #bbb;
271
padding: 0px 30px 10px 30px;
273
-moz-box-shadow: 0px 0px 7px #888;
274
-webkit-box-shadow: 0px 0px 7px #888;
275
-moz-border-radius: 10px 10px 10px 10px;
276
-webkit-border-radius: 10px 10px 10px 10px;
279
#content h2 { color: #006699;
282
background: #006699_background;
283
border: 1px #c6d1f5 solid;
284
padding: 6px 10px 7px 10px;
285
margin: 0px -30px 10px -30px;
286
border-bottom: 1px solid #bbb;
287
text-shadow: 1px 2px 1px #fff;
288
-moz-border-radius: 10px 10px 0px 0px;
289
-webkit-border-radius: 10px 10px 0px 0px;
291
#content h3 { color:#006699;
294
border-bottom:1px #006699 solid;
295
margin-bottom:10px; }
296
#content h4 { color:#006699;
300
border-bottom:1px #003366 dotted;
301
margin-bottom:10px; }
304
/*#home { border: 10px #fff solid; }*/
305
#home p { text-align:center;
308
#home h2 { font-size:16px;
310
#footer { margin: 0 auto;
316
background: #336699 url(../../img/footback.gif) repeat-x;
317
border-top: #fff 1px solid;
319
a.help, a:link.help { color: #fff;
320
text-decoration: none;
321
margin-right: 10px; }
322
a:hover.help { background-color: #336699;
323
text-decoration: underline; }
324
a:visited.help { font-weight: normal;
329
/* Form Layout styles */
330
p.legend { margin-bottom: 1em; }
331
p.legend em { color: #c00;
332
font-style: normal; }
334
div.form-container { width: 100%;
336
div.form-container form { padding: 5px;
337
background-color: #fff;
338
border: #eee 1px solid;
339
background-color: #fbfbfb; }
340
div.form-container p { margin: 0.5em 0 0 0; }
341
div.form-container form p { margin: 0; }
342
div.form-container form p.note { font-style: italic;
346
div.form-container form input,
347
div.form-container form select { padding: 1px;
348
margin: 2px 0 2px 0; }
349
div.form-container form fieldset { margin:0 0 10px 0;
351
border: #ddd 1px solid;
352
background-color:#fff;}
353
div.form-container form legend { font-weight: bold;
355
div.form-container form fieldset div.brake { padding: 0.3em; }
356
div.form-container form fieldset label{ position:relative;
365
div.form-container form fieldset label.errorfield,
366
div.form-container form fieldset span.errorfield { color: #c00; }
367
div.form-container form fieldset label.value{display:block;
370
div.form-container form fieldset input.errorfield { border-color: #c00;
371
background-color: #fef; }
372
div.form-container form fieldset input:focus,
373
div.form-container form fieldset input.errorfield:focus,
374
div.form-container form fieldset textarea:focus { background-color: #ffffcc;
375
border-color: #fc6; }
376
div.form-container div.controlset label,
377
div.form-container div.controlset input { display: inline;
379
div.form-container div.controlset div { margin-left: 15em; }
380
div.form-container div.buttonrow { margin-left: 180px; }
382
/* Tabular data view */
383
div#table-container { width: 100%;
385
div#table-container th { border: 1px solid #ccc; }
386
div#table-container tr.even td { border: 1px solid #ccc;
388
div#table-container tr.odd td { border: 1px solid #ccc;
389
text-align: center; }
392
div.item-container { width: 100%;
394
div.item-container { margin: 5px 0 5px 0; }
397
div#map { width: 100%;
400
/* Big Buttons (e.g. RMS) */
401
div.question-container { text-align:center;
403
background-color:#F3F6FF;
404
border: solid 3px #bbb;
409
/* Required Field indicator */
413
/* For Key - ugly! */
418
.ajaxtip { position:static;
419
text-transform:uppercase;
422
background-image: url(../../img/help_off.gif); }
425
.ajaxtip span { display:none; }
427
.ajaxtip:hover { background-color:transparent;
428
background-image: url(../../img/help_on.gif); }
431
div#popup {background: #fff;}
433
/* Message Flash styles */
434
div.confirmation { color:#070;
437
border: #070 1px solid;
438
background: url(../../img/dialog-confirmation.png) #e5ffe5 no-repeat 5px 5px;
440
margin-bottom: 1.0em;
442
padding-bottom: 1.0em;
444
.confirmation p em { color:#070; }
448
border: #c00 1px solid;
449
background: url(../../img/dialog-error.png) #ffe5e5 no-repeat 5px 5px;
451
margin-bottom: 1.0em;
453
padding-bottom: 1.0em;
455
.error p em { color:#c00; }
456
.information { color:#748d8e;
459
border: #9ed8d7 1px solid;
460
background: url(../../img/dialog-information.png) #ecfdff no-repeat 5px 5px;
462
margin-bottom: 1.0em;
464
padding-bottom: 1.0em;
466
.information p em { color:#748d8e; }
467
.warning { color:#c00;
470
border: #fc6 1px solid;
471
background: url(../../img/dialog-warning.png) #ffc no-repeat 5px 5px;
473
margin-bottom: 1.0em;
475
padding-bottom: 1.0em;
477
.warning p em { color:#c00; }
479
/* Resource header */
480
div#rheader { margin-bottom: 16px; }
481
div#rheader table { width: 100%; }
482
div#rheader th { text-align: left;
484
div#rheader td { text-align: left;
485
padding: 1px 6px 1px 1px;
487
div#rheader_tabs { width: 100%;
488
padding: 10px 0px 2px 0px;
490
border-bottom: 1px solid #bbb;
493
div#rheader_tabs span { padding: 1px 3px 3px 3px;
494
-moz-border-radius: 3px 3px 0px 0px;
495
-webkit-border-radius: 3px 3px 0px 0px; }
497
div#rheader_tabs span.rheader_tab_other { border: 1px solid #bbb; border-bottom: 0; }
498
div#rheader_tabs span.rheader_tab_here { border: 2px solid #6699cc; border-bottom: 0; }
500
div#rheader_tabs span.rheader_tab_other a { color: #bbb;
501
text-decoration: None; }
503
div#rheader_tabs span.rheader_tab_here a { color: #006699;
504
text-decoration: None; }
506
/* Ext button (e.g. on Bulk Upload form */
507
#show-dialog-btn { border:1px solid #efefef;
511
/* Delphi Decision Maker */
512
.delphi_wide li { padding: 5px 20px;
515
.delphi_wide tr td { padding: 4px 30px;
516
border-bottom: 1px dotted; }
517
.delphi_wide thead { font-weight: bold; }
518
#delphi_pairs tr td { padding: 12px 30px; }
519
#delphi_problem_header a,
520
#delphi_problem_header strong { font-size: 105%;
524
.delphi_post_title { background: #729fcf;
526
.delphi_post { border: 1px dotted;
529
.delphi_post blockquote { margin: 2px 10px; }
530
.delphi_quote { cursor: pointer;
535
.delphi_q1 { border-left: 4px solid #edd400;
538
.delphi_q2 { border-left: 4px solid #3465a4; padding-left: 20px; color: #888a85; }
539
.delphi_q3 { border-left: 4px solid #73d216; padding-left: 30px; color: #555753; }
540
.delphi_q4 { border-left: 4px solid #f57900; padding-left: 40px; color: #888a85; }
541
.delphi_q5 { border-left: 4px solid #ef2929; padding-left: 50px; color: #555753; }
542
.delphi_q6 { border-left: 4px solid #75507b; padding-left: 60px; color: #888a85; }
543
.delphi_post_text { display: none; }
544
.delphi_post_dbtitle { font-weight: bold;}
546
.action-btn { text-decoration: none;
548
background-color: #006699_background;
549
border-right: 1px solid #6699cc;
550
border-bottom: 1px solid #6699cc;
551
border-left: 1px solid #c6d1f5;
552
border-top: 1px solid #c6d1f5;
553
padding: 2px 4px 2px 4px; }
555
.action-btn:hover { text-decoration: none;
557
background-color: #3377bb;
558
border-right: 1px solid #4589ce;
559
border-bottom: 1px solid #4589ce;
560
border-left: 1px solid #000;
561
border-top: 1px solid #000;
562
padding: 2px 4px 2px 4px; }
564
/* Home page specific */
567
background: url(../../YOURLOGOHERE) top right;
570
.modlist { list-style: none;
574
.modlist li { display: inline-block;
581
background: #E0F4FD url(../../img/home_modulebuttons.gif) repeat-x;
582
border: 1px solid #ababab;
583
-moz-border-radius: 10px;
584
-webkit-border-radius: 10px;
585
-moz-box-shadow: 2px 2px 5px #aaa;
586
-webkit-box-shadow: 2px 2px 5px #aaa;
589
.modlist li:hover{ background: #ffff99; }
590
.modlist li strong a { text-decoration: none;
592
.modlist li strong { display: block; margin-bottom: 5px; }
594
#list_formats { float: right; }