try making black space between scrollbarbutton and slider be consistent, even with...
[themes.git] / LCARStrek / global / scrollbars.css
CommitLineData
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
14scrollbar {
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
23slider {
24 height: 13px;
d8ed26fd 25 background-color: #202024;
b1eaa419 26}
27
28slider[orient="vertical"] {
29 width: 13px;
30}
31
32/* ::::: borders for thumb and buttons ::::: */
33
34thumb,
35scrollbarbutton {
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
45thumb {
d8ed26fd 46 background-color: #A09090;
b1eaa419 47 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
351107c9 48}
49
b1eaa419 50thumb[orient="horizontal"] {
51 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
351107c9 52}
53
b1eaa419 54
351107c9 55thumb:active,
56thumb:hover:active {
57 background-color: #008484;
58}
59
60thumb:hover {
61 background-color: #FFCF00;
62}
b1eaa419 63
64thumb[disabled="true"] {
65 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
66}
67
68thumb[orient="horizontal"][disabled="true"] {
69 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
70}
71
72/* ::::: scrollbar button ::::: */
73
74scrollbarbutton {
d8ed26fd 75 background-color: #C09070;
cc56c65e 76 margin: 0px;
b1eaa419 77}
78
a12570b9 79scrollbarbutton:hover:active,
80scrollbarbutton[active="true"] {
02920d2b
RK
81 padding-top: 2px;
82 padding-bottom: 0px;
83 -moz-padding-start: 2px;
84 -moz-padding-end: 0px;
3d6dd546 85}
b1eaa419 86
9c1ab967
RK
87scrollbarbutton:hover {
88 background-color: #FFCF00;
89}
90
91scrollbarbutton:hover:active {
92 background-color: #FF0000;
93}
94
95scrollbarbutton[disabled="true"] {
d8ed26fd 96 background-color: #402858 !important;
9c1ab967
RK
97}
98
f98e9249
RK
99/* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
100scrollbarbutton[sbattr="scrollbar-up-bottom"],
101scrollbarbutton[sbattr="scrollbar-down-top"] {
102 display: none;
103}
104
03f6f39c 105/* ::::: square at the corner of two scrollbars ::::: */
106
107scrollcorner {
3d6dd546 108 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
109 cursor: default;
03f6f39c 110 background-color: #000000;
6046f027 111 width: 13px;
03f6f39c 112}
113
b1eaa419 114/* ..... increment .... */
115
116scrollbarbutton[type="increment"] {
9c1ab967 117 background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
569543b3 118 border-radius: 0 50% 50% 0;
cc56c65e 119 -moz-border-start: 3px solid #000000;
b1eaa419 120}
121
b1eaa419 122scrollbar[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%;
cc56c65e 125 border-top: 3px solid #000000;
b1eaa419 126}
127
b1eaa419 128/* ..... decrement .... */
129
130scrollbarbutton[type="decrement"] {
9c1ab967 131 background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
569543b3 132 border-radius: 50% 0 0 50%;
cc56c65e 133 -moz-border-end: 3px solid #000000;
b1eaa419 134}
135
b1eaa419 136scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
9c1ab967 137 background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
569543b3 138 border-radius: 50% 50% 0 0;
cc56c65e 139 border-bottom: 3px solid #000000;
b1eaa419 140}
141
b1e5c9b1 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
3d6dd546 155 html|div scrollbar[orient="vertical"]
b1e5c9b1 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
b1e5c9b1 184 /* ::::: scrollbar button ::::: */
185
186 html|div scrollbarbutton {
cfae8c74 187 background: -moz-Dialog no-repeat 50% 50%;
b1e5c9b1 188 min-width: 16px;
189 min-height: 16px;
190 }
191
a12570b9 192 html|div scrollbarbutton:hover:active,
193 html|div scrollbarbutton[active="true"] {
b1e5c9b1 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;
cfae8c74 198 background-position: 60% 60%;
b1e5c9b1 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
03f6f39c 225}