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;
22 @media all and (-moz-overlay-scrollbars) {
23 scrollbar[root="true"] {
25 z-index: 2147483647; /* largest positive value of a signed 32-bit integer */
28 scrollbar:not([active="true"]),
29 scrollbar[disabled="true"] {
34 /* ::::: slider ::::: */
38 background-color: #404048; /* #202024;*/
41 slider[orient="vertical"] {
45 /* ::::: borders for thumb and buttons ::::: */
50 background: transparent 50% 50% no-repeat;
56 scrollbar:not([orient="vertical"]) > scrollbarbutton {
60 scrollbar[orient="vertical"] > scrollbarbutton {
65 /* ::::: thumb ::::: */
68 background-color: #A09090;
69 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
72 thumb[orient="horizontal"] {
73 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
79 background-color: #008484;
83 background-color: #FFCF00;
86 thumb[disabled="true"] {
87 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
90 thumb[orient="horizontal"][disabled="true"] {
91 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
94 /* keep clickthrough scrollbars in e.g. devtoools with a simpler thumb */
95 scrollbar[clickthrough="always"] > slider > thumb {
96 background-image: none;
99 /* ::::: scrollbar button ::::: */
102 background-color: #C09070;
105 scrollbarbutton:hover:active,
106 scrollbarbutton[active="true"] {
107 background-position: calc(50% + 1px) calc(50% + 1px);
110 scrollbarbutton:hover {
111 background-color: #FFCF00;
114 scrollbarbutton:hover:active {
115 background-color: #FF9F00;
118 scrollbarbutton[disabled="true"] {
119 background-color: #402858 !important;
122 /* XXX - scrollbar.xml always grabs the OS settings and we don't want that (but keep clickthrough scrollbars in e.g. devtoools working) */
123 scrollbarbutton[sbattr="scrollbar-up-bottom"],
124 scrollbarbutton[sbattr="scrollbar-down-top"] {
127 scrollbar:not([clickthrough="always"]) > scrollbarbutton[sbattr="scrollbar-up-top"],
128 scrollbar:not([clickthrough="always"]) > scrollbarbutton[sbattr="scrollbar-down-bottom"] {
129 display: -moz-box !important;
132 /* ::::: square at the corner of two scrollbars ::::: */
135 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
137 background-color: #000000;
141 /* ..... increment .... */
143 scrollbarbutton[type="increment"] {
144 background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
145 border-radius: 0 300px 300px 0;
146 border-inline-start: 3px solid #000000;
149 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
150 background-image: url("chrome://global/skin/scrollbar/arrow-down.png");
151 border-radius: 0 0 300px 300px;
152 border-inline-start: none;
153 border-top: 3px solid #000000;
156 /* ..... decrement .... */
158 scrollbarbutton[type="decrement"] {
159 background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
160 border-radius: 300px 0 0 300px;
161 border-inline-end: 3px solid #000000;
164 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
165 background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
166 border-radius: 300px 300px 0 0;
167 border-inline-end: none;
168 border-bottom: 3px solid #000000;
171 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
172 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
173 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
175 /* ::::: scrollbar ::::: */
178 -moz-appearance: scrollbartrack-horizontal;
179 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
181 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
184 html|div scrollbar[orient="vertical"]
186 -moz-appearance: scrollbartrack-vertical;
189 /* ::::: borders for thumb and buttons ::::: */
192 html|div scrollbarbutton {
194 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
195 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
196 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
197 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
198 background-color: -moz-Dialog;
201 /* ::::: thumb (horizontal) ::::: */
204 -moz-appearance: scrollbarthumb-vertical;
208 html|div thumb[orient="horizontal"] {
209 -moz-appearance: scrollbarthumb-horizontal;
213 /* ::::: scrollbar button ::::: */
215 html|div scrollbarbutton {
216 background: -moz-Dialog no-repeat 50% 50%;
221 html|div scrollbarbutton:hover:active,
222 html|div scrollbarbutton[active="true"] {
223 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
224 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
225 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
226 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
227 background-position: 60% 60%;
230 /* ..... increment .... */
232 html|div scrollbarbutton[type="increment"] {
233 -moz-appearance: scrollbarbutton-right;
234 background-image: url("chrome://global/skin/scrollbar/arrow-right.png")
237 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
238 -moz-appearance: scrollbarbutton-down;
239 background-image: url("chrome://global/skin/scrollbar/arrow-down.png")
242 /* ..... decrement .... */
244 html|div scrollbarbutton[type="decrement"] {
245 -moz-appearance: scrollbarbutton-left;
246 background-image: url("chrome://global/skin/scrollbar/arrow-left.png")
249 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
250 -moz-appearance: scrollbarbutton-up;
251 background-image: url("chrome://global/skin/scrollbar/arrow-up.png")