Commit | Line | Data |
---|---|---|
9099c61d RK |
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/. */ | |
351107c9 | 4 | |
b1eaa419 | 5 | /* ===== scrollbars.css ================================================= |
6 | == Styles used by XUL scrollbar-related elements. | |
7 | ======================================================================= */ | |
351107c9 | 8 | |
f98e9249 RK |
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 | ||
b1eaa419 | 12 | /* ::::: scrollbar ::::: */ |
13 | ||
14 | scrollbar { | |
15 | -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar"); | |
16 | cursor: default; | |
17 | background-color: #000000; | |
d8ed26fd | 18 | border-radius: 50%; |
b1eaa419 | 19 | } |
20 | ||
21 | /* ::::: slider ::::: */ | |
22 | ||
23 | slider { | |
24 | height: 13px; | |
d8ed26fd | 25 | background-color: #202024; |
b1eaa419 | 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; | |
351107c9 | 41 | } |
42 | ||
b1eaa419 | 43 | /* ::::: thumb ::::: */ |
44 | ||
45 | thumb { | |
d8ed26fd | 46 | background-color: #A09090; |
b1eaa419 | 47 | background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif"); |
351107c9 | 48 | } |
49 | ||
b1eaa419 | 50 | thumb[orient="horizontal"] { |
51 | background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif"); | |
351107c9 | 52 | } |
53 | ||
b1eaa419 | 54 | |
351107c9 | 55 | thumb:active, |
56 | thumb:hover:active { | |
57 | background-color: #008484; | |
58 | } | |
59 | ||
60 | thumb:hover { | |
61 | background-color: #FFCF00; | |
62 | } | |
b1eaa419 | 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 { | |
d8ed26fd | 75 | background-color: #C09070; |
b1eaa419 | 76 | } |
77 | ||
a12570b9 | 78 | scrollbarbutton:hover:active, |
79 | scrollbarbutton[active="true"] { | |
02920d2b RK |
80 | padding-top: 2px; |
81 | padding-bottom: 0px; | |
82 | -moz-padding-start: 2px; | |
83 | -moz-padding-end: 0px; | |
3d6dd546 | 84 | } |
b1eaa419 | 85 | |
9c1ab967 RK |
86 | scrollbarbutton:hover { |
87 | background-color: #FFCF00; | |
88 | } | |
89 | ||
90 | scrollbarbutton:hover:active { | |
91 | background-color: #FF0000; | |
92 | } | |
93 | ||
94 | scrollbarbutton[disabled="true"] { | |
d8ed26fd | 95 | background-color: #402858 !important; |
9c1ab967 RK |
96 | } |
97 | ||
f98e9249 RK |
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 | ||
03f6f39c | 104 | /* ::::: square at the corner of two scrollbars ::::: */ |
105 | ||
106 | scrollcorner { | |
3d6dd546 | 107 | -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base"); |
108 | cursor: default; | |
03f6f39c | 109 | background-color: #000000; |
6046f027 | 110 | width: 13px; |
03f6f39c | 111 | } |
112 | ||
b1eaa419 | 113 | /* ..... increment .... */ |
114 | ||
115 | scrollbarbutton[type="increment"] { | |
9c1ab967 | 116 | background-image: url("chrome://global/skin/scrollbar/arrow-right.png"); |
569543b3 | 117 | border-radius: 0 50% 50% 0; |
02920d2b RK |
118 | margin: 0px; |
119 | -moz-margin-start: 3px; | |
b1eaa419 | 120 | } |
121 | ||
b1eaa419 | 122 | scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] { |
9c1ab967 | 123 | background-image: url("chrome://global/skin/scrollbar/arrow-down.png"); |
569543b3 | 124 | border-radius: 0 0 50% 50%; |
02920d2b | 125 | margin: 3px 0px 0px; |
b1eaa419 | 126 | } |
127 | ||
b1eaa419 | 128 | /* ..... decrement .... */ |
129 | ||
130 | scrollbarbutton[type="decrement"] { | |
9c1ab967 | 131 | background-image: url("chrome://global/skin/scrollbar/arrow-left.png"); |
569543b3 | 132 | border-radius: 50% 0 0 50%; |
02920d2b RK |
133 | margin: 0px; |
134 | -moz-margin-end: 3px; | |
b1eaa419 | 135 | } |
136 | ||
b1eaa419 | 137 | scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] { |
9c1ab967 | 138 | background-image: url("chrome://global/skin/scrollbar/arrow-up.png"); |
569543b3 | 139 | border-radius: 50% 50% 0 0; |
02920d2b | 140 | margin: 0px 0px 3px; |
b1eaa419 | 141 | } |
142 | ||
b1e5c9b1 | 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 | ||
3d6dd546 | 156 | html|div scrollbar[orient="vertical"] |
b1e5c9b1 | 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 | ||
b1e5c9b1 | 185 | /* ::::: scrollbar button ::::: */ |
186 | ||
187 | html|div scrollbarbutton { | |
cfae8c74 | 188 | background: -moz-Dialog no-repeat 50% 50%; |
b1e5c9b1 | 189 | min-width: 16px; |
190 | min-height: 16px; | |
191 | } | |
192 | ||
a12570b9 | 193 | html|div scrollbarbutton:hover:active, |
194 | html|div scrollbarbutton[active="true"] { | |
b1e5c9b1 | 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; | |
cfae8c74 | 199 | background-position: 60% 60%; |
b1e5c9b1 | 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 | ||
03f6f39c | 226 | } |