some more changes to make the new downloads button and view in Firefox 20+ work correctly
[themes.git] / LCARStrek / global / popup.css
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 panel {
15   border: 1px solid #FF9F00;
16   padding: 1px;
17   min-width: 1px;
18   background-color: #000000;
19 }
20
21 panel[type="arrow"] {
22   background: transparent;
23   border: none;
24   transition: opacity 300ms;
25 }
26
27 .panel-arrowcontainer[panelopen] {
28   transition-duration: 200ms, 150ms;
29   transition-property: opacity, transform;
30   transition-timing-function: ease-out;
31 }
32
33 .panel-arrowcontainer:not([panelopen]) {
34   /* Does not work correctly in Linux right now. - 2012-09-30
35   opacity: 0; */
36   opacity: 0.01;
37 }
38
39 .panel-arrowcontainer:not([panelopen])[side="top"] {
40   transform: translateY(-20px);
41 }
42
43 .panel-arrowcontainer:not([panelopen])[side="bottom"] {
44   transform: translateY(20px);
45 }
46
47 .panel-arrowcontainer:not([panelopen])[side="left"] {
48   transform: translateX(-20px);
49 }
50
51 .panel-arrowcontainer:not([panelopen])[side="right"] {
52   transform: translateX(20px);
53 }
54
55 panel[type="arrow"][side="top"],
56 panel[type="arrow"][side="bottom"] {
57   margin-left: -20px;
58   margin-right: -20px;
59 }
60
61 panel[type="arrow"][side="left"],
62 panel[type="arrow"][side="right"] {
63   margin-top: -20px;
64   margin-bottom: -20px;
65 }
66
67 .panel-arrowcontent {
68   border-radius: 6px;
69   padding: 6px;
70   background-color: #000000;
71   background-clip: padding-box;
72   border: 1px solid #FF9F00;
73   margin: 3px;
74 }
75
76 .panel-arrow[side="top"],
77 .panel-arrow[side="bottom"] {
78   list-style-image: url("chrome://global/skin/arrow/panelarrow-vertical.svg");
79   position: relative;
80   margin-left: 10px;
81   margin-right: 10px;
82 }
83
84 .panel-arrow[side="top"] {
85   margin-bottom: -5px;
86 }
87
88 .panel-arrow[side="bottom"] {
89   transform: scaleY(-1);
90   margin-top: -5px;
91 }
92
93 .panel-arrow[side="left"],
94 .panel-arrow[side="right"] {
95   list-style-image: url("chrome://global/skin/arrow/panelarrow-horizontal.svg");
96   position: relative;
97   margin-top: 10px;
98   margin-bottom: 10px;
99 }
100
101 .panel-arrow[side="left"] {
102   margin-right: -5px;
103 }
104
105 .panel-arrow[side="right"] {
106   transform: scaleX(-1);
107   margin-left: -5px;
108 }
109
110 /* ::::: tooltip ::::: */
111
112 tooltip {
113   border-radius: 3px;
114   background-color: #9C9CFF;
115   border: 1px solid #FFCF00;
116   color: #000000;
117   /* font-size: smaller; */
118   padding: 2px;
119   max-width: 40em;
120 }
121
122 tooltip[titletip="true"] {
123   /* See bug 32157 comment 128
124    * margin: -2px 0px 0px -3px;
125    */
126   max-width: none;
127 }
128
129 /* rules for popups associated with menulists */
130
131 menulist > menupopup,
132 .menulist-menupopup {
133   border: 1px solid #FF9F00;
134   min-width: 0px;
135   padding: 0px;
136   background-color: #000000;
137 }
138
139 menupopup > menu > menupopup {
140   margin-top: -2px;
141 }