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

mercurial