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 | /** this should only contain XUL dialog and document window widget defaults. Defaults for widgets of |
michael@0 | 6 | a particular application should be in that application's style sheet. |
michael@0 | 7 | For example style definitions for navigator can be found in navigator.css |
michael@0 | 8 | |
michael@0 | 9 | THIS FILE IS LOCKED DOWN. YOU ARE NOT ALLOWED TO MODIFY IT WITHOUT FIRST HAVING YOUR |
michael@0 | 10 | CHANGES REVIEWED BY enndeakin@sympatico.ca |
michael@0 | 11 | **/ |
michael@0 | 12 | |
michael@0 | 13 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */ |
michael@0 | 14 | @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */ |
michael@0 | 15 | @namespace xbl url("http://www.mozilla.org/xbl"); /* namespace for XBL elements */ |
michael@0 | 16 | |
michael@0 | 17 | * { |
michael@0 | 18 | -moz-user-focus: ignore; |
michael@0 | 19 | -moz-user-select: none; |
michael@0 | 20 | display: -moz-box; |
michael@0 | 21 | box-sizing: border-box; |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | :root { |
michael@0 | 25 | text-rendering: optimizeLegibility; |
michael@0 | 26 | -moz-binding: url("chrome://global/content/bindings/general.xml#root-element"); |
michael@0 | 27 | -moz-control-character-visibility: visible; |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | :root:-moz-locale-dir(rtl) { |
michael@0 | 31 | direction: rtl; |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | /* hide the content and destroy the frame */ |
michael@0 | 35 | [hidden="true"] { |
michael@0 | 36 | display: none; |
michael@0 | 37 | } |
michael@0 | 38 | |
michael@0 | 39 | /* hide the content, but don't destroy the frames */ |
michael@0 | 40 | [collapsed="true"], |
michael@0 | 41 | [moz-collapsed="true"] { |
michael@0 | 42 | visibility: collapse; |
michael@0 | 43 | } |
michael@0 | 44 | |
michael@0 | 45 | |
michael@0 | 46 | /* :::::::::: |
michael@0 | 47 | :: Rules for 'hiding' portions of the chrome for special |
michael@0 | 48 | :: kinds of windows (not JUST browser windows) with toolbars |
michael@0 | 49 | ::::: */ |
michael@0 | 50 | |
michael@0 | 51 | window[chromehidden~="menubar"] .chromeclass-menubar, |
michael@0 | 52 | window[chromehidden~="directories"] .chromeclass-directories, |
michael@0 | 53 | window[chromehidden~="status"] .chromeclass-status, |
michael@0 | 54 | window[chromehidden~="extrachrome"] .chromeclass-extrachrome, |
michael@0 | 55 | window[chromehidden~="location"] .chromeclass-location, |
michael@0 | 56 | window[chromehidden~="location"][chromehidden~="toolbar"] .chromeclass-toolbar, |
michael@0 | 57 | window[chromehidden~="toolbar"] .chromeclass-toolbar-additional { |
michael@0 | 58 | display: none; |
michael@0 | 59 | } |
michael@0 | 60 | |
michael@0 | 61 | /* :::::::::: |
michael@0 | 62 | :: Rules for forcing direction for entry and display of URIs |
michael@0 | 63 | :: or URI elements |
michael@0 | 64 | ::::: */ |
michael@0 | 65 | |
michael@0 | 66 | .uri-element { |
michael@0 | 67 | direction: ltr !important; |
michael@0 | 68 | } |
michael@0 | 69 | |
michael@0 | 70 | /****** elements that have no visual representation ******/ |
michael@0 | 71 | |
michael@0 | 72 | script, data, |
michael@0 | 73 | xbl|children, |
michael@0 | 74 | commands, commandset, command, |
michael@0 | 75 | broadcasterset, broadcaster, observes, |
michael@0 | 76 | keyset, key, toolbarpalette, toolbarset, |
michael@0 | 77 | template, rule, conditions, action, |
michael@0 | 78 | bindings, binding, content, member, triple, |
michael@0 | 79 | treechildren, treeitem, treeseparator, treerow, treecell { |
michael@0 | 80 | display: none; |
michael@0 | 81 | } |
michael@0 | 82 | |
michael@0 | 83 | /********** focus rules **********/ |
michael@0 | 84 | |
michael@0 | 85 | button, |
michael@0 | 86 | checkbox, |
michael@0 | 87 | colorpicker[type="button"], |
michael@0 | 88 | datepicker[type="grid"], |
michael@0 | 89 | menulist, |
michael@0 | 90 | radiogroup, |
michael@0 | 91 | tree, |
michael@0 | 92 | browser, |
michael@0 | 93 | editor, |
michael@0 | 94 | iframe { |
michael@0 | 95 | -moz-user-focus: normal; |
michael@0 | 96 | } |
michael@0 | 97 | |
michael@0 | 98 | menulist[editable="true"] { |
michael@0 | 99 | -moz-user-focus: ignore; |
michael@0 | 100 | } |
michael@0 | 101 | |
michael@0 | 102 | /******** window & page ******/ |
michael@0 | 103 | |
michael@0 | 104 | window, |
michael@0 | 105 | page { |
michael@0 | 106 | overflow: -moz-hidden-unscrollable; |
michael@0 | 107 | -moz-box-orient: vertical; |
michael@0 | 108 | } |
michael@0 | 109 | |
michael@0 | 110 | /******** box *******/ |
michael@0 | 111 | |
michael@0 | 112 | vbox { |
michael@0 | 113 | -moz-box-orient: vertical; |
michael@0 | 114 | } |
michael@0 | 115 | |
michael@0 | 116 | bbox { |
michael@0 | 117 | -moz-box-align: baseline; |
michael@0 | 118 | } |
michael@0 | 119 | |
michael@0 | 120 | /********** button **********/ |
michael@0 | 121 | |
michael@0 | 122 | button { |
michael@0 | 123 | -moz-binding: url("chrome://global/content/bindings/button.xml#button"); |
michael@0 | 124 | } |
michael@0 | 125 | |
michael@0 | 126 | button[type="repeat"] { |
michael@0 | 127 | -moz-binding: url("chrome://global/content/bindings/button.xml#button-repeat"); |
michael@0 | 128 | } |
michael@0 | 129 | |
michael@0 | 130 | button[type="menu"], button[type="panel"] { |
michael@0 | 131 | -moz-binding: url("chrome://global/content/bindings/button.xml#menu"); |
michael@0 | 132 | } |
michael@0 | 133 | |
michael@0 | 134 | button[type="menu-button"] { |
michael@0 | 135 | -moz-binding: url("chrome://global/content/bindings/button.xml#menu-button"); |
michael@0 | 136 | } |
michael@0 | 137 | |
michael@0 | 138 | %ifdef MOZ_WIDGET_GTK |
michael@0 | 139 | /********* detection of system setting to use icons in buttons ***********/ |
michael@0 | 140 | button[label]:not([label=""]) > .button-box > .button-icon:not(:-moz-system-metric(images-in-buttons)), |
michael@0 | 141 | button[label]:not([label=""]) > .button-box > .box-inherit > .button-icon:not(:-moz-system-metric(images-in-buttons)) { |
michael@0 | 142 | display: none; |
michael@0 | 143 | } |
michael@0 | 144 | %endif |
michael@0 | 145 | |
michael@0 | 146 | /********** toolbarbutton **********/ |
michael@0 | 147 | |
michael@0 | 148 | toolbarbutton { |
michael@0 | 149 | -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton"); |
michael@0 | 150 | } |
michael@0 | 151 | |
michael@0 | 152 | toolbarbutton[type="menu"], |
michael@0 | 153 | toolbarbutton[type="panel"] { |
michael@0 | 154 | -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu"); |
michael@0 | 155 | } |
michael@0 | 156 | |
michael@0 | 157 | toolbarbutton[type="menu-button"] { |
michael@0 | 158 | -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu-button"); |
michael@0 | 159 | } |
michael@0 | 160 | |
michael@0 | 161 | toolbar[mode="icons"] .toolbarbutton-text, |
michael@0 | 162 | toolbar[mode="icons"] .toolbarbutton-multiline-text, |
michael@0 | 163 | toolbar[mode="text"] .toolbarbutton-icon { |
michael@0 | 164 | display: none; |
michael@0 | 165 | } |
michael@0 | 166 | |
michael@0 | 167 | .toolbarbutton-multiline-text:not([wrap="true"]), |
michael@0 | 168 | .toolbarbutton-text[wrap="true"] { |
michael@0 | 169 | display: none; |
michael@0 | 170 | } |
michael@0 | 171 | |
michael@0 | 172 | /******** browser, editor, iframe ********/ |
michael@0 | 173 | |
michael@0 | 174 | browser, |
michael@0 | 175 | editor, |
michael@0 | 176 | iframe { |
michael@0 | 177 | display: inline; |
michael@0 | 178 | } |
michael@0 | 179 | |
michael@0 | 180 | browser { |
michael@0 | 181 | -moz-binding: url("chrome://global/content/bindings/browser.xml#browser"); |
michael@0 | 182 | } |
michael@0 | 183 | |
michael@0 | 184 | editor { |
michael@0 | 185 | -moz-binding: url("chrome://global/content/bindings/editor.xml#editor"); |
michael@0 | 186 | } |
michael@0 | 187 | |
michael@0 | 188 | iframe { |
michael@0 | 189 | -moz-binding: url("chrome://global/content/bindings/general.xml#iframe"); |
michael@0 | 190 | } |
michael@0 | 191 | |
michael@0 | 192 | /********** notifications **********/ |
michael@0 | 193 | |
michael@0 | 194 | notificationbox { |
michael@0 | 195 | -moz-binding: url("chrome://global/content/bindings/notification.xml#notificationbox"); |
michael@0 | 196 | -moz-box-orient: vertical; |
michael@0 | 197 | } |
michael@0 | 198 | |
michael@0 | 199 | .notificationbox-stack { |
michael@0 | 200 | overflow: -moz-hidden-unscrollable; |
michael@0 | 201 | } |
michael@0 | 202 | |
michael@0 | 203 | notification { |
michael@0 | 204 | -moz-binding: url("chrome://global/content/bindings/notification.xml#notification"); |
michael@0 | 205 | transition: margin-top 300ms, opacity 300ms; |
michael@0 | 206 | } |
michael@0 | 207 | |
michael@0 | 208 | /*********** popup notification ************/ |
michael@0 | 209 | popupnotification { |
michael@0 | 210 | -moz-binding: url("chrome://global/content/bindings/notification.xml#popup-notification"); |
michael@0 | 211 | } |
michael@0 | 212 | |
michael@0 | 213 | .popup-notification-menubutton:not([label]) { |
michael@0 | 214 | display: none; |
michael@0 | 215 | } |
michael@0 | 216 | |
michael@0 | 217 | /********** image **********/ |
michael@0 | 218 | |
michael@0 | 219 | image { |
michael@0 | 220 | -moz-binding: url("chrome://global/content/bindings/general.xml#image"); |
michael@0 | 221 | } |
michael@0 | 222 | |
michael@0 | 223 | /********** checkbox **********/ |
michael@0 | 224 | |
michael@0 | 225 | checkbox { |
michael@0 | 226 | -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox"); |
michael@0 | 227 | } |
michael@0 | 228 | |
michael@0 | 229 | /********** radio **********/ |
michael@0 | 230 | |
michael@0 | 231 | radiogroup { |
michael@0 | 232 | -moz-binding: url("chrome://global/content/bindings/radio.xml#radiogroup"); |
michael@0 | 233 | -moz-box-orient: vertical; |
michael@0 | 234 | } |
michael@0 | 235 | |
michael@0 | 236 | radio { |
michael@0 | 237 | -moz-binding: url("chrome://global/content/bindings/radio.xml#radio"); |
michael@0 | 238 | } |
michael@0 | 239 | |
michael@0 | 240 | /******** groupbox *********/ |
michael@0 | 241 | |
michael@0 | 242 | groupbox { |
michael@0 | 243 | -moz-binding: url("chrome://global/content/bindings/groupbox.xml#groupbox"); |
michael@0 | 244 | display: -moz-groupbox; |
michael@0 | 245 | } |
michael@0 | 246 | |
michael@0 | 247 | caption { |
michael@0 | 248 | -moz-binding: url("chrome://global/content/bindings/groupbox.xml#caption"); |
michael@0 | 249 | } |
michael@0 | 250 | |
michael@0 | 251 | .groupbox-body { |
michael@0 | 252 | -moz-box-pack: inherit; |
michael@0 | 253 | -moz-box-align: inherit; |
michael@0 | 254 | -moz-box-orient: vertical; |
michael@0 | 255 | } |
michael@0 | 256 | |
michael@0 | 257 | /******* toolbar *******/ |
michael@0 | 258 | |
michael@0 | 259 | toolbox { |
michael@0 | 260 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbox"); |
michael@0 | 261 | -moz-box-orient: vertical; |
michael@0 | 262 | } |
michael@0 | 263 | |
michael@0 | 264 | toolbar { |
michael@0 | 265 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar"); |
michael@0 | 266 | } |
michael@0 | 267 | |
michael@0 | 268 | toolbar[customizing="true"][collapsed="true"] { |
michael@0 | 269 | /* Some apps, e.g. Firefox, use 'collapsed' to hide toolbars. |
michael@0 | 270 | Override it while customizing. */ |
michael@0 | 271 | visibility: visible; |
michael@0 | 272 | } |
michael@0 | 273 | |
michael@0 | 274 | toolbar[customizing="true"][hidden="true"] { |
michael@0 | 275 | /* Some apps, e.g. SeaMonkey, use 'hidden' to hide toolbars. |
michael@0 | 276 | Override it while customizing. */ |
michael@0 | 277 | display: -moz-box; |
michael@0 | 278 | } |
michael@0 | 279 | |
michael@0 | 280 | %ifdef XP_MACOSX |
michael@0 | 281 | toolbar[type="menubar"] { |
michael@0 | 282 | min-height: 0 !important; |
michael@0 | 283 | border: 0 !important; |
michael@0 | 284 | } |
michael@0 | 285 | %else |
michael@0 | 286 | toolbar[type="menubar"][autohide="true"] { |
michael@0 | 287 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-menubar-autohide"); |
michael@0 | 288 | overflow: hidden; |
michael@0 | 289 | } |
michael@0 | 290 | |
michael@0 | 291 | toolbar[type="menubar"][autohide="true"][inactive="true"]:not([customizing="true"]) { |
michael@0 | 292 | min-height: 0 !important; |
michael@0 | 293 | height: 0 !important; |
michael@0 | 294 | -moz-appearance: none !important; |
michael@0 | 295 | border-style: none !important; |
michael@0 | 296 | } |
michael@0 | 297 | %endif |
michael@0 | 298 | |
michael@0 | 299 | toolbarseparator { |
michael@0 | 300 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration"); |
michael@0 | 301 | } |
michael@0 | 302 | |
michael@0 | 303 | toolbarspacer { |
michael@0 | 304 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration"); |
michael@0 | 305 | } |
michael@0 | 306 | |
michael@0 | 307 | toolbarspring { |
michael@0 | 308 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration"); |
michael@0 | 309 | -moz-box-flex: 1000; |
michael@0 | 310 | } |
michael@0 | 311 | |
michael@0 | 312 | toolbarpaletteitem { |
michael@0 | 313 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbarpaletteitem"); |
michael@0 | 314 | } |
michael@0 | 315 | |
michael@0 | 316 | toolbarpaletteitem[place="palette"] { |
michael@0 | 317 | -moz-box-orient: vertical; |
michael@0 | 318 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbarpaletteitem-palette"); |
michael@0 | 319 | } |
michael@0 | 320 | |
michael@0 | 321 | /********* menubar ***********/ |
michael@0 | 322 | |
michael@0 | 323 | menubar { |
michael@0 | 324 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar"); |
michael@0 | 325 | } |
michael@0 | 326 | |
michael@0 | 327 | /********* menu ***********/ |
michael@0 | 328 | |
michael@0 | 329 | menubar > menu { |
michael@0 | 330 | -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar"); |
michael@0 | 331 | } |
michael@0 | 332 | |
michael@0 | 333 | menubar > menu.menu-iconic { |
michael@0 | 334 | -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar-iconic"); |
michael@0 | 335 | } |
michael@0 | 336 | |
michael@0 | 337 | menu { |
michael@0 | 338 | -moz-binding: url("chrome://global/content/bindings/menu.xml#menu"); |
michael@0 | 339 | } |
michael@0 | 340 | |
michael@0 | 341 | menu.menu-iconic { |
michael@0 | 342 | -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-iconic"); |
michael@0 | 343 | } |
michael@0 | 344 | |
michael@0 | 345 | menubar > menu:empty { |
michael@0 | 346 | visibility: collapse; |
michael@0 | 347 | } |
michael@0 | 348 | |
michael@0 | 349 | /********* menuitem ***********/ |
michael@0 | 350 | |
michael@0 | 351 | menuitem { |
michael@0 | 352 | -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem"); |
michael@0 | 353 | } |
michael@0 | 354 | |
michael@0 | 355 | menuitem.menuitem-iconic { |
michael@0 | 356 | -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic"); |
michael@0 | 357 | } |
michael@0 | 358 | |
michael@0 | 359 | menuitem[description] { |
michael@0 | 360 | -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic-desc-noaccel"); |
michael@0 | 361 | } |
michael@0 | 362 | |
michael@0 | 363 | menuitem[type="checkbox"], |
michael@0 | 364 | menuitem[type="radio"] { |
michael@0 | 365 | -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic"); |
michael@0 | 366 | } |
michael@0 | 367 | |
michael@0 | 368 | menuitem.menuitem-non-iconic { |
michael@0 | 369 | -moz-binding: url("chrome://global/content/bindings/menu.xml#menubutton-item"); |
michael@0 | 370 | } |
michael@0 | 371 | |
michael@0 | 372 | .menu-text { |
michael@0 | 373 | -moz-box-flex: 1; |
michael@0 | 374 | } |
michael@0 | 375 | |
michael@0 | 376 | %ifdef MOZ_WIDGET_GTK |
michael@0 | 377 | /********* detection of system setting to use icons in menus ***********/ |
michael@0 | 378 | @media not all and (-moz-images-in-menus) { |
michael@0 | 379 | .menu-iconic-left { |
michael@0 | 380 | visibility: hidden; |
michael@0 | 381 | } |
michael@0 | 382 | :-moz-any(menuitem[type], .menuitem-with-favicon) > .menu-iconic-left { |
michael@0 | 383 | visibility: visible; |
michael@0 | 384 | } |
michael@0 | 385 | } |
michael@0 | 386 | %endif |
michael@0 | 387 | |
michael@0 | 388 | /********* menuseparator ***********/ |
michael@0 | 389 | |
michael@0 | 390 | menuseparator { |
michael@0 | 391 | -moz-binding: url("chrome://global/content/bindings/menu.xml#menuseparator"); |
michael@0 | 392 | } |
michael@0 | 393 | |
michael@0 | 394 | /********* popup & menupopup ***********/ |
michael@0 | 395 | |
michael@0 | 396 | /* <popup> is deprecated. Only <menupopup> and <tooltip> are still valid. */ |
michael@0 | 397 | |
michael@0 | 398 | popup, |
michael@0 | 399 | menupopup { |
michael@0 | 400 | -moz-binding: url("chrome://global/content/bindings/popup.xml#popup"); |
michael@0 | 401 | -moz-box-orient: vertical; |
michael@0 | 402 | } |
michael@0 | 403 | |
michael@0 | 404 | panel { |
michael@0 | 405 | -moz-binding: url("chrome://global/content/bindings/popup.xml#panel"); |
michael@0 | 406 | -moz-box-orient: vertical; |
michael@0 | 407 | } |
michael@0 | 408 | |
michael@0 | 409 | popup, |
michael@0 | 410 | menupopup, |
michael@0 | 411 | panel, |
michael@0 | 412 | tooltip { |
michael@0 | 413 | display: -moz-popup; |
michael@0 | 414 | z-index: 2147483647; |
michael@0 | 415 | text-shadow: none; |
michael@0 | 416 | } |
michael@0 | 417 | |
michael@0 | 418 | tooltip { |
michael@0 | 419 | -moz-binding: url("chrome://global/content/bindings/popup.xml#tooltip"); |
michael@0 | 420 | -moz-box-orient: vertical; |
michael@0 | 421 | white-space: pre-wrap; |
michael@0 | 422 | margin-top: 21px; |
michael@0 | 423 | } |
michael@0 | 424 | |
michael@0 | 425 | panel[type="arrow"] { |
michael@0 | 426 | -moz-binding: url("chrome://global/content/bindings/popup.xml#arrowpanel"); |
michael@0 | 427 | } |
michael@0 | 428 | |
michael@0 | 429 | %ifdef XP_MACOSX |
michael@0 | 430 | .statusbar-resizerpanel { |
michael@0 | 431 | display: none; |
michael@0 | 432 | } |
michael@0 | 433 | %else |
michael@0 | 434 | window[sizemode="maximized"] statusbarpanel.statusbar-resizerpanel { |
michael@0 | 435 | visibility: collapse; |
michael@0 | 436 | } |
michael@0 | 437 | %endif |
michael@0 | 438 | |
michael@0 | 439 | /******** grid **********/ |
michael@0 | 440 | |
michael@0 | 441 | grid { |
michael@0 | 442 | display: -moz-grid; |
michael@0 | 443 | } |
michael@0 | 444 | |
michael@0 | 445 | rows, |
michael@0 | 446 | columns { |
michael@0 | 447 | display: -moz-grid-group; |
michael@0 | 448 | } |
michael@0 | 449 | |
michael@0 | 450 | row, |
michael@0 | 451 | column { |
michael@0 | 452 | display: -moz-grid-line; |
michael@0 | 453 | } |
michael@0 | 454 | |
michael@0 | 455 | rows { |
michael@0 | 456 | -moz-box-orient: vertical; |
michael@0 | 457 | } |
michael@0 | 458 | |
michael@0 | 459 | column { |
michael@0 | 460 | -moz-box-orient: vertical; |
michael@0 | 461 | } |
michael@0 | 462 | |
michael@0 | 463 | /******** listbox **********/ |
michael@0 | 464 | |
michael@0 | 465 | listbox { |
michael@0 | 466 | -moz-binding: url("chrome://global/content/bindings/listbox.xml#listbox"); |
michael@0 | 467 | } |
michael@0 | 468 | |
michael@0 | 469 | listhead { |
michael@0 | 470 | -moz-binding: url("chrome://global/content/bindings/listbox.xml#listhead"); |
michael@0 | 471 | } |
michael@0 | 472 | |
michael@0 | 473 | listrows { |
michael@0 | 474 | -moz-binding: url("chrome://global/content/bindings/listbox.xml#listrows"); |
michael@0 | 475 | } |
michael@0 | 476 | |
michael@0 | 477 | listitem { |
michael@0 | 478 | -moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem"); |
michael@0 | 479 | } |
michael@0 | 480 | |
michael@0 | 481 | listitem[type="checkbox"] { |
michael@0 | 482 | -moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem-checkbox"); |
michael@0 | 483 | } |
michael@0 | 484 | |
michael@0 | 485 | listheader { |
michael@0 | 486 | -moz-binding: url("chrome://global/content/bindings/listbox.xml#listheader"); |
michael@0 | 487 | -moz-box-ordinal-group: 2147483646; |
michael@0 | 488 | } |
michael@0 | 489 | |
michael@0 | 490 | listcell { |
michael@0 | 491 | -moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell"); |
michael@0 | 492 | } |
michael@0 | 493 | |
michael@0 | 494 | listcell[type="checkbox"] { |
michael@0 | 495 | -moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell-checkbox"); |
michael@0 | 496 | } |
michael@0 | 497 | |
michael@0 | 498 | .listitem-iconic { |
michael@0 | 499 | -moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem-iconic"); |
michael@0 | 500 | } |
michael@0 | 501 | |
michael@0 | 502 | listitem[type="checkbox"].listitem-iconic { |
michael@0 | 503 | -moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem-checkbox-iconic"); |
michael@0 | 504 | } |
michael@0 | 505 | |
michael@0 | 506 | .listcell-iconic { |
michael@0 | 507 | -moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell-iconic"); |
michael@0 | 508 | } |
michael@0 | 509 | |
michael@0 | 510 | listcell[type="checkbox"].listcell-iconic { |
michael@0 | 511 | -moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell-checkbox-iconic"); |
michael@0 | 512 | } |
michael@0 | 513 | |
michael@0 | 514 | listbox { |
michael@0 | 515 | display: -moz-grid; |
michael@0 | 516 | } |
michael@0 | 517 | |
michael@0 | 518 | listbox[rows] { |
michael@0 | 519 | height: auto; |
michael@0 | 520 | } |
michael@0 | 521 | |
michael@0 | 522 | listcols, listhead, listrows, listboxbody { |
michael@0 | 523 | display: -moz-grid-group; |
michael@0 | 524 | } |
michael@0 | 525 | |
michael@0 | 526 | listcol, listitem, listheaditem { |
michael@0 | 527 | display: -moz-grid-line; |
michael@0 | 528 | } |
michael@0 | 529 | |
michael@0 | 530 | listbox { |
michael@0 | 531 | -moz-user-focus: normal; |
michael@0 | 532 | -moz-box-orient: vertical; |
michael@0 | 533 | min-width: 0px; |
michael@0 | 534 | min-height: 0px; |
michael@0 | 535 | width: 200px; |
michael@0 | 536 | height: 200px; |
michael@0 | 537 | } |
michael@0 | 538 | |
michael@0 | 539 | listhead { |
michael@0 | 540 | -moz-box-orient: vertical; |
michael@0 | 541 | } |
michael@0 | 542 | |
michael@0 | 543 | listrows { |
michael@0 | 544 | -moz-box-orient: vertical; |
michael@0 | 545 | -moz-box-flex: 1; |
michael@0 | 546 | } |
michael@0 | 547 | |
michael@0 | 548 | listboxbody { |
michael@0 | 549 | -moz-box-orient: vertical; |
michael@0 | 550 | -moz-box-flex: 1; |
michael@0 | 551 | /* Don't permit a horizontal scrollbar. See bug 285449 */ |
michael@0 | 552 | overflow-x: hidden !important; |
michael@0 | 553 | overflow-y: auto; |
michael@0 | 554 | min-height: 0px; |
michael@0 | 555 | } |
michael@0 | 556 | |
michael@0 | 557 | listcol { |
michael@0 | 558 | -moz-box-orient: vertical; |
michael@0 | 559 | min-width: 16px; |
michael@0 | 560 | } |
michael@0 | 561 | |
michael@0 | 562 | listcell { |
michael@0 | 563 | -moz-box-align: center; |
michael@0 | 564 | } |
michael@0 | 565 | |
michael@0 | 566 | /******** tree ******/ |
michael@0 | 567 | |
michael@0 | 568 | tree { |
michael@0 | 569 | -moz-binding: url("chrome://global/content/bindings/tree.xml#tree"); |
michael@0 | 570 | } |
michael@0 | 571 | |
michael@0 | 572 | treecols { |
michael@0 | 573 | -moz-binding: url("chrome://global/content/bindings/tree.xml#treecols"); |
michael@0 | 574 | } |
michael@0 | 575 | |
michael@0 | 576 | treecol { |
michael@0 | 577 | -moz-binding: url("chrome://global/content/bindings/tree.xml#treecol"); |
michael@0 | 578 | -moz-box-ordinal-group: 2147483646; |
michael@0 | 579 | } |
michael@0 | 580 | |
michael@0 | 581 | treecol.treecol-image { |
michael@0 | 582 | -moz-binding: url("chrome://global/content/bindings/tree.xml#treecol-image"); |
michael@0 | 583 | } |
michael@0 | 584 | |
michael@0 | 585 | tree > treechildren { |
michael@0 | 586 | display: -moz-box; |
michael@0 | 587 | -moz-binding: url("chrome://global/content/bindings/tree.xml#treebody"); |
michael@0 | 588 | -moz-user-select: none; |
michael@0 | 589 | -moz-box-flex: 1; |
michael@0 | 590 | } |
michael@0 | 591 | |
michael@0 | 592 | treerows { |
michael@0 | 593 | -moz-binding: url("chrome://global/content/bindings/tree.xml#treerows"); |
michael@0 | 594 | } |
michael@0 | 595 | |
michael@0 | 596 | treecolpicker { |
michael@0 | 597 | -moz-binding: url("chrome://global/content/bindings/tree.xml#columnpicker"); |
michael@0 | 598 | } |
michael@0 | 599 | |
michael@0 | 600 | tree { |
michael@0 | 601 | -moz-box-orient: vertical; |
michael@0 | 602 | min-width: 0px; |
michael@0 | 603 | min-height: 0px; |
michael@0 | 604 | width: 10px; |
michael@0 | 605 | height: 10px; |
michael@0 | 606 | } |
michael@0 | 607 | |
michael@0 | 608 | tree[hidecolumnpicker="true"] > treecols > treecolpicker { |
michael@0 | 609 | display: none; |
michael@0 | 610 | } |
michael@0 | 611 | |
michael@0 | 612 | treecol { |
michael@0 | 613 | min-width: 16px; |
michael@0 | 614 | } |
michael@0 | 615 | |
michael@0 | 616 | treecol[hidden="true"] { |
michael@0 | 617 | visibility: collapse; |
michael@0 | 618 | display: -moz-box; |
michael@0 | 619 | } |
michael@0 | 620 | |
michael@0 | 621 | .tree-scrollable-columns { |
michael@0 | 622 | /* Yes, Virginia, this makes it scrollable */ |
michael@0 | 623 | overflow: hidden; |
michael@0 | 624 | } |
michael@0 | 625 | |
michael@0 | 626 | /* ::::: lines connecting cells ::::: */ |
michael@0 | 627 | tree:not([treelines="true"]) > treechildren::-moz-tree-line { |
michael@0 | 628 | visibility: hidden; |
michael@0 | 629 | } |
michael@0 | 630 | |
michael@0 | 631 | treechildren::-moz-tree-cell(ltr) { |
michael@0 | 632 | direction: ltr !important; |
michael@0 | 633 | } |
michael@0 | 634 | |
michael@0 | 635 | /********** deck & stack *********/ |
michael@0 | 636 | |
michael@0 | 637 | deck { |
michael@0 | 638 | display: -moz-deck; |
michael@0 | 639 | -moz-binding: url("chrome://global/content/bindings/general.xml#deck"); |
michael@0 | 640 | } |
michael@0 | 641 | |
michael@0 | 642 | stack, bulletinboard { |
michael@0 | 643 | display: -moz-stack; |
michael@0 | 644 | } |
michael@0 | 645 | |
michael@0 | 646 | /********** tabbox *********/ |
michael@0 | 647 | |
michael@0 | 648 | tabbox { |
michael@0 | 649 | -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabbox"); |
michael@0 | 650 | -moz-box-orient: vertical; |
michael@0 | 651 | } |
michael@0 | 652 | |
michael@0 | 653 | tabs { |
michael@0 | 654 | -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabs"); |
michael@0 | 655 | -moz-box-orient: horizontal; |
michael@0 | 656 | } |
michael@0 | 657 | |
michael@0 | 658 | tab { |
michael@0 | 659 | -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tab"); |
michael@0 | 660 | -moz-box-align: center; |
michael@0 | 661 | -moz-box-pack: center; |
michael@0 | 662 | } |
michael@0 | 663 | |
michael@0 | 664 | tab[selected="true"]:not([ignorefocus="true"]) { |
michael@0 | 665 | -moz-user-focus: normal; |
michael@0 | 666 | } |
michael@0 | 667 | |
michael@0 | 668 | tabpanels { |
michael@0 | 669 | -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabpanels"); |
michael@0 | 670 | display: -moz-deck; |
michael@0 | 671 | } |
michael@0 | 672 | |
michael@0 | 673 | /********** progressmeter **********/ |
michael@0 | 674 | |
michael@0 | 675 | progressmeter { |
michael@0 | 676 | -moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter"); |
michael@0 | 677 | } |
michael@0 | 678 | |
michael@0 | 679 | /********** basic rule for anonymous content that needs to pass box properties through |
michael@0 | 680 | ********** to an insertion point parent that holds the real kids **************/ |
michael@0 | 681 | |
michael@0 | 682 | .box-inherit { |
michael@0 | 683 | -moz-box-orient: inherit; |
michael@0 | 684 | -moz-box-pack: inherit; |
michael@0 | 685 | -moz-box-align: inherit; |
michael@0 | 686 | -moz-box-direction: inherit; |
michael@0 | 687 | } |
michael@0 | 688 | |
michael@0 | 689 | /********** label **********/ |
michael@0 | 690 | |
michael@0 | 691 | description { |
michael@0 | 692 | -moz-binding: url("chrome://global/content/bindings/text.xml#text-base"); |
michael@0 | 693 | } |
michael@0 | 694 | |
michael@0 | 695 | label { |
michael@0 | 696 | -moz-binding: url("chrome://global/content/bindings/text.xml#text-label"); |
michael@0 | 697 | } |
michael@0 | 698 | |
michael@0 | 699 | label.text-link, label[onclick] { |
michael@0 | 700 | -moz-binding: url("chrome://global/content/bindings/text.xml#text-link"); |
michael@0 | 701 | -moz-user-focus: normal; |
michael@0 | 702 | } |
michael@0 | 703 | |
michael@0 | 704 | label[control], label.radio-label, label.checkbox-label, label.toolbarbutton-multiline-text { |
michael@0 | 705 | -moz-binding: url("chrome://global/content/bindings/text.xml#label-control"); |
michael@0 | 706 | } |
michael@0 | 707 | |
michael@0 | 708 | html|span.accesskey { |
michael@0 | 709 | text-decoration: underline; |
michael@0 | 710 | } |
michael@0 | 711 | |
michael@0 | 712 | /********** textbox **********/ |
michael@0 | 713 | |
michael@0 | 714 | textbox { |
michael@0 | 715 | -moz-binding: url("chrome://global/content/bindings/textbox.xml#textbox"); |
michael@0 | 716 | -moz-user-select: text; |
michael@0 | 717 | text-shadow: none; |
michael@0 | 718 | } |
michael@0 | 719 | |
michael@0 | 720 | textbox[multiline="true"] { |
michael@0 | 721 | -moz-binding: url("chrome://global/content/bindings/textbox.xml#textarea"); |
michael@0 | 722 | } |
michael@0 | 723 | |
michael@0 | 724 | .textbox-input-box { |
michael@0 | 725 | -moz-binding: url("chrome://global/content/bindings/textbox.xml#input-box"); |
michael@0 | 726 | } |
michael@0 | 727 | |
michael@0 | 728 | html|textarea.textbox-textarea { |
michael@0 | 729 | resize: none; |
michael@0 | 730 | } |
michael@0 | 731 | |
michael@0 | 732 | textbox[resizable="true"] > .textbox-input-box > html|textarea.textbox-textarea { |
michael@0 | 733 | resize: both; |
michael@0 | 734 | } |
michael@0 | 735 | |
michael@0 | 736 | .textbox-input-box[spellcheck="true"] { |
michael@0 | 737 | -moz-binding: url("chrome://global/content/bindings/textbox.xml#input-box-spell"); |
michael@0 | 738 | } |
michael@0 | 739 | |
michael@0 | 740 | textbox[type="timed"] { |
michael@0 | 741 | -moz-binding: url("chrome://global/content/bindings/textbox.xml#timed-textbox"); |
michael@0 | 742 | } |
michael@0 | 743 | |
michael@0 | 744 | textbox[type="search"] { |
michael@0 | 745 | -moz-binding: url("chrome://global/content/bindings/textbox.xml#search-textbox"); |
michael@0 | 746 | } |
michael@0 | 747 | |
michael@0 | 748 | textbox[type="number"] { |
michael@0 | 749 | -moz-binding: url("chrome://global/content/bindings/numberbox.xml#numberbox"); |
michael@0 | 750 | } |
michael@0 | 751 | |
michael@0 | 752 | .textbox-contextmenu:-moz-locale-dir(rtl) { |
michael@0 | 753 | direction: rtl; |
michael@0 | 754 | } |
michael@0 | 755 | |
michael@0 | 756 | /********** autocomplete textbox **********/ |
michael@0 | 757 | |
michael@0 | 758 | /* SeaMonkey don't use the new toolkit's autocomplete widget yet.... */ |
michael@0 | 759 | %ifdef MOZ_SUITE |
michael@0 | 760 | %define AUTOCOMPLETE_OLD_STYLE |
michael@0 | 761 | %endif |
michael@0 | 762 | |
michael@0 | 763 | %ifdef AUTOCOMPLETE_OLD_STYLE |
michael@0 | 764 | |
michael@0 | 765 | textbox[type="autocomplete"] { |
michael@0 | 766 | -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete"); |
michael@0 | 767 | } |
michael@0 | 768 | |
michael@0 | 769 | panel[type="autocomplete"] { |
michael@0 | 770 | -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-result-popup"); |
michael@0 | 771 | } |
michael@0 | 772 | |
michael@0 | 773 | .autocomplete-history-popup { |
michael@0 | 774 | -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-history-popup"); |
michael@0 | 775 | } |
michael@0 | 776 | |
michael@0 | 777 | .autocomplete-treebody { |
michael@0 | 778 | -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-treebody"); |
michael@0 | 779 | } |
michael@0 | 780 | |
michael@0 | 781 | .autocomplete-history-dropmarker { |
michael@0 | 782 | -moz-binding: url("chrome://global/content/autocomplete.xml#history-dropmarker"); |
michael@0 | 783 | } |
michael@0 | 784 | |
michael@0 | 785 | %else |
michael@0 | 786 | |
michael@0 | 787 | textbox[type="autocomplete"] { |
michael@0 | 788 | -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete"); |
michael@0 | 789 | } |
michael@0 | 790 | |
michael@0 | 791 | panel[type="autocomplete"] { |
michael@0 | 792 | -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-result-popup"); |
michael@0 | 793 | } |
michael@0 | 794 | |
michael@0 | 795 | panel[type="autocomplete-richlistbox"] { |
michael@0 | 796 | -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-rich-result-popup"); |
michael@0 | 797 | } |
michael@0 | 798 | |
michael@0 | 799 | /* FIXME: bug 616258 */ |
michael@0 | 800 | |
michael@0 | 801 | .autocomplete-tree { |
michael@0 | 802 | -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-tree"); |
michael@0 | 803 | -moz-user-focus: ignore; |
michael@0 | 804 | } |
michael@0 | 805 | |
michael@0 | 806 | .autocomplete-treebody { |
michael@0 | 807 | -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-treebody"); |
michael@0 | 808 | } |
michael@0 | 809 | |
michael@0 | 810 | .autocomplete-richlistbox { |
michael@0 | 811 | -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-richlistbox"); |
michael@0 | 812 | -moz-user-focus: ignore; |
michael@0 | 813 | } |
michael@0 | 814 | |
michael@0 | 815 | .autocomplete-richlistbox > scrollbox { |
michael@0 | 816 | overflow-x: hidden !important; |
michael@0 | 817 | } |
michael@0 | 818 | |
michael@0 | 819 | .autocomplete-richlistitem { |
michael@0 | 820 | -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-richlistitem"); |
michael@0 | 821 | -moz-box-orient: vertical; |
michael@0 | 822 | overflow: -moz-hidden-unscrollable; |
michael@0 | 823 | } |
michael@0 | 824 | |
michael@0 | 825 | .autocomplete-treerows { |
michael@0 | 826 | -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-treerows"); |
michael@0 | 827 | } |
michael@0 | 828 | |
michael@0 | 829 | .autocomplete-history-dropmarker { |
michael@0 | 830 | display: none; |
michael@0 | 831 | } |
michael@0 | 832 | |
michael@0 | 833 | .autocomplete-history-dropmarker[enablehistory="true"] { |
michael@0 | 834 | display: -moz-box; |
michael@0 | 835 | -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#history-dropmarker"); |
michael@0 | 836 | } |
michael@0 | 837 | |
michael@0 | 838 | .ac-ellipsis-after { |
michael@0 | 839 | visibility: hidden; |
michael@0 | 840 | } |
michael@0 | 841 | |
michael@0 | 842 | .ac-url-text[type~="action"], |
michael@0 | 843 | .ac-action-text:not([type~="action"]) { |
michael@0 | 844 | visibility: collapse; |
michael@0 | 845 | } |
michael@0 | 846 | |
michael@0 | 847 | %endif |
michael@0 | 848 | |
michael@0 | 849 | |
michael@0 | 850 | |
michael@0 | 851 | /* the C++ implementation of widgets is too eager to make popups visible. |
michael@0 | 852 | this causes problems (bug 120155 and others), thus this workaround: */ |
michael@0 | 853 | popup[type="autocomplete"][hidden="true"] { |
michael@0 | 854 | visibility: hidden; |
michael@0 | 855 | } |
michael@0 | 856 | |
michael@0 | 857 | /* The following rule is here to fix bug 96899 (and now 117952). |
michael@0 | 858 | Somehow trees create a situation |
michael@0 | 859 | in which a popupset flows itself as if its popup child is directly within it |
michael@0 | 860 | instead of the placeholder child that should actually be inside the popupset. |
michael@0 | 861 | This is a stopgap measure, and it does not address the real bug. */ |
michael@0 | 862 | .autocomplete-result-popupset { |
michael@0 | 863 | max-width: 0px; |
michael@0 | 864 | width: 0 !important; |
michael@0 | 865 | min-width: 0%; |
michael@0 | 866 | min-height: 0%; |
michael@0 | 867 | } |
michael@0 | 868 | |
michael@0 | 869 | /********** colorpicker **********/ |
michael@0 | 870 | |
michael@0 | 871 | colorpicker { |
michael@0 | 872 | -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker"); |
michael@0 | 873 | } |
michael@0 | 874 | |
michael@0 | 875 | colorpicker[type="button"] { |
michael@0 | 876 | -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker-button"); |
michael@0 | 877 | } |
michael@0 | 878 | |
michael@0 | 879 | .colorpickertile { |
michael@0 | 880 | -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpickertile"); |
michael@0 | 881 | } |
michael@0 | 882 | |
michael@0 | 883 | /********** menulist **********/ |
michael@0 | 884 | |
michael@0 | 885 | menulist { |
michael@0 | 886 | -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist"); |
michael@0 | 887 | } |
michael@0 | 888 | |
michael@0 | 889 | menulist[editable="true"] { |
michael@0 | 890 | -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-editable"); |
michael@0 | 891 | } |
michael@0 | 892 | |
michael@0 | 893 | menulist[type="description"] { |
michael@0 | 894 | -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-description"); |
michael@0 | 895 | } |
michael@0 | 896 | |
michael@0 | 897 | menulist > menupopup > menuitem { |
michael@0 | 898 | -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic-noaccel"); |
michael@0 | 899 | } |
michael@0 | 900 | |
michael@0 | 901 | dropmarker { |
michael@0 | 902 | -moz-binding: url("chrome://global/content/bindings/general.xml#dropmarker"); |
michael@0 | 903 | } |
michael@0 | 904 | |
michael@0 | 905 | /********** resizer **********/ |
michael@0 | 906 | |
michael@0 | 907 | resizer { |
michael@0 | 908 | -moz-binding: url("chrome://global/content/bindings/resizer.xml#resizer"); |
michael@0 | 909 | position: relative; |
michael@0 | 910 | z-index: 2147483647; |
michael@0 | 911 | } |
michael@0 | 912 | |
michael@0 | 913 | /********** splitter **********/ |
michael@0 | 914 | |
michael@0 | 915 | splitter { |
michael@0 | 916 | -moz-binding: url("chrome://global/content/bindings/splitter.xml#splitter"); |
michael@0 | 917 | } |
michael@0 | 918 | |
michael@0 | 919 | grippy { |
michael@0 | 920 | -moz-binding: url("chrome://global/content/bindings/splitter.xml#grippy"); |
michael@0 | 921 | } |
michael@0 | 922 | |
michael@0 | 923 | .tree-splitter { |
michael@0 | 924 | width: 0px; |
michael@0 | 925 | max-width: 0px; |
michael@0 | 926 | min-width: 0% ! important; |
michael@0 | 927 | min-height: 0% ! important; |
michael@0 | 928 | -moz-box-ordinal-group: 2147483646; |
michael@0 | 929 | } |
michael@0 | 930 | |
michael@0 | 931 | /********** scrollbar **********/ |
michael@0 | 932 | |
michael@0 | 933 | /* Scrollbars are never flipped even if BiDI kicks in. */ |
michael@0 | 934 | scrollbar[orient="horizontal"] { |
michael@0 | 935 | direction: ltr; |
michael@0 | 936 | } |
michael@0 | 937 | |
michael@0 | 938 | thumb { |
michael@0 | 939 | -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#thumb); |
michael@0 | 940 | display: -moz-box !important; |
michael@0 | 941 | } |
michael@0 | 942 | |
michael@0 | 943 | .scale-thumb { |
michael@0 | 944 | -moz-binding: url(chrome://global/content/bindings/scale.xml#scalethumb); |
michael@0 | 945 | } |
michael@0 | 946 | |
michael@0 | 947 | scrollbar, scrollbarbutton, scrollcorner, slider, thumb, scale { |
michael@0 | 948 | -moz-user-select: none; |
michael@0 | 949 | } |
michael@0 | 950 | |
michael@0 | 951 | scrollcorner { |
michael@0 | 952 | display: -moz-box !important; |
michael@0 | 953 | } |
michael@0 | 954 | |
michael@0 | 955 | scrollcorner[hidden="true"] { |
michael@0 | 956 | display: none !important; |
michael@0 | 957 | } |
michael@0 | 958 | |
michael@0 | 959 | scrollbar[value="hidden"] { |
michael@0 | 960 | visibility: hidden; |
michael@0 | 961 | } |
michael@0 | 962 | |
michael@0 | 963 | scale { |
michael@0 | 964 | -moz-binding: url(chrome://global/content/bindings/scale.xml#scale); |
michael@0 | 965 | } |
michael@0 | 966 | |
michael@0 | 967 | .scale-slider { |
michael@0 | 968 | -moz-binding: url(chrome://global/content/bindings/scale.xml#scaleslider); |
michael@0 | 969 | -moz-user-focus: normal; |
michael@0 | 970 | } |
michael@0 | 971 | |
michael@0 | 972 | scrollbarbutton[sbattr="scrollbar-up-top"]:not(:-moz-system-metric(scrollbar-start-backward)), |
michael@0 | 973 | scrollbarbutton[sbattr="scrollbar-down-top"]:not(:-moz-system-metric(scrollbar-start-forward)), |
michael@0 | 974 | scrollbarbutton[sbattr="scrollbar-up-bottom"]:not(:-moz-system-metric(scrollbar-end-backward)), |
michael@0 | 975 | scrollbarbutton[sbattr="scrollbar-down-bottom"]:not(:-moz-system-metric(scrollbar-end-forward)) { |
michael@0 | 976 | display: none; |
michael@0 | 977 | } |
michael@0 | 978 | |
michael@0 | 979 | thumb[sbattr="scrollbar-thumb"]:-moz-system-metric(scrollbar-thumb-proportional) { |
michael@0 | 980 | -moz-box-flex: 1; |
michael@0 | 981 | } |
michael@0 | 982 | |
michael@0 | 983 | /******** scrollbox ********/ |
michael@0 | 984 | |
michael@0 | 985 | scrollbox { |
michael@0 | 986 | -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#scrollbox"); |
michael@0 | 987 | /* This makes it scrollable! */ |
michael@0 | 988 | overflow: hidden; |
michael@0 | 989 | } |
michael@0 | 990 | |
michael@0 | 991 | arrowscrollbox { |
michael@0 | 992 | -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#arrowscrollbox"); |
michael@0 | 993 | } |
michael@0 | 994 | |
michael@0 | 995 | arrowscrollbox[clicktoscroll="true"] { |
michael@0 | 996 | -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#arrowscrollbox-clicktoscroll"); |
michael@0 | 997 | } |
michael@0 | 998 | |
michael@0 | 999 | autorepeatbutton { |
michael@0 | 1000 | -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#autorepeatbutton"); |
michael@0 | 1001 | } |
michael@0 | 1002 | |
michael@0 | 1003 | /********** statusbar **********/ |
michael@0 | 1004 | |
michael@0 | 1005 | statusbar { |
michael@0 | 1006 | -moz-binding: url("chrome://global/content/bindings/general.xml#statusbar"); |
michael@0 | 1007 | %ifdef XP_MACOSX |
michael@0 | 1008 | padding-right: 14px; |
michael@0 | 1009 | %endif |
michael@0 | 1010 | } |
michael@0 | 1011 | |
michael@0 | 1012 | statusbarpanel { |
michael@0 | 1013 | -moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel"); |
michael@0 | 1014 | } |
michael@0 | 1015 | |
michael@0 | 1016 | .statusbarpanel-iconic { |
michael@0 | 1017 | -moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel-iconic"); |
michael@0 | 1018 | } |
michael@0 | 1019 | |
michael@0 | 1020 | .statusbarpanel-iconic-text { |
michael@0 | 1021 | -moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel-iconic-text"); |
michael@0 | 1022 | } |
michael@0 | 1023 | |
michael@0 | 1024 | .statusbarpanel-menu-iconic { |
michael@0 | 1025 | -moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel-menu-iconic"); |
michael@0 | 1026 | } |
michael@0 | 1027 | |
michael@0 | 1028 | /********** spinbuttons ***********/ |
michael@0 | 1029 | |
michael@0 | 1030 | spinbuttons { |
michael@0 | 1031 | -moz-binding: url("chrome://global/content/bindings/spinbuttons.xml#spinbuttons"); |
michael@0 | 1032 | } |
michael@0 | 1033 | |
michael@0 | 1034 | .spinbuttons-button { |
michael@0 | 1035 | -moz-user-focus: ignore; |
michael@0 | 1036 | } |
michael@0 | 1037 | |
michael@0 | 1038 | /********** stringbundle **********/ |
michael@0 | 1039 | |
michael@0 | 1040 | stringbundleset { |
michael@0 | 1041 | -moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundleset"); |
michael@0 | 1042 | visibility: collapse; |
michael@0 | 1043 | } |
michael@0 | 1044 | |
michael@0 | 1045 | stringbundle { |
michael@0 | 1046 | -moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundle"); |
michael@0 | 1047 | visibility: collapse; |
michael@0 | 1048 | } |
michael@0 | 1049 | |
michael@0 | 1050 | /********** dialog **********/ |
michael@0 | 1051 | |
michael@0 | 1052 | dialog, |
michael@0 | 1053 | dialog:root /* override :root from above */ { |
michael@0 | 1054 | -moz-binding: url("chrome://global/content/bindings/dialog.xml#dialog"); |
michael@0 | 1055 | -moz-box-orient: vertical; |
michael@0 | 1056 | } |
michael@0 | 1057 | |
michael@0 | 1058 | dialogheader { |
michael@0 | 1059 | -moz-binding: url("chrome://global/content/bindings/dialog.xml#dialogheader"); |
michael@0 | 1060 | } |
michael@0 | 1061 | |
michael@0 | 1062 | /********* page ************/ |
michael@0 | 1063 | |
michael@0 | 1064 | page { |
michael@0 | 1065 | -moz-box-orient: vertical; |
michael@0 | 1066 | } |
michael@0 | 1067 | |
michael@0 | 1068 | /********** wizard **********/ |
michael@0 | 1069 | |
michael@0 | 1070 | wizard, |
michael@0 | 1071 | wizard:root /* override :root from above */ { |
michael@0 | 1072 | -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard"); |
michael@0 | 1073 | -moz-box-orient: vertical; |
michael@0 | 1074 | width: 40em; |
michael@0 | 1075 | height: 30em; |
michael@0 | 1076 | } |
michael@0 | 1077 | |
michael@0 | 1078 | wizardpage { |
michael@0 | 1079 | -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizardpage"); |
michael@0 | 1080 | -moz-box-orient: vertical; |
michael@0 | 1081 | overflow: auto; |
michael@0 | 1082 | } |
michael@0 | 1083 | |
michael@0 | 1084 | .wizard-header { |
michael@0 | 1085 | -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-header"); |
michael@0 | 1086 | } |
michael@0 | 1087 | |
michael@0 | 1088 | .wizard-buttons { |
michael@0 | 1089 | -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-buttons"); |
michael@0 | 1090 | } |
michael@0 | 1091 | |
michael@0 | 1092 | /********** preferences ********/ |
michael@0 | 1093 | |
michael@0 | 1094 | prefwindow, |
michael@0 | 1095 | prefwindow:root /* override :root from above */ { |
michael@0 | 1096 | -moz-binding: url("chrome://global/content/bindings/preferences.xml#prefwindow"); |
michael@0 | 1097 | -moz-box-orient: vertical; |
michael@0 | 1098 | } |
michael@0 | 1099 | |
michael@0 | 1100 | prefpane { |
michael@0 | 1101 | -moz-binding: url("chrome://global/content/bindings/preferences.xml#prefpane"); |
michael@0 | 1102 | -moz-box-orient: vertical; |
michael@0 | 1103 | } |
michael@0 | 1104 | |
michael@0 | 1105 | prefwindow > .paneDeckContainer { |
michael@0 | 1106 | overflow: hidden; |
michael@0 | 1107 | } |
michael@0 | 1108 | |
michael@0 | 1109 | prefpane > .content-box { |
michael@0 | 1110 | overflow: hidden; |
michael@0 | 1111 | } |
michael@0 | 1112 | |
michael@0 | 1113 | prefwindow[type="child"] > .paneDeckContainer { |
michael@0 | 1114 | overflow: -moz-hidden-unscrollable; |
michael@0 | 1115 | } |
michael@0 | 1116 | |
michael@0 | 1117 | prefwindow[type="child"] > prefpane > .content-box { |
michael@0 | 1118 | -moz-box-flex: 1; |
michael@0 | 1119 | overflow: -moz-hidden-unscrollable; |
michael@0 | 1120 | } |
michael@0 | 1121 | |
michael@0 | 1122 | preferences { |
michael@0 | 1123 | -moz-binding: url("chrome://global/content/bindings/preferences.xml#preferences"); |
michael@0 | 1124 | visibility: collapse; |
michael@0 | 1125 | } |
michael@0 | 1126 | |
michael@0 | 1127 | preference { |
michael@0 | 1128 | -moz-binding: url("chrome://global/content/bindings/preferences.xml#preference"); |
michael@0 | 1129 | visibility: collapse; |
michael@0 | 1130 | } |
michael@0 | 1131 | |
michael@0 | 1132 | radio[pane] { |
michael@0 | 1133 | -moz-binding: url("chrome://global/content/bindings/preferences.xml#panebutton") !important; |
michael@0 | 1134 | -moz-box-orient: vertical; |
michael@0 | 1135 | -moz-box-align: center; |
michael@0 | 1136 | } |
michael@0 | 1137 | |
michael@0 | 1138 | prefwindow[chromehidden~="toolbar"] .chromeclass-toolbar { |
michael@0 | 1139 | display: none; |
michael@0 | 1140 | } |
michael@0 | 1141 | |
michael@0 | 1142 | /********** expander ********/ |
michael@0 | 1143 | |
michael@0 | 1144 | expander { |
michael@0 | 1145 | -moz-binding: url("chrome://global/content/bindings/expander.xml#expander"); |
michael@0 | 1146 | -moz-box-orient: vertical; |
michael@0 | 1147 | } |
michael@0 | 1148 | |
michael@0 | 1149 | |
michael@0 | 1150 | /********** Rich Listbox ********/ |
michael@0 | 1151 | |
michael@0 | 1152 | richlistbox { |
michael@0 | 1153 | -moz-binding: url('chrome://global/content/bindings/richlistbox.xml#richlistbox'); |
michael@0 | 1154 | -moz-user-focus: normal; |
michael@0 | 1155 | -moz-box-orient: vertical; |
michael@0 | 1156 | } |
michael@0 | 1157 | |
michael@0 | 1158 | richlistitem { |
michael@0 | 1159 | -moz-binding: url('chrome://global/content/bindings/richlistbox.xml#richlistitem'); |
michael@0 | 1160 | } |
michael@0 | 1161 | |
michael@0 | 1162 | richlistbox > listheader { |
michael@0 | 1163 | -moz-box-ordinal-group: 1; |
michael@0 | 1164 | } |
michael@0 | 1165 | |
michael@0 | 1166 | /********** datepicker and timepicker ********/ |
michael@0 | 1167 | |
michael@0 | 1168 | datepicker { |
michael@0 | 1169 | -moz-binding: url('chrome://global/content/bindings/datetimepicker.xml#datepicker'); |
michael@0 | 1170 | } |
michael@0 | 1171 | |
michael@0 | 1172 | datepicker[type="popup"] { |
michael@0 | 1173 | -moz-binding: url('chrome://global/content/bindings/datetimepicker.xml#datepicker-popup'); |
michael@0 | 1174 | } |
michael@0 | 1175 | |
michael@0 | 1176 | datepicker[type="grid"] { |
michael@0 | 1177 | -moz-binding: url('chrome://global/content/bindings/datetimepicker.xml#datepicker-grid'); |
michael@0 | 1178 | } |
michael@0 | 1179 | |
michael@0 | 1180 | timepicker { |
michael@0 | 1181 | -moz-binding: url('chrome://global/content/bindings/datetimepicker.xml#timepicker'); |
michael@0 | 1182 | } |
michael@0 | 1183 | |
michael@0 | 1184 | |
michael@0 | 1185 | /*********** findbar ************/ |
michael@0 | 1186 | findbar { |
michael@0 | 1187 | -moz-binding: url('chrome://global/content/bindings/findbar.xml#findbar'); |
michael@0 | 1188 | } |
michael@0 | 1189 | |
michael@0 | 1190 | .findbar-textbox { |
michael@0 | 1191 | -moz-binding: url("chrome://global/content/bindings/findbar.xml#findbar-textbox"); |
michael@0 | 1192 | } |
michael@0 | 1193 | |
michael@0 | 1194 | |
michael@0 | 1195 | /*********** filefield ************/ |
michael@0 | 1196 | filefield { |
michael@0 | 1197 | -moz-binding: url("chrome://global/content/bindings/filefield.xml#filefield"); |
michael@0 | 1198 | } |
michael@0 | 1199 | |
michael@0 | 1200 | /*********** tabmodalprompt ************/ |
michael@0 | 1201 | tabmodalprompt { |
michael@0 | 1202 | -moz-binding: url("chrome://global/content/tabprompts.xml#tabmodalprompt"); |
michael@0 | 1203 | overflow: hidden; |
michael@0 | 1204 | text-shadow: none; |
michael@0 | 1205 | } |