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/. */
5 /* ===== scrollbars.css =================================================
6 == Styles used by XUL scrollbar-related elements.
7 ======================================================================= */
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 */
12 /* ::::: scrollbar ::::: */
15 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
17 background-color: #000000;
21 /* ::::: slider ::::: */
25 background-color: #404048; /* #202024;*/
28 slider[orient="vertical"] {
32 /* ::::: borders for thumb and buttons ::::: */
37 background: transparent 50% 50% no-repeat;
43 scrollbar:not([orient="vertical"]) > scrollbarbutton {
47 scrollbar[orient="vertical"] > scrollbarbutton {
52 /* ::::: thumb ::::: */
55 background-color: #A09090;
56 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
59 thumb[orient="horizontal"] {
60 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
66 background-color: #008484;
70 background-color: #FFCF00;
73 thumb[disabled="true"] {
74 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
77 thumb[orient="horizontal"][disabled="true"] {
78 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
81 /* ::::: scrollbar button ::::: */
84 background-color: #C09070;
87 scrollbarbutton:hover:active,
88 scrollbarbutton[active="true"] {
89 background-position: calc(50% + 1px) calc(50% + 1px);
92 scrollbarbutton:hover {
93 background-color: #FFCF00;
96 scrollbarbutton:hover:active {
97 background-color: #FF9F00;
100 scrollbarbutton[disabled="true"] {
101 background-color: #402858 !important;
104 /* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
105 scrollbarbutton[sbattr="scrollbar-up-bottom"],
106 scrollbarbutton[sbattr="scrollbar-down-top"] {
110 /* ::::: square at the corner of two scrollbars ::::: */
113 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
115 background-color: #000000;
119 /* ..... increment .... */
121 scrollbarbutton[type="increment"] {
122 background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
123 border-radius: 0 300px 300px 0;
124 -moz-border-start: 3px solid #000000;
127 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
128 background-image: url("chrome://global/skin/scrollbar/arrow-down.png");
129 border-radius: 0 0 300px 300px;
130 -moz-border-start: none;
131 border-top: 3px solid #000000;
134 /* ..... decrement .... */
136 scrollbarbutton[type="decrement"] {
137 background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
138 border-radius: 300px 0 0 300px;
139 -moz-border-end: 3px solid #000000;
142 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
143 background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
144 border-radius: 300px 300px 0 0;
145 -moz-border-end: none;
146 border-bottom: 3px solid #000000;
149 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
150 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
151 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
153 /* ::::: scrollbar ::::: */
156 -moz-appearance: scrollbartrack-horizontal;
157 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
159 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
162 html|div scrollbar[orient="vertical"]
164 -moz-appearance: scrollbartrack-vertical;
167 /* ::::: borders for thumb and buttons ::::: */
170 html|div scrollbarbutton {
172 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
173 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
174 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
175 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
176 background-color: -moz-Dialog;
179 /* ::::: thumb (horizontal) ::::: */
182 -moz-appearance: scrollbarthumb-vertical;
186 html|div thumb[orient="horizontal"] {
187 -moz-appearance: scrollbarthumb-horizontal;
191 /* ::::: scrollbar button ::::: */
193 html|div scrollbarbutton {
194 background: -moz-Dialog no-repeat 50% 50%;
199 html|div scrollbarbutton:hover:active,
200 html|div scrollbarbutton[active="true"] {
201 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
202 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
203 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
204 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
205 background-position: 60% 60%;
208 /* ..... increment .... */
210 html|div scrollbarbutton[type="increment"] {
211 -moz-appearance: scrollbarbutton-right;
212 background-image: url("chrome://global/skin/scrollbar/arrow-right.png")
215 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
216 -moz-appearance: scrollbarbutton-down;
217 background-image: url("chrome://global/skin/scrollbar/arrow-down.png")
220 /* ..... decrement .... */
222 html|div scrollbarbutton[type="decrement"] {
223 -moz-appearance: scrollbarbutton-left;
224 background-image: url("chrome://global/skin/scrollbar/arrow-left.png")
227 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
228 -moz-appearance: scrollbarbutton-up;
229 background-image: url("chrome://global/skin/scrollbar/arrow-up.png")