|
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 /* ===== toolbarbutton.css ===================================================== |
|
6 == Styles used by the XUL button element. |
|
7 ======================================================================= */ |
|
8 |
|
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
|
10 |
|
11 /* ::::: toolbarbutton ::::: */ |
|
12 |
|
13 toolbarbutton { |
|
14 -moz-appearance: toolbarbutton; |
|
15 -moz-box-align: center; |
|
16 -moz-box-pack: center; |
|
17 margin: 0; |
|
18 padding: 3px; |
|
19 color: -moz-DialogText; |
|
20 } |
|
21 |
|
22 toolbarbutton:-moz-lwtheme { |
|
23 text-shadow: none; |
|
24 } |
|
25 |
|
26 .toolbarbutton-icon[label]:not([label=""]), |
|
27 .toolbarbutton-icon[type="menu"] { |
|
28 -moz-margin-end: 2px; |
|
29 } |
|
30 |
|
31 .toolbarbutton-text { |
|
32 margin: 0 !important; |
|
33 text-align: center; |
|
34 } |
|
35 |
|
36 toolbarbutton.tabbable { |
|
37 -moz-user-focus: normal !important; |
|
38 } |
|
39 |
|
40 toolbarbutton:hover { |
|
41 color: -moz-buttonhovertext; |
|
42 } |
|
43 |
|
44 toolbarbutton:hover:active, |
|
45 toolbarbutton[open="true"] { |
|
46 padding-top: 4px; |
|
47 padding-bottom: 2px; |
|
48 -moz-padding-start: 4px; |
|
49 -moz-padding-end: 2px; |
|
50 color: ButtonText; |
|
51 } |
|
52 |
|
53 toolbarbutton[disabled="true"], |
|
54 toolbarbutton[disabled="true"]:hover, |
|
55 toolbarbutton[disabled="true"]:hover:active, |
|
56 toolbarbutton[disabled="true"][open="true"] { |
|
57 padding: 3px; |
|
58 color: GrayText; |
|
59 } |
|
60 |
|
61 toolbarbutton[checked="true"]:not(:hover) { |
|
62 color: ButtonText; |
|
63 } |
|
64 |
|
65 toolbarbutton:-moz-lwtheme:not(:hover):not([checked="true"]):not([open="true"]):not([disabled="true"]) { |
|
66 color: inherit; |
|
67 text-shadow: inherit; |
|
68 } |
|
69 |
|
70 /* ::::: toolbarbutton menu ::::: */ |
|
71 |
|
72 .toolbarbutton-menu-dropmarker { |
|
73 -moz-appearance: toolbarbutton-dropdown !important; |
|
74 list-style-image: none; |
|
75 -moz-image-region: auto; |
|
76 padding: 0; |
|
77 margin: 0; |
|
78 } |
|
79 |
|
80 .toolbarbutton-menu-dropmarker[disabled="true"] { |
|
81 padding: 0 !important; |
|
82 } |
|
83 |
|
84 /* ::::: toolbarbutton menu-button ::::: */ |
|
85 |
|
86 toolbarbutton[type="menu-button"] { |
|
87 -moz-box-align: stretch; |
|
88 -moz-appearance: dualbutton; |
|
89 -moz-box-orient: horizontal !important; |
|
90 } |
|
91 |
|
92 toolbarbutton[type="menu-button"], |
|
93 toolbarbutton[type="menu-button"]:hover, |
|
94 toolbarbutton[type="menu-button"]:hover:active, |
|
95 toolbarbutton[type="menu-button"][open="true"], |
|
96 toolbarbutton[type="menu-button"][disabled="true"], |
|
97 toolbarbutton[type="menu-button"][disabled="true"]:hover, |
|
98 toolbarbutton[type="menu-button"][disabled="true"]:hover:active { |
|
99 padding: 0 !important; |
|
100 } |
|
101 |
|
102 .toolbarbutton-menubutton-button { |
|
103 -moz-box-align: center; |
|
104 -moz-box-pack: center; |
|
105 -moz-box-orient: vertical; |
|
106 } |
|
107 |
|
108 /* .......... dropmarker .......... */ |
|
109 |
|
110 .toolbarbutton-menubutton-dropmarker { |
|
111 margin: 0 3px; |
|
112 -moz-appearance: toolbarbutton-dropdown !important; |
|
113 list-style-image: none; |
|
114 -moz-image-region: auto; |
|
115 } |