1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/content/xul.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,1205 @@ 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 +/** this should only contain XUL dialog and document window widget defaults. Defaults for widgets of 1.9 + a particular application should be in that application's style sheet. 1.10 + For example style definitions for navigator can be found in navigator.css 1.11 + 1.12 + THIS FILE IS LOCKED DOWN. YOU ARE NOT ALLOWED TO MODIFY IT WITHOUT FIRST HAVING YOUR 1.13 + CHANGES REVIEWED BY enndeakin@sympatico.ca 1.14 +**/ 1.15 + 1.16 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */ 1.17 +@namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */ 1.18 +@namespace xbl url("http://www.mozilla.org/xbl"); /* namespace for XBL elements */ 1.19 + 1.20 +* { 1.21 + -moz-user-focus: ignore; 1.22 + -moz-user-select: none; 1.23 + display: -moz-box; 1.24 + box-sizing: border-box; 1.25 +} 1.26 + 1.27 +:root { 1.28 + text-rendering: optimizeLegibility; 1.29 + -moz-binding: url("chrome://global/content/bindings/general.xml#root-element"); 1.30 + -moz-control-character-visibility: visible; 1.31 +} 1.32 + 1.33 +:root:-moz-locale-dir(rtl) { 1.34 + direction: rtl; 1.35 +} 1.36 + 1.37 +/* hide the content and destroy the frame */ 1.38 +[hidden="true"] { 1.39 + display: none; 1.40 +} 1.41 + 1.42 +/* hide the content, but don't destroy the frames */ 1.43 +[collapsed="true"], 1.44 +[moz-collapsed="true"] { 1.45 + visibility: collapse; 1.46 +} 1.47 + 1.48 + 1.49 +/* :::::::::: 1.50 + :: Rules for 'hiding' portions of the chrome for special 1.51 + :: kinds of windows (not JUST browser windows) with toolbars 1.52 + ::::: */ 1.53 + 1.54 +window[chromehidden~="menubar"] .chromeclass-menubar, 1.55 +window[chromehidden~="directories"] .chromeclass-directories, 1.56 +window[chromehidden~="status"] .chromeclass-status, 1.57 +window[chromehidden~="extrachrome"] .chromeclass-extrachrome, 1.58 +window[chromehidden~="location"] .chromeclass-location, 1.59 +window[chromehidden~="location"][chromehidden~="toolbar"] .chromeclass-toolbar, 1.60 +window[chromehidden~="toolbar"] .chromeclass-toolbar-additional { 1.61 + display: none; 1.62 +} 1.63 + 1.64 +/* :::::::::: 1.65 + :: Rules for forcing direction for entry and display of URIs 1.66 + :: or URI elements 1.67 + ::::: */ 1.68 + 1.69 +.uri-element { 1.70 + direction: ltr !important; 1.71 +} 1.72 + 1.73 +/****** elements that have no visual representation ******/ 1.74 + 1.75 +script, data, 1.76 +xbl|children, 1.77 +commands, commandset, command, 1.78 +broadcasterset, broadcaster, observes, 1.79 +keyset, key, toolbarpalette, toolbarset, 1.80 +template, rule, conditions, action, 1.81 +bindings, binding, content, member, triple, 1.82 +treechildren, treeitem, treeseparator, treerow, treecell { 1.83 + display: none; 1.84 +} 1.85 + 1.86 +/********** focus rules **********/ 1.87 + 1.88 +button, 1.89 +checkbox, 1.90 +colorpicker[type="button"], 1.91 +datepicker[type="grid"], 1.92 +menulist, 1.93 +radiogroup, 1.94 +tree, 1.95 +browser, 1.96 +editor, 1.97 +iframe { 1.98 + -moz-user-focus: normal; 1.99 +} 1.100 + 1.101 +menulist[editable="true"] { 1.102 + -moz-user-focus: ignore; 1.103 +} 1.104 + 1.105 +/******** window & page ******/ 1.106 + 1.107 +window, 1.108 +page { 1.109 + overflow: -moz-hidden-unscrollable; 1.110 + -moz-box-orient: vertical; 1.111 +} 1.112 + 1.113 +/******** box *******/ 1.114 + 1.115 +vbox { 1.116 + -moz-box-orient: vertical; 1.117 +} 1.118 + 1.119 +bbox { 1.120 + -moz-box-align: baseline; 1.121 +} 1.122 + 1.123 +/********** button **********/ 1.124 + 1.125 +button { 1.126 + -moz-binding: url("chrome://global/content/bindings/button.xml#button"); 1.127 +} 1.128 + 1.129 +button[type="repeat"] { 1.130 + -moz-binding: url("chrome://global/content/bindings/button.xml#button-repeat"); 1.131 +} 1.132 + 1.133 +button[type="menu"], button[type="panel"] { 1.134 + -moz-binding: url("chrome://global/content/bindings/button.xml#menu"); 1.135 +} 1.136 + 1.137 +button[type="menu-button"] { 1.138 + -moz-binding: url("chrome://global/content/bindings/button.xml#menu-button"); 1.139 +} 1.140 + 1.141 +%ifdef MOZ_WIDGET_GTK 1.142 +/********* detection of system setting to use icons in buttons ***********/ 1.143 +button[label]:not([label=""]) > .button-box > .button-icon:not(:-moz-system-metric(images-in-buttons)), 1.144 +button[label]:not([label=""]) > .button-box > .box-inherit > .button-icon:not(:-moz-system-metric(images-in-buttons)) { 1.145 + display: none; 1.146 +} 1.147 +%endif 1.148 + 1.149 +/********** toolbarbutton **********/ 1.150 + 1.151 +toolbarbutton { 1.152 + -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton"); 1.153 +} 1.154 + 1.155 +toolbarbutton[type="menu"], 1.156 +toolbarbutton[type="panel"] { 1.157 + -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu"); 1.158 +} 1.159 + 1.160 +toolbarbutton[type="menu-button"] { 1.161 + -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu-button"); 1.162 +} 1.163 + 1.164 +toolbar[mode="icons"] .toolbarbutton-text, 1.165 +toolbar[mode="icons"] .toolbarbutton-multiline-text, 1.166 +toolbar[mode="text"] .toolbarbutton-icon { 1.167 + display: none; 1.168 +} 1.169 + 1.170 +.toolbarbutton-multiline-text:not([wrap="true"]), 1.171 +.toolbarbutton-text[wrap="true"] { 1.172 + display: none; 1.173 +} 1.174 + 1.175 +/******** browser, editor, iframe ********/ 1.176 + 1.177 +browser, 1.178 +editor, 1.179 +iframe { 1.180 + display: inline; 1.181 +} 1.182 + 1.183 +browser { 1.184 + -moz-binding: url("chrome://global/content/bindings/browser.xml#browser"); 1.185 +} 1.186 + 1.187 +editor { 1.188 + -moz-binding: url("chrome://global/content/bindings/editor.xml#editor"); 1.189 +} 1.190 + 1.191 +iframe { 1.192 + -moz-binding: url("chrome://global/content/bindings/general.xml#iframe"); 1.193 +} 1.194 + 1.195 +/********** notifications **********/ 1.196 + 1.197 +notificationbox { 1.198 + -moz-binding: url("chrome://global/content/bindings/notification.xml#notificationbox"); 1.199 + -moz-box-orient: vertical; 1.200 +} 1.201 + 1.202 +.notificationbox-stack { 1.203 + overflow: -moz-hidden-unscrollable; 1.204 +} 1.205 + 1.206 +notification { 1.207 + -moz-binding: url("chrome://global/content/bindings/notification.xml#notification"); 1.208 + transition: margin-top 300ms, opacity 300ms; 1.209 +} 1.210 + 1.211 +/*********** popup notification ************/ 1.212 +popupnotification { 1.213 + -moz-binding: url("chrome://global/content/bindings/notification.xml#popup-notification"); 1.214 +} 1.215 + 1.216 +.popup-notification-menubutton:not([label]) { 1.217 + display: none; 1.218 +} 1.219 + 1.220 +/********** image **********/ 1.221 + 1.222 +image { 1.223 + -moz-binding: url("chrome://global/content/bindings/general.xml#image"); 1.224 +} 1.225 + 1.226 +/********** checkbox **********/ 1.227 + 1.228 +checkbox { 1.229 + -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox"); 1.230 +} 1.231 + 1.232 +/********** radio **********/ 1.233 + 1.234 +radiogroup { 1.235 + -moz-binding: url("chrome://global/content/bindings/radio.xml#radiogroup"); 1.236 + -moz-box-orient: vertical; 1.237 +} 1.238 + 1.239 +radio { 1.240 + -moz-binding: url("chrome://global/content/bindings/radio.xml#radio"); 1.241 +} 1.242 + 1.243 +/******** groupbox *********/ 1.244 + 1.245 +groupbox { 1.246 + -moz-binding: url("chrome://global/content/bindings/groupbox.xml#groupbox"); 1.247 + display: -moz-groupbox; 1.248 +} 1.249 + 1.250 +caption { 1.251 + -moz-binding: url("chrome://global/content/bindings/groupbox.xml#caption"); 1.252 +} 1.253 + 1.254 +.groupbox-body { 1.255 + -moz-box-pack: inherit; 1.256 + -moz-box-align: inherit; 1.257 + -moz-box-orient: vertical; 1.258 +} 1.259 + 1.260 +/******* toolbar *******/ 1.261 + 1.262 +toolbox { 1.263 + -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbox"); 1.264 + -moz-box-orient: vertical; 1.265 +} 1.266 + 1.267 +toolbar { 1.268 + -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar"); 1.269 +} 1.270 + 1.271 +toolbar[customizing="true"][collapsed="true"] { 1.272 + /* Some apps, e.g. Firefox, use 'collapsed' to hide toolbars. 1.273 + Override it while customizing. */ 1.274 + visibility: visible; 1.275 +} 1.276 + 1.277 +toolbar[customizing="true"][hidden="true"] { 1.278 + /* Some apps, e.g. SeaMonkey, use 'hidden' to hide toolbars. 1.279 + Override it while customizing. */ 1.280 + display: -moz-box; 1.281 +} 1.282 + 1.283 +%ifdef XP_MACOSX 1.284 +toolbar[type="menubar"] { 1.285 + min-height: 0 !important; 1.286 + border: 0 !important; 1.287 +} 1.288 +%else 1.289 +toolbar[type="menubar"][autohide="true"] { 1.290 + -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-menubar-autohide"); 1.291 + overflow: hidden; 1.292 +} 1.293 + 1.294 +toolbar[type="menubar"][autohide="true"][inactive="true"]:not([customizing="true"]) { 1.295 + min-height: 0 !important; 1.296 + height: 0 !important; 1.297 + -moz-appearance: none !important; 1.298 + border-style: none !important; 1.299 +} 1.300 +%endif 1.301 + 1.302 +toolbarseparator { 1.303 + -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration"); 1.304 +} 1.305 + 1.306 +toolbarspacer { 1.307 + -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration"); 1.308 +} 1.309 + 1.310 +toolbarspring { 1.311 + -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration"); 1.312 + -moz-box-flex: 1000; 1.313 +} 1.314 + 1.315 +toolbarpaletteitem { 1.316 + -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbarpaletteitem"); 1.317 +} 1.318 + 1.319 +toolbarpaletteitem[place="palette"] { 1.320 + -moz-box-orient: vertical; 1.321 + -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbarpaletteitem-palette"); 1.322 +} 1.323 + 1.324 +/********* menubar ***********/ 1.325 + 1.326 +menubar { 1.327 + -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar"); 1.328 +} 1.329 + 1.330 +/********* menu ***********/ 1.331 + 1.332 +menubar > menu { 1.333 + -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar"); 1.334 +} 1.335 + 1.336 +menubar > menu.menu-iconic { 1.337 + -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar-iconic"); 1.338 +} 1.339 + 1.340 +menu { 1.341 + -moz-binding: url("chrome://global/content/bindings/menu.xml#menu"); 1.342 +} 1.343 + 1.344 +menu.menu-iconic { 1.345 + -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-iconic"); 1.346 +} 1.347 + 1.348 +menubar > menu:empty { 1.349 + visibility: collapse; 1.350 +} 1.351 + 1.352 +/********* menuitem ***********/ 1.353 + 1.354 +menuitem { 1.355 + -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem"); 1.356 +} 1.357 + 1.358 +menuitem.menuitem-iconic { 1.359 + -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic"); 1.360 +} 1.361 + 1.362 +menuitem[description] { 1.363 + -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic-desc-noaccel"); 1.364 +} 1.365 + 1.366 +menuitem[type="checkbox"], 1.367 +menuitem[type="radio"] { 1.368 + -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic"); 1.369 +} 1.370 + 1.371 +menuitem.menuitem-non-iconic { 1.372 + -moz-binding: url("chrome://global/content/bindings/menu.xml#menubutton-item"); 1.373 +} 1.374 + 1.375 +.menu-text { 1.376 + -moz-box-flex: 1; 1.377 +} 1.378 + 1.379 +%ifdef MOZ_WIDGET_GTK 1.380 +/********* detection of system setting to use icons in menus ***********/ 1.381 +@media not all and (-moz-images-in-menus) { 1.382 + .menu-iconic-left { 1.383 + visibility: hidden; 1.384 + } 1.385 + :-moz-any(menuitem[type], .menuitem-with-favicon) > .menu-iconic-left { 1.386 + visibility: visible; 1.387 + } 1.388 +} 1.389 +%endif 1.390 + 1.391 +/********* menuseparator ***********/ 1.392 + 1.393 +menuseparator { 1.394 + -moz-binding: url("chrome://global/content/bindings/menu.xml#menuseparator"); 1.395 +} 1.396 + 1.397 +/********* popup & menupopup ***********/ 1.398 + 1.399 +/* <popup> is deprecated. Only <menupopup> and <tooltip> are still valid. */ 1.400 + 1.401 +popup, 1.402 +menupopup { 1.403 + -moz-binding: url("chrome://global/content/bindings/popup.xml#popup"); 1.404 + -moz-box-orient: vertical; 1.405 +} 1.406 + 1.407 +panel { 1.408 + -moz-binding: url("chrome://global/content/bindings/popup.xml#panel"); 1.409 + -moz-box-orient: vertical; 1.410 +} 1.411 + 1.412 +popup, 1.413 +menupopup, 1.414 +panel, 1.415 +tooltip { 1.416 + display: -moz-popup; 1.417 + z-index: 2147483647; 1.418 + text-shadow: none; 1.419 +} 1.420 + 1.421 +tooltip { 1.422 + -moz-binding: url("chrome://global/content/bindings/popup.xml#tooltip"); 1.423 + -moz-box-orient: vertical; 1.424 + white-space: pre-wrap; 1.425 + margin-top: 21px; 1.426 +} 1.427 + 1.428 +panel[type="arrow"] { 1.429 + -moz-binding: url("chrome://global/content/bindings/popup.xml#arrowpanel"); 1.430 +} 1.431 + 1.432 +%ifdef XP_MACOSX 1.433 +.statusbar-resizerpanel { 1.434 + display: none; 1.435 +} 1.436 +%else 1.437 +window[sizemode="maximized"] statusbarpanel.statusbar-resizerpanel { 1.438 + visibility: collapse; 1.439 +} 1.440 +%endif 1.441 + 1.442 +/******** grid **********/ 1.443 + 1.444 +grid { 1.445 + display: -moz-grid; 1.446 +} 1.447 + 1.448 +rows, 1.449 +columns { 1.450 + display: -moz-grid-group; 1.451 +} 1.452 + 1.453 +row, 1.454 +column { 1.455 + display: -moz-grid-line; 1.456 +} 1.457 + 1.458 +rows { 1.459 + -moz-box-orient: vertical; 1.460 +} 1.461 + 1.462 +column { 1.463 + -moz-box-orient: vertical; 1.464 +} 1.465 + 1.466 +/******** listbox **********/ 1.467 + 1.468 +listbox { 1.469 + -moz-binding: url("chrome://global/content/bindings/listbox.xml#listbox"); 1.470 +} 1.471 + 1.472 +listhead { 1.473 + -moz-binding: url("chrome://global/content/bindings/listbox.xml#listhead"); 1.474 +} 1.475 + 1.476 +listrows { 1.477 + -moz-binding: url("chrome://global/content/bindings/listbox.xml#listrows"); 1.478 +} 1.479 + 1.480 +listitem { 1.481 + -moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem"); 1.482 +} 1.483 + 1.484 +listitem[type="checkbox"] { 1.485 + -moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem-checkbox"); 1.486 +} 1.487 + 1.488 +listheader { 1.489 + -moz-binding: url("chrome://global/content/bindings/listbox.xml#listheader"); 1.490 + -moz-box-ordinal-group: 2147483646; 1.491 +} 1.492 + 1.493 +listcell { 1.494 + -moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell"); 1.495 +} 1.496 + 1.497 +listcell[type="checkbox"] { 1.498 + -moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell-checkbox"); 1.499 +} 1.500 + 1.501 +.listitem-iconic { 1.502 + -moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem-iconic"); 1.503 +} 1.504 + 1.505 +listitem[type="checkbox"].listitem-iconic { 1.506 + -moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem-checkbox-iconic"); 1.507 +} 1.508 + 1.509 +.listcell-iconic { 1.510 + -moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell-iconic"); 1.511 +} 1.512 + 1.513 +listcell[type="checkbox"].listcell-iconic { 1.514 + -moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell-checkbox-iconic"); 1.515 +} 1.516 + 1.517 +listbox { 1.518 + display: -moz-grid; 1.519 +} 1.520 + 1.521 +listbox[rows] { 1.522 + height: auto; 1.523 +} 1.524 + 1.525 +listcols, listhead, listrows, listboxbody { 1.526 + display: -moz-grid-group; 1.527 +} 1.528 + 1.529 +listcol, listitem, listheaditem { 1.530 + display: -moz-grid-line; 1.531 +} 1.532 + 1.533 +listbox { 1.534 + -moz-user-focus: normal; 1.535 + -moz-box-orient: vertical; 1.536 + min-width: 0px; 1.537 + min-height: 0px; 1.538 + width: 200px; 1.539 + height: 200px; 1.540 +} 1.541 + 1.542 +listhead { 1.543 + -moz-box-orient: vertical; 1.544 +} 1.545 + 1.546 +listrows { 1.547 + -moz-box-orient: vertical; 1.548 + -moz-box-flex: 1; 1.549 +} 1.550 + 1.551 +listboxbody { 1.552 + -moz-box-orient: vertical; 1.553 + -moz-box-flex: 1; 1.554 + /* Don't permit a horizontal scrollbar. See bug 285449 */ 1.555 + overflow-x: hidden !important; 1.556 + overflow-y: auto; 1.557 + min-height: 0px; 1.558 +} 1.559 + 1.560 +listcol { 1.561 + -moz-box-orient: vertical; 1.562 + min-width: 16px; 1.563 +} 1.564 + 1.565 +listcell { 1.566 + -moz-box-align: center; 1.567 +} 1.568 + 1.569 +/******** tree ******/ 1.570 + 1.571 +tree { 1.572 + -moz-binding: url("chrome://global/content/bindings/tree.xml#tree"); 1.573 +} 1.574 + 1.575 +treecols { 1.576 + -moz-binding: url("chrome://global/content/bindings/tree.xml#treecols"); 1.577 +} 1.578 + 1.579 +treecol { 1.580 + -moz-binding: url("chrome://global/content/bindings/tree.xml#treecol"); 1.581 + -moz-box-ordinal-group: 2147483646; 1.582 +} 1.583 + 1.584 +treecol.treecol-image { 1.585 + -moz-binding: url("chrome://global/content/bindings/tree.xml#treecol-image"); 1.586 +} 1.587 + 1.588 +tree > treechildren { 1.589 + display: -moz-box; 1.590 + -moz-binding: url("chrome://global/content/bindings/tree.xml#treebody"); 1.591 + -moz-user-select: none; 1.592 + -moz-box-flex: 1; 1.593 +} 1.594 + 1.595 +treerows { 1.596 + -moz-binding: url("chrome://global/content/bindings/tree.xml#treerows"); 1.597 +} 1.598 + 1.599 +treecolpicker { 1.600 + -moz-binding: url("chrome://global/content/bindings/tree.xml#columnpicker"); 1.601 +} 1.602 + 1.603 +tree { 1.604 + -moz-box-orient: vertical; 1.605 + min-width: 0px; 1.606 + min-height: 0px; 1.607 + width: 10px; 1.608 + height: 10px; 1.609 +} 1.610 + 1.611 +tree[hidecolumnpicker="true"] > treecols > treecolpicker { 1.612 + display: none; 1.613 +} 1.614 + 1.615 +treecol { 1.616 + min-width: 16px; 1.617 +} 1.618 + 1.619 +treecol[hidden="true"] { 1.620 + visibility: collapse; 1.621 + display: -moz-box; 1.622 +} 1.623 + 1.624 +.tree-scrollable-columns { 1.625 + /* Yes, Virginia, this makes it scrollable */ 1.626 + overflow: hidden; 1.627 +} 1.628 + 1.629 +/* ::::: lines connecting cells ::::: */ 1.630 +tree:not([treelines="true"]) > treechildren::-moz-tree-line { 1.631 + visibility: hidden; 1.632 +} 1.633 + 1.634 +treechildren::-moz-tree-cell(ltr) { 1.635 + direction: ltr !important; 1.636 +} 1.637 + 1.638 +/********** deck & stack *********/ 1.639 + 1.640 +deck { 1.641 + display: -moz-deck; 1.642 + -moz-binding: url("chrome://global/content/bindings/general.xml#deck"); 1.643 +} 1.644 + 1.645 +stack, bulletinboard { 1.646 + display: -moz-stack; 1.647 +} 1.648 + 1.649 +/********** tabbox *********/ 1.650 + 1.651 +tabbox { 1.652 + -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabbox"); 1.653 + -moz-box-orient: vertical; 1.654 +} 1.655 + 1.656 +tabs { 1.657 + -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabs"); 1.658 + -moz-box-orient: horizontal; 1.659 +} 1.660 + 1.661 +tab { 1.662 + -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tab"); 1.663 + -moz-box-align: center; 1.664 + -moz-box-pack: center; 1.665 +} 1.666 + 1.667 +tab[selected="true"]:not([ignorefocus="true"]) { 1.668 + -moz-user-focus: normal; 1.669 +} 1.670 + 1.671 +tabpanels { 1.672 + -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabpanels"); 1.673 + display: -moz-deck; 1.674 +} 1.675 + 1.676 +/********** progressmeter **********/ 1.677 + 1.678 +progressmeter { 1.679 + -moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter"); 1.680 +} 1.681 + 1.682 +/********** basic rule for anonymous content that needs to pass box properties through 1.683 + ********** to an insertion point parent that holds the real kids **************/ 1.684 + 1.685 +.box-inherit { 1.686 + -moz-box-orient: inherit; 1.687 + -moz-box-pack: inherit; 1.688 + -moz-box-align: inherit; 1.689 + -moz-box-direction: inherit; 1.690 +} 1.691 + 1.692 +/********** label **********/ 1.693 + 1.694 +description { 1.695 + -moz-binding: url("chrome://global/content/bindings/text.xml#text-base"); 1.696 +} 1.697 + 1.698 +label { 1.699 + -moz-binding: url("chrome://global/content/bindings/text.xml#text-label"); 1.700 +} 1.701 + 1.702 +label.text-link, label[onclick] { 1.703 + -moz-binding: url("chrome://global/content/bindings/text.xml#text-link"); 1.704 + -moz-user-focus: normal; 1.705 +} 1.706 + 1.707 +label[control], label.radio-label, label.checkbox-label, label.toolbarbutton-multiline-text { 1.708 + -moz-binding: url("chrome://global/content/bindings/text.xml#label-control"); 1.709 +} 1.710 + 1.711 +html|span.accesskey { 1.712 + text-decoration: underline; 1.713 +} 1.714 + 1.715 +/********** textbox **********/ 1.716 + 1.717 +textbox { 1.718 + -moz-binding: url("chrome://global/content/bindings/textbox.xml#textbox"); 1.719 + -moz-user-select: text; 1.720 + text-shadow: none; 1.721 +} 1.722 + 1.723 +textbox[multiline="true"] { 1.724 + -moz-binding: url("chrome://global/content/bindings/textbox.xml#textarea"); 1.725 +} 1.726 + 1.727 +.textbox-input-box { 1.728 + -moz-binding: url("chrome://global/content/bindings/textbox.xml#input-box"); 1.729 +} 1.730 + 1.731 +html|textarea.textbox-textarea { 1.732 + resize: none; 1.733 +} 1.734 + 1.735 +textbox[resizable="true"] > .textbox-input-box > html|textarea.textbox-textarea { 1.736 + resize: both; 1.737 +} 1.738 + 1.739 +.textbox-input-box[spellcheck="true"] { 1.740 + -moz-binding: url("chrome://global/content/bindings/textbox.xml#input-box-spell"); 1.741 +} 1.742 + 1.743 +textbox[type="timed"] { 1.744 + -moz-binding: url("chrome://global/content/bindings/textbox.xml#timed-textbox"); 1.745 +} 1.746 + 1.747 +textbox[type="search"] { 1.748 + -moz-binding: url("chrome://global/content/bindings/textbox.xml#search-textbox"); 1.749 +} 1.750 + 1.751 +textbox[type="number"] { 1.752 + -moz-binding: url("chrome://global/content/bindings/numberbox.xml#numberbox"); 1.753 +} 1.754 + 1.755 +.textbox-contextmenu:-moz-locale-dir(rtl) { 1.756 + direction: rtl; 1.757 +} 1.758 + 1.759 +/********** autocomplete textbox **********/ 1.760 + 1.761 +/* SeaMonkey don't use the new toolkit's autocomplete widget yet.... */ 1.762 +%ifdef MOZ_SUITE 1.763 +%define AUTOCOMPLETE_OLD_STYLE 1.764 +%endif 1.765 + 1.766 +%ifdef AUTOCOMPLETE_OLD_STYLE 1.767 + 1.768 +textbox[type="autocomplete"] { 1.769 + -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete"); 1.770 +} 1.771 + 1.772 +panel[type="autocomplete"] { 1.773 + -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-result-popup"); 1.774 +} 1.775 + 1.776 +.autocomplete-history-popup { 1.777 + -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-history-popup"); 1.778 +} 1.779 + 1.780 +.autocomplete-treebody { 1.781 + -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-treebody"); 1.782 +} 1.783 + 1.784 +.autocomplete-history-dropmarker { 1.785 + -moz-binding: url("chrome://global/content/autocomplete.xml#history-dropmarker"); 1.786 +} 1.787 + 1.788 +%else 1.789 + 1.790 +textbox[type="autocomplete"] { 1.791 + -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete"); 1.792 +} 1.793 + 1.794 +panel[type="autocomplete"] { 1.795 + -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-result-popup"); 1.796 +} 1.797 + 1.798 +panel[type="autocomplete-richlistbox"] { 1.799 + -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-rich-result-popup"); 1.800 +} 1.801 + 1.802 +/* FIXME: bug 616258 */ 1.803 + 1.804 +.autocomplete-tree { 1.805 + -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-tree"); 1.806 + -moz-user-focus: ignore; 1.807 +} 1.808 + 1.809 +.autocomplete-treebody { 1.810 + -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-treebody"); 1.811 +} 1.812 + 1.813 +.autocomplete-richlistbox { 1.814 + -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-richlistbox"); 1.815 + -moz-user-focus: ignore; 1.816 +} 1.817 + 1.818 +.autocomplete-richlistbox > scrollbox { 1.819 + overflow-x: hidden !important; 1.820 +} 1.821 + 1.822 +.autocomplete-richlistitem { 1.823 + -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-richlistitem"); 1.824 + -moz-box-orient: vertical; 1.825 + overflow: -moz-hidden-unscrollable; 1.826 +} 1.827 + 1.828 +.autocomplete-treerows { 1.829 + -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-treerows"); 1.830 +} 1.831 + 1.832 +.autocomplete-history-dropmarker { 1.833 + display: none; 1.834 +} 1.835 + 1.836 +.autocomplete-history-dropmarker[enablehistory="true"] { 1.837 + display: -moz-box; 1.838 + -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#history-dropmarker"); 1.839 +} 1.840 + 1.841 +.ac-ellipsis-after { 1.842 + visibility: hidden; 1.843 +} 1.844 + 1.845 +.ac-url-text[type~="action"], 1.846 +.ac-action-text:not([type~="action"]) { 1.847 + visibility: collapse; 1.848 +} 1.849 + 1.850 +%endif 1.851 + 1.852 + 1.853 + 1.854 +/* the C++ implementation of widgets is too eager to make popups visible. 1.855 + this causes problems (bug 120155 and others), thus this workaround: */ 1.856 +popup[type="autocomplete"][hidden="true"] { 1.857 + visibility: hidden; 1.858 +} 1.859 + 1.860 +/* The following rule is here to fix bug 96899 (and now 117952). 1.861 + Somehow trees create a situation 1.862 + in which a popupset flows itself as if its popup child is directly within it 1.863 + instead of the placeholder child that should actually be inside the popupset. 1.864 + This is a stopgap measure, and it does not address the real bug. */ 1.865 +.autocomplete-result-popupset { 1.866 + max-width: 0px; 1.867 + width: 0 !important; 1.868 + min-width: 0%; 1.869 + min-height: 0%; 1.870 +} 1.871 + 1.872 +/********** colorpicker **********/ 1.873 + 1.874 +colorpicker { 1.875 + -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker"); 1.876 +} 1.877 + 1.878 +colorpicker[type="button"] { 1.879 + -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker-button"); 1.880 +} 1.881 + 1.882 +.colorpickertile { 1.883 + -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpickertile"); 1.884 +} 1.885 + 1.886 +/********** menulist **********/ 1.887 + 1.888 +menulist { 1.889 + -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist"); 1.890 +} 1.891 + 1.892 +menulist[editable="true"] { 1.893 + -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-editable"); 1.894 +} 1.895 + 1.896 +menulist[type="description"] { 1.897 + -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-description"); 1.898 +} 1.899 + 1.900 +menulist > menupopup > menuitem { 1.901 + -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic-noaccel"); 1.902 +} 1.903 + 1.904 +dropmarker { 1.905 + -moz-binding: url("chrome://global/content/bindings/general.xml#dropmarker"); 1.906 +} 1.907 + 1.908 +/********** resizer **********/ 1.909 + 1.910 +resizer { 1.911 + -moz-binding: url("chrome://global/content/bindings/resizer.xml#resizer"); 1.912 + position: relative; 1.913 + z-index: 2147483647; 1.914 +} 1.915 + 1.916 +/********** splitter **********/ 1.917 + 1.918 +splitter { 1.919 + -moz-binding: url("chrome://global/content/bindings/splitter.xml#splitter"); 1.920 +} 1.921 + 1.922 +grippy { 1.923 + -moz-binding: url("chrome://global/content/bindings/splitter.xml#grippy"); 1.924 +} 1.925 + 1.926 +.tree-splitter { 1.927 + width: 0px; 1.928 + max-width: 0px; 1.929 + min-width: 0% ! important; 1.930 + min-height: 0% ! important; 1.931 + -moz-box-ordinal-group: 2147483646; 1.932 +} 1.933 + 1.934 +/********** scrollbar **********/ 1.935 + 1.936 +/* Scrollbars are never flipped even if BiDI kicks in. */ 1.937 +scrollbar[orient="horizontal"] { 1.938 + direction: ltr; 1.939 +} 1.940 + 1.941 +thumb { 1.942 + -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#thumb); 1.943 + display: -moz-box !important; 1.944 +} 1.945 + 1.946 +.scale-thumb { 1.947 + -moz-binding: url(chrome://global/content/bindings/scale.xml#scalethumb); 1.948 +} 1.949 + 1.950 +scrollbar, scrollbarbutton, scrollcorner, slider, thumb, scale { 1.951 + -moz-user-select: none; 1.952 +} 1.953 + 1.954 +scrollcorner { 1.955 + display: -moz-box !important; 1.956 +} 1.957 + 1.958 +scrollcorner[hidden="true"] { 1.959 + display: none !important; 1.960 +} 1.961 + 1.962 +scrollbar[value="hidden"] { 1.963 + visibility: hidden; 1.964 +} 1.965 + 1.966 +scale { 1.967 + -moz-binding: url(chrome://global/content/bindings/scale.xml#scale); 1.968 +} 1.969 + 1.970 +.scale-slider { 1.971 + -moz-binding: url(chrome://global/content/bindings/scale.xml#scaleslider); 1.972 + -moz-user-focus: normal; 1.973 +} 1.974 + 1.975 +scrollbarbutton[sbattr="scrollbar-up-top"]:not(:-moz-system-metric(scrollbar-start-backward)), 1.976 +scrollbarbutton[sbattr="scrollbar-down-top"]:not(:-moz-system-metric(scrollbar-start-forward)), 1.977 +scrollbarbutton[sbattr="scrollbar-up-bottom"]:not(:-moz-system-metric(scrollbar-end-backward)), 1.978 +scrollbarbutton[sbattr="scrollbar-down-bottom"]:not(:-moz-system-metric(scrollbar-end-forward)) { 1.979 + display: none; 1.980 +} 1.981 + 1.982 +thumb[sbattr="scrollbar-thumb"]:-moz-system-metric(scrollbar-thumb-proportional) { 1.983 + -moz-box-flex: 1; 1.984 +} 1.985 + 1.986 +/******** scrollbox ********/ 1.987 + 1.988 +scrollbox { 1.989 + -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#scrollbox"); 1.990 + /* This makes it scrollable! */ 1.991 + overflow: hidden; 1.992 +} 1.993 + 1.994 +arrowscrollbox { 1.995 + -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#arrowscrollbox"); 1.996 +} 1.997 + 1.998 +arrowscrollbox[clicktoscroll="true"] { 1.999 + -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#arrowscrollbox-clicktoscroll"); 1.1000 +} 1.1001 + 1.1002 +autorepeatbutton { 1.1003 + -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#autorepeatbutton"); 1.1004 +} 1.1005 + 1.1006 +/********** statusbar **********/ 1.1007 + 1.1008 +statusbar { 1.1009 + -moz-binding: url("chrome://global/content/bindings/general.xml#statusbar"); 1.1010 +%ifdef XP_MACOSX 1.1011 + padding-right: 14px; 1.1012 +%endif 1.1013 +} 1.1014 + 1.1015 +statusbarpanel { 1.1016 + -moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel"); 1.1017 +} 1.1018 + 1.1019 +.statusbarpanel-iconic { 1.1020 + -moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel-iconic"); 1.1021 +} 1.1022 + 1.1023 +.statusbarpanel-iconic-text { 1.1024 + -moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel-iconic-text"); 1.1025 +} 1.1026 + 1.1027 +.statusbarpanel-menu-iconic { 1.1028 + -moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel-menu-iconic"); 1.1029 +} 1.1030 + 1.1031 +/********** spinbuttons ***********/ 1.1032 + 1.1033 +spinbuttons { 1.1034 + -moz-binding: url("chrome://global/content/bindings/spinbuttons.xml#spinbuttons"); 1.1035 +} 1.1036 + 1.1037 +.spinbuttons-button { 1.1038 + -moz-user-focus: ignore; 1.1039 +} 1.1040 + 1.1041 +/********** stringbundle **********/ 1.1042 + 1.1043 +stringbundleset { 1.1044 + -moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundleset"); 1.1045 + visibility: collapse; 1.1046 +} 1.1047 + 1.1048 +stringbundle { 1.1049 + -moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundle"); 1.1050 + visibility: collapse; 1.1051 +} 1.1052 + 1.1053 +/********** dialog **********/ 1.1054 + 1.1055 +dialog, 1.1056 +dialog:root /* override :root from above */ { 1.1057 + -moz-binding: url("chrome://global/content/bindings/dialog.xml#dialog"); 1.1058 + -moz-box-orient: vertical; 1.1059 +} 1.1060 + 1.1061 +dialogheader { 1.1062 + -moz-binding: url("chrome://global/content/bindings/dialog.xml#dialogheader"); 1.1063 +} 1.1064 + 1.1065 +/********* page ************/ 1.1066 + 1.1067 +page { 1.1068 + -moz-box-orient: vertical; 1.1069 +} 1.1070 + 1.1071 +/********** wizard **********/ 1.1072 + 1.1073 +wizard, 1.1074 +wizard:root /* override :root from above */ { 1.1075 + -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard"); 1.1076 + -moz-box-orient: vertical; 1.1077 + width: 40em; 1.1078 + height: 30em; 1.1079 +} 1.1080 + 1.1081 +wizardpage { 1.1082 + -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizardpage"); 1.1083 + -moz-box-orient: vertical; 1.1084 + overflow: auto; 1.1085 +} 1.1086 + 1.1087 +.wizard-header { 1.1088 + -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-header"); 1.1089 +} 1.1090 + 1.1091 +.wizard-buttons { 1.1092 + -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-buttons"); 1.1093 +} 1.1094 + 1.1095 +/********** preferences ********/ 1.1096 + 1.1097 +prefwindow, 1.1098 +prefwindow:root /* override :root from above */ { 1.1099 + -moz-binding: url("chrome://global/content/bindings/preferences.xml#prefwindow"); 1.1100 + -moz-box-orient: vertical; 1.1101 +} 1.1102 + 1.1103 +prefpane { 1.1104 + -moz-binding: url("chrome://global/content/bindings/preferences.xml#prefpane"); 1.1105 + -moz-box-orient: vertical; 1.1106 +} 1.1107 + 1.1108 +prefwindow > .paneDeckContainer { 1.1109 + overflow: hidden; 1.1110 +} 1.1111 + 1.1112 +prefpane > .content-box { 1.1113 + overflow: hidden; 1.1114 +} 1.1115 + 1.1116 +prefwindow[type="child"] > .paneDeckContainer { 1.1117 + overflow: -moz-hidden-unscrollable; 1.1118 +} 1.1119 + 1.1120 +prefwindow[type="child"] > prefpane > .content-box { 1.1121 + -moz-box-flex: 1; 1.1122 + overflow: -moz-hidden-unscrollable; 1.1123 +} 1.1124 + 1.1125 +preferences { 1.1126 + -moz-binding: url("chrome://global/content/bindings/preferences.xml#preferences"); 1.1127 + visibility: collapse; 1.1128 +} 1.1129 + 1.1130 +preference { 1.1131 + -moz-binding: url("chrome://global/content/bindings/preferences.xml#preference"); 1.1132 + visibility: collapse; 1.1133 +} 1.1134 + 1.1135 +radio[pane] { 1.1136 + -moz-binding: url("chrome://global/content/bindings/preferences.xml#panebutton") !important; 1.1137 + -moz-box-orient: vertical; 1.1138 + -moz-box-align: center; 1.1139 +} 1.1140 + 1.1141 +prefwindow[chromehidden~="toolbar"] .chromeclass-toolbar { 1.1142 + display: none; 1.1143 +} 1.1144 + 1.1145 +/********** expander ********/ 1.1146 + 1.1147 +expander { 1.1148 + -moz-binding: url("chrome://global/content/bindings/expander.xml#expander"); 1.1149 + -moz-box-orient: vertical; 1.1150 +} 1.1151 + 1.1152 + 1.1153 +/********** Rich Listbox ********/ 1.1154 + 1.1155 +richlistbox { 1.1156 + -moz-binding: url('chrome://global/content/bindings/richlistbox.xml#richlistbox'); 1.1157 + -moz-user-focus: normal; 1.1158 + -moz-box-orient: vertical; 1.1159 +} 1.1160 + 1.1161 +richlistitem { 1.1162 + -moz-binding: url('chrome://global/content/bindings/richlistbox.xml#richlistitem'); 1.1163 +} 1.1164 + 1.1165 +richlistbox > listheader { 1.1166 + -moz-box-ordinal-group: 1; 1.1167 +} 1.1168 + 1.1169 +/********** datepicker and timepicker ********/ 1.1170 + 1.1171 +datepicker { 1.1172 + -moz-binding: url('chrome://global/content/bindings/datetimepicker.xml#datepicker'); 1.1173 +} 1.1174 + 1.1175 +datepicker[type="popup"] { 1.1176 + -moz-binding: url('chrome://global/content/bindings/datetimepicker.xml#datepicker-popup'); 1.1177 +} 1.1178 + 1.1179 +datepicker[type="grid"] { 1.1180 + -moz-binding: url('chrome://global/content/bindings/datetimepicker.xml#datepicker-grid'); 1.1181 +} 1.1182 + 1.1183 +timepicker { 1.1184 + -moz-binding: url('chrome://global/content/bindings/datetimepicker.xml#timepicker'); 1.1185 +} 1.1186 + 1.1187 + 1.1188 +/*********** findbar ************/ 1.1189 +findbar { 1.1190 + -moz-binding: url('chrome://global/content/bindings/findbar.xml#findbar'); 1.1191 +} 1.1192 + 1.1193 +.findbar-textbox { 1.1194 + -moz-binding: url("chrome://global/content/bindings/findbar.xml#findbar-textbox"); 1.1195 +} 1.1196 + 1.1197 + 1.1198 +/*********** filefield ************/ 1.1199 +filefield { 1.1200 + -moz-binding: url("chrome://global/content/bindings/filefield.xml#filefield"); 1.1201 +} 1.1202 + 1.1203 +/*********** tabmodalprompt ************/ 1.1204 +tabmodalprompt { 1.1205 + -moz-binding: url("chrome://global/content/tabprompts.xml#tabmodalprompt"); 1.1206 + overflow: hidden; 1.1207 + text-shadow: none; 1.1208 +}