adding some styles for left folder tree
[squirrelmail.git] / templates / default / stylesheet.tpl
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
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
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 *
29 * @copyright &copy; 1999-2005 The SquirrelMail Project Team
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 */
37 extract($t);
38
39 ?>
40 body, td, th, dd, dt, h1, h2, h3, h4, h5, h6, p, ol, ul, li {
41 <?php if($fontfamily) echo ' font-family: '.$fontfamily.";\n";?>
42 }
43 body, small {
44 <?php if($fontsize) echo ' font-size: '.($fontsize-2)."pt;\n";?>
45 }
46
47 body {
48 color: <?php echo SQM_TEXT_STANDARD; ?>;
49 background-color: <?php echo SQM_BACKGROUND; ?>;
50 }
51 body.leftmain {
52 color: <?php echo SQM_TEXT_STANDARD_LEFT; ?>;
53 background-color: <?php echo SQM_BACKGROUND_LEFT; ?>;
54 }
55
56 /* right links */
57 a:link, a:visited, a:hover, a:active {
58 color: <?php echo SQM_LINK; ?>;
59 }
60 /* left links */
61 .leftmain a:link, .leftmain a:visited, .leftmain a:hover, .leftmain a:active {
62 color: <?php echo SQM_LINK_LEFT; ?>;
63 }
64 .leftspecial, .leftspecial a:link, .leftspecial a:visited, .leftspecial a:hover, .leftspecial a:active {
65 color: <?php echo SQM_TEXT_SPECIAL; ?>;
66 }
67 .leftnoselect a:link, .leftnoselect a:visited, .leftnoselect a:hover, .leftnoselect a:active {
68 color: <?php echo SQM_TEXT_HIGHLIGHT; ?>;
69 }
70
71 td, th {
72 <?php if($fontsize) echo ' font-size: '.$fontsize."pt;\n";?>
73 }
74 textarea, pre {
75 font-family: monospace;
76 <?php if($fontsize) echo ' font-size: '.($fontsize-1)."pt;\n";?>
77 }
78
79 /* formating of error template */
80 .thead_caption {
81 font-weight: bold;
82 text-align: center;
83 }
84
85 .error_list {
86 }
87 .error_table {
88 color: <?php echo $color[14]; ?>;
89 border: 2px solid <?php echo $color[0]; ?>;
90 background-color: <?php echo $color[3]; ?>;
91 width: 100%;
92 }
93 .error_thead {
94 background-color: <?php echo $color[10]; ?>;
95 }
96 .error_thead_caption {
97 background-color: <?php echo $color[10]; ?>;
98 }
99 .error_row {
100 color: <?php echo $color[14]; ?>;
101 }
102 .error_val {
103 color: <?php echo $color[8]; ?>;
104 width: 80%;
105 border: 2px solid <?php echo $color[0]; ?>;
106
107 }
108 .error_key {
109 width: 20%;
110 border: 2px solid <?php echo $color[0]; ?>;
111 color: <?php echo $color[14]; ?>;
112 font-weight: bold;
113 font-style: italic;
114 background-color: <?php echo $color[0]; ?>;
115 }
116
117 /* form fields */
118 input.sqmtextfield{
119 }
120 input.sqmpwfield {
121 }
122 input.sqmcheckbox {
123 }
124 input.sqmradiobox {
125 }
126 input.sqmhiddenfield {
127 }
128 input.sqmsubmitfield {
129 }
130 input.sqmresetfield {
131 }
132 input.sqmtextarea {
133 }