Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / extensions / extensions.css
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file. */
4
5 html.loading * {
6   -webkit-transition-duration: 0 !important;
7 }
8
9 html:not(.focus-outline-visible)
10 :enabled:focus:-webkit-any(input[type='checkbox'], input[type='radio']) {
11   /* Cancel border-color for :focus specified in widgets.css. */
12   border-color: rgba(0, 0, 0, 0.25);
13 }
14
15 .no-scroll {
16   overflow-y: hidden;
17 }
18
19 /* Developer mode */
20
21 #dev-controls {
22   -webkit-margin-end: 20px;
23   -webkit-transition: padding 100ms, height 100ms, opacity 100ms;
24   border-bottom: 1px solid #eee;
25   height: 0;
26   opacity: 0;
27   overflow: hidden;
28 }
29
30 #dev-controls .buttons-container {
31   -webkit-padding-end: 3px;
32   -webkit-padding-start: 4px;
33 }
34
35 #dev-controls .buttons-container {
36   display: -webkit-box;
37   padding-top: 13px;
38 }
39
40 #dev-controls button {
41   white-space: nowrap;
42 }
43
44 #apps-developer-tools-promo {
45   -webkit-margin-before: 15px;
46   -webkit-padding-before: 5px;
47   -webkit-padding-end: 3px;
48   align-items: center;
49   border-top: 1px solid #eee;
50   display: flex;
51   font-size: 13px;
52 }
53
54 #apps-developer-tools-promo img {
55   content: url(apps_developer_tools_promo_48.png);
56 }
57
58 #apps-developer-tools-promo-text {
59   -webkit-margin-start: 5px;
60 }
61
62 #apps-developer-tools-promo-close-wrapper {
63   display: flex;
64   flex-grow: 1;
65   justify-content: flex-end;
66 }
67
68 #apps-developer-tools-promo .close-button {
69   background: url(chrome://theme/IDR_CLOSE_DIALOG) no-repeat center center;
70   border: 0;
71   height: 14px;
72   width: 14px;
73   z-index: 1;
74 }
75
76 #apps-developer-tools-promo .close-button:hover {
77   background-image: url(chrome://theme/IDR_CLOSE_DIALOG_H);
78 }
79
80 #apps-developer-tools-promo .close-button:active {
81   background-image: url(chrome://theme/IDR_CLOSE_DIALOG_P);
82 }
83
84 #extension-settings.dev-mode #dev-controls {
85   -webkit-transition-duration: 250ms;
86   height: 45px;
87   opacity: 1;
88   padding-bottom: 7px;
89 }
90
91 #extension-settings.dev-mode.adt-promo #dev-controls {
92   height: 105px;  /* Allow more height for the Apps Developer Tools promo. */
93 }
94
95 #dev-controls-spacer {
96   -webkit-box-flex: 1;
97 }
98
99 #dev-toggle {
100   margin-top: 0;
101   text-align: end;
102 }
103
104 .extension-code {
105   border: 1px solid #ccc;
106   display: flex;
107   font-family: monospace;
108   overflow: auto;
109   white-space: pre;
110 }
111
112 .extension-code > * {
113   padding: 3px;
114 }
115
116 .extension-code-line-numbers {
117   align-self: flex-start;
118   background-color: rgba(240, 240, 240, 1);
119   border-right: 1px solid #ccc;
120   color: rgba(128, 128, 128, 1);
121   flex-shrink: 0;
122   text-align: right;
123 }
124
125 #extension-settings:not(.dev-mode) .developer-extras {
126   display: none;
127 }
128
129 .developer-extras > div,
130 .permanent-warnings > div {
131   margin: 5px 0;
132 }
133
134 #extension-settings #page-header {
135   /* These values match the .page values. */
136   -webkit-margin-end: 24px;
137   min-width: 576px;
138 }
139
140 /* Contents */
141
142 #extension-settings {
143   max-width: 738px;
144 }
145
146 #no-extensions-message {
147   font-weight: bold;
148 }
149
150 #suggest-gallery {
151   -webkit-padding-start: 10px;
152 }
153
154 #footer-section {
155   background: url(chrome://theme/IDR_WEBSTORE_ICON_32) no-repeat left center;
156   font-size: 1.25em;
157 }
158
159 html[dir=rtl] #footer-section {
160   background: url(chrome://theme/IDR_WEBSTORE_ICON_32) no-repeat right center;
161 }
162
163 #footer-section > a {
164   -webkit-margin-start: 42px;
165   line-height: 32px;
166 }
167
168 .empty-extension-list {
169   height: 3em;
170 }
171
172 .loading #no-extensions,
173 .loading #footer-section,
174 #extension-settings-list:not(.empty-extension-list) ~ #no-extensions,
175 .empty-extension-list ~ #footer-section {
176   display: none;
177 }
178
179 .extension-list-item-wrapper {
180   margin: 23px 0;
181 }
182
183 .extension-list-item {
184   background-repeat: no-repeat;
185   display: -webkit-box;
186   min-height: 48px;
187 }
188
189 html[dir='rtl'] .extension-list-item {
190   background-position: right;
191 }
192
193 .extension-title {
194   -webkit-padding-end: 20px;
195   color: rgb(48, 57, 66);
196   font-size: 14px;
197   font-weight: 500;
198 }
199
200 .inactive-extension .extension-title {
201   color: inherit;
202 }
203
204 .extension-version {
205   -webkit-padding-end: 7px;
206   font-size: 13px;
207   font-weight: 400;
208 }
209
210 .extension-description {
211   -webkit-padding-end: 5px;
212   font-size: 13px;
213   margin: 5px 0;
214   white-space: normal;
215 }
216
217 .extension-details {
218   -webkit-box-flex: 1;
219   -webkit-padding-start: 55px;
220 }
221
222 .extension-description,
223 .extension-list-item-wrapper.inactive-extension .extension-details,
224 .location-text,
225 .blacklist-text,
226 .enable-checkbox input:disabled + .enable-checkbox-text {
227   color: rgb(151, 156, 160);
228 }
229
230 .enable-controls {
231   /* Matches right: position of dev controls toggle. */
232   -webkit-margin-end: 20px;
233   position: relative;
234 }
235
236 .enable-checkbox-text {
237   /* Matches width of trash. */
238   -webkit-margin-end: 30px;
239 }
240
241 .checkbox {
242   display: inline-block;
243 }
244
245 .enabled-text {
246   font-weight: bold;
247 }
248
249 .extension-list-item-wrapper.inactive-extension .enabled-text,
250 .extension-list-item-wrapper:not(.inactive-extension) .enable-text,
251 .extension-list-item-wrapper.inactive-extension .optional-controls,
252 .extension-list-item-wrapper.inactive-extension .butter-bar {
253   display: none;
254 }
255
256 .load-path > span {
257   word-wrap: break-word;
258 }
259
260 .terminated-reload-link {
261   -webkit-margin-end: 2.5em;
262   padding-top: 7px;
263 }
264
265 .extension-list-item a {
266   -webkit-margin-start: 0.5em;
267   display: inline-block;
268 }
269
270 .install-warnings a {
271   -webkit-margin-start: 0;
272 }
273
274 .butter-bar,
275 .install-warnings,
276 .extension-warnings {
277   border-radius: 3px;
278   margin-top: 5px;
279   padding: 2px 5px;
280 }
281
282 .butter-bar {
283   background: rgb(255, 242, 153);
284 }
285
286 .install-warnings,
287 .extension-warnings {
288   background: pink;
289 }
290
291 .install-warnings ul,
292 .extension-warnings ul {
293   margin: 0;
294 }
295
296 .error-collection-control {
297   -webkit-margin-start: 5px;
298   display: none;
299 }
300
301 #extension-settings.dev-mode .error-collection-control {
302   display: initial;
303 }
304
305 #font-measuring-div {
306   /* Remove from the flow and hide. */
307   position: absolute;
308   visibility: hidden;
309 }
310
311 .extension-commands-config {
312   float: right;
313 }
314
315 html[dir=rtl] .extension-commands-config {
316   float: left;
317 }
318
319 /* Overlays */
320
321 #overlay {
322   z-index: 5;
323 }
324
325 #overlay .page:not(.showing) {
326   display: none;
327 }
328
329 #drop-target-overlay {
330   color: rgb(48, 57, 66);
331   font-size: 18px;
332   text-align: center;
333 }
334
335 #drop-target-overlay div {
336   margin: 1em;
337 }
338
339 .location-text,
340 .blacklist-text {
341   display: block;
342   width: 100px;
343 }
344
345 /* Trash */
346
347 #extension-settings .trash {
348   -webkit-transition: opacity 200ms;
349   height: 22px;
350   opacity: 0.8;
351   position: absolute;
352   right: 0;
353   top: 3px;
354   vertical-align: middle;
355 }
356
357 html[dir='rtl'] #extension-settings .trash {
358   left: 0;
359   right: auto;
360 }
361
362 .extension-list-item:not(:hover) .trash:not(:focus) {
363   opacity: 0;
364 }
365
366 .extension-list-item-wrapper.may-not-remove .trash {
367   visibility: hidden;
368 }
369
370 .extension-highlight {
371   background: rgb(238, 238, 238);
372   background-position: auto;
373   background-repeat: auto;
374   border-radius: 3px;
375   padding: 5px 0 5px 5px;
376 }
377
378 .may-not-modify .optional-controls .optional-controls-disableable {
379   display: none;
380 }
381
382 /* Managed mode */
383
384 .page:not(.profile-is-managed) .profile-is-managed-banner,
385 .profile-is-managed .more-extensions-link {
386   display: none;
387 }
388
389 .profile-is-managed-banner .page-banner-text {
390   background-image: url(chrome://theme/IDR_WARNING);
391 }
392
393 /* Sideload Wipeout */
394
395 .sideload-wipeout-learn-more {
396   text-decoration: none;
397 }
398
399 .sideload-wipeout-banner .page-banner-text {
400   -webkit-padding-start: 8px;
401   background-image: none;
402 }