summaryrefslogtreecommitdiff
path: root/toolkit/themes/windows/global/notification.css
blob: 433a8a006fd545ff001149eb1aaa1d9dcb9318ea (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: InfoText;
  background-color: InfoBackground;
  text-shadow: none;
  border-top: 1px solid ThreeDShadow;
  border-bottom: 1px solid ThreeDShadow;
}

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

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

notification[type="info"] {
  color: -moz-DialogText;
  background-color: -moz-Dialog;
}

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

.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("chrome://global/skin/icons/information-16.png");
}

.messageImage[type="warning"] {
  list-style-image: url("chrome://global/skin/icons/warning-16.png");
}

.messageImage[type="critical"] {
  list-style-image: url("chrome://global/skin/icons/error-16.png");
}

.messageCloseButton {
  -moz-appearance: none;
  padding: 4px 2px;
  border: none !important;
}

.messageCloseButton > .toolbarbutton-icon {
  margin-inline-end: 5px;
}

/* Popup notification */

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

.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 {
  margin-top: 17px;
}

%ifdef XP_WIN
/*
XXX: apply styles to all themes until bug 509642 is fixed
@media (-moz-windows-default-theme) {
*/
  .popup-notification-menubutton {
    -moz-appearance: none;
    border-radius: 3px;
    padding: 0;
    background-color: rgba(250,250,250,.3)
  }

  .popup-notification-menubutton:hover:active {
    border-color: rgba(0,0,0,.5);
  }

  .popup-notification-menubutton:not([type="menu-button"]),
  .popup-notification-menubutton > .button-menubutton-button,
  .popup-notification-menubutton > .button-menubutton-dropmarker {
    -moz-appearance: none;
    margin: 0;
    border: 1px solid rgba(0,0,0,.35);

    box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
                0 2px 2px rgba(255,255,255,.35) inset,
                0 -1px 2px rgba(0,0,0,.1) inset,
                0 1px 0 rgba(255,255,255,.35);

  }

  @media (-moz-windows-glass) {
    .popup-notification-menubutton:not([type="menu-button"]),
    .popup-notification-menubutton > .button-menubutton-button,
    .popup-notification-menubutton > .button-menubutton-dropmarker {
      background-color: transparent;
      background-image: linear-gradient(rgba(250,250,250,.6), rgba(175,175,175,.25) 49%, rgba(0,0,0,.12) 51%, rgba(0,0,0,.09) 60%, rgba(0,0,0,.05));
      box-shadow: 0 0 1px 1px rgba(255,255,255,.75) inset;
    }
  }

  .popup-notification-menubutton > .button-menubutton-button {
    background-color: transparent;
    padding: 1px;
    border-inline-end: none;
  }

  .popup-notification-menubutton:not([type="menu-button"]),
  .popup-notification-menubutton > .button-menubutton-button > .button-box {
    padding-inline-start: 8px;
    padding-inline-end: 5px;
  }

  .popup-notification-menubutton > .button-menubutton-dropmarker {
    padding: 9px 5px 8px;
    width: auto;
    height: auto;
    list-style-image: url("chrome://global/skin/arrow/arrow-dn-sharp.gif");
  }

  .popup-notification-menubutton:-moz-focusring > .button-menubutton-dropmarker {
    outline: 1px dotted ThreeDDarkShadow;
    outline-offset: -3px;
  }

  @media (-moz-windows-glass) {
    .popup-notification-menubutton > .button-menubutton-button:-moz-locale-dir(ltr),
    .popup-notification-menubutton > .button-menubutton-dropmarker:-moz-locale-dir(rtl) {
      border-radius: 2px 0 0 2px;
    }

    .popup-notification-menubutton > .button-menubutton-button:-moz-locale-dir(rtl),
    .popup-notification-menubutton > .button-menubutton-dropmarker:-moz-locale-dir(ltr) {
      border-radius: 0 2px 2px 0;
    }
  }

  .popup-notification-menubutton:not([type="menu-button"]):hover,
  .popup-notification-menubutton > .button-menubutton-button:hover,
  .popup-notification-menubutton > .button-menubutton-dropmarker:hover {
    background-color: rgba(250,250,250,.6);
  }

  .popup-notification-menubutton:not([type="menu-button"]):hover:active,
  .popup-notification-menubutton > .button-menubutton-button:hover:active,
  .popup-notification-menubutton > .button-menubutton-dropmarker:hover:active,
  .popup-notification-menubutton[open="true"] > .button-menubutton-dropmarker {
    background-color: rgba(0,0,0,.05);
    box-shadow: 0 0 2px rgba(0,0,0,.65) inset;
  }

  @media (-moz-windows-glass) {
    .popup-notification-menubutton:not([type="menu-button"]):hover,
    .popup-notification-menubutton > .button-menubutton-button:hover,
    .popup-notification-menubutton > .button-menubutton-dropmarker:hover {
      background-color: transparent;
      background-image: linear-gradient(rgba(250,250,250,.9), rgba(200,200,200,.6) 49%, rgba(0,0,0,.23) 51%, rgba(0,0,0,.17) 60%, rgba(0,0,0,.05));
      box-shadow: 0 0 0 1px white inset,
                  0 0 2px 1px rgba(255,255,255,.75) inset;
    }
    .popup-notification-menubutton:not([type="menu-button"]):hover:active,
    .popup-notification-menubutton > .button-menubutton-button:hover:active,
    .popup-notification-menubutton > .button-menubutton-dropmarker:hover:active,
    .popup-notification-menubutton[open="true"] > .button-menubutton-dropmarker {
      background-color: transparent;
      background-image: linear-gradient(rgba(250,250,250,.9), rgba(200,200,200,.6) 49%, rgba(0,0,0,.23) 51%, rgba(0,0,0,.17) 60%, rgba(0,0,0,.05));
    }
  }
/*}*/
%endif

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

.popup-notification-menubutton > .button-menubutton-button[disabled] {
  opacity: 0.5;
}

@media (-moz-windows-default-theme) {
  .popup-notification-warning {
    color: #aa1b08;
  }
}