Merge of template patch from Steve Brown
[squirrelmail.git] / templates / default / stylesheet.tpl
CommitLineData
02b2c3f1 1<?php
2/**
3 * SquirrelMail CSS template
4 *
5 * Template is used by style.php script to generate css file used by
6 * SquirrelMail scripts.
7 *
8 * Available constants
9 *
10 * Color codes used by selected theme:
11 * <ul>
12 * <li>SQM_BACKGROUND - background color
13 * <li>SQM_BACKGROUND_LEFT - background of folder tree
14 * <li>SQM_TEXT_STANDARD - text color
15 * <li>SQM_TEXT_STANDARD_LEFT - text color of folder tree
bd26fc82 16 * <li>SQM_LINK - color of links
17 * <li>SQM_LINK_LEFT - color of links in folder tree
18 * <li>SQM_TEXT_SPECIAL - color of special folder links in folder tree
02b2c3f1 19 * <li>todo: other constants should be documented here
20 * </ul>
21 *
22 * Optional template variables
23 * <ul>
24 * <li>fontfamily - string with list of fonts used by selected style.
25 * <li>fontsize - integer with selected font size value.
26 * </ul>
27 * Variables are set to empty string, when value is not set.
28 *
47ccfad4 29 * @copyright &copy; 2005-2006 The SquirrelMail Project Team
02b2c3f1 30 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
31 * @version $Id$
32 * @package squirrelmail
33 * @subpackage templates
34 */
35
36/* retrieve the template vars */
37extract($t);
38
39?>
ca23755b 40/* older css template */
02b2c3f1 41body, td, th, dd, dt, h1, h2, h3, h4, h5, h6, p, ol, ul, li {
ca23755b 42<?php
43 if($fontfamily) echo ' font-family: '.$fontfamily.";\n";
44?>
02b2c3f1 45}
46body, small {
ca23755b 47<?php
48 if($fontsize) echo ' font-size: '.($fontsize-2)."pt;\n";
49?>
50}
51td, th {
52<?php
53 if($fontsize) echo ' font-size: '.$fontsize."pt;\n";
54?>
55}
56textarea, pre {
57 font-family: monospace;
58<?php
59 if($fontsize) echo ' font-size: '.($fontsize-1)."pt;\n";
60?>
02b2c3f1 61}
62
ca23755b 63/* page body formatting */
02b2c3f1 64body {
65 color: <?php echo SQM_TEXT_STANDARD; ?>;
66 background-color: <?php echo SQM_BACKGROUND; ?>;
67}
68body.leftmain {
69 color: <?php echo SQM_TEXT_STANDARD_LEFT; ?>;
70 background-color: <?php echo SQM_BACKGROUND_LEFT; ?>;
71}
72
bd26fc82 73/* right links */
74a:link, a:visited, a:hover, a:active {
02b2c3f1 75 color: <?php echo SQM_LINK; ?>;
76}
ca23755b 77
02b2c3f1 78/* left links */
bd26fc82 79.leftmain a:link, .leftmain a:visited, .leftmain a:hover, .leftmain a:active {
02b2c3f1 80 color: <?php echo SQM_LINK_LEFT; ?>;
81}
bd26fc82 82.leftspecial, .leftspecial a:link, .leftspecial a:visited, .leftspecial a:hover, .leftspecial a:active {
83 color: <?php echo SQM_TEXT_SPECIAL; ?>;
84}
85.leftnoselect a:link, .leftnoselect a:visited, .leftnoselect a:hover, .leftnoselect a:active {
86 color: <?php echo SQM_TEXT_HIGHLIGHT; ?>;
87}
02b2c3f1 88
ca23755b 89/* highlighted texts */
90.highlight {
91 color: <?php echo SQM_TEXT_HIGHLIGHT; ?>;
02b2c3f1 92}
93
94/* formating of error template */
95.thead_caption {
96 font-weight: bold;
97 text-align: center;
98}
99
100.error_list {
101}
102.error_table {
103 color: <?php echo $color[14]; ?>;
104 border: 2px solid <?php echo $color[0]; ?>;
105 background-color: <?php echo $color[3]; ?>;
106 width: 100%;
107}
108.error_thead {
109 background-color: <?php echo $color[10]; ?>;
110}
111.error_thead_caption {
112 background-color: <?php echo $color[10]; ?>;
113}
114.error_row {
115 color: <?php echo $color[14]; ?>;
116}
117.error_val {
118 color: <?php echo $color[8]; ?>;
119 width: 80%;
120 border: 2px solid <?php echo $color[0]; ?>;
121
122}
123.error_key {
124 width: 20%;
125 border: 2px solid <?php echo $color[0]; ?>;
126 color: <?php echo $color[14]; ?>;
127 font-weight: bold;
128 font-style: italic;
129 background-color: <?php echo $color[0]; ?>;
130}
131
132/* form fields */
133input.sqmtextfield{
134}
135input.sqmpwfield {
136}
137input.sqmcheckbox {
138}
139input.sqmradiobox {
140}
141input.sqmhiddenfield {
142}
143input.sqmsubmitfield {
144}
145input.sqmresetfield {
146}
147input.sqmtextarea {
148}