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