toolkit/themes/windows/global/notification.css

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
michael@0 6
michael@0 7 notification {
michael@0 8 background-color: InfoBackground;
michael@0 9 color: InfoText;
michael@0 10 text-shadow: none;
michael@0 11 }
michael@0 12
michael@0 13 notification[type="info"] {
michael@0 14 background-color: -moz-Dialog;
michael@0 15 color: -moz-DialogText;
michael@0 16 }
michael@0 17
michael@0 18 notification[type="critical"] {
michael@0 19 background-image: linear-gradient(rgb(212,0,0), rgb(152,0,0));
michael@0 20 color: white;
michael@0 21 }
michael@0 22
michael@0 23 .messageImage {
michael@0 24 width: 16px;
michael@0 25 height: 16px;
michael@0 26 -moz-margin-start: 6px;
michael@0 27 -moz-margin-end: 1px;
michael@0 28 }
michael@0 29
michael@0 30 /* Default icons for notifications */
michael@0 31
michael@0 32 .messageImage[type="info"] {
michael@0 33 list-style-image: url("chrome://global/skin/icons/information-16.png");
michael@0 34 }
michael@0 35
michael@0 36 .messageImage[type="warning"] {
michael@0 37 list-style-image: url("chrome://global/skin/icons/warning-16.png");
michael@0 38 }
michael@0 39
michael@0 40 .messageImage[type="critical"] {
michael@0 41 list-style-image: url("chrome://global/skin/icons/error-16.png");
michael@0 42 }
michael@0 43
michael@0 44 .messageCloseButton {
michael@0 45 -moz-appearance: none;
michael@0 46 padding: 4px 2px;
michael@0 47 border: none !important;
michael@0 48 }
michael@0 49
michael@0 50 .messageCloseButton > .toolbarbutton-icon {
michael@0 51 -moz-margin-end: 5px;
michael@0 52 }
michael@0 53
michael@0 54 /* Popup notification */
michael@0 55
michael@0 56 .popup-notification-description {
michael@0 57 max-width: 24em;
michael@0 58 }
michael@0 59
michael@0 60 .popup-notification-learnmore-link {
michael@0 61 margin-top: 1em !important;
michael@0 62 }
michael@0 63
michael@0 64 .popup-notification-learnmore-link:not([href]) {
michael@0 65 display: none;
michael@0 66 }
michael@0 67
michael@0 68 .popup-notification-button-container {
michael@0 69 margin-top: 17px;
michael@0 70 }
michael@0 71
michael@0 72 %ifdef XP_WIN
michael@0 73 /*
michael@0 74 XXX: apply styles to all themes until bug 509642 is fixed
michael@0 75 @media (-moz-windows-default-theme) {
michael@0 76 */
michael@0 77 .popup-notification-menubutton {
michael@0 78 -moz-appearance: none;
michael@0 79 border-radius: 3px;
michael@0 80 padding: 0;
michael@0 81 %ifndef WINDOWS_AERO
michael@0 82 background-color: rgba(250,250,250,.3);
michael@0 83 %endif
michael@0 84 }
michael@0 85
michael@0 86 .popup-notification-menubutton:hover:active {
michael@0 87 border-color: rgba(0,0,0,.5);
michael@0 88 }
michael@0 89
michael@0 90 .popup-notification-menubutton:not([type="menu-button"]),
michael@0 91 .popup-notification-menubutton > .button-menubutton-button,
michael@0 92 .popup-notification-menubutton > .button-menubutton-dropmarker {
michael@0 93 -moz-appearance: none;
michael@0 94 margin: 0;
michael@0 95 border: 1px solid rgba(0,0,0,.35);
michael@0 96 %ifdef WINDOWS_AERO
michael@0 97 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 98 box-shadow: 0 0 1px 1px rgba(255,255,255,.75) inset;
michael@0 99 %else
michael@0 100 box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
michael@0 101 0 2px 2px rgba(255,255,255,.35) inset,
michael@0 102 0 -1px 2px rgba(0,0,0,.1) inset,
michael@0 103 0 1px 0 rgba(255,255,255,.35);
michael@0 104 %endif
michael@0 105 }
michael@0 106
michael@0 107 .popup-notification-menubutton > .button-menubutton-button {
michael@0 108 background-color: transparent;
michael@0 109 padding: 1px;
michael@0 110 -moz-border-end: none;
michael@0 111 }
michael@0 112
michael@0 113 .popup-notification-menubutton:not([type="menu-button"]),
michael@0 114 .popup-notification-menubutton > .button-menubutton-button > .button-box {
michael@0 115 -moz-padding-start: 8px;
michael@0 116 -moz-padding-end: 5px;
michael@0 117 }
michael@0 118
michael@0 119 .popup-notification-menubutton > .button-menubutton-dropmarker {
michael@0 120 padding: 9px 5px 8px;
michael@0 121 width: auto;
michael@0 122 height: auto;
michael@0 123 list-style-image: url("chrome://global/skin/arrow/arrow-dn-sharp.gif");
michael@0 124 }
michael@0 125
michael@0 126 .popup-notification-menubutton:-moz-focusring > .button-menubutton-dropmarker {
michael@0 127 outline: 1px dotted ThreeDDarkShadow;
michael@0 128 outline-offset: -3px;
michael@0 129 }
michael@0 130
michael@0 131 %ifdef WINDOWS_AERO
michael@0 132 .popup-notification-menubutton > .button-menubutton-button:-moz-locale-dir(ltr),
michael@0 133 .popup-notification-menubutton > .button-menubutton-dropmarker:-moz-locale-dir(rtl) {
michael@0 134 border-radius: 2px 0 0 2px;
michael@0 135 }
michael@0 136
michael@0 137 .popup-notification-menubutton > .button-menubutton-button:-moz-locale-dir(rtl),
michael@0 138 .popup-notification-menubutton > .button-menubutton-dropmarker:-moz-locale-dir(ltr) {
michael@0 139 border-radius: 0 2px 2px 0;
michael@0 140 }
michael@0 141 %endif
michael@0 142
michael@0 143 .popup-notification-menubutton:not([type="menu-button"]):hover,
michael@0 144 .popup-notification-menubutton > .button-menubutton-button:hover,
michael@0 145 .popup-notification-menubutton > .button-menubutton-dropmarker:hover {
michael@0 146 %ifdef WINDOWS_AERO
michael@0 147 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 148 box-shadow: 0 0 0 1px white inset,
michael@0 149 0 0 2px 1px rgba(255,255,255,.75) inset;
michael@0 150 %else
michael@0 151 background-color: rgba(250,250,250,.6);
michael@0 152 %endif
michael@0 153 }
michael@0 154
michael@0 155 .popup-notification-menubutton:not([type="menu-button"]):hover:active,
michael@0 156 .popup-notification-menubutton > .button-menubutton-button:hover:active,
michael@0 157 .popup-notification-menubutton > .button-menubutton-dropmarker:hover:active,
michael@0 158 .popup-notification-menubutton[open="true"] > .button-menubutton-dropmarker {
michael@0 159 %ifdef WINDOWS_AERO
michael@0 160 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 161 %else
michael@0 162 background-color: rgba(0,0,0,.05);
michael@0 163 %endif
michael@0 164 box-shadow: 0 0 2px rgba(0,0,0,.65) inset;
michael@0 165 }
michael@0 166 /*}*/
michael@0 167 %endif
michael@0 168
michael@0 169 .popup-notification-closebutton {
michael@0 170 -moz-margin-end: -14px;
michael@0 171 margin-top: -10px;
michael@0 172 }

mercurial