1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
14 * The Original Code is "Classic" theme of mozilla.org code.
16 * The Initial Developer of the Original Code is
17 * the Mozilla Organization.
18 * Portions created by the Initial Developer are Copyright (C) 1998-2001
19 * the Initial Developer. All Rights Reserved.
22 * Robert Kaiser <KaiRo@KaiRo.at>
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPL"), or
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
36 * ***** END LICENSE BLOCK ***** */
38 /* ===== scrollbars.css =================================================
39 == Styles used by XUL scrollbar-related elements.
40 ======================================================================= */
42 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
43 @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
45 /* ::::: scrollbar ::::: */
48 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
50 background-color: #999999;
53 /* ::::: slider ::::: */
59 slider[orient="vertical"] {
63 /* ::::: borders for thumb and buttons ::::: */
67 border: 1px outset #CCCCCC;
68 background: #CCCCCC 50% 50% no-repeat;
75 background-color: #DDDDDD;
78 /* ::::: thumb (horizontal) ::::: */
81 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
84 thumb[orient="horizontal"] {
85 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
88 thumb[disabled="true"] {
89 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
92 thumb[orient="horizontal"][disabled="true"] {
93 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
96 /* ::::: scrollbar button ::::: */
101 scrollbarbutton:hover:active,
102 scrollbarbutton[active="true"] {
106 -moz-padding-start: 2px;
107 -moz-padding-end: 0px;
110 /* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
111 scrollbarbutton[sbattr="scrollbar-up-bottom"],
112 scrollbarbutton[sbattr="scrollbar-down-top"] {
116 /* ::::: square at the corner of two scrollbars ::::: */
119 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
121 background-color: #999999;
125 /* ..... increment .... */
127 scrollbarbutton[type="increment"] {
128 background-image: url("chrome://global/skin/scrollbar/button-right.gif")
132 scrollbarbutton[type="increment"][disabled="true"] {
133 background-image: url("chrome://global/skin/scrollbar/button-right-disabled.gif")
136 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
137 background-image: url("chrome://global/skin/scrollbar/button-down.gif")
140 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"] {
141 background-image: url("chrome://global/skin/scrollbar/button-down-disabled.gif")
144 /* ..... decrement .... */
146 scrollbarbutton[type="decrement"] {
147 background-image: url("chrome://global/skin/scrollbar/button-left.gif")
150 scrollbarbutton[type="decrement"][disabled="true"] {
151 background-image: url("chrome://global/skin/scrollbar/button-left-disabled.gif")
154 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
155 background-image: url("chrome://global/skin/scrollbar/button-up.gif")
158 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"] {
159 background-image: url("chrome://global/skin/scrollbar/button-up-disabled.gif")
162 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
163 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
164 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
166 /* ::::: scrollbar ::::: */
169 -moz-appearance: scrollbartrack-horizontal;
170 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
172 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
175 html|div scrollbar[orient="vertical"]
177 -moz-appearance: scrollbartrack-vertical;
180 /* ::::: borders for thumb and buttons ::::: */
183 html|div scrollbarbutton {
185 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
186 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
187 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
188 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
189 background-color: -moz-Dialog;
192 /* ::::: thumb (horizontal) ::::: */
195 -moz-appearance: scrollbarthumb-vertical;
199 html|div thumb[orient="horizontal"] {
200 -moz-appearance: scrollbarthumb-horizontal;
204 /* ::::: scrollbar button ::::: */
206 html|div scrollbarbutton,
207 html|div scrollbarbutton[active="true"] {
208 background: -moz-Dialog no-repeat 50% 50%;
213 html|div scrollbarbutton:hover:active {
214 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
215 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
216 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
217 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
218 background-position: 60% 60%;
221 /* ..... increment .... */
223 html|div scrollbarbutton[type="increment"] {
224 -moz-appearance: scrollbarbutton-right;
225 background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
228 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
229 -moz-appearance: scrollbarbutton-down;
230 background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
233 /* ..... decrement .... */
235 html|div scrollbarbutton[type="decrement"] {
236 -moz-appearance: scrollbarbutton-left;
237 background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
240 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
241 -moz-appearance: scrollbarbutton-up;
242 background-image: url("chrome://global/skin/arrow/arrow-up.gif")