Commit | Line | Data |
---|---|---|
a6c8d0f5 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/. */ | |
4 | ||
a064a540 RK |
5 | @namespace html url(http://www.w3.org/1999/xhtml); |
6 | ||
7 | /* These styles affect only the bound element, not other page content. */ | |
8 | ||
9 | .mainBox { | |
f993773d RK |
10 | text-align: center; |
11 | background-color: #CCD0DD; | |
12 | color: #000000; | |
13 | border-radius: 12px; | |
14 | /* recessed effect with 'disabled' shadow */ | |
15 | box-shadow: inset 0 1px 5px #808080; | |
16 | padding: 5px; | |
17 | -moz-user-select: none; | |
a6c8d0f5 RK |
18 | position: relative; |
19 | } | |
20 | ||
21 | .hoverBox { | |
22 | padding: 5px; | |
a064a540 RK |
23 | } |
24 | ||
25 | html|a { | |
26 | color: #000000; | |
27 | } | |
28 | ||
29 | .icon { | |
a6c8d0f5 RK |
30 | display: inline-block; |
31 | width: 48px; | |
32 | height: 48px; | |
f993773d RK |
33 | background-position: center; |
34 | background-repeat: no-repeat; | |
a6c8d0f5 RK |
35 | border: none; |
36 | background-color: transparent; | |
a064a540 | 37 | } |
24547055 RK |
38 | :-moz-type-unsupported .icon, |
39 | :-moz-type-unsupported-platform .icon { | |
f993773d RK |
40 | background-image: url("chrome://mozapps/skin/plugins/contentPluginMissing.png"); |
41 | } | |
68989a96 | 42 | :-moz-type-unsupported .icon[installable] { |
f993773d | 43 | background-image: url("chrome://mozapps/skin/plugins/contentPluginDownload.png"); |
a064a540 | 44 | } |
71a617ff RK |
45 | :-moz-handler-vulnerable-updatable .icon, |
46 | :-moz-handler-vulnerable-no-update .icon { | |
c60d23d2 | 47 | background-image: url("chrome://mozapps/skin/plugins/contentPluginClickToPlay.png"); |
1e29db46 | 48 | } |
a6c8d0f5 RK |
49 | |
50 | :-moz-handler-clicktoplay .icon { | |
51 | background-image: url("chrome://mozapps/skin/plugins/contentPluginClickToPlayPlain.png"); | |
52 | background-position: 0 0; | |
53 | } | |
54 | :-moz-handler-clicktoplay .hoverBox:hover .icon, | |
55 | :-moz-handler-clicktoplay .hoverBox:hover:active .icon { | |
56 | background-position: -48px 0; | |
57 | } | |
58 | ||
a064a540 | 59 | :-moz-handler-disabled .icon { |
f993773d | 60 | background-image: url("chrome://mozapps/skin/plugins/contentPluginDisabled.png"); |
a064a540 RK |
61 | } |
62 | :-moz-handler-blocked .icon { | |
f993773d | 63 | background-image: url("chrome://mozapps/skin/plugins/contentPluginBlocked.png"); |
a064a540 RK |
64 | } |
65 | :-moz-handler-crashed .icon { | |
f993773d | 66 | background-image: url("chrome://mozapps/skin/plugins/contentPluginCrashed.png"); |
a064a540 RK |
67 | } |
68 | ||
69 | .throbber { | |
f993773d RK |
70 | padding-left: 16px; /* width of the background image */ |
71 | background: url("chrome://global/skin/icons/loading.gif") no-repeat; | |
72 | margin-left: 5px; | |
a064a540 RK |
73 | } |
74 | ||
75 | .msg { | |
f993773d | 76 | cursor: default; |
a6c8d0f5 | 77 | width: 100%; |
a064a540 RK |
78 | } |
79 | ||
a6c8d0f5 RK |
80 | :-moz-handler-clicktoplay .mainBox, |
81 | :-moz-handler-clicktoplay .icon, | |
71a617ff RK |
82 | :-moz-handler-clicktoplay .msgClickToPlay, |
83 | :-moz-handler-vulnerable-updatable .msgClickToPlay, | |
84 | :-moz-handler-vulnerable-no-update .msgClickToPlay { | |
c60d23d2 RK |
85 | cursor: pointer; |
86 | } | |
87 | ||
88 | @media not all and (-moz-touch-enabled) { | |
89 | :-moz-handler-clicktoplay .msgTapToPlay { | |
90 | display: none; | |
91 | } | |
92 | } | |
93 | ||
94 | @media (-moz-touch-enabled) { | |
95 | :-moz-handler-clicktoplay .msgClickToPlay { | |
96 | display: none; | |
97 | } | |
98 | } | |
99 | ||
c0fb45ea | 100 | .submitStatus div { |
f993773d | 101 | min-height: 19px; /* height of biggest line (with throbber) */ |
c0fb45ea RK |
102 | } |
103 | ||
a6c8d0f5 RK |
104 | .submitComment { |
105 | width: 340px; | |
106 | height: 70px; | |
107 | padding: 5px; | |
108 | border: none; | |
109 | border-radius: 5px; | |
110 | resize: none; | |
111 | font-family: inherit; | |
112 | font-size: inherit; | |
113 | } | |
114 | ||
115 | .submitURLOptInBox { | |
116 | text-align: start; | |
117 | } | |
118 | ||
119 | .submitURLOptIn { | |
120 | margin-left: -1px; | |
121 | } | |
122 | ||
123 | .mainBox[chromedir="rtl"] .submitURLOptIn { | |
124 | margin-left: 0; | |
125 | margin-right: -1px; | |
126 | } | |
127 | ||
128 | .submitButtonBox { | |
129 | margin-top: 7px; | |
130 | } | |
131 | ||
132 | .submitButton { | |
133 | float: right; | |
134 | } | |
135 | ||
136 | .mainBox[chromedir="rtl"] .submitButton { | |
137 | float: left; | |
a064a540 RK |
138 | } |
139 | ||
a064a540 | 140 | .helpIcon { |
f993773d RK |
141 | float: left; |
142 | display: inline-block; | |
143 | min-width: 16px; | |
144 | min-height: 16px; | |
145 | background: url("chrome://mozapps/skin/plugins/pluginHelp-16.png") no-repeat; | |
a6c8d0f5 RK |
146 | cursor: pointer; |
147 | float: left; | |
148 | } | |
149 | ||
150 | .mainBox[chromedir="rtl"] .helpIcon { | |
151 | float: right; | |
152 | } | |
153 | ||
154 | .closeIcon { | |
155 | display: block; | |
156 | position: absolute; | |
157 | width: 16px; | |
158 | height: 16px; | |
159 | top: 4px; | |
160 | right: 4px; | |
161 | border: none; | |
162 | background-color: transparent; | |
163 | background-image: url("chrome://global/skin/icons/close-button.gif"); | |
164 | background-repeat: no-repeat; | |
165 | } | |
166 | ||
167 | .closeIcon:-moz-locale-dir(rtl) { | |
168 | right: auto; | |
169 | left: 4px; | |
170 | } | |
171 | ||
172 | :-moz-handler-clicktoplay .mainBox { | |
173 | background-image: none; | |
174 | background-color: rgba(255, 255, 255, .2); | |
175 | border: 1px dashed rgba(128, 128, 128, 0.5); | |
176 | color: #808080; | |
177 | text-shadow: none; | |
178 | box-shadow: none; | |
179 | transition: background-color 150ms ease; | |
180 | } | |
181 | ||
182 | :-moz-handler-clicktoplay .mainBox:hover, | |
183 | :-moz-handler-clicktoplay .mainBox:hover:active { | |
184 | background-color: rgba(255, 255, 255, .8); | |
185 | } | |
186 | ||
187 | :-moz-handler-clicktoplay .mainBox, | |
188 | :-moz-handler-clicktoplay html|a { | |
189 | color: #000000; | |
190 | } | |
191 | ||
192 | :-moz-handler-clicktoplay .hoverBox:hover, | |
193 | :-moz-handler-clicktoplay .hoverBox:hover html|a, | |
194 | :-moz-handler-clicktoplay .hoverBox:hover:active, | |
195 | :-moz-handler-clicktoplay .hoverBox:hover:active html|a { | |
196 | } | |
197 | ||
198 | :-moz-handler-clicktoplay .closeIcon { | |
199 | background-image: url("chrome://mozapps/skin/plugins/contentPluginClose.png"); | |
a064a540 | 200 | } |