make links have more contrast to black, add new design to SeaMonkey profile manager
[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 }
77
78 scrollbarbutton:hover:active,
79 scrollbarbutton[active="true"] {
80   padding-top: 2px;
81   padding-bottom: 0px;
82   -moz-padding-start: 2px;
83   -moz-padding-end: 0px;
84 }
85
86 scrollbarbutton:hover {
87   background-color: #FFCF00;
88 }
89
90 scrollbarbutton:hover:active {
91   background-color: #FF0000;
92 }
93
94 scrollbarbutton[disabled="true"] {
95   background-color: #402858 !important;
96 }
97
98 /* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
99 scrollbarbutton[sbattr="scrollbar-up-bottom"],
100 scrollbarbutton[sbattr="scrollbar-down-top"] {
101   display: none;
102 }
103
104 /* ::::: square at the corner of two scrollbars ::::: */
105
106 scrollcorner {
107   -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
108   cursor: default;
109   background-color: #000000;
110   width: 13px;
111 }
112
113 /* ..... increment .... */
114
115 scrollbarbutton[type="increment"] {
116   background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
117   border-radius: 0 50% 50% 0;
118   margin: 0px;
119   -moz-margin-start: 3px;
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   margin: 3px 0px 0px;
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   margin: 0px;
134   -moz-margin-end: 3px;
135 }
136
137 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
138   background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
139   border-radius: 50% 50% 0 0;
140   margin: 0px 0px 3px;
141 }
142
143 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
144 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
145 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
146 @media print {
147   /* ::::: scrollbar ::::: */
148
149   html|div scrollbar {
150     -moz-appearance: scrollbartrack-horizontal;
151     -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
152     cursor: default;
153     background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
154   }
155
156   html|div scrollbar[orient="vertical"]
157   {
158      -moz-appearance: scrollbartrack-vertical;
159   }
160
161   /* ::::: borders for thumb and buttons ::::: */
162
163   html|div thumb,
164   html|div scrollbarbutton {
165     border: 2px solid;
166     -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
167     -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
168     -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
169     -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
170     background-color: -moz-Dialog;
171   }
172
173   /* ::::: thumb (horizontal) ::::: */
174
175   html|div thumb {
176     -moz-appearance: scrollbarthumb-vertical;
177     min-height: 8px;
178   }
179
180   html|div thumb[orient="horizontal"] {
181     -moz-appearance: scrollbarthumb-horizontal;
182     min-width: 8px;
183   }
184
185   /* ::::: scrollbar button ::::: */
186
187   html|div scrollbarbutton {
188     background: -moz-Dialog no-repeat 50% 50%;
189     min-width: 16px;
190     min-height: 16px;
191   }
192
193   html|div scrollbarbutton:hover:active,
194   html|div scrollbarbutton[active="true"] {
195     -moz-border-top-colors: ThreeDShadow -moz-Dialog;
196     -moz-border-right-colors: ThreeDShadow -moz-Dialog;
197     -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
198     -moz-border-left-colors: ThreeDShadow -moz-Dialog;
199     background-position: 60% 60%;
200   }
201
202   /* ..... increment .... */
203
204   html|div scrollbarbutton[type="increment"] {
205     -moz-appearance: scrollbarbutton-right;
206     background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
207   }
208
209   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
210     -moz-appearance: scrollbarbutton-down;
211     background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
212   }
213
214   /* ..... decrement .... */
215
216   html|div scrollbarbutton[type="decrement"] {
217     -moz-appearance: scrollbarbutton-left;
218      background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
219   }
220
221   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
222     -moz-appearance: scrollbarbutton-up;
223      background-image: url("chrome://global/skin/arrow/arrow-up.gif")
224   }
225
226 }