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: #000000;
53 /* ::::: slider ::::: */
59 slider[orient="vertical"] {
63 /* ::::: borders for thumb and buttons ::::: */
68 background: transparent 50% 50% no-repeat;
74 /* ::::: thumb ::::: */
77 background-color: #9C9CFF;
78 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
81 thumb[orient="horizontal"] {
82 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
88 background-color: #008484;
92 background-color: #FFCF00;
95 thumb[disabled="true"] {
96 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
99 thumb[orient="horizontal"][disabled="true"] {
100 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
103 /* ::::: scrollbar button ::::: */
108 scrollbarbutton:hover:active,
109 scrollbarbutton[active="true"] {
110 padding: 2px 0px 0px 2px;
113 /* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
114 scrollbarbutton[sbattr="scrollbar-up-bottom"],
115 scrollbarbutton[sbattr="scrollbar-down-top"] {
119 /* ::::: square at the corner of two scrollbars ::::: */
122 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
124 background-color: #000000;
128 /* ..... increment .... */
130 scrollbarbutton[type="increment"] {
131 background-image: url("chrome://global/skin/scrollbar/button-right.gif");
132 margin: 0px 0px 0px 3px;
135 scrollbarbutton[type="increment"]:hover {
136 background-image: url("chrome://global/skin/scrollbar/button-right-hover.gif");
139 scrollbarbutton[type="increment"][disabled="true"] {
140 background-image: url("chrome://global/skin/scrollbar/button-right-disabled.gif") !important;
143 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
144 background-image: url("chrome://global/skin/scrollbar/button-down.gif");
145 margin: 3px 0px 0px 0px;
148 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"]:hover {
149 background-image: url("chrome://global/skin/scrollbar/button-down-hover.gif");
152 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"] {
153 background-image: url("chrome://global/skin/scrollbar/button-down-disabled.gif") !important;
156 /* ..... decrement .... */
158 scrollbarbutton[type="decrement"] {
159 background-image: url("chrome://global/skin/scrollbar/button-left.gif");
160 margin: 0px 3px 0px 0px;
163 scrollbarbutton[type="decrement"]:hover {
164 background-image: url("chrome://global/skin/scrollbar/button-left-hover.gif");
167 scrollbarbutton[type="decrement"][disabled="true"] {
168 background-image: url("chrome://global/skin/scrollbar/button-left-disabled.gif") !important;
171 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
172 background-image: url("chrome://global/skin/scrollbar/button-up.gif");
173 margin: 0px 0px 3px 0px;
176 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"]:hover {
177 background-image: url("chrome://global/skin/scrollbar/button-up-hover.gif");
180 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"] {
181 background-image: url("chrome://global/skin/scrollbar/button-up-disabled.gif") !important;
184 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
185 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
186 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
188 /* ::::: scrollbar ::::: */
191 -moz-appearance: scrollbartrack-horizontal;
192 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
194 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
197 html|div scrollbar[orient="vertical"]
199 -moz-appearance: scrollbartrack-vertical;
202 /* ::::: borders for thumb and buttons ::::: */
205 html|div scrollbarbutton {
207 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
208 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
209 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
210 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
211 background-color: -moz-Dialog;
214 /* ::::: thumb (horizontal) ::::: */
217 -moz-appearance: scrollbarthumb-vertical;
221 html|div thumb[orient="horizontal"] {
222 -moz-appearance: scrollbarthumb-horizontal;
226 /* ::::: scrollbar button ::::: */
228 html|div scrollbarbutton {
229 background: -moz-Dialog no-repeat 0px 1px;
234 html|div scrollbarbutton:hover:active,
235 html|div scrollbarbutton[active="true"] {
236 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
237 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
238 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
239 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
240 background-position: 1px 2px;
243 /* ..... increment .... */
245 html|div scrollbarbutton[type="increment"] {
246 -moz-appearance: scrollbarbutton-right;
247 background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
250 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
251 -moz-appearance: scrollbarbutton-down;
252 background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
255 /* ..... decrement .... */
257 html|div scrollbarbutton[type="decrement"] {
258 -moz-appearance: scrollbarbutton-left;
259 background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
262 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
263 -moz-appearance: scrollbarbutton-up;
264 background-image: url("chrome://global/skin/arrow/arrow-up.gif")