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 /* ::::: scrollbar button ::::: */
97 background-color: #C09070;
100 scrollbarbutton:hover:active,
101 scrollbarbutton[active="true"] {
102 background-position: calc(50% + 1px) calc(50% + 1px);
105 scrollbarbutton:hover {
106 background-color: #FFCF00;
109 scrollbarbutton:hover:active {
110 background-color: #FF9F00;
113 scrollbarbutton[disabled="true"] {
114 background-color: #402858 !important;
117 /* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
118 scrollbarbutton[sbattr="scrollbar-up-bottom"],
119 scrollbarbutton[sbattr="scrollbar-down-top"] {
123 /* ::::: square at the corner of two scrollbars ::::: */
126 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
128 background-color: #000000;
132 /* ..... increment .... */
134 scrollbarbutton[type="increment"] {
135 background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
136 border-radius: 0 300px 300px 0;
137 -moz-border-start: 3px solid #000000;
140 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
141 background-image: url("chrome://global/skin/scrollbar/arrow-down.png");
142 border-radius: 0 0 300px 300px;
143 -moz-border-start: none;
144 border-top: 3px solid #000000;
147 /* ..... decrement .... */
149 scrollbarbutton[type="decrement"] {
150 background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
151 border-radius: 300px 0 0 300px;
152 -moz-border-end: 3px solid #000000;
155 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
156 background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
157 border-radius: 300px 300px 0 0;
158 -moz-border-end: none;
159 border-bottom: 3px solid #000000;
162 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
163 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
164 /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
166 /* ::::: scrollbar ::::: */
169 -moz-appearance: scrollbartrack-horizontal;
170 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
172 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
175 html|div scrollbar[orient="vertical"]
177 -moz-appearance: scrollbartrack-vertical;
180 /* ::::: borders for thumb and buttons ::::: */
183 html|div scrollbarbutton {
185 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
186 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
187 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
188 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
189 background-color: -moz-Dialog;
192 /* ::::: thumb (horizontal) ::::: */
195 -moz-appearance: scrollbarthumb-vertical;
199 html|div thumb[orient="horizontal"] {
200 -moz-appearance: scrollbarthumb-horizontal;
204 /* ::::: scrollbar button ::::: */
206 html|div scrollbarbutton {
207 background: -moz-Dialog no-repeat 50% 50%;
212 html|div scrollbarbutton:hover:active,
213 html|div scrollbarbutton[active="true"] {
214 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
215 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
216 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
217 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
218 background-position: 60% 60%;
221 /* ..... increment .... */
223 html|div scrollbarbutton[type="increment"] {
224 -moz-appearance: scrollbarbutton-right;
225 background-image: url("chrome://global/skin/scrollbar/arrow-right.png")
228 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
229 -moz-appearance: scrollbarbutton-down;
230 background-image: url("chrome://global/skin/scrollbar/arrow-down.png")
233 /* ..... decrement .... */
235 html|div scrollbarbutton[type="decrement"] {
236 -moz-appearance: scrollbarbutton-left;
237 background-image: url("chrome://global/skin/scrollbar/arrow-left.png")
240 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
241 -moz-appearance: scrollbarbutton-up;
242 background-image: url("chrome://global/skin/scrollbar/arrow-up.png")