1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Netscape Public License
5 * Version 1.1 (the "License"); you may not use this file except in
6 * compliance with the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/NPL/
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
14 * The Original Code is mozilla.org code.
16 * The Initial Developer of the Original Code is
17 * Netscape Communications Corporation.
18 * Portions created by the Initial Developer are Copyright (C) 1998
19 * the Initial Developer. All Rights Reserved.
22 * Scott MacGregor (mscott@netscape.com)
23 * Joe Hewitt (hewitt@netscape.com)
24 * Robert Kaiser <KaiRo@KaiRo.at>
26 * Alternatively, the contents of this file may be used under the terms of
27 * either the GNU General Public License Version 2 or later (the "GPL"), or
28 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 * in which case the provisions of the GPL or the LGPL are applicable instead
30 * of those above. If you wish to allow use of your version of this file only
31 * under the terms of either the GPL or the LGPL, and not to allow others to
32 * use your version of this file under the terms of the NPL, indicate your
33 * decision by deleting the provisions above and replace them with the notice
34 * and other provisions required by the GPL or the LGPL. If you do not delete
35 * the provisions above, a recipient may use your version of this file under
36 * the terms of any one of the NPL, the GPL or the LGPL.
38 * ***** END LICENSE BLOCK ***** */
40 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
42 /* ===== threadPane.css ==============================================
43 == Styles for the thread pane in the Messenger 3-pane window.
44 ======================================================================= */
46 /* ::::: thread decoration ::::: */
48 treechildren::-moz-tree-cell-text(read) {
52 treechildren::-moz-tree-cell-text(unread) {
56 treechildren::-moz-tree-cell-text(imapdeleted) {
57 text-decoration: line-through;
60 /* on a collapsed thread, if the top level message is read, but the thread has
61 * unread children, underline the text. 4.x mac did this, very slick
63 treechildren::-moz-tree-cell-text(container, closed, hasUnread, read) {
64 text-decoration: underline;
67 /* ::::: priority colors ::::: */
69 **** Priority colors currently not being used at the moment. It has been
70 **** disabled so as to not conflict with the labels color feature.
72 treechildren::-moz-tree-cell-text(priorityCol, priority-highest) {
76 treechildren::-moz-tree-cell-text(priorityCol, priority-high) {
77 color: rgb(128, 0, 0);
80 treechildren::-moz-tree-cell-text(priorityCol, priority-lowest) {
81 color: rgb(170, 170, 170);
84 treechildren::-moz-tree-cell-text(priorityCol, priority-low) {
85 color: rgb(85, 85, 85);
88 treechildren::-moz-tree-cell-text(priorityCol, selected) {
89 color: -moz-DialogText;
92 treechildren::-moz-tree-cell-text(priorityCol, selected, focus) {
97 /* ::::: message icons ::::: */
99 /* ::::: message column icons ::::: */
101 /* ..... thread column ..... */
103 .threadColumnHeader {
104 list-style-image: url("chrome://messenger/skin/icons/column-thread-unthread.gif");
107 .threadColumnHeader[sortDirection="ascending"] {
108 list-style-image: url("chrome://messenger/skin/icons/column-thread.gif");
111 .threadColumnHeader[sortDirection="descending"] {
112 list-style-image: url("chrome://messenger/skin/icons/column-thread.gif");
115 treechildren::-moz-tree-image(threadCol, container) {
116 list-style-image: url("chrome://messenger/skin/icons/thread-closed.gif");
119 treechildren::-moz-tree-image(threadCol, container, offline) {
120 list-style-image: url("chrome://messenger/skin/icons/thread-closed-offline.gif");
123 treechildren::-moz-tree-image(threadCol, container, open) {
124 list-style-image: url("chrome://messenger/skin/icons/thread-open.gif");
127 treechildren::-moz-tree-image(threadCol, container, open, offline) {
128 list-style-image: url("chrome://messenger/skin/icons/thread-open-offline.gif");
131 treechildren::-moz-tree-image(threadCol, container, hasUnread) {
132 list-style-image: url("chrome://messenger/skin/icons/thread-new-closed.gif");
135 treechildren::-moz-tree-image(threadCol, container, hasUnread, offline) {
136 list-style-image: url("chrome://messenger/skin/icons/thread-new-closed-offline.gif");
139 treechildren::-moz-tree-image(threadCol, container, hasUnread, open) {
140 list-style-image: url("chrome://messenger/skin/icons/thread-new-open.gif");
143 treechildren::-moz-tree-image(threadCol, container, hasUnread, open, offline) {
144 list-style-image: url("chrome://messenger/skin/icons/thread-new-open-offline.gif");
147 /* ..... read column ..... */
150 list-style-image: url("chrome://messenger/skin/icons/column-read-header.gif");
153 treechildren::-moz-tree-image(unreadButtonColHeader) {
154 list-style-image: url("chrome://messenger/skin/icons/column-neutral.gif");
157 treechildren::-moz-tree-image(unreadButtonColHeader, unread) {
158 list-style-image: url("chrome://messenger/skin/icons/column-read-unread.gif");
161 /* ..... attachment column ..... */
163 .attachmentColumnHeader {
164 list-style-image: url("chrome://messenger/skin/icons/attachment-col.gif");
167 treechildren::-moz-tree-image(attachmentCol, attach) {
168 list-style-image: url("chrome://messenger/skin/icons/attachment.gif");
171 /* ..... flag column ..... */
174 list-style-image: url("chrome://messenger/skin/icons/column-flag.gif");
177 treechildren::-moz-tree-image(flaggedCol) {
178 list-style-image: url("chrome://messenger/skin/icons/column-neutral.gif");
181 treechildren::-moz-tree-image(flaggedCol, flagged) {
182 list-style-image: url("chrome://messenger/skin/icons/column-flag.gif");
185 /* ..... junkStatus column ..... */
188 list-style-image: url("chrome://messenger/skin/icons/column-junk.gif");
191 /* "unknown" now looks almost like "not junk", but not quite */
192 treechildren::-moz-tree-image(junkStatusCol) {
193 list-style-image: url("chrome://messenger/skin/icons/column-junk-unknown.gif");
196 treechildren::-moz-tree-image(junkStatusCol, junk) {
197 list-style-image: url("chrome://messenger/skin/icons/column-junk.gif");
200 treechildren::-moz-tree-image(junkStatusCol, notjunk) {
201 list-style-image: url("chrome://messenger/skin/icons/column-neutral.gif");
204 /* ..... subject column and tab icons ..... */
206 .tabmail-tab[type="message"] .tab-icon {
207 /* the message icons are only 14px high */
212 .tabmail-tab[type="message"],
213 treechildren::-moz-tree-image(subjectCol) {
214 list-style-image: url("chrome://messenger/skin/icons/message-mail.gif");
217 treechildren::-moz-tree-image(subjectCol) {
218 -moz-margin-end: 2px;
221 treechildren::-moz-tree-image(subjectCol, new) {
222 list-style-image: url("chrome://messenger/skin/icons/message-mail-new.gif");
225 .tabmail-tab[type="message"][Attachment="true"],
226 tree[noattachcol="true"] > treechildren::-moz-tree-image(subjectCol, attach) {
227 list-style-image: url("chrome://messenger/skin/icons/message-mail-attach.gif");
230 .tabmail-tab[type="message"][IMAPDeleted="true"],
231 treechildren::-moz-tree-image(subjectCol, imapdeleted) {
232 list-style-image: url("chrome://messenger/skin/icons/message-mail-imapdelete.gif");
235 .tabmail-tab[type="message"][Offline="true"],
236 treechildren::-moz-tree-image(subjectCol, offline) {
237 list-style-image: url("chrome://messenger/skin/icons/message-mail-offline.gif");
240 treechildren::-moz-tree-image(subjectCol, new, offline) {
241 list-style-image: url("chrome://messenger/skin/icons/message-mail-new-offline.gif");
244 .tabmail-tab[type="message"][Attachment="true"][Offline="true"],
245 tree[noattachcol="true"] > treechildren::-moz-tree-image(subjectCol, attach, offline) {
246 list-style-image: url("chrome://messenger/skin/icons/message-mail-attach-offline.gif");
249 .tabmail-tab[type="message"][IMAPDeleted="true"][Offline="true"],
250 treechildren::-moz-tree-image(subjectCol, imapdeleted, offline) {
251 list-style-image: url("chrome://messenger/skin/icons/message-mail-imapdel-offline.gif");
254 .tabmail-tab[type="message"][MessageType="rss"],
255 .tabmail-tab[type="message"][MessageType="nntp"],
256 treechildren::-moz-tree-image(subjectCol, rss),
257 treechildren::-moz-tree-image(subjectCol, news) {
258 list-style-image: url("chrome://messenger/skin/icons/message-news.gif");
261 treechildren::-moz-tree-image(subjectCol, rss, ignoreSubthread),
262 treechildren::-moz-tree-image(subjectCol, news, ignoreSubthread) {
263 list-style-image: url("chrome://messenger/skin/icons/message-news-kill.gif");
266 .tabmail-tab[type="message"][MessageType="rss"][Attachment="true"],
267 .tabmail-tab[type="message"][MessageType="nntp"][Attachment="true"],
268 tree[noattachcol="true"] > treechildren::-moz-tree-image(subjectCol, rss, attach),
269 tree[noattachcol="true"] > treechildren::-moz-tree-image(subjectCol, news, attach) {
270 list-style-image: url("chrome://messenger/skin/icons/message-news-attach.gif");
273 tree[noattachcol="true"] > treechildren::-moz-tree-image(subjectCol, rss, attach, ignoreSubthread),
274 tree[noattachcol="true"] > treechildren::-moz-tree-image(subjectCol, news, attach, ignoreSubthread) {
275 list-style-image: url("chrome://messenger/skin/icons/message-news-attach-kill.gif");
278 .tabmail-tab[type="message"][MessageType="rss"][Attachment="true"][Offline="true"],
279 .tabmail-tab[type="message"][MessageType="nntp"][Attachment="true"][Offline="true"],
280 tree[noattachcol="true"] > treechildren::-moz-tree-image(subjectCol, rss, attach, offline),
281 tree[noattachcol="true"] > treechildren::-moz-tree-image(subjectCol, news, attach, offline) {
282 list-style-image: url("chrome://messenger/skin/icons/message-news-attach-offline.gif");
285 tree[noattachcol="true"] > treechildren::-moz-tree-image(subjectCol, rss, attach, offline, ignoreSubthread),
286 tree[noattachcol="true"] > treechildren::-moz-tree-image(subjectCol, news, attach, offline, ignoreSubthread) {
287 list-style-image: url("chrome://messenger/skin/icons/message-news-attach-kill-offline.gif");
290 treechildren::-moz-tree-image(subjectCol, rss, new),
291 treechildren::-moz-tree-image(subjectCol, news, new) {
292 list-style-image: url("chrome://messenger/skin/icons/message-news-new.gif");
295 tree[noattachcol="true"] > treechildren::-moz-tree-image(subjectCol, news, new, attach) {
296 list-style-image: url("chrome://messenger/skin/icons/message-news-new-attach.gif");
299 tree[noattachcol="true"] > treechildren::-moz-tree-image(subjectCol, news, new, attach, offline) {
300 list-style-image: url("chrome://messenger/skin/icons/message-news-new-attach-offline.gif");
303 treechildren::-moz-tree-image(subjectCol, news, new, offline) {
304 list-style-image: url("chrome://messenger/skin/icons/message-news-new-offline.gif");
307 .tabmail-tab[type="message"][MessageType="rss"][Offline="true"],
308 .tabmail-tab[type="message"][MessageType="nntp"][Offline="true"],
309 treechildren::-moz-tree-image(subjectCol, rss, offline),
310 treechildren::-moz-tree-image(subjectCol, news, offline) {
311 list-style-image: url("chrome://messenger/skin/icons/message-news-offline.gif");
314 treechildren::-moz-tree-image(subjectCol, rss, offline, ignoreSubthread),
315 treechildren::-moz-tree-image(subjectCol, news, offline, ignoreSubthread) {
316 list-style-image: url("chrome://messenger/skin/icons/message-news-kill-offline.gif");
319 /* ..... new thread icons for watch and ignore ..... */
321 treechildren::-moz-tree-image(news, threadCol, watch) {
322 list-style-image: url("chrome://messenger/skin/icons/thread-closed-eye.gif");
325 treechildren::-moz-tree-image(news, threadCol, ignore) {
326 list-style-image: url("chrome://messenger/skin/icons/thread-closed-kill.gif");
329 treechildren::-moz-tree-image(news, threadCol, watch, offline) {
330 list-style-image: url("chrome://messenger/skin/icons/thread-closed-offline-eye.gif");
333 treechildren::-moz-tree-image(news, threadCol, ignore, offline) {
334 list-style-image: url("chrome://messenger/skin/icons/thread-closed-offline-kill.gif");
337 treechildren::-moz-tree-image(news, threadCol, container, hasUnread, watch) {
338 list-style-image: url("chrome://messenger/skin/icons/thread-new-closed-eye.gif");
341 treechildren::-moz-tree-image(news, threadCol, container, hasUnread, ignore) {
342 list-style-image: url("chrome://messenger/skin/icons/thread-new-closed-kill.gif");
345 treechildren::-moz-tree-image(news, threadCol, container, hasUnread, watch, offline) {
346 list-style-image: url("chrome://messenger/skin/icons/thread-new-closed-offline-eye.gif");
349 treechildren::-moz-tree-image(news, threadCol, container, hasUnread, ignore, offline) {
350 list-style-image: url("chrome://messenger/skin/icons/thread-new-closed-offline-kill.gif");
353 treechildren::-moz-tree-image(news, threadCol, container, hasUnread, watch, open) {
354 list-style-image: url("chrome://messenger/skin/icons/thread-new-open-eye.gif");
357 treechildren::-moz-tree-image(news, threadCol, container, hasUnread, ignore, open) {
358 list-style-image: url("chrome://messenger/skin/icons/thread-new-open-kill.gif");
361 treechildren::-moz-tree-image(news, threadCol, container, hasUnread, watch, open, offline) {
362 list-style-image: url("chrome://messenger/skin/icons/thread-new-open-offline-eye.gif");
365 treechildren::-moz-tree-image(news, threadCol, container, hasUnread, ignore, open, offline) {
366 list-style-image: url("chrome://messenger/skin/icons/thread-new-open-offline-kill.gif");
369 treechildren::-moz-tree-image(news, threadCol, container, watch, open) {
370 list-style-image: url("chrome://messenger/skin/icons/thread-open-eye.gif");
373 treechildren::-moz-tree-image(news, threadCol, container, ignore, open) {
374 list-style-image: url("chrome://messenger/skin/icons/thread-open-kill.gif");
377 treechildren::-moz-tree-image(news, threadCol, container, watch, open, offline) {
378 list-style-image: url("chrome://messenger/skin/icons/thread-open-offline-eye.gif");
381 treechildren::-moz-tree-image(news, threadCol, container, ignore, open, offline) {
382 list-style-image: url("chrome://messenger/skin/icons/thread-open-offline-kill.gif");