|
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 /* ===== popup.css =================================================== |
|
6 == Styles used by the XUL popup element. |
|
7 ======================================================================= */ |
|
8 |
|
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
|
10 |
|
11 /* ::::: menupopup ::::: */ |
|
12 |
|
13 menupopup, |
|
14 popup, |
|
15 panel { |
|
16 border: 1px solid menutext; |
|
17 padding: 2px; |
|
18 min-width: 1px; |
|
19 background: Menu; |
|
20 } |
|
21 |
|
22 menupopup, |
|
23 /* auto complete popups don't render well as vista menus */ |
|
24 popup:not([type="autocomplete"]) |
|
25 { |
|
26 -moz-appearance: menupopup; |
|
27 } |
|
28 |
|
29 menupopup > menu > menupopup, |
|
30 popup > menu > menupopup { |
|
31 /* align submenus */ |
|
32 -moz-margin-start: -3px; |
|
33 margin-top: -3px; |
|
34 } |
|
35 |
|
36 /* ::::: tooltip ::::: */ |
|
37 |
|
38 tooltip { |
|
39 margin-top: 21px; |
|
40 border: 1px solid InfoText; |
|
41 padding: 2px 3px; |
|
42 max-width: 40em; |
|
43 background-color: InfoBackground; |
|
44 color: InfoText; |
|
45 font: message-box; |
|
46 } |
|
47 |
|
48 tooltip[titletip="true"] { |
|
49 /* See bug 32157 comment 128 |
|
50 * margin: -2px 0px 0px -3px; |
|
51 */ |
|
52 max-width: none; |
|
53 } |
|
54 |
|
55 /* rules for popups associated with menulists */ |
|
56 |
|
57 menulist > menupopup, |
|
58 .menulist-menupopup { |
|
59 padding: 1px; |
|
60 min-width: 0px; |
|
61 background-color: -moz-Field; |
|
62 } |