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 ::::: */
57 background-color: #794900;
60 slider[orient="vertical"] {
64 /* ::::: borders for thumb and buttons ::::: */
69 background: transparent 50% 50% no-repeat;
75 /* ::::: thumb ::::: */
78 background-color: #9C9CFF;
79 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
82 thumb[orient="horizontal"] {
83 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
89 background-color: #008484;
93 background-color: #FFCF00;
96 thumb[disabled="true"] {
97 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
100 thumb[orient="horizontal"][disabled="true"] {
101 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
104 /* ::::: scrollbar button ::::: */
107 background-color: #FF9F00;
110 scrollbarbutton:hover:active,
111 scrollbarbutton[active="true"] {
114 -moz-padding-start: 2px;
115 -moz-padding-end: 0px;
118 scrollbarbutton:hover {
119 background-color: #FFCF00;
122 scrollbarbutton:hover:active {
123 background-color: #FF0000;
126 scrollbarbutton[disabled="true"] {
127 background-color: #8050B0 !important;
130 /* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
131 scrollbarbutton[sbattr="scrollbar-up-bottom"],
132 scrollbarbutton[sbattr="scrollbar-down-top"] {
136 /* ::::: square at the corner of two scrollbars ::::: */
139 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
141 background-color: #000000;
145 /* ..... increment .... */
147 scrollbarbutton[type="increment"] {
148 background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
149 border-radius: 0 50% 50% 0;
151 -moz-margin-start: 3px;
154 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
155 background-image: url("chrome://global/skin/scrollbar/arrow-down.png");
156 border-radius: 0 0 50% 50%;
160 /* ..... decrement .... */
162 scrollbarbutton[type="decrement"] {
163 background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
164 border-radius: 50% 0 0 50%;
166 -moz-margin-end: 3px;
169 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
170 background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
171 border-radius: 50% 50% 0 0;
175 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
176 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
177 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
179 /* ::::: scrollbar ::::: */
182 -moz-appearance: scrollbartrack-horizontal;
183 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
185 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
188 html|div scrollbar[orient="vertical"]
190 -moz-appearance: scrollbartrack-vertical;
193 /* ::::: borders for thumb and buttons ::::: */
196 html|div scrollbarbutton {
198 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
199 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
200 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
201 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
202 background-color: -moz-Dialog;
205 /* ::::: thumb (horizontal) ::::: */
208 -moz-appearance: scrollbarthumb-vertical;
212 html|div thumb[orient="horizontal"] {
213 -moz-appearance: scrollbarthumb-horizontal;
217 /* ::::: scrollbar button ::::: */
219 html|div scrollbarbutton {
220 background: -moz-Dialog no-repeat 50% 50%;
225 html|div scrollbarbutton:hover:active,
226 html|div scrollbarbutton[active="true"] {
227 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
228 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
229 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
230 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
231 background-position: 60% 60%;
234 /* ..... increment .... */
236 html|div scrollbarbutton[type="increment"] {
237 -moz-appearance: scrollbarbutton-right;
238 background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
241 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
242 -moz-appearance: scrollbarbutton-down;
243 background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
246 /* ..... decrement .... */
248 html|div scrollbarbutton[type="decrement"] {
249 -moz-appearance: scrollbarbutton-left;
250 background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
253 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
254 -moz-appearance: scrollbarbutton-up;
255 background-image: url("chrome://global/skin/arrow/arrow-up.gif")