Commit | Line | Data |
---|---|---|
9099c61d RK |
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/. */ | |
351107c9 | 4 | |
b1eaa419 | 5 | /* ===== popup.css ====================================================== |
7aa65558 | 6 | == Styles used by the XUL popup element. |
b1eaa419 | 7 | ======================================================================= */ |
351107c9 | 8 | |
f98e9249 RK |
9 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
10 | ||
b1eaa419 | 11 | /* ::::: menupopup ::::: */ |
351107c9 | 12 | |
b1eaa419 | 13 | menupopup, |
f98e9249 | 14 | panel { |
b1eaa419 | 15 | border: 1px solid #FF9F00; |
00f971bc | 16 | padding: 0px; |
b1eaa419 | 17 | min-width: 1px; |
18 | background-color: #000000; | |
19 | } | |
351107c9 | 20 | |
00f971bc RK |
21 | menupopup > menu > menupopup { |
22 | /* align submenus */ | |
23 | margin-top: -1px; | |
24 | } | |
25 | ||
26 | /* ::::: arrow panel ::::: */ | |
27 | ||
9162a092 | 28 | panel[type="arrow"] { |
7f3c87b9 RK |
29 | background: transparent; |
30 | border: none; | |
00f971bc | 31 | padding: 0; |
71a617ff RK |
32 | transition: opacity 300ms; |
33 | } | |
34 | ||
35 | .panel-arrowcontainer[panelopen] { | |
36 | transition-duration: 200ms, 150ms; | |
37 | transition-property: opacity, transform; | |
38 | transition-timing-function: ease-out; | |
39 | } | |
40 | ||
41 | .panel-arrowcontainer:not([panelopen]) { | |
af861d30 | 42 | /* Does not work correctly in Linux right now. - 2012-09-30 |
7092015d | 43 | * Actually, only breaks uncommon Window Managers, but arrowpanels disappear completely. 2013-07-21 |
af861d30 | 44 | opacity: 0; */ |
71a617ff RK |
45 | } |
46 | ||
47 | .panel-arrowcontainer:not([panelopen])[side="top"] { | |
48 | transform: translateY(-20px); | |
49 | } | |
50 | ||
51 | .panel-arrowcontainer:not([panelopen])[side="bottom"] { | |
52 | transform: translateY(20px); | |
53 | } | |
54 | ||
55 | .panel-arrowcontainer:not([panelopen])[side="left"] { | |
56 | transform: translateX(-20px); | |
57 | } | |
58 | ||
59 | .panel-arrowcontainer:not([panelopen])[side="right"] { | |
60 | transform: translateX(20px); | |
9162a092 RK |
61 | } |
62 | ||
e1313d59 RK |
63 | panel[type="arrow"][side="top"], |
64 | panel[type="arrow"][side="bottom"] { | |
46dc2718 RK |
65 | margin-left: -20px; |
66 | margin-right: -20px; | |
e1313d59 RK |
67 | } |
68 | ||
69 | panel[type="arrow"][side="left"], | |
70 | panel[type="arrow"][side="right"] { | |
46dc2718 RK |
71 | margin-top: -20px; |
72 | margin-bottom: -20px; | |
e1313d59 RK |
73 | } |
74 | ||
9162a092 RK |
75 | .panel-arrowcontent { |
76 | border-radius: 6px; | |
77 | padding: 6px; | |
46dc2718 RK |
78 | background-color: #000000; |
79 | background-clip: padding-box; | |
80 | border: 1px solid #FF9F00; | |
00f971bc | 81 | margin: 0px; |
9162a092 RK |
82 | } |
83 | ||
46dc2718 RK |
84 | .panel-arrow[side="top"], |
85 | .panel-arrow[side="bottom"] { | |
86 | list-style-image: url("chrome://global/skin/arrow/panelarrow-vertical.svg"); | |
87 | position: relative; | |
88 | margin-left: 10px; | |
89 | margin-right: 10px; | |
90 | } | |
91 | ||
9162a092 | 92 | .panel-arrow[side="top"] { |
00f971bc | 93 | margin-bottom: -1px; |
9162a092 RK |
94 | } |
95 | ||
96 | .panel-arrow[side="bottom"] { | |
71a617ff | 97 | transform: scaleY(-1); |
00f971bc | 98 | margin-top: -1px; |
46dc2718 RK |
99 | } |
100 | ||
101 | .panel-arrow[side="left"], | |
102 | .panel-arrow[side="right"] { | |
103 | list-style-image: url("chrome://global/skin/arrow/panelarrow-horizontal.svg"); | |
104 | position: relative; | |
105 | margin-top: 10px; | |
106 | margin-bottom: 10px; | |
9162a092 RK |
107 | } |
108 | ||
109 | .panel-arrow[side="left"] { | |
00f971bc | 110 | margin-right: -1px; |
9162a092 RK |
111 | } |
112 | ||
113 | .panel-arrow[side="right"] { | |
71a617ff | 114 | transform: scaleX(-1); |
00f971bc | 115 | margin-left: -1px; |
9162a092 RK |
116 | } |
117 | ||
af861d30 RK |
118 | /* ::::: tooltip ::::: */ |
119 | ||
b1eaa419 | 120 | tooltip { |
569543b3 | 121 | border-radius: 3px; |
b1eaa419 | 122 | background-color: #9C9CFF; |
123 | border: 1px solid #FFCF00; | |
124 | color: #000000; | |
f98e9249 | 125 | /* font-size: smaller; */ |
b1eaa419 | 126 | padding: 2px; |
127 | max-width: 40em; | |
128 | } | |
129 | ||
b1eaa419 | 130 | tooltip[titletip="true"] { |
ac1cdf20 | 131 | /* See bug 32157 comment 128 |
132 | * margin: -2px 0px 0px -3px; | |
133 | */ | |
b1eaa419 | 134 | max-width: none; |
135 | } | |
351107c9 | 136 | |
137 | /* rules for popups associated with menulists */ | |
138 | ||
b1eaa419 | 139 | menulist > menupopup, |
140 | .menulist-menupopup { | |
141 | border: 1px solid #FF9F00; | |
142 | min-width: 0px; | |
143 | padding: 0px; | |
144 | background-color: #000000; | |
145 | } |