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;
79 scrollbarbutton:hover:active,
80 scrollbarbutton[active="true"] {
83 -moz-padding-start: 2px;
84 -moz-padding-end: 0px;
87 scrollbarbutton:hover {
88 background-color: #FFCF00;
91 scrollbarbutton:hover:active {
92 background-color: #FF0000;
95 scrollbarbutton[disabled="true"] {
96 background-color: #402858 !important;
99 /* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
100 scrollbarbutton[sbattr="scrollbar-up-bottom"],
101 scrollbarbutton[sbattr="scrollbar-down-top"] {
105 /* ::::: square at the corner of two scrollbars ::::: */
108 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
110 background-color: #000000;
114 /* ..... increment .... */
116 scrollbarbutton[type="increment"] {
117 background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
118 border-radius: 0 50% 50% 0;
119 -moz-border-start: 3px solid #000000;
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%;
125 border-top: 3px solid #000000;
128 /* ..... decrement .... */
130 scrollbarbutton[type="decrement"] {
131 background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
132 border-radius: 50% 0 0 50%;
133 -moz-border-end: 3px solid #000000;
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;
139 border-bottom: 3px solid #000000;
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")