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"] {
96 /* ::::: square at the corner of two scrollbars ::::: */
99 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
101 background-color: #999999;
105 /* ..... increment .... */
107 scrollbarbutton[type="increment"] {
108 background-image: url("chrome://global/skin/scrollbar/button-right.gif")
112 scrollbarbutton[type="increment"][disabled="true"] {
113 background-image: url("chrome://global/skin/scrollbar/button-right-disabled.gif")
116 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
117 background-image: url("chrome://global/skin/scrollbar/button-down.gif")
120 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"] {
121 background-image: url("chrome://global/skin/scrollbar/button-down-disabled.gif")
124 /* ..... decrement .... */
126 scrollbarbutton[type="decrement"] {
127 background-image: url("chrome://global/skin/scrollbar/button-left.gif")
130 scrollbarbutton[type="decrement"][disabled="true"] {
131 background-image: url("chrome://global/skin/scrollbar/button-left-disabled.gif")
134 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
135 background-image: url("chrome://global/skin/scrollbar/button-up.gif")
138 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"] {
139 background-image: url("chrome://global/skin/scrollbar/button-up-disabled.gif")
142 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
143 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
144 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
146 /* ::::: scrollbar ::::: */
149 -moz-appearance: scrollbartrack-horizontal;
150 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
152 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
155 html|div scrollbar[orient="vertical"]
157 -moz-appearance: scrollbartrack-vertical;
160 /* ::::: borders for thumb and buttons ::::: */
163 html|div scrollbarbutton {
165 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
166 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
167 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
168 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
169 background-color: -moz-Dialog;
172 /* ::::: thumb (horizontal) ::::: */
175 -moz-appearance: scrollbarthumb-vertical;
179 html|div thumb[orient="horizontal"] {
180 -moz-appearance: scrollbarthumb-horizontal;
184 /* ::::: scrollbar button ::::: */
186 html|div scrollbarbutton,
187 html|div scrollbarbutton[active="true"] {
188 background: -moz-Dialog no-repeat 50% 50%;
193 html|div scrollbarbutton:hover:active {
194 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
195 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
196 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
197 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
198 background-position: 60% 60%;
201 /* ..... increment .... */
203 html|div scrollbarbutton[type="increment"] {
204 -moz-appearance: scrollbarbutton-right;
205 background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
208 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
209 -moz-appearance: scrollbarbutton-down;
210 background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
213 /* ..... decrement .... */
215 html|div scrollbarbutton[type="decrement"] {
216 -moz-appearance: scrollbarbutton-left;
217 background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
220 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
221 -moz-appearance: scrollbarbutton-up;
222 background-image: url("chrome://global/skin/arrow/arrow-up.gif")