toolkit/themes/faststripe/global/xulscrollbars.css

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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 /* ===== xulscrollbars.css ==============================================
michael@0 6 == Styles used by XUL scrollbar-related elements.
michael@0 7 ======================================================================= */
michael@0 8
michael@0 9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
michael@0 10 @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
michael@0 11
michael@0 12 /* ::::: scrollbar ::::: */
michael@0 13
michael@0 14 scrollbar {
michael@0 15 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
michael@0 16 cursor: default;
michael@0 17 background: #888888;
michael@0 18 border-left: 1px solid #555555;
michael@0 19 border-right: 1px solid #555555;
michael@0 20 }
michael@0 21
michael@0 22 scrollbar[orient="vertical"]
michael@0 23 {
michael@0 24 -moz-appearance: scrollbartrack-vertical;
michael@0 25 border-left: none;
michael@0 26 border-right: none;
michael@0 27 border-top: 1px solid #555555;
michael@0 28 border-bottom: 1px solid #555555;
michael@0 29 }
michael@0 30
michael@0 31 /* ::::: borders for thumb and buttons ::::: */
michael@0 32
michael@0 33 thumb,
michael@0 34 scrollbarbutton {
michael@0 35 border: 1px solid #555555;
michael@0 36 background-color: -moz-Dialog;
michael@0 37 }
michael@0 38
michael@0 39 /* ::::: thumb (horizontal) ::::: */
michael@0 40
michael@0 41 thumb {
michael@0 42 min-height: 8px;
michael@0 43 }
michael@0 44
michael@0 45 thumb[orient="horizontal"] {
michael@0 46 min-width: 8px;
michael@0 47 }
michael@0 48
michael@0 49 /* ::::: scrollbar button ::::: */
michael@0 50
michael@0 51 scrollbarbutton {
michael@0 52 background: -moz-Dialog no-repeat 50% 50%;
michael@0 53 min-width: 16px;
michael@0 54 min-height: 16px;
michael@0 55 }
michael@0 56
michael@0 57 scrollbarbutton:hover:active, scrollbarbutton[active="true"] {
michael@0 58 border-color: #999999;
michael@0 59 background-position: 60% 60%;
michael@0 60 }
michael@0 61
michael@0 62 /* ::::: square at the corner of two scrollbars ::::: */
michael@0 63
michael@0 64 scrollcorner {
michael@0 65 /* XXX -moz-appearance: scrollcorner; */
michael@0 66 -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar-base);
michael@0 67 width: 16px;
michael@0 68 cursor: default;
michael@0 69 background-color: -moz-Dialog;
michael@0 70 }
michael@0 71
michael@0 72 /* ..... increment .... */
michael@0 73
michael@0 74 scrollbarbutton[type="increment"] {
michael@0 75 -moz-appearance: scrollbarbutton-right;
michael@0 76 background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
michael@0 77 }
michael@0 78
michael@0 79 scrollbarbutton[type="increment"][disabled="true"] {
michael@0 80 background-image: url("chrome://global/skin/arrow/arrow-rit-dis.gif")
michael@0 81 }
michael@0 82
michael@0 83 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
michael@0 84 -moz-appearance: scrollbarbutton-down;
michael@0 85 background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
michael@0 86 }
michael@0 87
michael@0 88 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"] {
michael@0 89 background-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif")
michael@0 90 }
michael@0 91
michael@0 92 /* ..... decrement .... */
michael@0 93
michael@0 94 scrollbarbutton[type="decrement"] {
michael@0 95 -moz-appearance: scrollbarbutton-left;
michael@0 96 background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
michael@0 97 }
michael@0 98
michael@0 99 scrollbarbutton[type="decrement"][disabled="true"] {
michael@0 100 background-image: url("chrome://global/skin/arrow/arrow-lft-dis.gif")
michael@0 101 }
michael@0 102
michael@0 103 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
michael@0 104 -moz-appearance: scrollbarbutton-up;
michael@0 105 background-image: url("chrome://global/skin/arrow/arrow-up.gif")
michael@0 106 }
michael@0 107
michael@0 108 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"] {
michael@0 109 background-image: url("chrome://global/skin/arrow/arrow-up-dis.gif")
michael@0 110 }
michael@0 111
michael@0 112 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
michael@0 113 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
michael@0 114 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
michael@0 115 @media print {
michael@0 116 /* ::::: scrollbar ::::: */
michael@0 117
michael@0 118 html|div scrollbar {
michael@0 119 -moz-appearance: scrollbartrack-horizontal;
michael@0 120 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
michael@0 121 cursor: default;
michael@0 122 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
michael@0 123 }
michael@0 124
michael@0 125 html|div scrollbar[orient="vertical"]
michael@0 126 {
michael@0 127 -moz-appearance: scrollbartrack-vertical;
michael@0 128 }
michael@0 129
michael@0 130 /* ::::: borders for thumb and buttons ::::: */
michael@0 131
michael@0 132 html|div thumb,
michael@0 133 html|div scrollbarbutton {
michael@0 134 border: 2px solid;
michael@0 135 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
michael@0 136 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
michael@0 137 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
michael@0 138 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
michael@0 139 background-color: -moz-Dialog;
michael@0 140 }
michael@0 141
michael@0 142 /* ::::: thumb (horizontal) ::::: */
michael@0 143
michael@0 144 html|div thumb {
michael@0 145 -moz-appearance: scrollbarthumb-vertical;
michael@0 146 min-height: 8px;
michael@0 147 }
michael@0 148
michael@0 149 html|div thumb[orient="horizontal"] {
michael@0 150 -moz-appearance: scrollbarthumb-horizontal;
michael@0 151 min-width: 8px;
michael@0 152 }
michael@0 153
michael@0 154 /* ::::: scrollbar button ::::: */
michael@0 155
michael@0 156 html|div scrollbarbutton {
michael@0 157 background: -moz-Dialog no-repeat 50% 50%;
michael@0 158 min-width: 16px;
michael@0 159 min-height: 16px;
michael@0 160 }
michael@0 161
michael@0 162 html|div scrollbarbutton:hover:active, html|div scrollbarbutton[active="true"] {
michael@0 163 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
michael@0 164 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
michael@0 165 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
michael@0 166 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
michael@0 167 background-position: 60% 60%;
michael@0 168 }
michael@0 169
michael@0 170 /* ..... increment .... */
michael@0 171
michael@0 172 html|div scrollbarbutton[type="increment"] {
michael@0 173 -moz-appearance: scrollbarbutton-right;
michael@0 174 background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
michael@0 175 }
michael@0 176
michael@0 177 html|div scrollbarbutton[type="increment"][disabled="true"] {
michael@0 178 background-image: url("chrome://global/skin/arrow/arrow-rit-dis.gif")
michael@0 179 }
michael@0 180
michael@0 181 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
michael@0 182 -moz-appearance: scrollbarbutton-down;
michael@0 183 background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
michael@0 184 }
michael@0 185
michael@0 186 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"] {
michael@0 187 background-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif")
michael@0 188 }
michael@0 189
michael@0 190 /* ..... decrement .... */
michael@0 191
michael@0 192 html|div scrollbarbutton[type="decrement"] {
michael@0 193 -moz-appearance: scrollbarbutton-left;
michael@0 194 background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
michael@0 195 }
michael@0 196
michael@0 197 html|div scrollbarbutton[type="decrement"][disabled="true"] {
michael@0 198 background-image: url("chrome://global/skin/arrow/arrow-lft-dis.gif")
michael@0 199 }
michael@0 200
michael@0 201 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
michael@0 202 -moz-appearance: scrollbarbutton-up;
michael@0 203 background-image: url("chrome://global/skin/arrow/arrow-up.gif")
michael@0 204 }
michael@0 205
michael@0 206 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"] {
michael@0 207 background-image: url("chrome://global/skin/arrow/arrow-up-dis.gif")
michael@0 208 }
michael@0 209
michael@0 210 }

mercurial