Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 | %include shared.inc |
michael@0 | 6 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
michael@0 | 7 | |
michael@0 | 8 | notification { |
michael@0 | 9 | padding: 3px 3px 4px; |
michael@0 | 10 | text-shadow: none; |
michael@0 | 11 | } |
michael@0 | 12 | |
michael@0 | 13 | notification[type="info"] { |
michael@0 | 14 | color: rgba(255,255,255,0.95); |
michael@0 | 15 | background: url("chrome://global/skin/notification/info-bar-background.png") #404040 repeat-x top left; |
michael@0 | 16 | border-top: 1px solid #707070; |
michael@0 | 17 | border-bottom: 1px solid #2a2a2a; |
michael@0 | 18 | } |
michael@0 | 19 | |
michael@0 | 20 | notification[type="warning"] { |
michael@0 | 21 | color: rgba(0,0,0,0.95); |
michael@0 | 22 | background: url("chrome://global/skin/notification/warning-bar-background.png") #ffc703 repeat-x top left; |
michael@0 | 23 | border-top: 1px solid #ffe970; |
michael@0 | 24 | border-bottom: 1px solid #bf8a01; |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | notification[type="critical"] { |
michael@0 | 28 | color: rgba(255,255,255,0.95); |
michael@0 | 29 | background: url("chrome://global/skin/notification/critical-bar-background.png") #980000 repeat-x top left; |
michael@0 | 30 | border-top: 1px solid #e35959; |
michael@0 | 31 | border-bottom: 1px solid #5d0000; |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | .messageImage { |
michael@0 | 35 | width: 16px; |
michael@0 | 36 | height: 16px; |
michael@0 | 37 | margin: 0 4px; |
michael@0 | 38 | } |
michael@0 | 39 | |
michael@0 | 40 | /* Default icons for notifications */ |
michael@0 | 41 | |
michael@0 | 42 | .messageImage[type="info"] { |
michael@0 | 43 | list-style-image: url("chrome://global/skin/notification/info-icon.png"); |
michael@0 | 44 | } |
michael@0 | 45 | |
michael@0 | 46 | .messageImage[type="warning"] { |
michael@0 | 47 | list-style-image: url("chrome://global/skin/notification/warning-icon.png"); |
michael@0 | 48 | } |
michael@0 | 49 | |
michael@0 | 50 | .messageImage[type="critical"] { |
michael@0 | 51 | list-style-image: url("chrome://global/skin/notification/error-icon.png"); |
michael@0 | 52 | } |
michael@0 | 53 | |
michael@0 | 54 | .notification-inner { |
michael@0 | 55 | border: 0 !important; |
michael@0 | 56 | } |
michael@0 | 57 | |
michael@0 | 58 | .messageText { |
michael@0 | 59 | margin: 0 3px !important; |
michael@0 | 60 | padding: 0; |
michael@0 | 61 | font-weight: bold; |
michael@0 | 62 | } |
michael@0 | 63 | |
michael@0 | 64 | .messageCloseButton { |
michael@0 | 65 | -moz-appearance: none; |
michael@0 | 66 | padding: 0; |
michael@0 | 67 | margin: 0 2px; |
michael@0 | 68 | border: none; |
michael@0 | 69 | } |
michael@0 | 70 | |
michael@0 | 71 | .messageCloseButton > .toolbarbutton-text { |
michael@0 | 72 | display: none; |
michael@0 | 73 | } |
michael@0 | 74 | |
michael@0 | 75 | .messageCloseButton:-moz-focusring > .toolbarbutton-icon { |
michael@0 | 76 | border-radius: 10000px; |
michael@0 | 77 | box-shadow: 0 0 2px 1px -moz-mac-focusring, |
michael@0 | 78 | 0 0 0 2px -moz-mac-focusring inset; |
michael@0 | 79 | } |
michael@0 | 80 | |
michael@0 | 81 | @media (min-resolution: 2dppx) { |
michael@0 | 82 | .messageCloseButton > .toolbarbutton-icon { |
michael@0 | 83 | width: 16px; |
michael@0 | 84 | } |
michael@0 | 85 | } |
michael@0 | 86 | |
michael@0 | 87 | /* Popup notification */ |
michael@0 | 88 | |
michael@0 | 89 | .popup-notification-description { |
michael@0 | 90 | max-width: 24em; |
michael@0 | 91 | } |
michael@0 | 92 | |
michael@0 | 93 | .popup-notification-learnmore-link { |
michael@0 | 94 | margin-top: 1em !important; |
michael@0 | 95 | -moz-margin-start: 0 !important; /* override default label margin to match description margin */ |
michael@0 | 96 | } |
michael@0 | 97 | |
michael@0 | 98 | .popup-notification-learnmore-link:not([href]) { |
michael@0 | 99 | display: none; |
michael@0 | 100 | } |
michael@0 | 101 | |
michael@0 | 102 | .popup-notification-button-container { |
michael@0 | 103 | margin-top: 17px; |
michael@0 | 104 | } |
michael@0 | 105 | |
michael@0 | 106 | .popup-notification-menubutton { |
michael@0 | 107 | -moz-appearance: none; |
michael@0 | 108 | } |
michael@0 | 109 | |
michael@0 | 110 | .popup-notification-menubutton:not([type="menu-button"]):-moz-focusring, |
michael@0 | 111 | .popup-notification-menubutton:-moz-focusring > .button-menubutton-dropmarker, |
michael@0 | 112 | .popup-notification-menubutton > .button-menubutton-button:-moz-focusring { |
michael@0 | 113 | box-shadow: @focusRingShadow@; |
michael@0 | 114 | position: relative; |
michael@0 | 115 | } |
michael@0 | 116 | |
michael@0 | 117 | .popup-notification-menubutton:not([type="menu-button"]), |
michael@0 | 118 | .popup-notification-menubutton > .button-menubutton-button, |
michael@0 | 119 | .popup-notification-menubutton > .button-menubutton-dropmarker { |
michael@0 | 120 | -moz-appearance: none; |
michael@0 | 121 | color: #434343; |
michael@0 | 122 | border-radius: 4px; |
michael@0 | 123 | border: 1px solid #b5b5b5; |
michael@0 | 124 | background: linear-gradient(#fff, #f2f2f2); |
michael@0 | 125 | box-shadow: inset 0 1px rgba(255,255,255,.8), |
michael@0 | 126 | inset 0 0 1px rgba(255,255,255,.25), |
michael@0 | 127 | 0 1px rgba(255,255,255,.3); |
michael@0 | 128 | background-clip: padding-box; |
michael@0 | 129 | background-origin: padding-box; |
michael@0 | 130 | padding: 2px 6px; |
michael@0 | 131 | } |
michael@0 | 132 | |
michael@0 | 133 | .popup-notification-menubutton > .button-menubutton-button { |
michael@0 | 134 | -moz-appearance: none; |
michael@0 | 135 | margin: 0; |
michael@0 | 136 | padding-top: 2px; |
michael@0 | 137 | padding-bottom: 2px; |
michael@0 | 138 | -moz-padding-start: 8px; |
michael@0 | 139 | -moz-padding-end: 5px; |
michael@0 | 140 | } |
michael@0 | 141 | |
michael@0 | 142 | .popup-notification-menubutton > .button-menubutton-dropmarker { |
michael@0 | 143 | padding: 7px 8px; |
michael@0 | 144 | margin-top: 0; |
michael@0 | 145 | margin-bottom: 0; |
michael@0 | 146 | -moz-margin-start: -1px; |
michael@0 | 147 | list-style-image: url("chrome://global/skin/icons/panel-dropmarker.png"); |
michael@0 | 148 | } |
michael@0 | 149 | |
michael@0 | 150 | .popup-notification-menubutton > .button-menubutton-button:-moz-locale-dir(ltr), |
michael@0 | 151 | .popup-notification-menubutton > .button-menubutton-dropmarker:-moz-locale-dir(rtl) { |
michael@0 | 152 | border-top-right-radius: 0; |
michael@0 | 153 | border-bottom-right-radius: 0; |
michael@0 | 154 | } |
michael@0 | 155 | |
michael@0 | 156 | .popup-notification-menubutton > .button-menubutton-button:-moz-locale-dir(rtl), |
michael@0 | 157 | .popup-notification-menubutton > .button-menubutton-dropmarker:-moz-locale-dir(ltr) { |
michael@0 | 158 | border-top-left-radius: 0; |
michael@0 | 159 | border-bottom-left-radius: 0; |
michael@0 | 160 | } |
michael@0 | 161 | |
michael@0 | 162 | .popup-notification-menubutton:not([type="menu-button"]):hover:active, |
michael@0 | 163 | .popup-notification-menubutton > .button-menubutton-button:hover:active, |
michael@0 | 164 | .popup-notification-menubutton[open="true"] > .button-menubutton-dropmarker { |
michael@0 | 165 | box-shadow: inset 0 1px 4px -3px #000, 0 1px rgba(255, 255, 255, 0.3); |
michael@0 | 166 | } |
michael@0 | 167 | |
michael@0 | 168 | .popup-notification-closebutton { |
michael@0 | 169 | -moz-margin-end: -12px; |
michael@0 | 170 | margin-top: -13px; |
michael@0 | 171 | } |
michael@0 | 172 | |
michael@0 | 173 | .popup-notification-closeitem > .menu-iconic-left { |
michael@0 | 174 | display: none; |
michael@0 | 175 | } |