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: #000000;
20 /* ::::: slider ::::: */
24 background-color: #794900;
27 slider[orient="vertical"] {
31 /* ::::: borders for thumb and buttons ::::: */
36 background: transparent 50% 50% no-repeat;
42 /* ::::: thumb ::::: */
45 background-color: #9C9CFF;
46 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
49 thumb[orient="horizontal"] {
50 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
56 background-color: #008484;
60 background-color: #FFCF00;
63 thumb[disabled="true"] {
64 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
67 thumb[orient="horizontal"][disabled="true"] {
68 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
71 /* ::::: scrollbar button ::::: */
74 background-color: #FF9F00;
77 scrollbarbutton:hover:active,
78 scrollbarbutton[active="true"] {
81 -moz-padding-start: 2px;
82 -moz-padding-end: 0px;
85 scrollbarbutton:hover {
86 background-color: #FFCF00;
89 scrollbarbutton:hover:active {
90 background-color: #FF0000;
93 scrollbarbutton[disabled="true"] {
94 background-color: #8050B0 !important;
97 /* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
98 scrollbarbutton[sbattr="scrollbar-up-bottom"],
99 scrollbarbutton[sbattr="scrollbar-down-top"] {
103 /* ::::: square at the corner of two scrollbars ::::: */
106 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
108 background-color: #000000;
112 /* ..... increment .... */
114 scrollbarbutton[type="increment"] {
115 background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
116 border-radius: 0 50% 50% 0;
118 -moz-margin-start: 3px;
121 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
122 background-image: url("chrome://global/skin/scrollbar/arrow-down.png");
123 border-radius: 0 0 50% 50%;
127 /* ..... decrement .... */
129 scrollbarbutton[type="decrement"] {
130 background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
131 border-radius: 50% 0 0 50%;
133 -moz-margin-end: 3px;
136 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
137 background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
138 border-radius: 50% 50% 0 0;
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 background: -moz-Dialog no-repeat 50% 50%;
192 html|div scrollbarbutton:hover:active,
193 html|div scrollbarbutton[active="true"] {
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")