1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mobile/android/themes/core/content.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,316 @@ 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 +%filter substitution 1.9 +%include defines.inc 1.10 + 1.11 +@namespace url("http://www.w3.org/1999/xhtml"); 1.12 +@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 1.13 + 1.14 +::-moz-selection { 1.15 + background-color: @color_background_highlight@; 1.16 + color: @color_text_highlight@; 1.17 +} 1.18 + 1.19 +/* Style the scrollbars */ 1.20 +html xul|scrollbar { 1.21 + display: none; 1.22 +} 1.23 + 1.24 +xul|window xul|scrollbar { 1.25 + display: block; 1.26 +} 1.27 + 1.28 +xul|window xul|scrollbar[orient="vertical"] { 1.29 + -moz-appearance: none !important; 1.30 + opacity: 0; 1.31 + position: relative; 1.32 + margin-left: -8px; 1.33 + min-width: 8px; 1.34 + background-color: transparent !important; 1.35 + background-image: none !important; 1.36 + border: 0px solid transparent !important; 1.37 +} 1.38 + 1.39 +xul|window xul|scrollbar[orient="vertical"]:-moz-locale-dir(rtl) { 1.40 + margin-left: 2px; 1.41 + margin-right: -10px; 1.42 +} 1.43 + 1.44 +xul|window xul|scrollbar[orient="vertical"] xul|thumb { 1.45 + max-width: 6px !important; 1.46 + min-width: 6px !important; 1.47 +} 1.48 + 1.49 +xul|window xul|scrollbar[orient="horizontal"] { 1.50 + -moz-appearance: none !important; 1.51 + opacity: 0; 1.52 + position: relative; 1.53 + min-height: 8px; 1.54 + margin-top: -8px; 1.55 + background-color: transparent !important; 1.56 + background-image: none !important; 1.57 + border: 0px solid transparent !important; 1.58 +} 1.59 + 1.60 +xul|window xul|scrollbar[orient="horizontal"] xul|thumb { 1.61 + max-height: 6px !important; 1.62 + min-height: 6px !important; 1.63 +} 1.64 + 1.65 +xul|*[panning="true"] xul|scrollbar { 1.66 + opacity: 1; 1.67 +} 1.68 + 1.69 +xul|window xul|scrollbox { 1.70 + overflow-y: scroll; 1.71 + overflow-x: scroll; 1.72 +} 1.73 + 1.74 +xul|window xul|scrollbarbutton { 1.75 + min-height: 8px !important; 1.76 + min-width: 8px !important; 1.77 + -moz-appearance: none !important; 1.78 + visibility: hidden; 1.79 +} 1.80 + 1.81 +xul|window xul|scrollbarbutton[sbattr="scrollbar-up-top"], 1.82 +xul|window xul|scrollbarbutton[sbattr="scrollbar-bottom-top"] { 1.83 + display: none; 1.84 +} 1.85 + 1.86 +xul|window xul|scrollbar xul|thumb { 1.87 + background-color: @color_background_scroller@ !important; 1.88 + -moz-border-top-colors: none !important; 1.89 + -moz-border-bottom-colors: none !important; 1.90 + -moz-border-right-colors: none !important; 1.91 + -moz-border-left-colors: none !important; 1.92 + border: 1px solid rgba(255, 255, 255, 0.4) !important; 1.93 + border-radius: 3px; 1.94 +} 1.95 + 1.96 +select:not([size]):not([multiple]) > xul|scrollbar, 1.97 +select[size="1"] > xul|scrollbar, 1.98 +select:not([size]):not([multiple]) xul|scrollbarbutton, 1.99 +select[size="1"] xul|scrollbarbutton { 1.100 + display: block; 1.101 + margin-left: 0; 1.102 + min-width: 16px; 1.103 +} 1.104 + 1.105 +/* Override inverse OS themes */ 1.106 +select, 1.107 +textarea, 1.108 +button, 1.109 +xul|button, 1.110 +* > input:not([type="image"]) { 1.111 + -moz-appearance: none !important; /* See bug 598421 for fixing the platform */ 1.112 + border-radius: 3px; 1.113 +} 1.114 + 1.115 +select[size], 1.116 +select[multiple], 1.117 +select[size][multiple], 1.118 +textarea, 1.119 +* > input:not([type="image"]) { 1.120 + border-style: solid; 1.121 + border-color: #7d7d7d; 1.122 + color: #414141; 1.123 + 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); 1.124 +} 1.125 + 1.126 +/* Selects are handled by the form helper, see bug 685197 */ 1.127 +select option, select optgroup { 1.128 + pointer-events: none; 1.129 +} 1.130 + 1.131 +select:not([size]):not([multiple]), 1.132 +select[size="0"], 1.133 +select[size="1"], 1.134 +* > input[type="button"], 1.135 +* > input[type="submit"], 1.136 +* > input[type="reset"], 1.137 +button { 1.138 + border-style: solid; 1.139 + border-color: #7d7d7d; 1.140 + color: #414141; 1.141 + 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%); 1.142 +} 1.143 + 1.144 +input[type="checkbox"] { 1.145 + 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); 1.146 +} 1.147 + 1.148 +input[type="radio"] { 1.149 + 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%); 1.150 +} 1.151 + 1.152 +select { 1.153 + border-width: 1px; 1.154 + padding: 1px; 1.155 +} 1.156 + 1.157 +select:not([size]):not([multiple]), 1.158 +select[size="0"], 1.159 +select[size="1"] { 1.160 + padding: 0 1px 0 1px; 1.161 +} 1.162 + 1.163 +* > input:not([type="image"]) { 1.164 + border-width: 1px; 1.165 + padding: 1px; 1.166 +} 1.167 + 1.168 +textarea { 1.169 + resize: none; 1.170 + border-width: 1px; 1.171 + padding: 2px 1px 2px 1px; 1.172 +} 1.173 + 1.174 +input[type="button"], 1.175 +input[type="submit"], 1.176 +input[type="reset"], 1.177 +button { 1.178 + border-width: 1px; 1.179 + padding: 0 7px 0 7px; 1.180 +} 1.181 + 1.182 +input[type="radio"], 1.183 +input[type="checkbox"] { 1.184 + max-width: 14px; 1.185 + max-height: 14px; 1.186 + border: 1px solid #a7a7a7 !important; 1.187 + padding: 2px 1px 2px 1px; 1.188 +} 1.189 + 1.190 +select > button { 1.191 + border-width: 0px !important; 1.192 + margin: 0px !important; 1.193 + padding: 0px !important; 1.194 + border-radius: 0; 1.195 + color: #414141; 1.196 + 1.197 + background-size: auto auto, 100% 90%; 1.198 + background-color: transparent; 1.199 + background-image: url("chrome://browser/skin/images/dropmarker.svg"), 1.200 + radial-gradient(at bottom left, #bbbbbb 40%, #f5f5f5) !important; 1.201 + background-position: -moz-calc(50% + 1px) center, -15px center !important; 1.202 + background-repeat: no-repeat !important; 1.203 + 1.204 + font-size: inherit; 1.205 +} 1.206 + 1.207 +select[size]:focus, 1.208 +select[multiple]:focus, 1.209 +select[size][multiple]:focus, 1.210 +textarea:focus, 1.211 +input[type="file"]:focus > input[type="text"], 1.212 +* > input:not([type="image"]):focus { 1.213 + outline: 0px !important; 1.214 + border-style: solid; 1.215 + border-color: rgb(94,128,153); 1.216 + 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); 1.217 +} 1.218 + 1.219 +select:not([size]):not([multiple]):focus, 1.220 +select[size="0"]:focus, 1.221 +select[size="1"]:focus, 1.222 +input[type="button"]:focus, 1.223 +input[type="submit"]:focus, 1.224 +input[type="reset"]:focus, 1.225 +button:focus { 1.226 + outline: 0px !important; 1.227 + border-style: solid; 1.228 + border-color: rgb(94,128,153); 1.229 + 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%); 1.230 +} 1.231 + 1.232 +input[type="checkbox"]:focus, 1.233 +input[type="radio"]:focus { 1.234 + border-color: #99c6e0 !important; 1.235 +} 1.236 + 1.237 +input[type="checkbox"]:focus { 1.238 + 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); 1.239 +} 1.240 + 1.241 +input[type="radio"]:focus { 1.242 + 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%); 1.243 +} 1.244 + 1.245 +/* we need to be specific for selects because the above rules are specific too */ 1.246 +textarea[disabled], 1.247 +select[size][disabled], 1.248 +select[multiple][disabled], 1.249 +select[size][multiple][disabled], 1.250 +select:not([size]):not([multiple])[disabled], 1.251 +select[size="0"][disabled], 1.252 +select[size="1"][disabled], 1.253 +button[disabled], 1.254 +button[disabled]:active, 1.255 +* > input:not([type="image"])[disabled], 1.256 +* > input:not([type="image"])[disabled]:active { 1.257 + color: rgba(0,0,0,0.3); 1.258 + border-color: rgba(125,125,125,0.4); 1.259 + border-style: solid; 1.260 + border-width: 1px; 1.261 + 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%); 1.262 +} 1.263 + 1.264 +select:not([size]):not([multiple])[disabled], 1.265 +select[size="0"][disabled], 1.266 +select[size="1"][disabled] { 1.267 + 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%); 1.268 +} 1.269 + 1.270 +input[type="button"][disabled], 1.271 +input[type="button"][disabled]:active, 1.272 +input[type="submit"][disabled], 1.273 +input[type="submit"][disabled]:active, 1.274 +input[type="reset"][disabled], 1.275 +input[type="reset"][disabled]:active, 1.276 +button[disabled], 1.277 +button[disabled]:active { 1.278 + padding: 0 7px 0 7px; 1.279 + 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%); 1.280 +} 1.281 + 1.282 +input[type="radio"][disabled], 1.283 +input[type="radio"][disabled]:active, 1.284 +input[type="radio"][disabled]:hover, 1.285 +input[type="radio"][disabled]:hover:active, 1.286 +input[type="checkbox"][disabled], 1.287 +input[type="checkbox"][disabled]:active, 1.288 +input[type="checkbox"][disabled]:hover, 1.289 +input[type="checkbox"][disabled]:hover:active { 1.290 + border:1px solid rgba(125,125,125,0.4) !important; 1.291 +} 1.292 + 1.293 +select[disabled] > button { 1.294 + opacity: 0.6; 1.295 + padding: 1px 7px 1px 7px; 1.296 +} 1.297 + 1.298 +/* -moz-touch-enabled? media elements */ 1.299 +:-moz-any(video, audio) > xul|videocontrols { 1.300 + -moz-binding: url("chrome://global/content/bindings/videocontrols.xml#touchControls"); 1.301 +} 1.302 + 1.303 +*:-moz-any-link:active, 1.304 +*[role=button]:active, 1.305 +button:not([disabled]):active, 1.306 +input:not(:focus):not([disabled]):active, 1.307 +select:not([disabled]):active, 1.308 +textarea:not(:focus):not([disabled]):active, 1.309 +option:active, 1.310 +label:active, 1.311 +xul|menulist:active { 1.312 + background-color: @color_background_highlight_overlay@; 1.313 +} 1.314 + 1.315 +input[type=number] > div > div, /* work around bug 946184 */ 1.316 +input[type=number]::-moz-number-spin-box { 1.317 + display: none; 1.318 +} 1.319 +