- Drop obsolete script plugins/make_archive.pl.
[squirrelmail.git] / templates / default / stylesheet.tpl
CommitLineData
02b2c3f1 1<?php
52a3af10 2
02b2c3f1 3/**
4 * SquirrelMail CSS template
5 *
e3812cb2 6 * Template is used by style.php script to generate css file used by
02b2c3f1 7 * SquirrelMail scripts.
e3812cb2 8 *
02b2c3f1 9 * Available constants
10 *
11 * Color codes used by selected theme:
12 * <ul>
13 * <li>SQM_BACKGROUND - background color
14 * <li>SQM_BACKGROUND_LEFT - background of folder tree
15 * <li>SQM_TEXT_STANDARD - text color
16 * <li>SQM_TEXT_STANDARD_LEFT - text color of folder tree
bd26fc82 17 * <li>SQM_LINK - color of links
18 * <li>SQM_LINK_LEFT - color of links in folder tree
19 * <li>SQM_TEXT_SPECIAL - color of special folder links in folder tree
02b2c3f1 20 * <li>todo: other constants should be documented here
21 * </ul>
22 *
23 * Optional template variables
24 * <ul>
25 * <li>fontfamily - string with list of fonts used by selected style.
26 * <li>fontsize - integer with selected font size value.
27 * </ul>
28 * Variables are set to empty string, when value is not set.
29 *
47ccfad4 30 * @copyright &copy; 2005-2006 The SquirrelMail Project Team
02b2c3f1 31 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
32 * @version $Id$
33 * @package squirrelmail
34 * @subpackage templates
35 */
36
37/* retrieve the template vars */
38extract($t);
116e1263 39//return false;
02b2c3f1 40?>
ca23755b 41/* older css template */
02b2c3f1 42body, td, th, dd, dt, h1, h2, h3, h4, h5, h6, p, ol, ul, li {
ca23755b 43<?php
e3812cb2 44if($fontfamily) echo ' font-family: '.$fontfamily.";\n";
ca23755b 45?>
02b2c3f1 46}
47body, small {
ca23755b 48<?php
e3812cb2 49if($fontsize) echo ' font-size: '.($fontsize-2)."pt;\n";
ca23755b 50?>
51}
52td, th {
53<?php
e3812cb2 54if($fontsize) echo ' font-size: '.$fontsize."pt;\n";
ca23755b 55?>
56}
57textarea, pre {
e3812cb2 58font-family: monospace;
ca23755b 59<?php
e3812cb2 60if($fontsize) echo ' font-size: '.($fontsize-1)."pt;\n";
ca23755b 61?>
02b2c3f1 62}
63
ca23755b 64/* page body formatting */
02b2c3f1 65body {
66 color: <?php echo SQM_TEXT_STANDARD; ?>;
67 background-color: <?php echo SQM_BACKGROUND; ?>;
68}
29997535 69body.sqm_leftMain {
02b2c3f1 70 color: <?php echo SQM_TEXT_STANDARD_LEFT; ?>;
71 background-color: <?php echo SQM_BACKGROUND_LEFT; ?>;
96f180f6 72 text-align: left;
02b2c3f1 73}
74
bd26fc82 75/* right links */
76a:link, a:visited, a:hover, a:active {
02b2c3f1 77 color: <?php echo SQM_LINK; ?>;
78}
ca23755b 79
02b2c3f1 80/* left links */
29997535 81.sqm_leftMain a:link, .sqm_leftMain a:visited, .sqm_leftMain a:hover, .sqm_leftMain a:active {
02b2c3f1 82 color: <?php echo SQM_LINK_LEFT; ?>;
83}
e32c931f 84
29997535 85.leftunseen, .leftspecial, .leftspecial a:link, .leftspecial a:visited, .leftspecial a:hover, .leftspecial a:active {
bd26fc82 86 color: <?php echo SQM_TEXT_SPECIAL; ?>;
87}
e32c931f 88
bd26fc82 89.leftnoselect a:link, .leftnoselect a:visited, .leftnoselect a:hover, .leftnoselect a:active {
90 color: <?php echo SQM_TEXT_HIGHLIGHT; ?>;
91}
02b2c3f1 92
ca23755b 93/* highlighted texts */
94.highlight {
95 color: <?php echo SQM_TEXT_HIGHLIGHT; ?>;
02b2c3f1 96}
97
02b2c3f1 98.error_table {
99 color: <?php echo $color[14]; ?>;
100 border: 2px solid <?php echo $color[0]; ?>;
101 background-color: <?php echo $color[3]; ?>;
02b2c3f1 102}
103.error_thead {
104 background-color: <?php echo $color[10]; ?>;
105}
106.error_thead_caption {
107 background-color: <?php echo $color[10]; ?>;
108}
109.error_row {
110 color: <?php echo $color[14]; ?>;
111}
112.error_val {
113 color: <?php echo $color[8]; ?>;
02b2c3f1 114 border: 2px solid <?php echo $color[0]; ?>;
115
116}
117.error_key {
02b2c3f1 118 border: 2px solid <?php echo $color[0]; ?>;
119 color: <?php echo $color[14]; ?>;
02b2c3f1 120 background-color: <?php echo $color[0]; ?>;
121}
122
e3812cb2 123
301d1912 124td.header1 {
125 background: <?php echo $color[0]; ?>;
126 text-align: center;
127 font-weight: bold;
128}
129
130
131td.header2 {
132 background: <?php echo $color[9]; ?>;
133 text-align: center;
134 font-weight: bold;
135 padding-top: 4px;
136 padding-bottom: 4px;
137}
138
e3812cb2 139.table_standard {
e3812cb2 140 border:1px solid <?php echo $color[0]; ?>;
e3812cb2 141}
142
8f8188ae 143.sqm_loginOrgName, .sqm_signoutBar {
96f180f6 144 background: <?php echo $color[0]; ?>;
c03e9db0 145}
146
8f8188ae 147.sqm_signout {
148 margin-top: 2em;
149 text-align: center;
150}
151
c03e9db0 152.sqm_motd {
c03e9db0 153 background: <?php echo $color[9]; ?>;
c03e9db0 154}
155.sqm_motd td {
c03e9db0 156 background: <?php echo $color[4]; ?>;
c03e9db0 157}
158
159/* empty_folder.tpl defs */
c03e9db0 160.sqm_emptyFolder {
c03e9db0 161 background: <?php echo $color[9]; ?>;
c03e9db0 162}
163.sqm_emptyFolder td {
c03e9db0 164 background: <?php echo $color[4]; ?>;
c03e9db0 165}
166
3cecf1cd 167/* error_box.tpl definitions */
168.table_errorBoxWrapper {
3cecf1cd 169 background: <?php echo $color[9]; ?>;
170}
171
172.table_errorBox {
2be6e3fc 173 background: <?php echo $color[0]; ?>;
174}
2be6e3fc 175.error_message {
176 background: <?php echo $color[4]; ?>;
3cecf1cd 177}
178
e3812cb2 179/* page_header.tpl definitions */
180.sqm_currentFolder {
181 background: <?php echo $color[9]; ?>;
e3812cb2 182 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
183}
184.sqm_headerSignout {
185 background: <?php echo $color[9]; ?>;
e3812cb2 186 text-align: <?php echo SQM_ALIGN_RIGHT; ?>;
e3812cb2 187}
188.sqm_topNavigation {
e3812cb2 189 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
190}
191.sqm_providerInfo {
e3812cb2 192 text-align: <?php echo SQM_ALIGN_RIGHT; ?>;
193}
194
195/* message_list.tpl definitions */
196.table_messageListWrapper {
e3812cb2 197 background: <?php echo $color[9]; ?>;
198}
199
200.table_messageList {
e3812cb2 201 background: <?php echo $color[5]; ?>;
202}
203
e3812cb2 204.table_messageList tr.headerRow {
205 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
e3812cb2 206}
207.table_messageList td.spacer {
e3812cb2 208 background: <?php echo $color[0]; ?>;
209}
e3812cb2 210.table_messageList tr.even {
211 background: <?php echo $color[12]; ?>;
212}
213.table_messageList tr.odd {
214 background: <?php echo $color[4]; ?>;
215}
216.table_messageList tr.mouse_over {
217 background: <?php echo $color[5]; ?>;
218}
219.table_messageList tr.clicked {
220 background: <?php echo (!empty($color[16])) ? $color[16] : $color[2]; ?>;
221}
e3812cb2 222.table_messageList td.col_check {
223 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
224}
225.table_messageList td.col_subject {
226 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
227}
228.table_messageList td.col_flags {
229 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
230}
e3812cb2 231.table_messageList td.col_text {
232 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
233}
e3812cb2 234.deleted {
235 color: <?php echo $color[9]; ?>;
236}
237.flagged {
238 color: <?php echo $color[2]; ?>;
239}
240.high_priority {
241 color: <?php echo $color[1]; ?>;
242}
243.low_priority {
244 color: <?php echo $color[8]; ?>;
245}
246
e3812cb2 247.links_paginator {
248 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
249}
250
e3812cb2 251.message_list_controls {
52a3af10 252 background: <?php echo $color[0]; ?>;
e3812cb2 253}
254
e3812cb2 255.message_control_buttons {
256 text-align: <?php echo SQM_ALIGN_LEFT; ?>;
e3812cb2 257}
258.message_control_delete {
259 text-align: <?php echo SQM_ALIGN_RIGHT; ?>;
e3812cb2 260}
261.message_control_move {
262 text-align: <?php echo SQM_ALIGN_RIGHT; ?>;
e3812cb2 263}
264
265.spacer {
e3812cb2 266 background: <?php echo $color[4]; ?>;
267}
301d1912 268
269/* folder_manip.tpl defs */
270#folderManip {
271 text-align:center;
272}
273
274#folderManip td {
275 text-align: center;
276 padding: 2px;
277}
278
279#folderManip table {
280 margin-left: auto;
281 margin-right: auto;
282 padding-top: 8px;
283 padding-bottom: 8px;
284 border: 0;
285 width: 70%;
286}
287
288#folderManip table.wrapper {
289 border: 1px solid <?php echo $color[0]; ?>;
290 width: 95%;
291 margin-left: auto;
292 margin-right: auto;
293 padding: 0;
294}
295
296#folderManip td.folderAction {
297 background: <?php echo $color[0]; ?>;
298}
299
300#folderManip div {
301 margin-left: auto;
302 margin-right: auto;
303 width: 80%;
304 text-align: left;
305}