aboutsummaryrefslogtreecommitdiff
path: root/arc-firefox-theme/chrome/global/notification.css
blob: a9e3ea8b14d3093df12c99a316897fe221be3f22 (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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
/* 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/. */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

notification {
  color: -moz-gtk-info-bar-text;
  -moz-appearance: -moz-gtk-info-bar;
  text-shadow: none;
}

notification[type="info"] {
  color: -moz-DialogText;
  background-color: -moz-Dialog;
  -moz-appearance: none;
  border-top: 1px solid ThreeDShadow;
  border-bottom: 1px solid ThreeDShadow;
}

notificationbox[notificationside="top"] > notification[type="info"] {
  border-top-style: none;
}

notificationbox[notificationside="bottom"] > notification[type="info"] {
  border-bottom-style: none;
}

notification[type="critical"] {
  color: white;
  background-image: linear-gradient(rgb(212,0,0), rgb(152,0,0));
  -moz-appearance: none;
}

.notification-inner {
  padding-top: 1px;
  padding-bottom: 1px;
}

.messageText {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.messageText > .text-link {
  color: inherit !important;
  text-decoration: underline;
}

.messageImage {
  width: 16px;
  height: 16px;
  margin-inline-start: 6px;
  margin-inline-end: 1px;
}

/* Default icons for notifications */

.messageImage[type="info"] {
  list-style-image: url("moz-icon://stock/gtk-dialog-info?size=menu");
}

.messageImage[type="warning"] {
  list-style-image: url("moz-icon://stock/gtk-dialog-warning?size=menu");
}

.messageImage[type="critical"] {
  list-style-image: url("moz-icon://stock/gtk-dialog-error?size=menu");
}

.messageCloseButton {
  padding-left: 11px;
  padding-right: 11px;
}

/* 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/. */

.popup-notification-body-container {
  padding: var(--arrowpanel-padding);
}

.popup-notification-icon {
  width: 32px;
  height: 32px;
  margin-inline-end: var(--arrowpanel-padding);
}

.popup-notification-body {
  width: 25em;
}

.popup-notification-closebutton {
  margin-inline-end: -8px;
  margin-top: -8px;
}

.popup-notification-origin:not([value]),
.popup-notification-learnmore-link:not([href]) {
  display: none;
}

.popup-notification-origin {
  margin-bottom: .3em !important;
}

.popup-notification-learnmore-link {
  margin-top: .5em !important;
}

.popup-notification-button-container {
  background-color: var(--arrowpanel-dimmed);
  display: flex;
}

.popup-notification-button-container > toolbarseparator {
  -moz-appearance: none;
  border: 0;
  border-left: 1px solid var(--panel-separator-color);
  margin: 7px 0 7px;
  min-width: 0;
}

.popup-notification-button-container:hover > toolbarseparator {
  margin: 0;
}

.popup-notification-button {
  flex: 1;
  -moz-appearance: none;
  background-color: transparent;
  color: inherit;
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 41px;
  border: none;
  border-top: 1px solid var(--panel-separator-color);
}

.popup-notification-button:hover:not([disabled]) {
  background-color: var(--arrowpanel-dimmed);
}

.popup-notification-button:hover:active:not([disabled]) {
  background-color: var(--arrowpanel-dimmed-further);
  box-shadow: 0 1px 0 hsla(210,4%,10%,.05) inset;
}

.popup-notification-button[disabled] {
  background-color: var(--arrowpanel-dimmed-further);
  color: graytext;
  /* the !important is to override the button[disabled] settings in
   * windows/linux button.css */
  -moz-border-top-colors: var(--panel-separator-color) !important;
}

.popup-notification-button[default] {
  flex: 0 50%;
}

.popup-notification-button[default]:not([disabled]) {
  background-color: #0996f8;
  color: white;
}

.popup-notification-button[default]:hover:not([disabled]) {
  background-color: #0675d3;
}

.popup-notification-button[default]:hover:active:not([disabled]) {
  background-color: #0568ba;
}

.popup-notification-button[anonid="secondarybutton"][hidden="true"] ~ .popup-notification-button[default] {
  flex: 1;
}

.popup-notification-button > .button-box {
  padding: 0;
  margin: 0;
  /* prevent double border on windows when focused */
  border: none;
}

.popup-notification-dropmarker {
  flex: none;
  padding: 0 15px;
}

.popup-notification-dropmarker > .button-box > hbox {
  display: none;
}

.popup-notification-dropmarker > .button-box > .button-menu-dropmarker {
  /* This is to override the linux !important */
  -moz-appearance: none !important;
  display: -moz-box;
  padding: 0;
  margin: 0;
}

.popup-notification-dropmarker > .button-box > .button-menu-dropmarker > .dropmarker-icon {
  width: 16px;
  height: 16px;
  list-style-image: url(chrome://global/skin/icons/menubutton-dropmarker.svg);
  filter: url(chrome://global/skin/filters.svg#fill);
  fill: currentColor;
}

.popup-notification-button:-moz-focusring {
  outline: 1px -moz-dialogtext dotted;
  outline-offset: -5px;
}