toolkit/themes/windows/global/scrollbox.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 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
michael@0 6
michael@0 7 /*
michael@0 8 * Scroll arrows
michael@0 9 */
michael@0 10
michael@0 11 /* Horizontal enabled */
michael@0 12 .autorepeatbutton-up[orient="horizontal"],
michael@0 13 .autorepeatbutton-down:-moz-locale-dir(rtl)[orient="horizontal"],
michael@0 14 .scrollbutton-up[orient="horizontal"],
michael@0 15 .scrollbutton-down:-moz-locale-dir(rtl)[orient="horizontal"] {
michael@0 16 list-style-image: url("chrome://global/skin/arrow/arrow-lft.gif");
michael@0 17 -moz-image-region: auto; /* cut off inheritance */
michael@0 18 }
michael@0 19
michael@0 20 .autorepeatbutton-down[orient="horizontal"],
michael@0 21 .autorepeatbutton-up:-moz-locale-dir(rtl)[orient="horizontal"],
michael@0 22 .scrollbutton-down[orient="horizontal"],
michael@0 23 .scrollbutton-up:-moz-locale-dir(rtl)[orient="horizontal"] {
michael@0 24 list-style-image: url("chrome://global/skin/arrow/arrow-rit.gif");
michael@0 25 -moz-image-region: auto; /* cut off inheritance */
michael@0 26 }
michael@0 27
michael@0 28 /* Horizontal disabled */
michael@0 29 .autorepeatbutton-up[orient="horizontal"][disabled="true"],
michael@0 30 .autorepeatbutton-down:-moz-locale-dir(rtl)[orient="horizontal"][disabled="true"],
michael@0 31 .scrollbutton-up[orient="horizontal"][disabled="true"],
michael@0 32 .scrollbutton-down:-moz-locale-dir(rtl)[orient="horizontal"][disabled="true"] {
michael@0 33 list-style-image: url("chrome://global/skin/arrow/arrow-lft-dis.gif");
michael@0 34 -moz-image-region: auto; /* cut off inheritance */
michael@0 35 }
michael@0 36
michael@0 37 .autorepeatbutton-down[orient="horizontal"][disabled="true"],
michael@0 38 .autorepeatbutton-up:-moz-locale-dir(rtl)[orient="horizontal"][disabled="true"],
michael@0 39 .scrollbutton-down[orient="horizontal"][disabled="true"],
michael@0 40 .scrollbutton-up:-moz-locale-dir(rtl)[orient="horizontal"][disabled="true"] {
michael@0 41 list-style-image: url("chrome://global/skin/arrow/arrow-rit-dis.gif");
michael@0 42 -moz-image-region: auto; /* cut off inheritance */
michael@0 43 }
michael@0 44
michael@0 45 /* Vertical enabled */
michael@0 46 .autorepeatbutton-up,
michael@0 47 .scrollbutton-up {
michael@0 48 list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
michael@0 49 -moz-image-region: auto; /* cut off inheritance */
michael@0 50 }
michael@0 51
michael@0 52 .autorepeatbutton-down,
michael@0 53 .scrollbutton-down {
michael@0 54 list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
michael@0 55 -moz-image-region: auto; /* cut off inheritance */
michael@0 56 }
michael@0 57
michael@0 58 /* Vertical disabled */
michael@0 59 .autorepeatbutton-up[disabled="true"],
michael@0 60 .scrollbutton-up[disabled="true"] {
michael@0 61 list-style-image: url("chrome://global/skin/arrow/arrow-up-dis.gif");
michael@0 62 -moz-image-region: auto; /* cut off inheritance */
michael@0 63 }
michael@0 64
michael@0 65 .autorepeatbutton-down[disabled="true"],
michael@0 66 .scrollbutton-down[disabled="true"] {
michael@0 67 list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
michael@0 68 -moz-image-region: auto; /* cut off inheritance */
michael@0 69 }
michael@0 70
michael@0 71 .scrollbutton-up > .toolbarbutton-text,
michael@0 72 .scrollbutton-down > .toolbarbutton-text {
michael@0 73 display: none;
michael@0 74 }
michael@0 75
michael@0 76 autorepeatbutton,
michael@0 77 .scrollbutton-up,
michael@0 78 .scrollbutton-down {
michael@0 79 -moz-box-align: center;
michael@0 80 -moz-box-pack: center;
michael@0 81 margin-top: 1px;
michael@0 82 margin-bottom: 2px;
michael@0 83 -moz-margin-start: 1px;
michael@0 84 -moz-margin-end: 2px;
michael@0 85 }
michael@0 86
michael@0 87 autorepeatbutton {
michael@0 88 border: 1px solid transparent;
michael@0 89 padding: 1px;
michael@0 90 }
michael@0 91
michael@0 92 autorepeatbutton:not([disabled="true"]):hover,
michael@0 93 autorepeatbutton:not([disabled="true"]):hover:active {
michael@0 94 margin: 1px;
michael@0 95 border: 1px inset ThreeDFace;
michael@0 96 padding-top: 2px;
michael@0 97 padding-bottom: 1px;
michael@0 98 -moz-padding-start: 2px;
michael@0 99 -moz-padding-end: 1px;
michael@0 100 }

mercurial