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;
21 /* ::::: slider ::::: */
25 background-color: #202024;
28 slider[orient="vertical"] {
32 /* ::::: borders for thumb and buttons ::::: */
37 background: transparent 50% 50% no-repeat;
43 /* ::::: thumb ::::: */
46 background-color: #A09090;
47 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
50 thumb[orient="horizontal"] {
51 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
57 background-color: #008484;
61 background-color: #FFCF00;
64 thumb[disabled="true"] {
65 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
68 thumb[orient="horizontal"][disabled="true"] {
69 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
72 /* ::::: scrollbar button ::::: */
75 background-color: #C09070;
78 scrollbarbutton:hover:active,
79 scrollbarbutton[active="true"] {
82 -moz-padding-start: 2px;
83 -moz-padding-end: 0px;
86 scrollbarbutton:hover {
87 background-color: #FFCF00;
90 scrollbarbutton:hover:active {
91 background-color: #FF0000;
94 scrollbarbutton[disabled="true"] {
95 background-color: #402858 !important;
98 /* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
99 scrollbarbutton[sbattr="scrollbar-up-bottom"],
100 scrollbarbutton[sbattr="scrollbar-down-top"] {
104 /* ::::: square at the corner of two scrollbars ::::: */
107 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
109 background-color: #000000;
113 /* ..... increment .... */
115 scrollbarbutton[type="increment"] {
116 background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
117 border-radius: 0 50% 50% 0;
119 -moz-margin-start: 3px;
122 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
123 background-image: url("chrome://global/skin/scrollbar/arrow-down.png");
124 border-radius: 0 0 50% 50%;
128 /* ..... decrement .... */
130 scrollbarbutton[type="decrement"] {
131 background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
132 border-radius: 50% 0 0 50%;
134 -moz-margin-end: 3px;
137 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
138 background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
139 border-radius: 50% 50% 0 0;
143 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
144 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
145 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
147 /* ::::: scrollbar ::::: */
150 -moz-appearance: scrollbartrack-horizontal;
151 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
153 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
156 html|div scrollbar[orient="vertical"]
158 -moz-appearance: scrollbartrack-vertical;
161 /* ::::: borders for thumb and buttons ::::: */
164 html|div scrollbarbutton {
166 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
167 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
168 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
169 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
170 background-color: -moz-Dialog;
173 /* ::::: thumb (horizontal) ::::: */
176 -moz-appearance: scrollbarthumb-vertical;
180 html|div thumb[orient="horizontal"] {
181 -moz-appearance: scrollbarthumb-horizontal;
185 /* ::::: scrollbar button ::::: */
187 html|div scrollbarbutton {
188 background: -moz-Dialog no-repeat 50% 50%;
193 html|div scrollbarbutton:hover:active,
194 html|div scrollbarbutton[active="true"] {
195 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
196 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
197 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
198 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
199 background-position: 60% 60%;
202 /* ..... increment .... */
204 html|div scrollbarbutton[type="increment"] {
205 -moz-appearance: scrollbarbutton-right;
206 background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
209 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
210 -moz-appearance: scrollbarbutton-down;
211 background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
214 /* ..... decrement .... */
216 html|div scrollbarbutton[type="decrement"] {
217 -moz-appearance: scrollbarbutton-left;
218 background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
221 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
222 -moz-appearance: scrollbarbutton-up;
223 background-image: url("chrome://global/skin/arrow/arrow-up.gif")