forked from mirrors/gecko-dev
Differential Revision: https://phabricator.services.mozilla.com/D42300 --HG-- extra : moz-landing-system : lando
107 lines
2.4 KiB
CSS
107 lines
2.4 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/. */
|
|
|
|
/* Layout */
|
|
|
|
.notificationbox .notificationInner {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
|
|
.notificationInner .messageText {
|
|
flex: 1;
|
|
width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.notificationInner .messageImage,
|
|
.notificationbox .notificationButton,
|
|
.notificationbox .messageCloseButton {
|
|
flex: none;
|
|
}
|
|
|
|
.notificationbox .notificationInner:dir(rtl) {
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
/* Style */
|
|
|
|
.notificationbox .notification {
|
|
color: var(--theme-toolbar-color);
|
|
background-color: var(--theme-body-background);
|
|
text-shadow: none;
|
|
border-color: var(--theme-splitter-color);
|
|
border-style: solid;
|
|
border-width: 0;
|
|
}
|
|
|
|
.notificationbox.border-top .notification {
|
|
border-top-width: 1px;
|
|
}
|
|
|
|
.notificationbox.border-bottom .notification {
|
|
border-bottom-width: 1px;
|
|
}
|
|
|
|
.notificationbox .notification[data-type="info"] {
|
|
color: -moz-DialogText;
|
|
background-color: -moz-Dialog;
|
|
}
|
|
|
|
.notificationbox .notification[data-type="critical"] {
|
|
color: white;
|
|
background-image: linear-gradient(rgb(212,0,0), rgb(152,0,0));
|
|
}
|
|
|
|
.notificationbox .messageImage {
|
|
background-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
margin: 6px;
|
|
}
|
|
|
|
/* Default icons for notifications */
|
|
|
|
.notificationbox .messageImage[data-type="info"] {
|
|
background-image: url("chrome://global/skin/icons/info.svg");
|
|
}
|
|
|
|
.notificationbox .messageImage[data-type="warning"] {
|
|
background-image: url("chrome://global/skin/icons/warning.svg");
|
|
}
|
|
|
|
.notificationbox .messageImage[data-type="critical"] {
|
|
background-image: url("chrome://global/skin/icons/error-16.png");
|
|
}
|
|
|
|
/* Close button */
|
|
|
|
.notificationbox .messageCloseButton {
|
|
width: 24px;
|
|
height: 24px;
|
|
margin: 2px 4px;
|
|
background-image: url("chrome://devtools/skin/images/close.svg");
|
|
background-position: center;
|
|
background-color: transparent;
|
|
background-repeat: no-repeat;
|
|
border-radius: 2px;
|
|
-moz-context-properties: fill;
|
|
fill: currentColor;
|
|
}
|
|
|
|
.notificationbox .messageCloseButton:hover {
|
|
background-color: gray;
|
|
filter: invert(1);
|
|
}
|
|
|
|
.notificationbox .messageCloseButton:active {
|
|
background-color: rgba(170, 170, 170, .4); /* --toolbar-tab-hover-active */
|
|
}
|
|
|
|
.notificationbox.wrapping .notificationInner .messageText {
|
|
white-space: normal;
|
|
}
|