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;
20 /* ::::: slider ::::: */
26 slider[orient="vertical"] {
30 /* ::::: borders for thumb and buttons ::::: */
34 border: 1px outset #CCCCCC;
35 background: #CCCCCC 50% 50% no-repeat;
42 background-color: #DDDDDD;
45 /* ::::: thumb (horizontal) ::::: */
48 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
51 thumb[orient="horizontal"] {
52 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
55 thumb[disabled="true"] {
56 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
59 thumb[orient="horizontal"][disabled="true"] {
60 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
63 /* ::::: scrollbar button ::::: */
68 scrollbarbutton:hover:active,
69 scrollbarbutton[active="true"] {
73 -moz-padding-start: 2px;
74 -moz-padding-end: 0px;
77 /* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
78 scrollbarbutton[sbattr="scrollbar-up-bottom"],
79 scrollbarbutton[sbattr="scrollbar-down-top"] {
83 /* ::::: square at the corner of two scrollbars ::::: */
86 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
88 background-color: #999999;
92 /* ..... increment .... */
94 scrollbarbutton[type="increment"] {
95 background-image: url("chrome://global/skin/scrollbar/button-right.gif")
99 scrollbarbutton[type="increment"][disabled="true"] {
100 background-image: url("chrome://global/skin/scrollbar/button-right-disabled.gif")
103 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
104 background-image: url("chrome://global/skin/scrollbar/button-down.gif")
107 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"] {
108 background-image: url("chrome://global/skin/scrollbar/button-down-disabled.gif")
111 /* ..... decrement .... */
113 scrollbarbutton[type="decrement"] {
114 background-image: url("chrome://global/skin/scrollbar/button-left.gif")
117 scrollbarbutton[type="decrement"][disabled="true"] {
118 background-image: url("chrome://global/skin/scrollbar/button-left-disabled.gif")
121 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
122 background-image: url("chrome://global/skin/scrollbar/button-up.gif")
125 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"] {
126 background-image: url("chrome://global/skin/scrollbar/button-up-disabled.gif")
129 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
130 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
131 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
133 /* ::::: scrollbar ::::: */
136 -moz-appearance: scrollbartrack-horizontal;
137 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
139 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
142 html|div scrollbar[orient="vertical"]
144 -moz-appearance: scrollbartrack-vertical;
147 /* ::::: borders for thumb and buttons ::::: */
150 html|div scrollbarbutton {
152 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
153 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
154 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
155 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
156 background-color: -moz-Dialog;
159 /* ::::: thumb (horizontal) ::::: */
162 -moz-appearance: scrollbarthumb-vertical;
166 html|div thumb[orient="horizontal"] {
167 -moz-appearance: scrollbarthumb-horizontal;
171 /* ::::: scrollbar button ::::: */
173 html|div scrollbarbutton,
174 html|div scrollbarbutton[active="true"] {
175 background: -moz-Dialog no-repeat 50% 50%;
180 html|div scrollbarbutton:hover:active {
181 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
182 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
183 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
184 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
185 background-position: 60% 60%;
188 /* ..... increment .... */
190 html|div scrollbarbutton[type="increment"] {
191 -moz-appearance: scrollbarbutton-right;
192 background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
195 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
196 -moz-appearance: scrollbarbutton-down;
197 background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
200 /* ..... decrement .... */
202 html|div scrollbarbutton[type="decrement"] {
203 -moz-appearance: scrollbarbutton-left;
204 background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
207 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
208 -moz-appearance: scrollbarbutton-up;
209 background-image: url("chrome://global/skin/arrow/arrow-up.gif")