3 * SquirrelMail CSS template
5 * Template is used by style.php script to generate css file used by
6 * SquirrelMail scripts.
10 * Color codes used by selected theme:
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
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
19 * <li>todo: other constants should be documented here
22 * Optional template variables
24 * <li>fontfamily - string with list of fonts used by selected style.
25 * <li>fontsize - integer with selected font size value.
27 * Variables are set to empty string, when value is not set.
29 * @copyright © 2005-2006 The SquirrelMail Project Team
30 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
32 * @package squirrelmail
33 * @subpackage templates
36 /* retrieve the template vars */
40 /* older css template */
41 body, td, th, dd, dt, h1, h2, h3, h4, h5, h6, p, ol, ul, li {
43 if($fontfamily) echo ' font-family: '.$fontfamily.";\n";
48 if($fontsize) echo ' font-size: '.($fontsize-2)."pt;\n";
53 if($fontsize) echo ' font-size: '.$fontsize."pt;\n";
57 font-family: monospace;
59 if($fontsize) echo ' font-size: '.($fontsize-1)."pt;\n";
63 /* page body formatting */
65 color: <?php echo SQM_TEXT_STANDARD; ?>;
66 background-color: <?php echo SQM_BACKGROUND; ?>;
69 color: <?php echo SQM_TEXT_STANDARD_LEFT; ?>;
70 background-color: <?php echo SQM_BACKGROUND_LEFT; ?>;
75 a:link, a:visited, a:hover, a:active {
76 color: <?php echo SQM_LINK; ?>;
80 .sqm_leftMain a:link, .sqm_leftMain a:visited, .sqm_leftMain a:hover, .sqm_leftMain a:active {
81 color: <?php echo SQM_LINK_LEFT; ?>;
83 .leftunseen, .leftspecial, .leftspecial a:link, .leftspecial a:visited, .leftspecial a:hover, .leftspecial a:active {
84 color: <?php echo SQM_TEXT_SPECIAL; ?>;
89 .leftnoselect a:link, .leftnoselect a:visited, .leftnoselect a:hover, .leftnoselect a:active {
90 color: <?php echo SQM_TEXT_HIGHLIGHT; ?>;
93 /* highlighted texts */
95 color: <?php echo SQM_TEXT_HIGHLIGHT; ?>;
98 /* left_main.tpl definitions */
119 .sqm_lastRefreshTime {
125 /* formating of error template */
134 color: <?php echo $color[14]; ?>;
135 border: 2px solid <?php echo $color[0]; ?>;
136 background-color: <?php echo $color[3]; ?>;
140 background-color: <?php echo $color[10]; ?>;
142 .error_thead_caption {
143 background-color: <?php echo $color[10]; ?>;
146 color: <?php echo $color[14]; ?>;
149 color: <?php echo $color[8]; ?>;
151 border: 2px solid <?php echo $color[0]; ?>;
156 border: 2px solid <?php echo $color[0]; ?>;
157 color: <?php echo $color[14]; ?>;
160 background-color: <?php echo $color[0]; ?>;
172 input.sqmhiddenfield {
174 input.sqmsubmitfield {
176 input.sqmresetfield {
181 /* basic definitions */
192 border:1px solid <?php echo $color[0]; ?>;
210 /* login.tpl definitions */
235 background: <?php echo $color[0]; ?>;
239 .sqm_loginFieldName {
243 .sqm_loginFieldInput {
250 /* page_header.tpl definitions */
252 background: <?php echo $color[9]; ?>;
254 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
257 background: <?php echo $color[9]; ?>;
259 text-align: <?php echo SQM_ALIGN_RIGHT; ?>;
264 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
268 text-align: <?php echo SQM_ALIGN_RIGHT; ?>;
271 /* message_list.tpl definitions */
272 .table_messageListWrapper {
280 background: <?php echo $color[9]; ?>;
291 background: <?php echo $color[5]; ?>;
294 .table_messageList a {
298 .table_messageList tr.headerRow {
299 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
303 .table_messageList td.spacer {
305 background: <?php echo $color[0]; ?>;
308 .table_messageList tr {
311 .table_messageList tr.even {
312 background: <?php echo $color[12]; ?>;
314 .table_messageList tr.odd {
315 background: <?php echo $color[4]; ?>;
317 .table_messageList tr.mouse_over {
318 background: <?php echo $color[5]; ?>;
320 .table_messageList tr.clicked {
321 background: <?php echo (!empty($color[16])) ? $color[16] : $color[2]; ?>;
324 .table_messageList td {
327 .table_messageList td.col_check {
328 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
330 .table_messageList td.col_subject {
331 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
333 .table_messageList td.col_flags {
334 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
336 .table_messageList td.col_date {
339 .table_messageList td.col_text {
340 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
347 color: <?php echo $color[9]; ?>;
350 color: <?php echo $color[2]; ?>;
353 color: <?php echo $color[1]; ?>;
356 color: <?php echo $color[8]; ?>;
363 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
371 .message_list_controls {
372 background: <? echo $color[0]; ?>;
375 .message_control_button {
379 .message_control_buttons {
380 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
381 font-size:10px; /* replaces <small> tags to allow greater control of fonts w/ using an id. */
383 .message_control_delete {
384 text-align: <?php echo SQM_ALIGN_RIGHT; ?>;
385 font-size:10px; /* replaces <small> tags to allow greater control of fonts w/ using an id. */
387 .message_control_move {
388 text-align: <?php echo SQM_ALIGN_RIGHT; ?>;
389 font-size:10px; /* replaces <small> tags to allow greater control of fonts w/ using an id. */
394 background: <?php echo $color[4]; ?>;