Commit | Line | Data |
---|---|---|
351107c9 | 1 | /* ***** BEGIN LICENSE BLOCK ***** |
2 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | |
3 | * | |
4 | * The contents of this file are subject to the Mozilla Public License Version | |
5 | * 1.1 (the "License"); you may not use this file except in compliance with | |
6 | * the License. You may obtain a copy of the License at | |
7 | * http://www.mozilla.org/MPL/ | |
8 | * | |
9 | * Software distributed under the License is distributed on an "AS IS" basis, | |
10 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | |
11 | * for the specific language governing rights and limitations under the | |
12 | * License. | |
13 | * | |
14 | * The Original Code is "Classic" theme of mozilla.org code. | |
15 | * | |
16 | * The Initial Developer of the Original Code is | |
17 | * the Mozilla Organization. | |
18 | * Portions created by the Initial Developer are Copyright (C) 1998-2001 | |
19 | * the Initial Developer. All Rights Reserved. | |
20 | * | |
21 | * Contributor(s): | |
22 | * Robert Kaiser <KaiRo@KaiRo.at> | |
23 | * | |
24 | * Alternatively, the contents of this file may be used under the terms of | |
25 | * either the GNU General Public License Version 2 or later (the "GPL"), or | |
26 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | |
27 | * in which case the provisions of the GPL or the LGPL are applicable instead | |
28 | * of those above. If you wish to allow use of your version of this file only | |
29 | * under the terms of either the GPL or the LGPL, and not to allow others to | |
30 | * use your version of this file under the terms of the MPL, indicate your | |
31 | * decision by deleting the provisions above and replace them with the notice | |
32 | * and other provisions required by the GPL or the LGPL. If you do not delete | |
33 | * the provisions above, a recipient may use your version of this file under | |
34 | * the terms of any one of the MPL, the GPL or the LGPL. | |
35 | * | |
36 | * ***** END LICENSE BLOCK ***** */ | |
37 | ||
b1eaa419 | 38 | /* ===== popup.css ====================================================== |
7aa65558 | 39 | == Styles used by the XUL popup element. |
b1eaa419 | 40 | ======================================================================= */ |
351107c9 | 41 | |
f98e9249 RK |
42 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
43 | ||
b1eaa419 | 44 | /* ::::: menupopup ::::: */ |
351107c9 | 45 | |
b1eaa419 | 46 | menupopup, |
f98e9249 | 47 | panel { |
b1eaa419 | 48 | border: 1px solid #FF9F00; |
49 | padding: 1px; | |
50 | min-width: 1px; | |
51 | background-color: #000000; | |
52 | } | |
351107c9 | 53 | |
9162a092 RK |
54 | panel[type="arrow"] { |
55 | -moz-transition: opacity 300ms; | |
56 | } | |
57 | ||
e1313d59 RK |
58 | panel[type="arrow"][side="top"], |
59 | panel[type="arrow"][side="bottom"] { | |
60 | margin-left: -25px; | |
61 | margin-right: -25px; | |
62 | } | |
63 | ||
64 | panel[type="arrow"][side="left"], | |
65 | panel[type="arrow"][side="right"] { | |
66 | margin-top: -25px; | |
67 | margin-bottom: -25px; | |
68 | } | |
69 | ||
9162a092 RK |
70 | .panel-arrowcontent { |
71 | border-radius: 6px; | |
72 | padding: 6px; | |
73 | margin: 3px; | |
74 | } | |
75 | ||
76 | .panel-arrow[side="top"] { | |
77 | list-style-image: url("chrome://global/skin/arrow/panelarrow-up.png"); | |
78 | margin-left: 6px; | |
79 | margin-right: 6px; | |
80 | margin-bottom: -13px; | |
e1313d59 | 81 | margin-top: -4px; |
9162a092 RK |
82 | } |
83 | ||
84 | .panel-arrow[side="bottom"] { | |
85 | list-style-image: url("chrome://global/skin/arrow/panelarrow-down.png"); | |
86 | margin-left: 6px; | |
87 | margin-right: 6px; | |
88 | margin-top: -12px; | |
e1313d59 | 89 | margin-bottom: -4px; |
9162a092 RK |
90 | } |
91 | ||
92 | .panel-arrow[side="left"] { | |
93 | list-style-image: url("chrome://global/skin/arrow/panelarrow-horiz.png"); | |
94 | margin-top: 6px; | |
95 | margin-bottom: 6px; | |
96 | margin-right: -12px; | |
e1313d59 | 97 | margin-left: -4px; |
9162a092 RK |
98 | } |
99 | ||
100 | .panel-arrow[side="right"] { | |
101 | list-style-image: url("chrome://global/skin/arrow/panelarrow-horiz.png"); | |
102 | -moz-transform: scaleX(-1); | |
103 | margin-top: 6px; | |
104 | margin-bottom: 6px; | |
105 | margin-left: -12px; | |
e1313d59 | 106 | margin-right: -4px; |
9162a092 RK |
107 | } |
108 | ||
b1eaa419 | 109 | tooltip { |
569543b3 | 110 | border-radius: 3px; |
b1eaa419 | 111 | background-color: #9C9CFF; |
112 | border: 1px solid #FFCF00; | |
113 | color: #000000; | |
f98e9249 | 114 | /* font-size: smaller; */ |
b1eaa419 | 115 | padding: 2px; |
116 | max-width: 40em; | |
117 | } | |
118 | ||
b1eaa419 | 119 | tooltip[titletip="true"] { |
ac1cdf20 | 120 | /* See bug 32157 comment 128 |
121 | * margin: -2px 0px 0px -3px; | |
122 | */ | |
b1eaa419 | 123 | max-width: none; |
124 | } | |
351107c9 | 125 | |
126 | /* rules for popups associated with menulists */ | |
127 | ||
b1eaa419 | 128 | menulist > menupopup, |
129 | .menulist-menupopup { | |
130 | border: 1px solid #FF9F00; | |
131 | min-width: 0px; | |
132 | padding: 0px; | |
133 | background-color: #000000; | |
134 | } | |
f98e9249 | 135 | |
3327253e | 136 | menupopup > menu > menupopup { |
f98e9249 RK |
137 | margin-top: -2px; |
138 | } |