1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/themes/linux/global/notification.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,75 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 1.9 + 1.10 +notification { 1.11 + background-color: InfoBackground; 1.12 + color: InfoText; 1.13 + text-shadow: none; 1.14 +} 1.15 + 1.16 +notification[type="info"] { 1.17 + background-color: -moz-Dialog; 1.18 + color: -moz-DialogText; 1.19 +} 1.20 + 1.21 +notification[type="critical"] { 1.22 + background-image: linear-gradient(rgb(212,0,0), rgb(152,0,0)); 1.23 + color: white; 1.24 +} 1.25 + 1.26 +.notification-inner { 1.27 + padding-top: 1px; 1.28 + padding-bottom: 1px; 1.29 +} 1.30 + 1.31 +.messageText { 1.32 + margin-top: 0 !important; 1.33 + margin-bottom: 0 !important; 1.34 +} 1.35 + 1.36 +.messageImage { 1.37 + width: 16px; 1.38 + height: 16px; 1.39 + -moz-margin-start: 6px; 1.40 + -moz-margin-end: 1px; 1.41 +} 1.42 + 1.43 +/* Default icons for notifications */ 1.44 + 1.45 +.messageImage[type="info"] { 1.46 + list-style-image: url("moz-icon://stock/gtk-dialog-info?size=menu"); 1.47 +} 1.48 + 1.49 +.messageImage[type="warning"] { 1.50 + list-style-image: url("moz-icon://stock/gtk-dialog-warning?size=menu"); 1.51 +} 1.52 + 1.53 +.messageImage[type="critical"] { 1.54 + list-style-image: url("moz-icon://stock/gtk-dialog-error?size=menu"); 1.55 +} 1.56 + 1.57 +.messageCloseButton { 1.58 + padding-left: 11px; 1.59 + padding-right: 11px; 1.60 +} 1.61 + 1.62 +/* Popup notification */ 1.63 + 1.64 +.popup-notification-description { 1.65 + max-width: 24em; 1.66 +} 1.67 + 1.68 +.popup-notification-learnmore-link { 1.69 + margin-top: 1em !important; 1.70 +} 1.71 + 1.72 +.popup-notification-learnmore-link:not([href]) { 1.73 + display: none; 1.74 +} 1.75 + 1.76 +.popup-notification-button-container { 1.77 + margin-top: 17px; 1.78 +}