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/. */ | |
128000f4 | 4 | |
e181d49e RK |
5 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
6 | ||
74d14f90 | 7 | /* ::::: menupopup ::::: */ |
f6e0a33f | 8 | |
74d14f90 | 9 | menupopup, |
56029caf | 10 | panel { |
74d14f90 | 11 | border: 1px outset #CCD0DD; |
12 | padding: 1px; | |
13 | min-width: 1px; | |
14 | background-color: #CCD0DD; | |
15 | } | |
f6e0a33f | 16 | |
9162a092 | 17 | panel[type="arrow"] { |
7f3c87b9 RK |
18 | background: transparent; |
19 | border: none; | |
71a617ff RK |
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 | opacity: 0; | |
31 | } | |
32 | ||
33 | .panel-arrowcontainer:not([panelopen])[side="top"] { | |
34 | transform: translateY(-20px); | |
35 | } | |
36 | ||
37 | .panel-arrowcontainer:not([panelopen])[side="bottom"] { | |
38 | transform: translateY(20px); | |
39 | } | |
40 | ||
41 | .panel-arrowcontainer:not([panelopen])[side="left"] { | |
42 | transform: translateX(-20px); | |
43 | } | |
44 | ||
45 | .panel-arrowcontainer:not([panelopen])[side="right"] { | |
46 | transform: translateX(20px); | |
9162a092 RK |
47 | } |
48 | ||
e1313d59 RK |
49 | panel[type="arrow"][side="top"], |
50 | panel[type="arrow"][side="bottom"] { | |
46dc2718 RK |
51 | margin-left: -20px; |
52 | margin-right: -20px; | |
e1313d59 RK |
53 | } |
54 | ||
55 | panel[type="arrow"][side="left"], | |
56 | panel[type="arrow"][side="right"] { | |
46dc2718 RK |
57 | margin-top: -20px; |
58 | margin-bottom: -20px; | |
e1313d59 RK |
59 | } |
60 | ||
9162a092 | 61 | .panel-arrowcontent { |
9162a092 | 62 | padding: 6px; |
46dc2718 RK |
63 | background-color: #CCD0DD; |
64 | background-clip: padding-box; | |
65 | border: 1px outset #CCD0DD; | |
9162a092 RK |
66 | margin: 3px; |
67 | } | |
68 | ||
46dc2718 RK |
69 | .panel-arrow[side="top"], |
70 | .panel-arrow[side="bottom"] { | |
71 | list-style-image: url("chrome://global/skin/arrow/panelarrow-vertical.svg"); | |
72 | position: relative; | |
73 | margin-left: 10px; | |
74 | margin-right: 10px; | |
75 | } | |
76 | ||
9162a092 | 77 | .panel-arrow[side="top"] { |
46dc2718 | 78 | margin-bottom: -5px; |
9162a092 RK |
79 | } |
80 | ||
81 | .panel-arrow[side="bottom"] { | |
71a617ff | 82 | transform: scaleY(-1); |
46dc2718 RK |
83 | margin-top: -5px; |
84 | } | |
85 | ||
86 | .panel-arrow[side="left"], | |
87 | .panel-arrow[side="right"] { | |
88 | list-style-image: url("chrome://global/skin/arrow/panelarrow-horizontal.svg"); | |
89 | position: relative; | |
90 | margin-top: 10px; | |
91 | margin-bottom: 10px; | |
9162a092 RK |
92 | } |
93 | ||
94 | .panel-arrow[side="left"] { | |
46dc2718 | 95 | margin-right: -5px; |
9162a092 RK |
96 | } |
97 | ||
98 | .panel-arrow[side="right"] { | |
71a617ff | 99 | transform: scaleX(-1); |
46dc2718 | 100 | margin-left: -5px; |
9162a092 RK |
101 | } |
102 | ||
74d14f90 | 103 | tooltip { |
104 | background-color : #FFFFCC; | |
105 | border : 1px outset #FFFFCC; | |
106 | color: #000000; | |
e181d49e | 107 | /* font-size: smaller; */ |
74d14f90 | 108 | padding: 2px; |
109 | max-width: 40em; | |
110 | } | |
111 | ||
74d14f90 | 112 | tooltip[titletip="true"] { |
b618d1fd | 113 | /* See bug 32157 comment 128 |
114 | * margin: -2px 0px 0px -3px; | |
115 | */ | |
74d14f90 | 116 | max-width: none; |
117 | } | |
f6e0a33f | 118 | |
119 | /* rules for popups associated with menulists */ | |
120 | ||
74d14f90 | 121 | menulist > menupopup, |
122 | .menulist-menupopup { | |
123 | border: 1px solid #666699; | |
124 | min-width: 0px; | |
125 | padding: 0px; | |
126 | background-color: white; | |
127 | } | |
570c53ea | 128 | |
3327253e | 129 | menupopup > menu > menupopup { |
570c53ea RK |
130 | margin-top: -2px; |
131 | } |