toolkit/themes/windows/global/notification.css

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/themes/windows/global/notification.css	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,172 @@
     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 +.messageImage {
    1.27 +  width: 16px;
    1.28 +  height: 16px;
    1.29 +  -moz-margin-start: 6px;
    1.30 +  -moz-margin-end: 1px;
    1.31 +}
    1.32 +
    1.33 +/* Default icons for notifications */
    1.34 +
    1.35 +.messageImage[type="info"] {
    1.36 +  list-style-image: url("chrome://global/skin/icons/information-16.png");
    1.37 +}
    1.38 +
    1.39 +.messageImage[type="warning"] {
    1.40 +  list-style-image: url("chrome://global/skin/icons/warning-16.png");
    1.41 +}
    1.42 +
    1.43 +.messageImage[type="critical"] {
    1.44 +  list-style-image: url("chrome://global/skin/icons/error-16.png");
    1.45 +}
    1.46 +
    1.47 +.messageCloseButton {
    1.48 +  -moz-appearance: none;
    1.49 +  padding: 4px 2px;
    1.50 +  border: none !important;
    1.51 +}
    1.52 +
    1.53 +.messageCloseButton > .toolbarbutton-icon {
    1.54 +  -moz-margin-end: 5px;
    1.55 +}
    1.56 +
    1.57 +/* Popup notification */
    1.58 +
    1.59 +.popup-notification-description {
    1.60 +  max-width: 24em;
    1.61 +}
    1.62 +
    1.63 +.popup-notification-learnmore-link {
    1.64 +  margin-top: 1em !important;
    1.65 +}
    1.66 +
    1.67 +.popup-notification-learnmore-link:not([href]) {
    1.68 +  display: none;
    1.69 +}
    1.70 +
    1.71 +.popup-notification-button-container {
    1.72 +  margin-top: 17px;
    1.73 +}
    1.74 +
    1.75 +%ifdef XP_WIN
    1.76 +/*
    1.77 +XXX: apply styles to all themes until bug 509642 is fixed
    1.78 +@media (-moz-windows-default-theme) {
    1.79 +*/
    1.80 +  .popup-notification-menubutton {
    1.81 +    -moz-appearance: none;
    1.82 +    border-radius: 3px;
    1.83 +    padding: 0;
    1.84 +%ifndef WINDOWS_AERO
    1.85 +    background-color: rgba(250,250,250,.3);
    1.86 +%endif    
    1.87 +  }
    1.88 +
    1.89 +  .popup-notification-menubutton:hover:active {
    1.90 +    border-color: rgba(0,0,0,.5);
    1.91 +  }
    1.92 +
    1.93 +  .popup-notification-menubutton:not([type="menu-button"]),
    1.94 +  .popup-notification-menubutton > .button-menubutton-button,
    1.95 +  .popup-notification-menubutton > .button-menubutton-dropmarker {
    1.96 +    -moz-appearance: none;
    1.97 +    margin: 0;
    1.98 +    border: 1px solid rgba(0,0,0,.35);
    1.99 +%ifdef WINDOWS_AERO
   1.100 +    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));
   1.101 +    box-shadow: 0 0 1px 1px rgba(255,255,255,.75) inset;
   1.102 +%else
   1.103 +    box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
   1.104 +                0 2px 2px rgba(255,255,255,.35) inset,
   1.105 +                0 -1px 2px rgba(0,0,0,.1) inset,
   1.106 +                0 1px 0 rgba(255,255,255,.35);
   1.107 +%endif
   1.108 +  }
   1.109 +
   1.110 +  .popup-notification-menubutton > .button-menubutton-button {
   1.111 +    background-color: transparent;
   1.112 +    padding: 1px;
   1.113 +    -moz-border-end: none;
   1.114 +  }
   1.115 +
   1.116 +  .popup-notification-menubutton:not([type="menu-button"]),
   1.117 +  .popup-notification-menubutton > .button-menubutton-button > .button-box {
   1.118 +    -moz-padding-start: 8px;
   1.119 +    -moz-padding-end: 5px;
   1.120 +  }
   1.121 +
   1.122 +  .popup-notification-menubutton > .button-menubutton-dropmarker {
   1.123 +    padding: 9px 5px 8px;
   1.124 +    width: auto;
   1.125 +    height: auto;
   1.126 +    list-style-image: url("chrome://global/skin/arrow/arrow-dn-sharp.gif");
   1.127 +  }
   1.128 +
   1.129 +  .popup-notification-menubutton:-moz-focusring > .button-menubutton-dropmarker {
   1.130 +    outline: 1px dotted ThreeDDarkShadow;
   1.131 +    outline-offset: -3px;
   1.132 +  }
   1.133 +
   1.134 +%ifdef WINDOWS_AERO
   1.135 +  .popup-notification-menubutton > .button-menubutton-button:-moz-locale-dir(ltr),
   1.136 +  .popup-notification-menubutton > .button-menubutton-dropmarker:-moz-locale-dir(rtl) {
   1.137 +    border-radius: 2px 0 0 2px;
   1.138 +  }
   1.139 +
   1.140 +  .popup-notification-menubutton > .button-menubutton-button:-moz-locale-dir(rtl),
   1.141 +  .popup-notification-menubutton > .button-menubutton-dropmarker:-moz-locale-dir(ltr) {
   1.142 +    border-radius: 0 2px 2px 0;
   1.143 +  }
   1.144 +%endif
   1.145 +
   1.146 +  .popup-notification-menubutton:not([type="menu-button"]):hover,
   1.147 +  .popup-notification-menubutton > .button-menubutton-button:hover,
   1.148 +  .popup-notification-menubutton > .button-menubutton-dropmarker:hover {
   1.149 +%ifdef WINDOWS_AERO
   1.150 +    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));
   1.151 +    box-shadow: 0 0 0 1px white inset,
   1.152 +                0 0 2px 1px rgba(255,255,255,.75) inset;
   1.153 +%else
   1.154 +    background-color: rgba(250,250,250,.6);
   1.155 +%endif
   1.156 +  }
   1.157 +
   1.158 +  .popup-notification-menubutton:not([type="menu-button"]):hover:active,
   1.159 +  .popup-notification-menubutton > .button-menubutton-button:hover:active,
   1.160 +  .popup-notification-menubutton > .button-menubutton-dropmarker:hover:active,
   1.161 +  .popup-notification-menubutton[open="true"] > .button-menubutton-dropmarker {
   1.162 +%ifdef WINDOWS_AERO
   1.163 +    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));
   1.164 +%else
   1.165 +    background-color: rgba(0,0,0,.05);
   1.166 +%endif
   1.167 +    box-shadow: 0 0 2px rgba(0,0,0,.65) inset;
   1.168 +  }
   1.169 +/*}*/
   1.170 +%endif
   1.171 +
   1.172 +.popup-notification-closebutton {
   1.173 +  -moz-margin-end: -14px;
   1.174 +  margin-top: -10px;
   1.175 +}

mercurial