|
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/. */ |
|
4 |
|
5 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
|
6 @namespace html url("http://www.w3.org/1999/xhtml"); |
|
7 |
|
8 scrollbar { |
|
9 -moz-appearance: scrollbar; |
|
10 -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar); |
|
11 cursor: default; |
|
12 background-color: white; |
|
13 pointer-events: auto; |
|
14 } |
|
15 |
|
16 scrollbar[root="true"] { |
|
17 position: relative; |
|
18 z-index: 2147483647; /* largest positive value of a signed 32-bit integer */ |
|
19 } |
|
20 |
|
21 html|select[size]:not([size="0"]):not([size="1"]) > scrollbar, |
|
22 html|select[multiple] > scrollbar { |
|
23 -moz-appearance: scrollbar-small; |
|
24 } |
|
25 |
|
26 @media all and (-moz-overlay-scrollbars) { |
|
27 scrollbar:not([active="true"]), |
|
28 scrollbar[disabled="true"] { |
|
29 visibility: hidden; |
|
30 } |
|
31 } |
|
32 |
|
33 /* ..... track ..... */ |
|
34 |
|
35 slider { |
|
36 -moz-appearance: scrollbartrack-horizontal; |
|
37 } |
|
38 |
|
39 slider[orient="vertical"] { |
|
40 -moz-appearance: scrollbartrack-vertical; |
|
41 } |
|
42 |
|
43 /* ..... thumb ..... */ |
|
44 |
|
45 thumb { |
|
46 -moz-appearance: scrollbarthumb-horizontal; |
|
47 } |
|
48 |
|
49 thumb[orient="vertical"] { |
|
50 -moz-appearance: scrollbarthumb-vertical; |
|
51 } |
|
52 |
|
53 /* ..... increment ..... */ |
|
54 |
|
55 scrollbarbutton[type="increment"] { |
|
56 -moz-appearance: scrollbarbutton-right; |
|
57 } |
|
58 |
|
59 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] { |
|
60 -moz-appearance: scrollbarbutton-down; |
|
61 } |
|
62 |
|
63 /* ..... decrement ..... */ |
|
64 |
|
65 scrollbarbutton[type="decrement"] { |
|
66 -moz-appearance: scrollbarbutton-left; |
|
67 } |
|
68 |
|
69 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] { |
|
70 -moz-appearance: scrollbarbutton-up; |
|
71 } |
|
72 |
|
73 /* ::::: square at the corner of two scrollbars ::::: */ |
|
74 |
|
75 scrollcorner { |
|
76 /* XXX -moz-appearance: scrollcorner; */ |
|
77 -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar-base); |
|
78 width: 16px; |
|
79 cursor: default; |
|
80 background-color: white; |
|
81 } |
|
82 |
|
83 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */ |
|
84 @media print { |
|
85 html|div scrollbar { |
|
86 -moz-appearance: scrollbar; |
|
87 -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar); |
|
88 cursor: default; |
|
89 } |
|
90 } |