зеркало из https://github.com/mozilla/gecko-dev.git
88 строки
2.0 KiB
CSS
88 строки
2.0 KiB
CSS
/* 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");
|
|
|
|
.notificationbox-stack {
|
|
overflow: -moz-hidden-unscrollable;
|
|
}
|
|
|
|
notification {
|
|
padding: 2px 0 3px;
|
|
padding-inline-start: 12px;
|
|
background: -moz-dialog;
|
|
color: -moz-dialogText;
|
|
border-color: ThreeDLightShadow;
|
|
border-style: solid;
|
|
border-width: 1px 0;
|
|
text-shadow: none;
|
|
}
|
|
|
|
notification.animated {
|
|
transition: margin-top 300ms var(--animation-easing-function), opacity 300ms var(--animation-easing-function);
|
|
}
|
|
|
|
.notificationbox-stack[notificationside="top"] > notification {
|
|
border-top-style: none;
|
|
}
|
|
|
|
.notificationbox-stack[notificationside="bottom"] > notification {
|
|
border-bottom-style: none;
|
|
}
|
|
|
|
notification[type="warning"],
|
|
notification[type="critical"] {
|
|
border-color: rgba(12, 12, 13, 0.2);
|
|
}
|
|
|
|
notification[type="warning"] {
|
|
background: #ffe900;
|
|
color: #0c0c0d;
|
|
}
|
|
|
|
notification[type="critical"] {
|
|
background: #d70022;
|
|
color: #fff;
|
|
}
|
|
|
|
.messageText {
|
|
margin-inline-start: 12px !important;
|
|
margin-bottom: 1px !important;
|
|
}
|
|
|
|
.messageText > .text-link {
|
|
color: inherit !important;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.messageImage {
|
|
width: 16px;
|
|
height: 16px;
|
|
-moz-context-properties: fill;
|
|
fill: currentColor;
|
|
}
|
|
|
|
notification[type="info"] > hbox > .messageImage {
|
|
list-style-image: url("chrome://global/skin/icons/help.svg");
|
|
}
|
|
|
|
notification[type="warning"] > hbox > .messageImage {
|
|
list-style-image: url("chrome://global/skin/icons/warning.svg");
|
|
}
|
|
|
|
notification[type="critical"] > hbox > .messageImage {
|
|
list-style-image: url("chrome://global/skin/icons/error.svg");
|
|
}
|
|
|
|
.messageCloseButton {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Close button needs to be clickable from the edge of the window */
|
|
.messageCloseButton > .toolbarbutton-icon {
|
|
margin-inline-end: 12px;
|
|
}
|
|
|