another small cleanup change
[themes.git] / EarlyBlue / global / scrollbars.css
CommitLineData
128000f4 1/* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 *
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/
8 *
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
12 * License.
13 *
14 * The Original Code is "Classic" theme of mozilla.org code.
15 *
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.
20 *
21 * Contributor(s):
22 * Robert Kaiser <KaiRo@KaiRo.at>
23 *
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.
35 *
36 * ***** END LICENSE BLOCK ***** */
37
38@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
f6e0a33f 39
74d14f90 40/* ===== scrollbars.css =================================================
41 == Styles used by XUL scrollbar-related elements.
42 ======================================================================= */
f6e0a33f 43
74d14f90 44/* ::::: scrollbar ::::: */
45
46scrollbar {
47 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
48 cursor: default;
49 background-color: #999999;
50}
51
52/* ::::: slider ::::: */
53
54slider {
55 height: 13px;
f6e0a33f 56}
57
74d14f90 58slider[orient="vertical"] {
59 width: 13px;
f6e0a33f 60}
61
74d14f90 62/* ::::: borders for thumb and buttons ::::: */
63
64thumb,
65scrollbarbutton {
66 border: 1px outset #CCCCCC;
67 background: #CCCCCC 50% 50% no-repeat;
68 padding: 1px;
69 min-width: 13px;
70 min-height: 13px;
f6e0a33f 71}
72
73thumb:active {
74d14f90 74 background-color: #DDDDDD;
75}
76
77/* ::::: thumb (horizontal) ::::: */
78
79thumb {
80 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
81}
82
83thumb[orient="horizontal"] {
84 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
85}
86
87thumb[disabled="true"] {
88 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
89}
90
91thumb[orient="horizontal"][disabled="true"] {
92 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
93}
94
95/* ::::: scrollbar button ::::: */
96
97scrollbarbutton {
98}
99
100scrollbarbutton:hover:active {
101 border-style: inset;
102 padding: 2px 0px 0px 2px;
103}
104
105/* ..... increment .... */
106
107scrollbarbutton[type="increment"] {
108 background-image: url("chrome://global/skin/scrollbar/button-right.gif")
109}
110
111
112scrollbarbutton[type="increment"][disabled="true"] {
113 background-image: url("chrome://global/skin/scrollbar/button-right-disabled.gif")
114}
115
116scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
117 background-image: url("chrome://global/skin/scrollbar/button-down.gif")
118}
119
120scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"] {
121 background-image: url("chrome://global/skin/scrollbar/button-down-disabled.gif")
122}
123
124/* ..... decrement .... */
125
126scrollbarbutton[type="decrement"] {
127 background-image: url("chrome://global/skin/scrollbar/button-left.gif")
128}
129
130scrollbarbutton[type="decrement"][disabled="true"] {
131 background-image: url("chrome://global/skin/scrollbar/button-left-disabled.gif")
132}
133
134scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
135 background-image: url("chrome://global/skin/scrollbar/button-up.gif")
136}
137
138scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"] {
139 background-image: url("chrome://global/skin/scrollbar/button-up-disabled.gif")
140}