preliminary work for getting themes ready for suiterunner, add files we need for...
[themes.git] / EarlyBlue / global / scrollbars.css
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");
39 @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
40
41 /* ===== scrollbars.css =================================================
42   == Styles used by XUL scrollbar-related elements.
43   ======================================================================= */
44
45 /* ::::: scrollbar ::::: */
46
47 scrollbar {
48   -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
49   cursor: default;
50   background-color: #999999;
51 }
52
53 /* ::::: slider ::::: */
54
55 slider {
56   height: 13px;
57 }
58
59 slider[orient="vertical"] {
60   width: 13px;
61 }
62
63 /* ::::: borders for thumb and buttons ::::: */
64
65 thumb,
66 scrollbarbutton {
67   border: 1px outset #CCCCCC;
68   background: #CCCCCC 50% 50% no-repeat;
69   padding: 1px;
70   min-width: 13px;
71   min-height: 13px;
72 }
73
74 thumb:active {
75   background-color: #DDDDDD;
76 }
77
78 /* ::::: thumb (horizontal) ::::: */
79
80 thumb {
81   background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
82 }
83
84 thumb[orient="horizontal"] {
85   background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
86 }
87
88 thumb[disabled="true"] {
89   background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
90 }
91
92 thumb[orient="horizontal"][disabled="true"] {
93   background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
94 }
95
96 /* ::::: scrollbar button ::::: */
97
98 scrollbarbutton {
99 }
100
101 scrollbarbutton:hover:active,
102 scrollbarbutton[active="true"] {
103   border-style: inset;
104   padding: 2px 0px 0px 2px;
105 }
106
107 /* ::::: square at the corner of two scrollbars ::::: */
108
109 scrollcorner {
110   -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
111   cursor: default;
112   background-color: #999999;
113   width: 13px;
114 }
115
116 /* ..... increment .... */
117
118 scrollbarbutton[type="increment"] {
119   background-image: url("chrome://global/skin/scrollbar/button-right.gif")
120 }
121
122
123 scrollbarbutton[type="increment"][disabled="true"] {
124   background-image: url("chrome://global/skin/scrollbar/button-right-disabled.gif")
125 }
126
127 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
128   background-image: url("chrome://global/skin/scrollbar/button-down.gif")
129 }
130
131 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"] {
132   background-image: url("chrome://global/skin/scrollbar/button-down-disabled.gif")
133 }
134
135 /* ..... decrement .... */
136
137 scrollbarbutton[type="decrement"] {
138   background-image: url("chrome://global/skin/scrollbar/button-left.gif")
139 }
140
141 scrollbarbutton[type="decrement"][disabled="true"] {
142   background-image: url("chrome://global/skin/scrollbar/button-left-disabled.gif")
143 }
144
145 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
146    background-image: url("chrome://global/skin/scrollbar/button-up.gif")
147 }
148
149 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"] {
150    background-image: url("chrome://global/skin/scrollbar/button-up-disabled.gif")
151 }
152
153 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
154 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
155 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
156 @media print {
157   /* ::::: scrollbar ::::: */
158
159   html|div scrollbar {
160     -moz-appearance: scrollbartrack-horizontal;
161     -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
162     cursor: default;
163     background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
164   }
165
166   html|div scrollbar[orient="vertical"]
167   {
168      -moz-appearance: scrollbartrack-vertical;
169   }
170
171   /* ::::: borders for thumb and buttons ::::: */
172
173   html|div thumb,
174   html|div scrollbarbutton {
175     border: 2px solid;
176     -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
177     -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
178     -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
179     -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
180     background-color: -moz-Dialog;
181   }
182
183   /* ::::: thumb (horizontal) ::::: */
184
185   html|div thumb {
186     -moz-appearance: scrollbarthumb-vertical;
187     min-height: 8px;
188   }
189
190   html|div thumb[orient="horizontal"] {
191     -moz-appearance: scrollbarthumb-horizontal;
192     min-width: 8px;
193   }
194
195   html|div thumb > gripper {
196     -moz-appearance: scrollbargripper-vertical;
197   }
198
199   html|div thumb[orient="horizontal"] > gripper {
200     -moz-appearance: scrollbargripper-horizontal;
201   }
202
203   /* ::::: scrollbar button ::::: */
204
205   html|div scrollbarbutton,
206   html|div scrollbarbutton[active="true"] {
207     background: -moz-Dialog no-repeat 0px 1px;
208     min-width: 16px;
209     min-height: 16px;
210   }
211
212   html|div scrollbarbutton:hover:active {
213     -moz-border-top-colors: ThreeDShadow -moz-Dialog;
214     -moz-border-right-colors: ThreeDShadow -moz-Dialog;
215     -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
216     -moz-border-left-colors: ThreeDShadow -moz-Dialog;
217     background-position: 1px 2px;
218   }
219
220   /* ..... increment .... */
221
222   html|div scrollbarbutton[type="increment"] {
223     -moz-appearance: scrollbarbutton-right;
224     background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
225   }
226
227   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
228     -moz-appearance: scrollbarbutton-down;
229     background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
230   }
231
232   /* ..... decrement .... */
233
234   html|div scrollbarbutton[type="decrement"] {
235     -moz-appearance: scrollbarbutton-left;
236      background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
237   }
238
239   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
240     -moz-appearance: scrollbarbutton-up;
241      background-image: url("chrome://global/skin/arrow/arrow-up.gif")
242   }
243
244 }