summaryrefslogtreecommitdiffstats
path: root/comm/mail/themes/shared/mail/subscribe.css
blob: 349fb552dd18b739f30b4fc79fb1309bf718738e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* ===== subscribe.css ==================================================
  == Styles for the Subscribe dialog.
  ======================================================================= */

@import url("chrome://messenger/skin/messenger.css");

#subscribeWindow {
  min-width: 40em;
  min-height: 30em;
}

#nameColumn,
#nameColumn2 {
  flex: 10 10;
}

/* ::::: Subscription Icons  :::::: */

treechildren::-moz-tree-image(subscribedColumn),
treechildren::-moz-tree-image(subscribedColumn2) {
  width: 14px;
  height: 14px;
  list-style-image: url("chrome://messenger/skin/icons/checkbox.svg");
  -moz-context-properties: fill, fill-opacity, stroke, stroke-opacity;
  fill: currentColor;
  stroke: currentColor;
  fill-opacity: 0;
  stroke-opacity: 0;
}

treechildren::-moz-tree-image(subscribedColumn, subscribed-true),
treechildren::-moz-tree-image(subscribedColumn2, subscribed-true) {
  fill-opacity: 1;
}

treechildren::-moz-tree-image(subscribedColumn, selected, focus),
treechildren::-moz-tree-image(subscribedColumn2, selected, focus) {
  fill: var(--select-focus-text-color);
  stroke: var(--select-focus-text-color);
}

treechildren::-moz-tree-image(subscribedColumn, subscribable-false) {
  list-style-image: none;
}

treechildren::-moz-tree-cell-text(nameColumn, subscribable-false) {
  opacity: 0.6;
  font-style: italic;
}

/* ::::: Folders :::::: */

treechildren::-moz-tree-image(nameColumn) {
  margin-inline-end: 2px;
  list-style-image: url("chrome://messenger/skin/icons/folder.svg");
}

treechildren::-moz-tree-image(nameColumn, serverType-nntp),
treechildren::-moz-tree-image(nameColumn2, serverType-nntp) {
  margin-inline-end: 2px;
  list-style-image: url("chrome://messenger/skin/icons/globe.svg");
}

/* ::::: Servers :::::: */

.subscribeMenuItem {
  list-style-image: url("chrome://messenger/skin/icons/message.svg");
}

.subscribeMenuItem[ServerType="imap"][IsSecure="true"] {
  list-style-image: url("chrome://messenger/skin/icons/message-secure.svg");
}

.subscribeMenuItem[ServerType="nntp"] {
  list-style-image: url("chrome://messenger/skin/icons/globe.svg");
}