michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: michael@0: notification { michael@0: background-color: InfoBackground; michael@0: color: InfoText; michael@0: text-shadow: none; michael@0: } michael@0: michael@0: notification[type="info"] { michael@0: background-color: -moz-Dialog; michael@0: color: -moz-DialogText; michael@0: } michael@0: michael@0: notification[type="critical"] { michael@0: background-image: linear-gradient(rgb(212,0,0), rgb(152,0,0)); michael@0: color: white; michael@0: } michael@0: michael@0: .messageImage { michael@0: width: 16px; michael@0: height: 16px; michael@0: -moz-margin-start: 6px; michael@0: -moz-margin-end: 1px; michael@0: } michael@0: michael@0: /* Default icons for notifications */ michael@0: michael@0: .messageImage[type="info"] { michael@0: list-style-image: url("chrome://global/skin/icons/information-16.png"); michael@0: } michael@0: michael@0: .messageImage[type="warning"] { michael@0: list-style-image: url("chrome://global/skin/icons/warning-16.png"); michael@0: } michael@0: michael@0: .messageImage[type="critical"] { michael@0: list-style-image: url("chrome://global/skin/icons/error-16.png"); michael@0: } michael@0: michael@0: .messageCloseButton { michael@0: -moz-appearance: none; michael@0: padding: 4px 2px; michael@0: border: none !important; michael@0: } michael@0: michael@0: .messageCloseButton > .toolbarbutton-icon { michael@0: -moz-margin-end: 5px; michael@0: } michael@0: michael@0: /* Popup notification */ michael@0: michael@0: .popup-notification-description { michael@0: max-width: 24em; michael@0: } michael@0: michael@0: .popup-notification-learnmore-link { michael@0: margin-top: 1em !important; michael@0: } michael@0: michael@0: .popup-notification-learnmore-link:not([href]) { michael@0: display: none; michael@0: } michael@0: michael@0: .popup-notification-button-container { michael@0: margin-top: 17px; michael@0: } michael@0: michael@0: %ifdef XP_WIN michael@0: /* michael@0: XXX: apply styles to all themes until bug 509642 is fixed michael@0: @media (-moz-windows-default-theme) { michael@0: */ michael@0: .popup-notification-menubutton { michael@0: -moz-appearance: none; michael@0: border-radius: 3px; michael@0: padding: 0; michael@0: %ifndef WINDOWS_AERO michael@0: background-color: rgba(250,250,250,.3); michael@0: %endif michael@0: } michael@0: michael@0: .popup-notification-menubutton:hover:active { michael@0: border-color: rgba(0,0,0,.5); michael@0: } michael@0: michael@0: .popup-notification-menubutton:not([type="menu-button"]), michael@0: .popup-notification-menubutton > .button-menubutton-button, michael@0: .popup-notification-menubutton > .button-menubutton-dropmarker { michael@0: -moz-appearance: none; michael@0: margin: 0; michael@0: border: 1px solid rgba(0,0,0,.35); michael@0: %ifdef WINDOWS_AERO michael@0: 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)); michael@0: box-shadow: 0 0 1px 1px rgba(255,255,255,.75) inset; michael@0: %else michael@0: box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, michael@0: 0 2px 2px rgba(255,255,255,.35) inset, michael@0: 0 -1px 2px rgba(0,0,0,.1) inset, michael@0: 0 1px 0 rgba(255,255,255,.35); michael@0: %endif michael@0: } michael@0: michael@0: .popup-notification-menubutton > .button-menubutton-button { michael@0: background-color: transparent; michael@0: padding: 1px; michael@0: -moz-border-end: none; michael@0: } michael@0: michael@0: .popup-notification-menubutton:not([type="menu-button"]), michael@0: .popup-notification-menubutton > .button-menubutton-button > .button-box { michael@0: -moz-padding-start: 8px; michael@0: -moz-padding-end: 5px; michael@0: } michael@0: michael@0: .popup-notification-menubutton > .button-menubutton-dropmarker { michael@0: padding: 9px 5px 8px; michael@0: width: auto; michael@0: height: auto; michael@0: list-style-image: url("chrome://global/skin/arrow/arrow-dn-sharp.gif"); michael@0: } michael@0: michael@0: .popup-notification-menubutton:-moz-focusring > .button-menubutton-dropmarker { michael@0: outline: 1px dotted ThreeDDarkShadow; michael@0: outline-offset: -3px; michael@0: } michael@0: michael@0: %ifdef WINDOWS_AERO michael@0: .popup-notification-menubutton > .button-menubutton-button:-moz-locale-dir(ltr), michael@0: .popup-notification-menubutton > .button-menubutton-dropmarker:-moz-locale-dir(rtl) { michael@0: border-radius: 2px 0 0 2px; michael@0: } michael@0: michael@0: .popup-notification-menubutton > .button-menubutton-button:-moz-locale-dir(rtl), michael@0: .popup-notification-menubutton > .button-menubutton-dropmarker:-moz-locale-dir(ltr) { michael@0: border-radius: 0 2px 2px 0; michael@0: } michael@0: %endif michael@0: michael@0: .popup-notification-menubutton:not([type="menu-button"]):hover, michael@0: .popup-notification-menubutton > .button-menubutton-button:hover, michael@0: .popup-notification-menubutton > .button-menubutton-dropmarker:hover { michael@0: %ifdef WINDOWS_AERO michael@0: 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)); michael@0: box-shadow: 0 0 0 1px white inset, michael@0: 0 0 2px 1px rgba(255,255,255,.75) inset; michael@0: %else michael@0: background-color: rgba(250,250,250,.6); michael@0: %endif michael@0: } michael@0: michael@0: .popup-notification-menubutton:not([type="menu-button"]):hover:active, michael@0: .popup-notification-menubutton > .button-menubutton-button:hover:active, michael@0: .popup-notification-menubutton > .button-menubutton-dropmarker:hover:active, michael@0: .popup-notification-menubutton[open="true"] > .button-menubutton-dropmarker { michael@0: %ifdef WINDOWS_AERO michael@0: 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)); michael@0: %else michael@0: background-color: rgba(0,0,0,.05); michael@0: %endif michael@0: box-shadow: 0 0 2px rgba(0,0,0,.65) inset; michael@0: } michael@0: /*}*/ michael@0: %endif michael@0: michael@0: .popup-notification-closebutton { michael@0: -moz-margin-end: -14px; michael@0: margin-top: -10px; michael@0: }