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 .leftmain a:link, .leftmain a:visited, .leftmain a:hover, .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; ?>;
86 .leftnoselect a:link, .leftnoselect a:visited, .leftnoselect a:hover, .leftnoselect a:active {
87 color: <?php echo SQM_TEXT_HIGHLIGHT; ?>;
90 /* highlighted texts */
92 color: <?php echo SQM_TEXT_HIGHLIGHT; ?>;
95 /* left_main.tpl definitions */
116 .sqm_lastRefreshTime {
122 /* formating of error template */
131 color: <?php echo $color[14]; ?>;
132 border: 2px solid <?php echo $color[0]; ?>;
133 background-color: <?php echo $color[3]; ?>;
137 background-color: <?php echo $color[10]; ?>;
139 .error_thead_caption {
140 background-color: <?php echo $color[10]; ?>;
143 color: <?php echo $color[14]; ?>;
146 color: <?php echo $color[8]; ?>;
148 border: 2px solid <?php echo $color[0]; ?>;
153 border: 2px solid <?php echo $color[0]; ?>;
154 color: <?php echo $color[14]; ?>;
157 background-color: <?php echo $color[0]; ?>;
169 input.sqmhiddenfield {
171 input.sqmsubmitfield {
173 input.sqmresetfield {
178 /* basic definitions */
189 border:1px solid <?php echo $color[0]; ?>;
204 /* login.tpl definitions */
230 background: <?php echo $color[0]; ?>;
234 .sqm_loginFieldName {
238 .sqm_loginFieldInput {
245 /* page_header.tpl definitions */
247 background: <?php echo $color[9]; ?>;
249 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
252 background: <?php echo $color[9]; ?>;
254 text-align: <?php echo SQM_ALIGN_RIGHT; ?>;
259 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
263 text-align: <?php echo SQM_ALIGN_RIGHT; ?>;
266 /* message_list.tpl definitions */
267 .table_messageListWrapper {
275 background: <?php echo $color[9]; ?>;
286 background: <?php echo $color[5]; ?>;
289 .table_messageList a {
293 .table_messageList tr.headerRow {
294 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
298 .table_messageList td.spacer {
300 background: <?php echo $color[0]; ?>;
303 .table_messageList tr {
306 .table_messageList tr.even {
307 background: <?php echo $color[12]; ?>;
309 .table_messageList tr.odd {
310 background: <?php echo $color[4]; ?>;
312 .table_messageList tr.mouse_over {
313 background: <?php echo $color[5]; ?>;
315 .table_messageList tr.clicked {
316 background: <?php echo (!empty($color[16])) ? $color[16] : $color[2]; ?>;
319 .table_messageList td {
322 .table_messageList td.col_check {
323 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
325 .table_messageList td.col_subject {
326 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
328 .table_messageList td.col_flags {
329 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
331 .table_messageList td.col_date {
334 .table_messageList td.col_text {
335 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
342 color: <?php echo $color[9]; ?>;
345 color: <?php echo $color[2]; ?>;
348 color: <?php echo $color[1]; ?>;
351 color: <?php echo $color[8]; ?>;
358 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
366 .message_list_controls {
367 background: <? echo $color[0]; ?>;
370 .message_control_button {
374 .message_control_buttons {
375 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
376 font-size:10px; /* replaces <small> tags to allow greater control of fonts w/ using an id. */
378 .message_control_delete {
379 text-align: <?php echo SQM_ALIGN_RIGHT; ?>;
380 font-size:10px; /* replaces <small> tags to allow greater control of fonts w/ using an id. */
382 .message_control_move {
383 text-align: <?php echo SQM_ALIGN_RIGHT; ?>;
384 font-size:10px; /* replaces <small> tags to allow greater control of fonts w/ using an id. */
389 background: <?php echo $color[4]; ?>;