d1b4f58c1ac69a53b282c5cd480db00a73530ac2
[themes.git] / LCARStrek / global / scrollbars.css
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 /* ===== scrollbars.css =================================================
6   == Styles used by XUL scrollbar-related elements.
7   ======================================================================= */
8
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
10 @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
11
12 /* ::::: scrollbar ::::: */
13
14 scrollbar {
15   -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
16   cursor: default;
17   background-color: #000000;
18   border-radius: 50%;
19 }
20
21 /* ::::: slider ::::: */
22
23 slider {
24   height: 13px;
25   background-color: #202024;
26 }
27
28 slider[orient="vertical"] {
29   width: 13px;
30 }
31
32 /* ::::: borders for thumb and buttons ::::: */
33
34 thumb,
35 scrollbarbutton {
36   border: none;
37   background: transparent 50% 50% no-repeat;
38   padding: 1px;
39   min-width: 13px;
40   min-height: 13px;
41 }
42
43 /* ::::: thumb ::::: */
44
45 thumb {
46   background-color: #A09090;
47   background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
48 }
49
50 thumb[orient="horizontal"] {
51   background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
52 }
53
54
55 thumb:active,
56 thumb:hover:active {
57    background-color: #008484;
58 }
59
60 thumb:hover {
61    background-color: #FFCF00;
62 }
63
64 thumb[disabled="true"] {
65   background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
66 }
67
68 thumb[orient="horizontal"][disabled="true"] {
69   background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
70 }
71
72 /* ::::: scrollbar button ::::: */
73
74 scrollbarbutton {
75   background-color: #C09070;
76   margin: 0px;
77 }
78
79 scrollbarbutton:hover:active,
80 scrollbarbutton[active="true"] {
81   padding-top: 2px;
82   padding-bottom: 0px;
83   -moz-padding-start: 2px;
84   -moz-padding-end: 0px;
85 }
86
87 scrollbarbutton:hover {
88   background-color: #FFCF00;
89 }
90
91 scrollbarbutton:hover:active {
92   background-color: #FF0000;
93 }
94
95 scrollbarbutton[disabled="true"] {
96   background-color: #402858 !important;
97 }
98
99 /* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
100 scrollbarbutton[sbattr="scrollbar-up-bottom"],
101 scrollbarbutton[sbattr="scrollbar-down-top"] {
102   display: none;
103 }
104
105 /* ::::: square at the corner of two scrollbars ::::: */
106
107 scrollcorner {
108   -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
109   cursor: default;
110   background-color: #000000;
111   width: 13px;
112 }
113
114 /* ..... increment .... */
115
116 scrollbarbutton[type="increment"] {
117   background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
118   border-radius: 0 50% 50% 0;
119   -moz-border-start: 3px solid #000000;
120 }
121
122 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
123   background-image: url("chrome://global/skin/scrollbar/arrow-down.png");
124   border-radius: 0 0 50% 50%;
125   border-top: 3px solid #000000;
126 }
127
128 /* ..... decrement .... */
129
130 scrollbarbutton[type="decrement"] {
131   background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
132   border-radius: 50% 0 0 50%;
133   -moz-border-end: 3px solid #000000;
134 }
135
136 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
137   background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
138   border-radius: 50% 50% 0 0;
139   border-bottom: 3px solid #000000;
140 }
141
142 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
143 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
144 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
145 @media print {
146   /* ::::: scrollbar ::::: */
147
148   html|div scrollbar {
149     -moz-appearance: scrollbartrack-horizontal;
150     -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
151     cursor: default;
152     background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
153   }
154
155   html|div scrollbar[orient="vertical"]
156   {
157      -moz-appearance: scrollbartrack-vertical;
158   }
159
160   /* ::::: borders for thumb and buttons ::::: */
161
162   html|div thumb,
163   html|div scrollbarbutton {
164     border: 2px solid;
165     -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
166     -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
167     -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
168     -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
169     background-color: -moz-Dialog;
170   }
171
172   /* ::::: thumb (horizontal) ::::: */
173
174   html|div thumb {
175     -moz-appearance: scrollbarthumb-vertical;
176     min-height: 8px;
177   }
178
179   html|div thumb[orient="horizontal"] {
180     -moz-appearance: scrollbarthumb-horizontal;
181     min-width: 8px;
182   }
183
184   /* ::::: scrollbar button ::::: */
185
186   html|div scrollbarbutton {
187     background: -moz-Dialog no-repeat 50% 50%;
188     min-width: 16px;
189     min-height: 16px;
190   }
191
192   html|div scrollbarbutton:hover:active,
193   html|div scrollbarbutton[active="true"] {
194     -moz-border-top-colors: ThreeDShadow -moz-Dialog;
195     -moz-border-right-colors: ThreeDShadow -moz-Dialog;
196     -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
197     -moz-border-left-colors: ThreeDShadow -moz-Dialog;
198     background-position: 60% 60%;
199   }
200
201   /* ..... increment .... */
202
203   html|div scrollbarbutton[type="increment"] {
204     -moz-appearance: scrollbarbutton-right;
205     background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
206   }
207
208   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
209     -moz-appearance: scrollbarbutton-down;
210     background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
211   }
212
213   /* ..... decrement .... */
214
215   html|div scrollbarbutton[type="decrement"] {
216     -moz-appearance: scrollbarbutton-left;
217      background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
218   }
219
220   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
221     -moz-appearance: scrollbarbutton-up;
222      background-image: url("chrome://global/skin/arrow/arrow-up.gif")
223   }
224
225 }