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 | @namespace url("http://www.w3.org/1999/xhtml"); |
michael@0 | 6 | @namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
michael@0 | 7 | |
michael@0 | 8 | /* Style the scrollbars */ |
michael@0 | 9 | xul|window xul|scrollbar { |
michael@0 | 10 | display: none; |
michael@0 | 11 | } |
michael@0 | 12 | |
michael@0 | 13 | html xul|scrollbar[root="true"] { |
michael@0 | 14 | position: relative; |
michael@0 | 15 | z-index: 2147483647; |
michael@0 | 16 | } |
michael@0 | 17 | |
michael@0 | 18 | html xul|scrollbar { |
michael@0 | 19 | -moz-appearance: none !important; |
michael@0 | 20 | background-color: transparent !important; |
michael@0 | 21 | background-image: none !important; |
michael@0 | 22 | border: 0px solid transparent !important; |
michael@0 | 23 | pointer-events: none; |
michael@0 | 24 | opacity: 1; |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | xul|scrollbar[orient="vertical"] { |
michael@0 | 28 | -moz-margin-start: -8px; |
michael@0 | 29 | min-width: 8px; |
michael@0 | 30 | max-width: 8px; |
michael@0 | 31 | } |
michael@0 | 32 | |
michael@0 | 33 | xul|scrollbar[orient="vertical"] xul|thumb { |
michael@0 | 34 | max-width: 6px !important; |
michael@0 | 35 | min-width: 6px !important; |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | xul|scrollbar[orient="horizontal"] { |
michael@0 | 39 | margin-top: -8px; |
michael@0 | 40 | min-height: 8px; |
michael@0 | 41 | max-height: 8px; |
michael@0 | 42 | } |
michael@0 | 43 | |
michael@0 | 44 | xul|scrollbar[orient="horizontal"] xul|thumb { |
michael@0 | 45 | max-height: 6px !important; |
michael@0 | 46 | min-height: 6px !important; |
michael@0 | 47 | } |
michael@0 | 48 | |
michael@0 | 49 | xul|scrollbar:not([active="true"]), |
michael@0 | 50 | xul|scrollbar[disabled] { |
michael@0 | 51 | opacity: 0; |
michael@0 | 52 | transition: opacity 1s ease; |
michael@0 | 53 | } |
michael@0 | 54 | |
michael@0 | 55 | xul|scrollbarbutton { |
michael@0 | 56 | min-height: 8px !important; |
michael@0 | 57 | min-width: 8px !important; |
michael@0 | 58 | -moz-appearance: none !important; |
michael@0 | 59 | visibility: hidden; |
michael@0 | 60 | } |
michael@0 | 61 | |
michael@0 | 62 | xul|scrollbarbutton[sbattr="scrollbar-up-top"], |
michael@0 | 63 | xul|scrollbarbutton[sbattr="scrollbar-bottom-top"] { |
michael@0 | 64 | display: none; |
michael@0 | 65 | } |
michael@0 | 66 | |
michael@0 | 67 | xul|thumb { |
michael@0 | 68 | background-color: rgba(0, 0, 0, 0.4) !important; |
michael@0 | 69 | -moz-border-top-colors: none !important; |
michael@0 | 70 | -moz-border-bottom-colors: none !important; |
michael@0 | 71 | -moz-border-right-colors: none !important; |
michael@0 | 72 | -moz-border-left-colors: none !important; |
michael@0 | 73 | border: 1px solid rgba(255, 255, 255, 0.4) !important; |
michael@0 | 74 | border-radius: 3px; |
michael@0 | 75 | } |
michael@0 | 76 | |
michael@0 | 77 | xul|scrollbarbutton { |
michael@0 | 78 | background-image: none !important; |
michael@0 | 79 | } |
michael@0 | 80 | |
michael@0 | 81 | /* -moz-touch-enabled? media elements */ |
michael@0 | 82 | :-moz-any(video, audio) > xul|videocontrols { |
michael@0 | 83 | -moz-binding: url("chrome://global/content/bindings/videocontrols.xml#touchControls"); |
michael@0 | 84 | } |
michael@0 | 85 | |
michael@0 | 86 | select:not([size]):not([multiple]) > xul|scrollbar, |
michael@0 | 87 | select[size="1"] > xul|scrollbar, |
michael@0 | 88 | select:not([size]):not([multiple]) xul|scrollbarbutton, |
michael@0 | 89 | select[size="1"] xul|scrollbarbutton { |
michael@0 | 90 | display: block; |
michael@0 | 91 | margin-left: 0; |
michael@0 | 92 | min-width: 16px; |
michael@0 | 93 | } |
michael@0 | 94 | |
michael@0 | 95 | /* Override inverse OS themes */ |
michael@0 | 96 | select, |
michael@0 | 97 | textarea, |
michael@0 | 98 | button, |
michael@0 | 99 | xul|button, |
michael@0 | 100 | * > input:not([type="image"]) { |
michael@0 | 101 | -moz-appearance: none !important; /* See bug 598421 for fixing the platform */ |
michael@0 | 102 | border-radius: 3px; |
michael@0 | 103 | } |
michael@0 | 104 | |
michael@0 | 105 | select[size], |
michael@0 | 106 | select[multiple], |
michael@0 | 107 | select[size][multiple], |
michael@0 | 108 | textarea, |
michael@0 | 109 | * > input:not([type="image"]) { |
michael@0 | 110 | border-style: solid; |
michael@0 | 111 | border-color: #7d7d7d; |
michael@0 | 112 | color: #414141; |
michael@0 | 113 | background: white linear-gradient(rgba(115,115,115,0.5) 0, rgba(215,215,215,0.5) 3px, rgba(255,255,255,0.2) 16px); |
michael@0 | 114 | } |
michael@0 | 115 | |
michael@0 | 116 | /* Selects are handled by the form helper, see bug 685197 */ |
michael@0 | 117 | select option, select optgroup { |
michael@0 | 118 | pointer-events: none; |
michael@0 | 119 | } |
michael@0 | 120 | |
michael@0 | 121 | select:not([size]):not([multiple]), |
michael@0 | 122 | select[size="0"], |
michael@0 | 123 | select[size="1"], |
michael@0 | 124 | * > input[type="button"], |
michael@0 | 125 | * > input[type="submit"], |
michael@0 | 126 | * > input[type="reset"], |
michael@0 | 127 | button { |
michael@0 | 128 | border-style: solid; |
michael@0 | 129 | border-color: #7d7d7d; |
michael@0 | 130 | color: #414141; |
michael@0 | 131 | background: white linear-gradient(rgba(255,255,255,0.2) 0, rgba(215,215,215,0.5) 18px, rgba(115,115,115,0.5) 100%); |
michael@0 | 132 | } |
michael@0 | 133 | |
michael@0 | 134 | input[type="checkbox"] { |
michael@0 | 135 | background: white linear-gradient(rgba(115,115,115,0.5) 0, rgba(215,215,215,0.5) 2px, rgba(255,255,255,0.2) 6px); |
michael@0 | 136 | } |
michael@0 | 137 | |
michael@0 | 138 | input[type="radio"] { |
michael@0 | 139 | background: radial-gradient(at 6px 6px, rgba(255,255,255,0.2) 3px, rgba(195,195,195,0.5) 5px, rgba(115,115,115,0.5) 100%); |
michael@0 | 140 | } |
michael@0 | 141 | |
michael@0 | 142 | select { |
michael@0 | 143 | border-width: 1px; |
michael@0 | 144 | padding: 1px; |
michael@0 | 145 | } |
michael@0 | 146 | |
michael@0 | 147 | select:not([size]):not([multiple]), |
michael@0 | 148 | select[size="0"], |
michael@0 | 149 | select[size="1"] { |
michael@0 | 150 | padding: 0 1px 0 1px; |
michael@0 | 151 | } |
michael@0 | 152 | |
michael@0 | 153 | * > input:not([type="image"]) { |
michael@0 | 154 | border-width: 1px; |
michael@0 | 155 | padding: 1px; |
michael@0 | 156 | } |
michael@0 | 157 | |
michael@0 | 158 | textarea { |
michael@0 | 159 | resize: none; |
michael@0 | 160 | border-width: 1px; |
michael@0 | 161 | padding: 2px 1px 2px 1px; |
michael@0 | 162 | } |
michael@0 | 163 | |
michael@0 | 164 | input[type="button"], |
michael@0 | 165 | input[type="submit"], |
michael@0 | 166 | input[type="reset"], |
michael@0 | 167 | button { |
michael@0 | 168 | border-width: 1px; |
michael@0 | 169 | padding: 0 7px 0 7px; |
michael@0 | 170 | } |
michael@0 | 171 | |
michael@0 | 172 | input[type="radio"], |
michael@0 | 173 | input[type="checkbox"] { |
michael@0 | 174 | max-width: 14px; |
michael@0 | 175 | max-height: 14px; |
michael@0 | 176 | border: 1px solid #a7a7a7 !important; |
michael@0 | 177 | padding: 2px 1px 2px 1px; |
michael@0 | 178 | } |
michael@0 | 179 | |
michael@0 | 180 | select > button { |
michael@0 | 181 | border-width: 0px !important; |
michael@0 | 182 | margin: 0px !important; |
michael@0 | 183 | padding: 0px !important; |
michael@0 | 184 | border-radius: 0; |
michael@0 | 185 | color: #414141; |
michael@0 | 186 | |
michael@0 | 187 | background-image: radial-gradient(at bottom left, #bbbbbb 40%, #f5f5f5), url(arrow.svg) !important; |
michael@0 | 188 | background-color: transparent; |
michael@0 | 189 | background-position: -15px center, 4px center !important; |
michael@0 | 190 | background-repeat: no-repeat, no-repeat !important; |
michael@0 | 191 | background-size: 100% 90%, auto auto; |
michael@0 | 192 | |
michael@0 | 193 | -moz-binding: none !important; |
michael@0 | 194 | position: relative !important; |
michael@0 | 195 | font-size: inherit; |
michael@0 | 196 | } |
michael@0 | 197 | |
michael@0 | 198 | select[size]:focus, |
michael@0 | 199 | select[multiple]:focus, |
michael@0 | 200 | select[size][multiple]:focus, |
michael@0 | 201 | textarea:focus, |
michael@0 | 202 | input[type="file"]:focus > input[type="text"], |
michael@0 | 203 | * > input:not([type="image"]):focus { |
michael@0 | 204 | outline: 0px !important; |
michael@0 | 205 | border-style: solid; |
michael@0 | 206 | border-color: rgb(94,128,153); |
michael@0 | 207 | background: white linear-gradient(rgba(27,113,177,0.5) 0, rgba(198,225,246,0.2) 3px, rgba(255,255,255,0.2) 16px); |
michael@0 | 208 | } |
michael@0 | 209 | |
michael@0 | 210 | select:not([size]):not([multiple]):focus, |
michael@0 | 211 | select[size="0"]:focus, |
michael@0 | 212 | select[size="1"]:focus, |
michael@0 | 213 | input[type="button"]:focus, |
michael@0 | 214 | input[type="submit"]:focus, |
michael@0 | 215 | input[type="reset"]:focus, |
michael@0 | 216 | button:focus { |
michael@0 | 217 | outline: 0px !important; |
michael@0 | 218 | border-style: solid; |
michael@0 | 219 | border-color: rgb(94,128,153); |
michael@0 | 220 | background: white linear-gradient(rgba(255,255,255,0.2) 0, rgba(198,225,256,0.2) 18px, rgba(27,113,177,0.5) 100%); |
michael@0 | 221 | } |
michael@0 | 222 | |
michael@0 | 223 | input[type="checkbox"]:focus, |
michael@0 | 224 | input[type="radio"]:focus { |
michael@0 | 225 | border-color: #99c6e0 !important; |
michael@0 | 226 | } |
michael@0 | 227 | |
michael@0 | 228 | input[type="checkbox"]:focus { |
michael@0 | 229 | background: white linear-gradient(rgba(27,113,177,0.5) 0, rgba(198,225,246,0.2) 2px, rgba(255,255,255,0.2) 6px); |
michael@0 | 230 | } |
michael@0 | 231 | |
michael@0 | 232 | input[type="radio"]:focus { |
michael@0 | 233 | background: radial-gradient(at 6px 6px, rgba(255,255,255,0.2) 3px, rgba(198,225,246,0.2) 5px, rgba(27,113,177,0.5) 100%); |
michael@0 | 234 | } |
michael@0 | 235 | |
michael@0 | 236 | /* we need to be specific for selects because the above rules are specific too */ |
michael@0 | 237 | textarea[disabled], |
michael@0 | 238 | select[size][disabled], |
michael@0 | 239 | select[multiple][disabled], |
michael@0 | 240 | select[size][multiple][disabled], |
michael@0 | 241 | select:not([size]):not([multiple])[disabled], |
michael@0 | 242 | select[size="0"][disabled], |
michael@0 | 243 | select[size="1"][disabled], |
michael@0 | 244 | button[disabled], |
michael@0 | 245 | * > input:not([type="image"])[disabled] { |
michael@0 | 246 | color: rgba(0,0,0,0.3); |
michael@0 | 247 | border-color: rgba(125,125,125,0.4); |
michael@0 | 248 | border-style: solid; |
michael@0 | 249 | border-width: 1px; |
michael@0 | 250 | background: transparent linear-gradient(rgba(185,185,185,0.4) 0, rgba(235,235,235,0.4) 3px, rgba(255,255,255,0.4) 100%); |
michael@0 | 251 | } |
michael@0 | 252 | |
michael@0 | 253 | select:not([size]):not([multiple])[disabled], |
michael@0 | 254 | select[size="0"][disabled], |
michael@0 | 255 | select[size="1"][disabled] { |
michael@0 | 256 | background: transparent linear-gradient(rgba(255,255,255,0.4) 0, rgba(235,235,235,0.4) 3px, rgba(185,185,185,0.4) 100%); |
michael@0 | 257 | } |
michael@0 | 258 | |
michael@0 | 259 | input[type="button"][disabled], |
michael@0 | 260 | input[type="submit"][disabled], |
michael@0 | 261 | input[type="reset"][disabled], |
michael@0 | 262 | button[disabled="true"] { |
michael@0 | 263 | padding: 0 7px 0 7px; |
michael@0 | 264 | background: transparent linear-gradient(rgba(255,255,255,0.4) 0, rgba(235,235,235,0.4) 3px, rgba(185,185,185,0.4) 100%); |
michael@0 | 265 | } |
michael@0 | 266 | |
michael@0 | 267 | input[type="radio"][disabled], |
michael@0 | 268 | input[type="radio"][disabled]:active, |
michael@0 | 269 | input[type="radio"][disabled]:hover, |
michael@0 | 270 | input[type="radio"][disabled]:hover:active, |
michael@0 | 271 | input[type="checkbox"][disabled], |
michael@0 | 272 | input[type="checkbox"][disabled]:active, |
michael@0 | 273 | input[type="checkbox"][disabled]:hover, |
michael@0 | 274 | input[type="checkbox"][disabled]:hover:active { |
michael@0 | 275 | border:1px solid rgba(125,125,125,0.4) !important; |
michael@0 | 276 | } |
michael@0 | 277 | |
michael@0 | 278 | select[disabled] > button { |
michael@0 | 279 | opacity: 0.6; |
michael@0 | 280 | padding: 1px 7px 1px 7px; |
michael@0 | 281 | } |
michael@0 | 282 | |
michael@0 | 283 | *:-moz-any-link:active, |
michael@0 | 284 | *[role=button]:active, |
michael@0 | 285 | button:active, |
michael@0 | 286 | input:active, |
michael@0 | 287 | option:active, |
michael@0 | 288 | select:active, |
michael@0 | 289 | label:active, |
michael@0 | 290 | textarea:active { |
michael@0 | 291 | background-color: rgba(141, 184, 216, 0.5); |
michael@0 | 292 | } |
michael@0 | 293 | |
michael@0 | 294 | input[type=number] > div > div, /* work around bug 946184 */ |
michael@0 | 295 | input[type=number]::-moz-number-spin-box { |
michael@0 | 296 | display: none; |
michael@0 | 297 | } |
michael@0 | 298 | |
michael@0 | 299 | %ifdef MOZ_WIDGET_GONK |
michael@0 | 300 | /* This binding only provide key shortcuts that we can't use on devices */ |
michael@0 | 301 | input, |
michael@0 | 302 | textarea { |
michael@0 | 303 | -moz-binding: none !important; |
michael@0 | 304 | } |
michael@0 | 305 | %endif |