1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /* ===== scrollbars.css =================================================
6 == Styles used by XUL scrollbar-related elements.
7 ======================================================================= */
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
10 @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
12 /* ::::: scrollbar ::::: */
15 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
17 background-color: #999999;
21 @media all and (-moz-overlay-scrollbars) {
22 scrollbar[root="true"] {
24 z-index: 2147483647; /* largest positive value of a signed 32-bit integer */
27 scrollbar:not([active="true"]),
28 scrollbar[disabled="true"] {
33 /* ::::: slider ::::: */
39 slider[orient="vertical"] {
43 /* ::::: borders for thumb and buttons ::::: */
47 border: 1px outset #CCCCCC;
48 background: #CCCCCC 50% 50% no-repeat;
55 background-color: #DDDDDD;
58 /* ::::: thumb (horizontal) ::::: */
61 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
64 thumb[orient="horizontal"] {
65 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
68 thumb[disabled="true"] {
69 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
72 thumb[orient="horizontal"][disabled="true"] {
73 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
76 /* ::::: scrollbar button ::::: */
81 scrollbarbutton:hover:active,
82 scrollbarbutton[active="true"] {
86 -moz-padding-start: 2px;
87 -moz-padding-end: 0px;
90 /* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
91 scrollbarbutton[sbattr="scrollbar-up-bottom"],
92 scrollbarbutton[sbattr="scrollbar-down-top"] {
95 scrollbarbutton[sbattr="scrollbar-up-top"],
96 scrollbarbutton[sbattr="scrollbar-down-bottom"] {
97 display: -moz-box !important;
100 /* ::::: square at the corner of two scrollbars ::::: */
103 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
105 background-color: #999999;
109 /* ..... increment .... */
111 scrollbarbutton[type="increment"] {
112 background-image: url("chrome://global/skin/scrollbar/button-right.gif")
116 scrollbarbutton[type="increment"][disabled="true"] {
117 background-image: url("chrome://global/skin/scrollbar/button-right-disabled.gif")
120 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
121 background-image: url("chrome://global/skin/scrollbar/button-down.gif")
124 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"] {
125 background-image: url("chrome://global/skin/scrollbar/button-down-disabled.gif")
128 /* ..... decrement .... */
130 scrollbarbutton[type="decrement"] {
131 background-image: url("chrome://global/skin/scrollbar/button-left.gif")
134 scrollbarbutton[type="decrement"][disabled="true"] {
135 background-image: url("chrome://global/skin/scrollbar/button-left-disabled.gif")
138 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
139 background-image: url("chrome://global/skin/scrollbar/button-up.gif")
142 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"] {
143 background-image: url("chrome://global/skin/scrollbar/button-up-disabled.gif")
146 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
147 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
148 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
150 /* ::::: scrollbar ::::: */
153 -moz-appearance: scrollbartrack-horizontal;
154 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
156 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
159 html|div scrollbar[orient="vertical"]
161 -moz-appearance: scrollbartrack-vertical;
164 /* ::::: borders for thumb and buttons ::::: */
167 html|div scrollbarbutton {
169 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
170 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
171 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
172 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
173 background-color: -moz-Dialog;
176 /* ::::: thumb (horizontal) ::::: */
179 -moz-appearance: scrollbarthumb-vertical;
183 html|div thumb[orient="horizontal"] {
184 -moz-appearance: scrollbarthumb-horizontal;
188 /* ::::: scrollbar button ::::: */
190 html|div scrollbarbutton,
191 html|div scrollbarbutton[active="true"] {
192 background: -moz-Dialog no-repeat 50% 50%;
197 html|div scrollbarbutton:hover:active {
198 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
199 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
200 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
201 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
202 background-position: 60% 60%;
205 /* ..... increment .... */
207 html|div scrollbarbutton[type="increment"] {
208 -moz-appearance: scrollbarbutton-right;
209 background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
212 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
213 -moz-appearance: scrollbarbutton-down;
214 background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
217 /* ..... decrement .... */
219 html|div scrollbarbutton[type="decrement"] {
220 -moz-appearance: scrollbarbutton-left;
221 background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
224 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
225 -moz-appearance: scrollbarbutton-up;
226 background-image: url("chrome://global/skin/arrow/arrow-up.gif")