- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / file_manager / foreground / css / file_manager.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 /* The order of z-index:
6  * - 2: drag-selection-bodrder
7  * - 3: preview-panel
8  * - 500: scrollbar
9  * - 500: splitter
10  * - 525: spinner
11  * - 550: autocomplete-suggestions
12  * - 600: menus
13  * - 600: tooltip
14  * - 1000: preview thumbnail popup
15  * - 1000: overlay panel (ie. image editor)
16  */
17
18 /* Special attribute used in HTML to hide elements. */
19 body[type='folder'] [invisibleif~='folder'],
20 body[type='upload-folder'] [invisibleif~='upload-folder'],
21 body[type='saveas-file'] [invisibleif~='saveas-file'],
22 body[type='open-file'] [invisibleif~='open-file'],
23 body[type='open-multi-file'] [invisibleif~='open-multi-file'],
24 body[type='full-page'] [invisibleif~='full-page'],
25
26 body[type='folder'] [visibleif]:not([visibleif~='folder']),
27 body[type='upload-folder'] [visibleif]:not([visibleif~='upload-folder']),
28 body[type='saveas-file'] [visibleif]:not([visibleif~='saveas-file']),
29 body[type='open-file'] [visibleif]:not([visibleif~='open-file']),
30 body[type='open-multi-file'] [visibleif]:not([visibleif~='open-multi-file']),
31 body[type='full-page'] [visibleif]:not([visibleif~='full-page']) {
32   display: none !important;
33 }
34
35 html {
36   height: 100%;
37 }
38
39 html.col-resize * {
40   cursor: col-resize !important;
41 }
42
43 /* Outer frame of the dialog. */
44 body {
45   -webkit-box-flex: 1;
46   -webkit-box-orient: vertical;
47   -webkit-tap-highlight-color: transparent;
48   -webkit-user-select: none;
49   cursor: default;
50   display: -webkit-box;
51   height: 100%;
52   margin: 0;
53   padding: 0;
54   width: 100%;
55 }
56
57 /* Drop opacity of selected rows to give a visual feedback on copy/cut
58  * operation. */
59 .blink {
60   opacity: 0.8;
61 }
62
63 ::-webkit-scrollbar {
64   height: 0;
65   width: 0;
66 }
67
68 /* TODO(mtomasz): Flip scrollbars to the opposite side for RTL languages. */
69 .scrollbar-vertical {
70   bottom: 0;
71   position: absolute;
72   right: 0;
73   top: 0;
74   width: 10px;
75   z-index: 500;  /* Must be below the contextmenu (600). */
76 }
77
78 .scrollbar-button {
79   background-color: black;
80   border: 1px solid #ccc;
81   border-radius: 3px;
82   box-sizing: border-box;
83   height: 50%;
84   margin-right: 2px;
85   opacity: 0;
86   position: absolute;
87   transition: opacity 100ms;
88   width: 8px;
89 }
90
91 :hover > .scrollbar-vertical > .scrollbar-button {
92   opacity: 0.3;
93 }
94
95 .scrollbar-vertical > .scrollbar-button:hover {
96   opacity: 0.4;
97 }
98
99 .scrollbar-vertical > .scrollbar-button.pressed {
100   opacity: 0.5;
101 }
102
103 #butter-bar-container {
104   width: 100%;
105 }
106
107 #butter-bar {
108   color: #666;
109   display: -webkit-box;
110   padding: 15px;
111 }
112
113 #butter-bar:not(.visible) {
114   display: none;
115 }
116
117 #butter-bar .content {
118   -webkit-box-flex: 1.0;
119   -webkit-box-orient: block-axis;
120   -webkit-box-pack: end;
121   display: -webkit-box;
122 }
123
124 #butter-bar .actions {
125   -webkit-box-align: end;
126   -webkit-box-orient: horizontal;
127   -webkit-box-pack: end;
128   -webkit-margin-start: 6px;
129   display: -webkit-box;
130 }
131
132 #butter-bar .actions a {
133   color: rgb(17, 85, 204);
134   cursor: pointer;
135   vertical-align: middle;
136 }
137
138 #butter-bar .actions a.x {
139   background: center center no-repeat;
140   background-image: -webkit-image-set(
141     url('../images/files/ui/close_bar.png') 1x,
142     url('../images/files/ui/2x/close_bar.png') 2x);
143   display: inline-block;
144   height: 35px;  /* #butter-bar .content's min-height. */
145   margin-right: -12px;
146   width: 35px;
147 }
148
149 #butter-bar .actions a.x:first-child {
150   margin-left: -6px;
151 }
152
153 #butter-bar .actions a.x {
154   margin-bottom: -14px;
155 }
156
157 #butter-bar .butter-message.single-line {
158   line-height: 2.0;
159   overflow: hidden;
160   text-overflow: ellipsis;
161   white-space: nowrap;
162 }
163
164 /* Main part of the dialog between header and footer. */
165 .dialog-container {
166   -webkit-box-align: stretch;
167   -webkit-box-flex: 1;
168   -webkit-box-orient: horizontal;
169   background-color: white;  /* Makes #drag-container invisible. */
170   border-radius: 2px;
171   display: -webkit-box;
172   overflow: hidden;
173   position: relative;
174 }
175
176 /* The style applied when a modal dialog box overlap the dialog container. */
177 .dialog-container.disable-header-drag .dialog-navigation-list-header,
178 .dialog-container.disable-header-drag .dialog-header {
179   -webkit-app-region: no-drag;
180 }
181
182 /* List/grid and preview are inside this container. */
183 .dialog-main {
184   -webkit-box-align: stretch;
185   -webkit-box-flex: 1;
186   -webkit-box-orient: vertical;
187   display: -webkit-box;
188 }
189
190 /* Directory tree at the left. */
191 .dialog-navigation-list {
192   -webkit-border-end: 1px solid rgba(20, 20, 22, 0.1);
193   -webkit-box-flex: 0;
194   -webkit-box-orient: vertical;
195   background-color: #f1f1f1;
196   display: -webkit-box;
197   max-width: 50%;
198   min-width: 100px;
199   overflow: hidden;
200   position: relative;
201   width: 150px;
202 }
203
204 .dialog-navigation-list-header {
205   -webkit-app-region: drag;
206   -webkit-box-flex: 0;
207   display: -webkit-box;
208   height: 48px;  /* Keep in sync with #dialog-header. */
209   line-height: 45px;
210 }
211
212 .dialog-navigation-list-header #app-name {
213   -webkit-margin-start: 15px;
214   color: #303030;
215   font-size: 130%;
216 }
217
218 .dialog-navigation-list-contents {
219   -webkit-box-flex: 1;
220   display: -webkit-box;
221   position: relative;
222 }
223
224 .dialog-navigation-list-footer {
225   -webkit-box-flex: 0;
226   display: -webkit-flex;
227   flex-direction: column;
228 }
229
230 /* A vertical splitter between the roots list and the file list. It is actually
231    a transparent area centered on the roots list right border.*/
232 div.splitter {
233   -webkit-box-flex: 0;
234   cursor: col-resize;
235   margin-left: -3px;
236   margin-right: -3px;
237   position: relative;
238   width: 6px;
239   z-index: 500;  /* Must be below the contextmenu (600). */
240 }
241
242 #navigation-list {
243   -webkit-box-flex: 1;
244   -webkit-box-orient: vertical;
245   display: -webkit-box;
246 }
247
248 #navigation-list > * {
249   height: 40px;
250   padding: 0 5px;
251 }
252
253 #navigation-list > .accepts,
254 #navigation-list > [lead][selected],
255 #navigation-list > [lead],
256 #navigation-list > [selected],
257 #navigation-list > [anchor] {
258   background-color: rgb(225, 225, 225);
259 }
260
261 #navigation-list:focus > .accepts,
262 #navigation-list:focus > [lead][selected],
263 #navigation-list:focus > [lead],
264 #navigation-list:focus > [selected],
265 #navigation-list:focus > [anchor] {
266   background-color: rgb(66, 129, 244);
267   color: white;
268 }
269
270 #navigation-list li.root-item {
271   -webkit-box-align: center;
272   display: -webkit-box;
273   line-height: 22px;  /* To accomodate for icons. */
274   padding-left: 11px;
275 }
276
277 #navigation-list li.root-item > .root-label {
278   -webkit-box-flex: 1;
279   margin: 0 2px;
280   overflow: hidden;
281   text-overflow: ellipsis;
282   white-space: nowrap;
283 }
284
285 #navigation-list .volume-icon {
286   background-position: center 2px;
287   background-repeat: no-repeat;
288   height: 24px;
289   width: 24px;
290 }
291
292 #middlebar-header {
293   -webkit-border-end: 1px solid rgba(20, 20, 22, 0.1);
294   -webkit-box-sizing: border-box;
295   -webkit-padding-start: 20px;
296   color: rgb(100, 100, 100);
297   height: 47px;
298   line-height: 40px;
299   overflow-x: hidden;
300   position: absolute;
301   text-overflow: ellipsis;
302   width: 100%;
303 }
304
305 #directory-tree {
306   -webkit-border-end: 1px solid rgba(20, 20, 22, 0.1);
307   bottom: 0;
308   left: 0;
309   overflow-x: hidden;
310   overflow-y: auto;
311   padding-bottom: 0;  /* For the preview panel. Will be overridden by JS. */
312   position: absolute;
313   right: 0;
314   top: 47px;
315 }
316
317 #directory-tree .tree-row {
318   cursor: pointer;
319   display: -webkit-box;
320   line-height: 29px;
321   padding: 0 3px;
322 }
323
324 /* For rows of subitems (non-top items) */
325 #directory-tree .tree-children .tree-row {
326   line-height: 29px;
327 }
328
329 #directory-tree .tree-row > .expand-icon {
330   height: 37px;
331   left: 3px;
332   margin: -13px;
333   right: 3px;
334   top: 0;
335   vertical-align: middle;
336   width: 37px;
337 }
338
339 #directory-tree:focus .tree-row[selected] > .expand-icon {
340   background-image: -webkit-canvas(tree-triangle-inverted);
341 }
342
343 #directory-tree .tree-row > .volume-icon {
344   background-position: center 2px;
345   background-repeat: no-repeat;
346   height: 24px;
347   vertical-align: middle;
348   width: 24px;
349 }
350
351 #directory-tree .tree-row > .label {
352   -webkit-box-flex: 1;
353   display: block;
354   margin: 0 3px;
355   overflow-x: hidden;
356   text-overflow: ellipsis;
357 }
358
359 #directory-tree .tree-item.accepts > .tree-row,
360 #directory-tree .tree-row[lead][selected],
361 #directory-tree .tree-row[lead],
362 #directory-tree .tree-row[selected],
363 #directory-tree .tree-row[anchor] {
364   background-color: rgb(204, 204, 204);
365 }
366
367 #directory-tree .tree-item.accepts > .tree-row,
368 #directory-tree .tree-row[lead][selected],
369 #directory-tree .tree-row[lead],
370 #directory-tree .tree-row[selected],
371 #directory-tree .tree-row[anchor] {
372   background-color: rgb(225, 225, 225);
373 }
374
375 #directory-tree:focus .tree-item.accepts > .tree-row,
376 #directory-tree:focus .tree-row[lead][selected],
377 #directory-tree:focus .tree-row[lead],
378 #directory-tree:focus .tree-row[selected],
379 #directory-tree:focus .tree-row[anchor] {
380   background-color: rgb(193, 209, 232);
381 }
382
383 #directory-tree:focus .tree-item.accepts > .tree-row,
384 #directory-tree:focus .tree-row[lead][selected],
385 #directory-tree:focus .tree-row[lead],
386 #directory-tree:focus .tree-row[selected],
387 #directory-tree:focus .tree-row[anchor] {
388   background-color: rgb(66, 129, 244);
389   color: white;
390 }
391
392 #navigation-list .root-item > div.root-eject {
393   background-image: -webkit-image-set(
394     url('../images/files/ui/eject.png') 1x,
395     url('../images/files/ui/2x/eject.png') 2x);
396   background-position: center center;
397   background-repeat: no-repeat;
398   cursor: pointer;
399   height: 20px;
400   margin-right: 6px;
401   opacity: 0.7;
402   transition: opacity 70ms linear;
403   vertical-align: middle;
404   width: 20px;
405 }
406
407 #navigation-list:focus .root-item[selected] > div.root-eject {
408   -webkit-filter: brightness(0) invert();
409   opacity: 1;
410 }
411
412 #directory-tree .tree-row > div.root-eject:hover {
413   opacity: 1;
414 }
415
416 #directory-tree .root-item[disabled] {
417   opacity: 0.5;
418   pointer-events: none;
419 }
420
421 /* Breadcrumbs and things under the title but above the list view. */
422 .dialog-header {
423   -webkit-app-region: drag;
424   -webkit-box-align: center;
425   -webkit-box-orient: horizontal;
426   display: flex;
427   height: 48px;
428   margin: 0;
429   transition: all 180ms ease;
430 }
431
432 /* Search box */
433
434 #search-box {
435   display: flex;
436   flex: auto;
437 }
438
439 #search-box.too-short {
440   visibility: hidden;
441 }
442
443 #search-box .icon {
444   -webkit-app-region: no-drag;
445   -webkit-padding-end: 0;
446   -webkit-padding-start: 10px;
447   background: transparent -webkit-image-set(
448       url(../images/files/ui/search_icon_inactive.png) 1x,
449       url(../images/files/ui/2x/search_icon_inactive.png) 2x)
450       no-repeat center;
451   flex: none;
452   height: 32px;
453   padding-bottom: 8px;
454   padding-top: 8px;
455   width: 32px;
456 }
457
458 #search-box .icon:hover,
459 #search-box.has-cursor .icon,
460 #search-box.has-text .icon {
461   background-image: -webkit-image-set(
462       url(../images/files/ui/search_icon_active.png) 1x,
463       url(../images/files/ui/2x/search_icon_active.png) 2x);
464 }
465
466 #search-box .full-size {
467   flex: 1 0 0;
468 }
469
470 #search-box input {
471   -webkit-app-region: no-drag;
472   background-color: #fff;
473   border-style: none;
474   color: #333;
475   cursor: default;
476   display: block;
477   height: 48px;
478   line-height: 1em;
479   margin: 0;
480   max-width: 100%;
481   outline: none;
482   padding: 0;
483 }
484
485 #search-box input::-webkit-search-cancel-button {
486   -webkit-appearance: none;
487 }
488
489 #search-box.has-cursor input,
490 #search-box.has-text input {
491   cursor: text;
492 }
493
494 #search-box .clear {
495   -webkit-app-region: no-drag;
496   -webkit-margin-end: 30px;
497   align-self: center;
498   background: -webkit-image-set(
499       url(../images/files/ui/search_clear.png) 1x,
500       url(../images/files/ui/2x/search_clear.png) 2x)
501       no-repeat center;
502   border: none;
503   display: none;
504   flex: none;
505   height: 12px;
506   min-height: 0;
507   min-width: 0;
508   outline: none;
509   padding: 0;
510   width: 12px;
511 }
512
513 #search-box.has-text .clear {
514   display: block;
515 }
516
517 #search-box .clear:hover {
518   background-image: -webkit-image-set(
519       url(../images/files/ui/search_clear_hover.png) 1x,
520       url(../images/files/ui/2x/search_clear_hover.png) 2x);
521 }
522
523 #search-box .clear:active {
524   background-image: -webkit-image-set(
525       url(../images/files/ui/search_clear_pressed.png) 1x,
526       url(../images/files/ui/2x/search_clear_pressed.png) 2x);
527 }
528
529 .topbutton-bar {
530   flex: none;
531 }
532
533 /* Container for the detail and thumbnail list views. */
534 .dialog-body {
535   -webkit-box-flex: 1;
536   -webkit-transition: all 180ms ease;
537   border-top: 1px solid rgba(20, 20, 22, 0.1);
538   position: relative;
539 }
540
541 .main-panel {
542   bottom: 0;
543   display: -webkit-box;
544   left: 0;
545   position: absolute;
546   right: 0;
547   top: 0;
548 }
549
550 .dialog-middlebar-contents {
551   display: -webkit-box;
552   max-width: 50%;
553   min-width: 45px;
554   position: relative;
555   width: 180px;
556 }
557
558 /* Container for the ok/cancel buttons. */
559 .dialog-footer {
560   -webkit-box-align: center;
561   -webkit-box-orient: horizontal;
562   border-top: 1px solid rgb(225, 225, 225);
563   display: -webkit-box;
564   outline: none;
565   padding: 10px;
566 }
567
568 .progressable:not([progress]) .progress-bar,
569 .progressable:not([progress]) .preparing-label {
570   display: none;
571 }
572
573 .progressable[progress] .ok,
574 .progressable[progress] #filename-input-box,
575 .progressable[progress] #preview-lines,
576 .progressable[progress] .file-type {
577   display: none;
578 }
579
580 .progressable .progress-bar {
581   -webkit-box-flex: 1;
582   -webkit-margin-end: 20px;
583   -webkit-margin-start: 20px;
584 }
585
586 /* The container for breadcrumb elements. */
587 .breadcrumbs {
588   -webkit-box-align: center;
589   -webkit-box-flex: 1;
590   -webkit-box-orient: horizontal;
591   display: -webkit-box;
592   line-height: 20px;
593   overflow: hidden;
594   padding-top: 1px;
595 }
596
597 #dir-breadcrumbs {
598   -webkit-margin-end: 5px;
599   -webkit-margin-start: 10px;
600 }
601
602 /* The icon for offline mode */
603 .offline-icon {
604   -webkit-margin-end: 0;
605   -webkit-margin-start: 10px;
606   background-image: -webkit-image-set(
607     url('../images/files/ui/offline.png') 1x,
608     url('../images/files/ui/2x/offline.png') 2x);
609   height: 16px;
610   opacity: 0;
611   transition-duration: 200ms;
612   transition-property: opacity;
613   transition-timing-function: ease-out;
614   width: 16px;
615 }
616
617 /* Transition for '-webkit-margin-start' (or -end) property is not working.
618  * So I added .offline-icon-space to animate 'width' property. */
619 .offline-icon-space {
620   -webkit-margin-end: 0;
621   -webkit-margin-start: -26px; /* Clear width of .offline-icon */
622   transition-duration: 200ms;
623   transition-property: width;
624   transition-timing-function: ease-out;
625   width: 0;
626 }
627
628 body[drive] .dialog-container[connection='offline'] .offline-icon,
629 body[drive] .dialog-container[connection='metered'] .offline-icon {
630   opacity: 1;
631 }
632
633 body[drive] .dialog-container[connection='offline'] .offline-icon-space,
634 body[drive] .dialog-container[connection='metered'] .offline-icon-space {
635   width: 26px;
636 }
637
638 .breadcrumbs > [collapsed]::before {
639   content: '...';
640 }
641
642 .breadcrumbs > [collapsed] {
643   width: 1em;
644 }
645
646 /* A single directory name in the list of path breadcrumbs. */
647 .breadcrumb-path {
648   color: #969696;
649   cursor: pointer;
650   overflow: hidden;
651   text-overflow: ellipsis;
652   white-space: nowrap;
653 }
654
655 /* The final breadcrumb, representing the current directory. */
656 #search-breadcrumbs .breadcrumb-path.breadcrumb-last {
657   color: #141414;
658   cursor: default;
659 }
660
661 /* The > arrow between breadcrumbs. */
662
663 .breadcrumbs .separator {
664   background-image: -webkit-image-set(
665     url('../images/files/ui/breadcrumb-separator.png') 1x,
666     url('../images/files/ui/2x/breadcrumb-separator.png') 2x);
667   background-position: center center;
668   background-repeat: no-repeat;
669   height: 10px;
670   overflow: hidden;
671   width: 25px;
672 }
673
674 #filename-input-box input {
675   border: 1px solid #c8c8c8;
676   border-radius: 1px;
677   box-sizing: border-box;
678   height: 31px;  /* border-box */
679   margin-right: 30px;
680 }
681
682 .filelist-panel {
683   -webkit-box-flex: 1;
684   -webkit-box-orient: vertical;
685   display: -webkit-box;
686 }
687
688 #list-container {
689   -webkit-box-flex: 1;
690   -webkit-box-orient: vertical;
691   display: -webkit-box;
692   position: relative;
693 }
694
695 #detail-table {
696   -webkit-box-flex: 1;
697   -webkit-box-orient: vertical;
698   display: -webkit-box;
699 }
700
701 #detail-table > list,
702 .thumbnail-grid {
703   -webkit-box-flex: 1;
704   padding-bottom: 0;  /* For the preview panel. Will be overridden by JS. */
705 }
706
707 #file-list .drag-selection-border {
708   -webkit-box-sizing: border-box;
709   background-color: rgba(255, 255, 255, 0.3);
710   border: 2px solid rgba(255, 255, 255, 0.6);
711   outline: 1px solid rgba(0, 0, 0, 0.1);
712   position: absolute;
713   z-index: 2;
714 }
715
716 .spinner {
717   background: 100% url(../images/common/spinner.svg);
718   height: 16px;
719   left: 50%;
720   margin-left: -8px;
721   margin-top: -8px;
722   opacity: 0.5;
723   position: absolute;
724   top: 50%;
725   width: 16px;
726 }
727
728 .spinner-layer {
729   background: url(../images/common/spinner.svg) center / 16px no-repeat;
730   bottom: 0;
731   left: 0;
732   position: absolute;
733   right: 0;
734   top: 0;
735   z-index: 525;
736 }
737
738 .downloads-warning {
739   -webkit-box-align: center;
740   -webkit-box-orient: horizontal;
741   background-color: #f0f0f0;
742   background-image: -webkit-image-set(
743     url('../images/files/ui/warning_icon_square.png') 1x,
744     url('../images/files/ui/2x/warning_icon_square.png') 2x);
745   background-position: 15px center;
746   background-repeat: no-repeat;
747   color: #666;
748   display: -webkit-box;
749   font-size: 13px;
750   height: 57px;
751   overflow: hidden;
752   padding-left: 57px;  /* Make space for the icon. */
753   transition: height 70ms linear;
754 }
755
756 .downloads-warning[hidden] {
757   display: -webkit-box !important;  /* Overrides [hidden] for animation. */
758   height: 0;
759 }
760
761 @-webkit-keyframes heightAnimation {
762   0% {
763     height: 0;
764     display: -webkit-box;
765   }
766 }
767
768 /* Drive space warning banner. */
769 .volume-warning {
770   -webkit-animation: heightAnimation 70ms linear;
771   -webkit-box-align: center;
772   -webkit-box-orient: horizontal;
773   background-image: url(chrome://resources/images/clouds.png);
774   background-repeat: repeat-x;
775   background-size: 150px 44px;
776   color: #333;
777   display: -webkit-box;
778   font-size: 13px;
779   height: 44px;
780   overflow: hidden;
781   position: relative;
782 }
783
784 .volume-warning[hidden] {
785   border-top-width: 0;
786   height: 0;
787 }
788
789 .volume-warning .drive-icon {
790   background-image: -webkit-image-set(
791     url('../images/files/ui/drive_logo.png') 1x,
792     url('../images/files/ui/2x/drive_logo.png') 2x);
793   background-position: center;
794   background-repeat: no-repeat;
795   background-size: 25px 22px;
796   height: 44px;
797   width: 50px;
798 }
799
800 .volume-warning .drive-text {
801   margin-right: 11px;
802 }
803
804 /* The cr.ui.Grid representing the detailed file list. */
805 .thumbnail-grid {
806   overflow-y: auto;
807   padding-bottom: 0;  /* For the preview panel. Will be overridden by JS. */
808   width: 100%;
809 }
810
811 body[type='full-page'] .thumbnail-frame > .img-container {
812   position: relative;
813 }
814
815 body[type='full-page'] .thumbnail-frame > .img-container,
816 body[type='full-page'] .detail-name .detail-icon {
817   cursor: pointer;
818 }
819
820 .img-container > img {
821   -webkit-user-drag: none;
822   position: absolute;
823 }
824
825 .img-container > img:not(.cached):not(.drag-thumbnail) {
826   -webkit-animation: fadeIn 250ms linear;
827 }
828
829 .thumbnail-bottom {
830   -webkit-box-align: center;
831   -webkit-box-orient: horizontal;
832   -webkit-box-pack: center;
833   bottom: 0;
834   cursor: auto;
835   display: -webkit-box;
836   left: 0;
837   padding: 0 10px;
838   position: absolute;
839   right: 0;
840 }
841
842 .thumbnail-bottom .filename-label {
843   -webkit-box-flex: 1;
844 }
845
846 /* Styles specific for the grid view. */
847
848 .thumbnail-grid .thumbnail-item {
849   -webkit-margin-start: 21px;
850   border: 3px solid transparent;  /* Selection will make the border visible. */
851   margin-top: 20px;
852   position: relative;
853 }
854
855 .thumbnail-grid .thumbnail-frame {
856   background-color: rgb(245, 245, 245);
857   height: 120px;
858   overflow: hidden;
859   position: relative;
860   width: 160px;
861 }
862
863 .thumbnail-grid .thumbnail-item[selected] .thumbnail-frame,
864 .thumbnail-grid .thumbnail-item.accepts .thumbnail-frame {
865   border-color: white;
866 }
867
868 .thumbnail-grid .img-container {
869   height: 100%;
870   width: 100%;
871 }
872
873 .thumbnail-grid .thumbnail-bottom {
874   background: rgba(0, 0, 0, 0.55);
875   color: #fff;
876   height: 30px;
877 }
878
879 /* Padding counterweights negative margins of items, thus eliminating scroll
880    bar when it's not needed. Max height is set to fit 8 items before showing
881    scroll bar. */
882 #default-actions-list {
883   max-height: 328px;
884   padding: 1px 0;
885 }
886
887 #default-actions-list > li > * {
888   background-position: 5px center;
889   background-repeat: no-repeat;
890   background-size: 16px 16px;
891   padding-left: 26px;
892 }
893
894 #list-container list > li[selected],
895 #list-container grid > li[selected],
896 #default-actions-list > li[selected] {
897   background-color: rgb(225, 225, 225);
898 }
899
900 #list-container list:focus > li[selected],
901 #list-container grid:focus > li[selected],
902 #default-actions-list:focus > li[selected] {
903   background-color: rgb(66, 129, 244);
904   color: white;
905 }
906
907 #list-container list > li.accepts[selected],
908 #list-container grid > li.accepts[selected] {
909   background-color: rgb(215, 215, 215);
910 }
911
912 #list-container list:focus > li.accepts[selected],
913 #list-container grid:focus > li.accepts[selected] {
914   background-color: rgb(48, 125, 254);
915 }
916
917 #list-container list > li.accepts,
918 #list-container grid > li.accepts {
919   background-color: #f1f1f1;
920 }
921
922 #list-container.nohover grid > .accepts {
923   background-color: transparent;
924 }
925
926 #directory-tree .tree-item.accepts > .tree-row,
927 #navigation-list > .accepts,
928 #list-container list > li.accepts,
929 #list-container grid > li.accepts {
930   -webkit-animation: acceptsBlink 200ms linear 1s 3;
931 }
932
933 @-webkit-keyframes acceptsBlink {
934   0% {
935     background-color: transparent;
936   }
937 }
938
939 .table-row-cell .selection-label {
940   -webkit-margin-end: 10px;
941   height: 15px;
942 }
943
944 .table-row-cell .filename-label,
945 .thumbnail-item .filename-label,
946 /* Show ellipsis in cells. The name column has different structure and overrides
947    this rule. */
948 .table-row-cell > div {
949   display: block;
950   overflow: hidden;
951   text-overflow: ellipsis;
952   white-space: nowrap;
953 }
954
955 /* Text box used for renaming in the detail list. */
956 .table-row-cell input.rename {
957   border-width: 0;
958   padding: 2px 0;
959 }
960
961 input.rename:focus {
962   outline-color: rgb(77, 144, 254);
963 }
964
965 input.rename {
966   font: inherit;
967   line-height: 1;
968   text-align: inherit;
969 }
970
971 .table-row-cell .filename-label,
972 .table-row-cell input.rename {
973   -webkit-box-flex: 1;
974 }
975
976 [renaming] > .filename-label {
977   display: none;
978 }
979
980 /* Text box used for renaming in the thumbnail list. */
981 .thumbnail-grid input.rename {
982   -webkit-margin-start: -1px;
983   box-sizing: border-box;
984   height: 20px;
985   width: 114px;
986 }
987
988 /* The cr.ui.Table representing the detailed file list. */
989 .detail-table {
990   width: 100%;
991 }
992
993 /* Bottom pane describing current selection. */
994 .preview-panel {
995   -webkit-box-align: center;
996   -webkit-box-orient: horizontal;
997   -webkit-transition: background-color 150ms ease;
998   background: linear-gradient(
999       to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 1));
1000   border-top: 1px solid rgba(20, 20, 22, 0.1);
1001   bottom: 0;
1002   display: -webkit-box;
1003   height: 51px;
1004   left: 0;
1005   opacity: 1;
1006   padding: 0 10px 0 7px;
1007   position: absolute;
1008   right: 0;
1009   z-index: 3;
1010 }
1011
1012 .preview-panel[visibility=hiding] {
1013   /* Using all seems to cause preview panel and checkbox flicking issue. */
1014   -webkit-transform: translate(0, 5px);
1015   opacity: 0;
1016   transition: opacity 220ms ease;
1017 }
1018
1019 .preview-panel[visibility=hidden] {
1020   display: none;
1021   opacity: 0;
1022 }
1023
1024 .preview-panel > .left,
1025 .dialog-footer > .left {
1026   -webkit-box-align: center;
1027   -webkit-box-flex: 1;
1028   -webkit-box-orient: horizontal;
1029   display: -webkit-box;
1030 }
1031
1032 .preview-panel > .right,
1033 .dialog-footer > .right {
1034   -webkit-box-pack: end;
1035 }
1036
1037 .preview-panel .preparing-label {
1038   -webkit-margin-start: 30px;
1039 }
1040
1041 .preview-panel .progress-bar {
1042   -webkit-box-flex: 1;
1043 }
1044
1045 .preview-thumbnails {
1046   -webkit-box-orient: horizontal;
1047   display: -webkit-box;
1048   padding-left: 25px;
1049 }
1050
1051 .preview-thumbnails > .img-container {
1052   background-color: white;
1053   background-size: 35px 35px;  /* For file icons. */
1054   border: 2px solid white;
1055   box-shadow: 0 1px 1px rgba(80, 80, 80, 0.5);
1056   box-sizing: border-box;
1057   cursor: pointer;
1058   height: 35px;
1059   margin: 0 0 0 -25px;  /* Overlapped images. */
1060   overflow: hidden;
1061   position: relative;
1062   width: 35px;
1063 }
1064
1065 .preview-thumbnails > .popup {
1066   -webkit-transform: translate(0, 3px) scale(0.95);
1067   background-color: #f2f2f2;
1068   border: 2px solid #fff;
1069   bottom: 8px;
1070   box-shadow: 0 0 0 1px #F0F0F0,
1071               0 0 0 2px #D0D0D0,
1072               2px 2px 6px rgba(0, 0, 0, 0.2);
1073   display: -webkit-flex;
1074   left: -8px;
1075   opacity: 0;
1076   pointer-events: none;
1077   position: absolute;
1078   transition: opacity 180ms ease-in 300ms,
1079               -webkit-transform 180ms ease-in 300ms;
1080   z-index: 1000;
1081 }
1082
1083 .preview-thumbnails.has-zoom:hover > .popup {
1084   -webkit-transform: translate(0, 0) scale(1.0);
1085   opacity: 1;
1086   pointer-events: auto;
1087 }
1088
1089 @-webkit-keyframes fadeIn {
1090   from {
1091     opacity: 0;
1092   }
1093   to {
1094     opacity: 1;
1095   }
1096 }
1097
1098 .preview-thumbnails img {
1099   -webkit-animation: fadeIn 180ms ease-in-out;
1100 }
1101
1102 .preview-thumbnails > .popup > img {
1103   -webkit-flex: 1 1 0;
1104   -webkit-user-drag: none;
1105 }
1106
1107 /* Table splitter element */
1108 .table-header-splitter {
1109   background-image: -webkit-image-set(
1110     url('../images/files/ui/vertical_separator.png') 1x,
1111     url('../images/files/ui/2x/vertical_separator.png') 2x);
1112   background-position: center;
1113   background-repeat: repeat-y;
1114   height: 20px;
1115   top: 10px;
1116   width: 5px;
1117 }
1118
1119 .table-header-splitter:last-child {
1120   display: none;
1121 }
1122
1123 /* Container for a table header. */
1124 .table-header {
1125   box-sizing: border-box;
1126   height: 47px;
1127 }
1128
1129 .table-header-sort-image-desc::after {
1130   -webkit-padding-start: 13px;
1131   background-image: -webkit-image-set(
1132     url('../images/files/ui/sort_desc.png') 1x,
1133     url('../images/files/ui/2x/sort_desc.png') 2x);
1134   background-position: center center;
1135   background-repeat: no-repeat;
1136   color: #888;
1137   content: '\00a0';
1138   position: relative;
1139   top: 1px;
1140 }
1141
1142 .table-header-sort-image-asc::after {
1143   -webkit-padding-start: 13px;
1144   background-image: -webkit-image-set(
1145     url('../images/files/ui/sort_asc.png') 1x,
1146     url('../images/files/ui/2x/sort_asc.png') 2x);
1147   background-position: center center;
1148   background-repeat: no-repeat;
1149   color: #888;
1150   content: '\00a0';
1151   position: relative;
1152   top: -1px;
1153 }
1154
1155 .preview-container .table-header {
1156   border-radius: 0 4px 0 0;
1157 }
1158
1159 /* Text label in a table header. */
1160 .table-header-label {
1161   color: rgb(100, 100, 100);
1162   line-height: 40px;
1163   margin: 0 7px;
1164 }
1165
1166 .table-row-cell > * {
1167   -webkit-box-align: center;
1168   -webkit-box-flex: 1;
1169   -webkit-box-orient: horizontal;
1170   padding: 0 10px;
1171 }
1172
1173 .table-row-cell {
1174   color: rgb(100, 100, 100);
1175 }
1176
1177 .table-row-cell > .detail-name {
1178   display: -webkit-box;
1179 }
1180
1181 .table-row-cell > .detail-name {
1182   color: rgb(0, 0, 0);
1183 }
1184
1185
1186 #list-container list:focus > [selected] .table-row-cell,
1187 #list-container list:focus > [selected] .detail-name {
1188   color: white;
1189 }
1190
1191 .table-row-cell {
1192   -webkit-box-align: center;
1193 }
1194
1195 .file-checkbox {
1196   -webkit-margin-end: 0;
1197   -webkit-margin-start: 0;
1198   position: relative;
1199   z-index: 2;
1200 }
1201
1202 #select-all-checkbox {
1203   -webkit-margin-end: 13px;
1204   -webkit-margin-start: 3px;
1205   margin-bottom: 0;
1206   margin-top: 0;
1207   vertical-align: middle;
1208 }
1209
1210 #list-container .table-header #select-all-checkbox,
1211 #list-container li.table-row .file-checkbox {
1212   -webkit-appearance: none;
1213   background-image: -webkit-image-set(
1214     url('../images/files/ui/select_checkbox.png') 1x,
1215     url('../images/files/ui/2x/select_checkbox.png') 2x);
1216   background-position: center;
1217   background-repeat: no-repeat;
1218   border-style: none;
1219   height: 15px;
1220   width: 15px;
1221 }
1222
1223 #list-container li.table-row .file-checkbox {
1224   vertical-align: top;
1225 }
1226
1227 #list-container .table-header #select-all-checkbox::after,
1228 #list-container li.table-row .file-checkbox::after {
1229   content: none;
1230 }
1231
1232 #list-container .table-header #select-all-checkbox:checked,
1233 #list-container li.table-row .file-checkbox:checked {
1234   background-image: -webkit-image-set(
1235     url('../images/files/ui/select_checkbox_checked.png') 1x,
1236     url('../images/files/ui/2x/select_checkbox_checked.png') 2x);
1237 }
1238
1239 #list-container .table-header #select-all-checkbox:checked,
1240 #list-container list li.table-row[selected] .file-checkbox {
1241   -webkit-filter: brightness(0) opacity(40%);
1242 }
1243
1244 #list-container list:focus li.table-row[selected] .file-checkbox {
1245   -webkit-filter: brightness(0) invert();
1246 }
1247
1248 #list-container li.table-row,
1249 #default-actions-list li {
1250   height: 29px;
1251   line-height: 29px;
1252 }
1253
1254 /* The icon in the name column. See file_types.css for specific icons. */
1255 .detail-icon {
1256   height: 24px;
1257   width: 24px;
1258 }
1259
1260 #detail-table .detail-icon {
1261   /* To shift the icon position. */
1262   margin-bottom: 2px;
1263 }
1264
1265 .metadata-item {
1266   -webkit-box-flex: 1;
1267   -webkit-box-orient: horizontal;
1268   -webkit-padding-start: 8px;
1269   display: -webkit-box;
1270 }
1271
1272 .metadata-label {
1273   -webkit-margin-end: 6px;
1274 }
1275
1276 .preview-panel .spacer {
1277   -webkit-box-flex: 1;
1278 }
1279
1280 #delete-button {
1281   min-width: 21px;  /* overrride */
1282   padding: 0;  /* overrride */
1283   width: 21px;
1284 }
1285
1286 #delete-button::before {
1287   /* Background image should be specified in the before pseudo element because
1288    * border image fill is specified to delete-button. */
1289   background: -webkit-image-set(
1290     url(../images/files/ui/onbutton_trash.png) 1x,
1291     url(../images/files/ui/2x/onbutton_trash.png) 2x) no-repeat center;
1292   content: '';
1293   display: block;
1294   height: 100%;
1295   width: 100%;
1296 }
1297
1298 #delete-button[disabled] {
1299   display: none;
1300 }
1301
1302 #tasks-menu menuitem:not(.change-default) {
1303   background-position: left 10px center;
1304   padding-left: 32px;
1305 }
1306
1307 #share-button {
1308   display: block;
1309   min-width: 0;  /* overrride */
1310 }
1311
1312 #preview-lines {
1313   -webkit-box-flex: 1;
1314   -webkit-margin-end: 10px;
1315   -webkit-margin-start: 10px;
1316   vertical-align: middle;
1317 }
1318
1319 /* The selection summary text at the bottom of the preview pane. */
1320 .preview-summary {
1321   color: #666;
1322   overflow: hidden;
1323   text-overflow: ellipsis;
1324   vertical-align: middle;
1325   white-space: nowrap;
1326 }
1327
1328 .preview-summary .calculating-size {
1329   margin-left: 5px;
1330   opacity: 0.5;
1331 }
1332
1333 .detail-name > * {
1334   -webkit-box-align: center;
1335   display: -webkit-box;
1336 }
1337
1338 /* Overriding input.common[type='checkbox'] rule in common.css. */
1339 .detail-name > input.common[type='checkbox'] {
1340   -webkit-margin-end: 4px;
1341   -webkit-margin-start: -1px;
1342   border-color: #444;
1343 }
1344
1345 list .detail-name > .file-checkbox::before,
1346 .pin::before {
1347   /* Invisible area that reacts on mouse events. */
1348   content: '';
1349   display: -webkit-box;
1350   height: 38px;
1351   left: -8px;
1352   position: absolute;
1353   right: -9px;
1354   top: -14px;
1355 }
1356
1357 #filename-input-box {
1358   -webkit-box-align: center;
1359   -webkit-box-flex: 1;
1360   display: -webkit-box;
1361 }
1362
1363 #filename-input-box input {
1364   -webkit-box-flex: 1;
1365   display: -webkit-box;
1366   padding: 1px 2px;
1367 }
1368
1369 #filename-input-box .filename-label {
1370   -webkit-box-orient: horizontal;
1371   background-color: white;
1372   color: #333;
1373   display: -webkit-box;
1374   padding-right: 4px;
1375 }
1376
1377 body:not([type='saveas-file']) #filename-input-box {
1378   display: none;
1379 }
1380
1381 /* A vertical spring. */
1382 .vertical-spacer {
1383   -webkit-box-flex: 1;
1384   -webkit-box-orient: vertical;
1385   display: -webkit-box;
1386 }
1387
1388 /* Dimmed items */
1389
1390 body[type='folder'] .file,
1391 body[type='upload-folder'] .file,
1392 body[drive] .dialog-container[connection='offline'] .dim-offline {
1393   opacity: 0.4;
1394 }
1395
1396 /* Overlay pane covering the entire file manager window (e.g. image editor)*/
1397 .overlay-pane {
1398   -webkit-app-region: no-drag;
1399   border: none;
1400   height: 100%;
1401   left: 0;
1402   position: absolute;
1403   top: 0;
1404   width: 100%;
1405   z-index: 1000;  /* Must be above all elements in file manager container. */
1406 }
1407
1408 /* When the overlay pane is visible hide everything else so that the tab order
1409   is not confused. */
1410 body[overlay-visible] > :not(.overlay-pane) {
1411   display: none !important;
1412 }
1413
1414 /* Invisible container for elements representing files while dragging. */
1415 #drag-container {
1416   left: 0;
1417   /* Hack for extra margins caused by setDragImage(). */
1418   padding: 1000px 0 0 1000px;
1419   position: fixed;
1420   top: 0;
1421   z-index: -1;  /* below .dialog-container */
1422 }
1423
1424 #drag-container .drag-contents {
1425   -webkit-box-orient: horizontal;
1426   background-color: #fafafa;
1427   border: 1px solid #bbb;
1428   border-radius: 3px;
1429   box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .2);
1430   display: -webkit-box;
1431   margin-bottom: 5px;
1432   padding: 6px;
1433   transition: opacity 200ms ease-in;
1434 }
1435
1436 #drag-container .drag-contents.for-image  {
1437   padding: 2px;
1438 }
1439
1440 #drag-container .thumbnail-item {
1441   -webkit-box-orient: horizontal;
1442   display: -webkit-box;
1443 }
1444
1445 /* When changing these properties please preserve these conditions:
1446    1. width == height (so that the rotated thumbnail does not look off-center)
1447    2. width % 8 == 0 (to minimize rounding errors in the centering code) */
1448 #drag-container .img-container {
1449   -webkit-box-flex: 0;
1450   display: -webkit-box;
1451   height: 64px;
1452   overflow: hidden;
1453   position: relative;
1454   width: 64px;
1455 }
1456
1457 #drag-container .label {
1458   -webkit-box-flex: 1;
1459   font-weight: bold;
1460   line-height: 24px;
1461   max-width: 320px;
1462   overflow: hidden;
1463   padding: 0 5px;
1464   text-overflow: ellipsis;
1465   white-space: nowrap;
1466 }
1467
1468 menu.file-context-menu {
1469   z-index: 600;  /* Must be below the overlay pane (1000). */
1470 }
1471
1472 menu.chrome-menu hr {
1473   color: transparent;
1474   font-size: 0;
1475 }
1476
1477 div.offline {
1478   -webkit-box-pack: center;
1479   display: -webkit-box;
1480 }
1481
1482 div.offline > * {
1483   -webkit-box-align: center;
1484   display: -webkit-box;
1485 }
1486
1487 div.shade {
1488   /* transition: opacity 1000ms linear; */
1489   background-color: rgba(255, 255, 255, 0.8);
1490   bottom: 0;
1491   left: 0;
1492   opacity: 0;
1493   position: absolute;
1494   right: 0;
1495   top: 0;
1496 }
1497
1498 div.shade[fadein] {
1499   opacity: 1;
1500 }
1501
1502 /* Message panel for unmounted Drive */
1503 #unmounted-panel,
1504 #format-panel {
1505   bottom: 0;
1506   color: #333;
1507   display: none;
1508   left: 0;
1509   padding-left: 50px;
1510   padding-top: 20px;
1511   position: absolute;
1512   right: 0;
1513   top: 0;
1514 }
1515
1516 body[drive='mounting'] .dialog-container #unmounted-panel,
1517 body[drive='error'] .dialog-container #unmounted-panel,
1518 body[unformatted] .dialog-container #format-panel {
1519   display: block;
1520 }
1521
1522 body[drive='unmounted'] .dialog-container .filelist-panel,
1523 body[drive='mounting'] .dialog-container .filelist-panel,
1524 body[drive='error'] .dialog-container .filelist-panel,
1525 body[unformatted] .dialog-container .filelist-panel {
1526   /* Hide file list when Drive is not mounted.
1527      Use opacity to avoid manual resizing.*/
1528   opacity: 0;
1529 }
1530
1531 #unmounted-panel > *,
1532 #format-panel > * {
1533   -webkit-box-align: center;
1534   -webkit-box-orient: horizontal;
1535   -webkit-box-pack: start;
1536   display: none;
1537   height: 22px;
1538   margin-bottom: 10px;
1539 }
1540
1541 #unmounted-panel > .loading {
1542   position: relative;
1543 }
1544
1545 #unmounted-panel > .loading > .spinner-box {
1546   bottom: 0;
1547   position: absolute;
1548   right: 100%;
1549   top: 0;
1550   width: 40px;
1551 }
1552
1553 body[unformatted] #format-panel > .error,
1554 body[drive='mounting'] #unmounted-panel > .loading,
1555 body[drive='error'] #unmounted-panel > .error,
1556 #format-panel > #format-button,
1557 #unmounted-panel.retry-enabled > .learn-more {
1558   display: -webkit-box;
1559 }
1560
1561 .plain-link {
1562   color: rgb(17, 85, 204);
1563   cursor: pointer;
1564   text-decoration: none;
1565 }
1566
1567 .buttonbar > * {
1568   position: relative;
1569 }
1570
1571 .buttonbar .tooltip,
1572 .topbutton-bar .tooltip {
1573   right: -12px;
1574   top: 35px;
1575 }
1576
1577 /* Tooltips */
1578 .tooltip {
1579   background: #2d2d2d;
1580   border-radius: 0;
1581   box-shadow: 1px 2px 4px #ccc;
1582   box-sizing: border-box;
1583   color: white;
1584   display: block;
1585   font-size: 11px;
1586   font-weight: bold;
1587   height: 29px;
1588   line-height: 29px;
1589   margin-left: -20px;
1590   min-width: 50px;
1591   opacity: 0;
1592   outline: 1px solid rgba(255, 255, 255, 0.5);
1593   padding: 0 10px;
1594   pointer-events: none;
1595   position: absolute;
1596   text-align: center;
1597   top: 5px;
1598   white-space: nowrap;
1599   z-index: 600;  /* Must be below the overlay pane (1000). */
1600 }
1601
1602 .tooltip::after,
1603 .tooltip::before {
1604   border-left: 5px solid transparent;
1605   border-right: 5px solid transparent;
1606   border-top: transparent;
1607   content: '';
1608   display: block;
1609   margin-left: -5px;
1610   position: absolute;
1611   right: 24px;
1612   top: -5px;
1613 }
1614
1615 .tooltip::after {
1616   border-bottom: 5px solid #2d2d2d;
1617 }
1618
1619 .tooltip::before {
1620   border-bottom: 5px solid rgba(255, 255, 255, 0.5);
1621 }
1622
1623 /* Show with delay, disappear instantly */
1624 @-webkit-keyframes tooltip-show {
1625   0% { opacity: 0; }
1626   90% { opacity: 0; }
1627   100% { opacity: 1; }
1628 }
1629
1630 :hover > .tooltip {
1631   -webkit-animation-duration: 800ms;
1632   -webkit-animation-iteration-count: 1;
1633   -webkit-animation-name: tooltip-show;
1634   -webkit-animation-timing-function: linear;
1635   opacity: 1;
1636 }
1637
1638 #no-search-results {
1639   bottom: 0;
1640   display: none;
1641   left: 0;
1642   padding: 10px;
1643   position: absolute;
1644   right: 0;
1645   top: 28px;  /* Leave room for the file list header. */
1646 }
1647
1648 .dialog-container:not([drive-welcome='page']) #no-search-results[show] {
1649   display: block;
1650 }
1651
1652 #volume-space-info-contents {
1653   -webkit-box-align: center;
1654   display: -webkit-box;
1655 }
1656
1657 #volume-space-info-contents > div {
1658   -webkit-box-flex: 1;
1659   -webkit-margin-start: 15px;
1660   display: -webkit-box;
1661 }
1662
1663 #list-container .table-header-inner {
1664   height: 100%;
1665 }
1666
1667 #list-container .table-header-cell:hover {
1668   background-color: inherit;
1669 }
1670
1671 #list-container .table-header-cell:first-child {
1672   -webkit-box-sizing: border-box;
1673   -webkit-padding-start: 8px;
1674 }
1675
1676 button:focus {
1677   outline-color: rgb(77, 144, 254);
1678 }
1679
1680 #new-folder-button {
1681   margin-right: 30px;
1682 }
1683
1684 #default-action-dialog {
1685   min-width: 300px;
1686   width: auto;
1687 }
1688
1689 .drive-welcome-wrapper {
1690   /* drive_welcome.css will override it once loaded. */
1691   display: none;
1692 }
1693
1694 list.autocomplete-suggestions {
1695   -webkit-margin-before: -7px;
1696   -webkit-margin-start: -38px;
1697   background-color: rgb(250, 250, 250);
1698   border-radius: 3px;
1699   box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .5);
1700   box-sizing: border-box;  /* To match the width with the search box's. */
1701   color: rgb(34, 34, 34);
1702   overflow: hidden;
1703   padding: 5px 0;
1704   position: fixed;
1705   width: 300px !important; /* This overrides the value specified by script. */
1706   z-index: 550;
1707 }
1708
1709 list.autocomplete-suggestions > li {
1710   -webkit-box-align: center;
1711   display: -webkit-box;
1712   padding: 3px 0;
1713 }
1714
1715 list.autocomplete-suggestions > li > div.detail-icon {
1716   -webkit-margin-end: 6px;
1717   -webkit-margin-start: 6px;
1718 }
1719
1720 list.autocomplete-suggestions > li > div.detail-text {
1721   -webkit-box-flex: 1;
1722   overflow-x: hidden;
1723   text-overflow: ellipsis;
1724 }
1725
1726 list.autocomplete-suggestions > li > div.detail-text em {
1727   color: rgb(150, 150, 150);
1728   font-style: normal;
1729 }
1730
1731 list.autocomplete-suggestions > li > div[search-icon] {
1732   background: -webkit-image-set(
1733     url('../images/files/ui/search_icon_active.png') 1x,
1734     url('../images/files/ui/2x/search_icon_active.png') 2x);
1735   background-position: center;
1736   background-repeat: no-repeat;
1737 }
1738
1739 list.autocomplete-suggestions > li[selected] > div[search-icon],
1740 list.autocomplete-suggestions > li[lead] > div[search-icon] {
1741   -webkit-filter: brightness(0) invert();
1742 }
1743
1744 list.autocomplete-suggestions > [selected],
1745 list.autocomplete-suggestions > [lead] {
1746   background-color: rgb(66, 129, 244);
1747   color: white;
1748 }
1749
1750 list.autocomplete-suggestions > [selected] > div.detail-text em,
1751 list.autocomplete-suggestions > [lead] > div.detail-text em {
1752   color: white;
1753 }
1754
1755 #gear-menu {
1756   margin-top: 8px;
1757 }
1758
1759 #gear-menu > menuitem:not(.menuitem-button) {
1760   margin-right: 50px;
1761 }
1762
1763 /* View buttons in the gear menu. */
1764
1765 menuitem#detail-view {
1766   background-image: -webkit-image-set(
1767     url('../images/files/ui/button_list_view.png') 1x,
1768     url('../images/files/ui/2x/button_list_view.png') 2x);
1769 }
1770
1771 menuitem#detail-view[selected]:not([disabled]),
1772 menuitem#detail-view[lead]:not([disabled]) {
1773   background-image: -webkit-image-set(
1774     url('../images/files/ui/button_list_view_white.png') 1x,
1775     url('../images/files/ui/2x/button_list_view_white.png') 2x);
1776 }
1777
1778 menuitem#thumbnail-view {
1779   background-image: -webkit-image-set(
1780     url('../images/files/ui/button_mosaic_view.png') 1x,
1781     url('../images/files/ui/2x/button_mosaic_view.png') 2x);
1782 }
1783
1784 menuitem#thumbnail-view[selected]:not([disabled]),
1785 menuitem#thumbnail-view[lead]:not([disabled]) {
1786   background-image: -webkit-image-set(
1787     url('../images/files/ui/button_mosaic_view_white.png') 1x,
1788     url('../images/files/ui/2x/button_mosaic_view_white.png') 2x);
1789 }
1790
1791 #iframe-drag-area {
1792   -webkit-app-region: drag;
1793   height: 48px;
1794   left: 64px;
1795   position: absolute;
1796   right: 92px;
1797   top: 0;
1798   width: auto;
1799   z-index: 101;
1800 }
1801
1802 #suggest-app-dialog {
1803   background-color: #fff;
1804   border: 0;
1805   padding: 0;
1806   width: auto;
1807 }
1808
1809 #suggest-app-dialog .cr-dialog-title {
1810   /* Entire height: 44px (content-box 22px + padding 11px * 2) */
1811   font-size: 16px;
1812   height: 22px;
1813   margin: 0;
1814   padding: 11px 18px;
1815 }
1816
1817 #suggest-app-dialog #webview-container {
1818   border-bottom: solid 1px #bbb;
1819   border-top: solid 1px #bbb;
1820   position: relative;
1821 }
1822
1823 #suggest-app-dialog.show-spinner #webview-container webview {
1824   pointer-events: none;
1825 }
1826
1827 #suggest-app-dialog:not(.show-spinner) .spinner-layer {
1828   display: none;
1829 }
1830
1831 #suggest-app-dialog .spinner-layer {
1832   background-color: rgba(255, 255, 255, 0.7);
1833   top: 45px;  /* Title: 44px, border: 1px */
1834 }
1835
1836 #suggest-app-dialog .cr-dialog-buttons,
1837 #suggest-app-dialog .cr-dialog-ok,
1838 #suggest-app-dialog .cr-dialog-cancel {
1839   display: none;
1840 }
1841
1842 #suggest-app-dialog .cr-dialog-text {
1843   -webkit-padding-after: 10px;
1844   -webkit-padding-before: 0;
1845   -webkit-padding-end: 20px;
1846   -webkit-padding-start: 20px;
1847   margin: 0;
1848 }
1849
1850 #suggest-app-dialog #buttons {
1851   background: #eee;
1852   width: 100%;
1853 }
1854
1855 #suggest-app-dialog #buttons > #webstore-button {
1856   -webkit-padding-after: 10px;
1857   -webkit-padding-before: 10px;
1858   -webkit-padding-end: 10px;
1859   -webkit-padding-start: 36px;
1860   background-image: -webkit-image-set(
1861     url('chrome://theme/IDR_WEBSTORE_ICON_16') 1x,
1862     url('chrome://theme/IDR_WEBSTORE_ICON_16@2x') 2x);
1863   background-position: 12px center;
1864   background-repeat: no-repeat;
1865   color: #00f;
1866   cursor: pointer;
1867   display: inline-block;
1868   height: 16px;
1869 }
1870
1871 .cr-dialog-frame.error-dialog-frame {
1872   width: 300px;
1873 }
1874
1875 .error-dialog-frame .error-dialog-img {
1876   background-image: -webkit-image-set(
1877     url('chrome://theme/IDR_ERROR_NETWORK_GENERIC') 1x,
1878     url('chrome://theme/IDR_ERROR_NETWORK_GENERIC@2x') 2x);
1879   background-position: center;
1880   background-repeat: no-repeat;
1881   height: 40px;
1882 }
1883
1884 .error-dialog-frame .cr-dialog-cancel {
1885   display: none;
1886 }
1887
1888 .error-dialog-frame .cr-dialog-close,
1889 .error-dialog-frame .cr-dialog-title {
1890   display: none;
1891 }
1892
1893 .error-dialog-frame .cr-dialog-text {
1894   text-align: center;
1895 }
1896
1897 .cr-dialog-frame.share-dialog-frame {
1898   background-color: white;
1899   width: auto;
1900 }
1901
1902 .share-dialog-webview-wrapper {
1903   height: 100px;
1904   margin-top: 10px;
1905   min-width: 300px;
1906   overflow: hidden;
1907   transition: height 200ms ease;
1908 }
1909
1910 .share-dialog-webview {
1911   height: 100%;
1912   width: 100%;
1913 }
1914
1915 .share-dialog-webview-wrapper:not(.loaded) .share-dialog-webview {
1916   visibility: hidden;
1917 }
1918
1919 .share-dialog-frame .cr-dialog-text,
1920 .share-dialog-frame .cr-dialog-buttons {
1921   display: none;
1922 }
1923
1924 #conflict-confirm-dialog .apply-all-line {
1925   margin: 8px;
1926   text-align: end;
1927 }
1928
1929 #conflict-confirm-dialog input {
1930   width: auto;
1931 }
1932
1933 /* Progress center */
1934
1935 #progress-center {
1936   background: transparent;
1937   border-top: 1px solid transparent;
1938   display: -webkit-flex;
1939   flex-direction: column;
1940   /* TODO(hirono): Set the height by scripts. */
1941   height: 53px;
1942   overflow: hidden;
1943   position: relative;
1944   transition: height 300ms ease-out,
1945               background 300ms linear,
1946               border 300ms linear;
1947   width: 100%;
1948 }
1949
1950 #progress-center.opened {
1951   /* TODO(hirono): Set the height by scripts. */
1952   height: 300px;
1953 }
1954
1955 #progress-center-open-view,
1956 #progress-center-close-view {
1957   bottom: 0;
1958   left: 0;
1959   position: absolute;
1960   right: 0;
1961   top: 0;
1962 }
1963
1964 #progress-center-open-view {
1965   background: #ebebeb;
1966   border-top: 1px solid #d8d8d8;
1967   opacity: 1;
1968   padding-top: 42px;
1969   transition: opacity 300ms linear;
1970 }
1971
1972 #progress-center:not(.opened) #progress-center-open-view {
1973   opacity: 0;
1974   pointer-events: none;
1975 }
1976
1977 #progress-center li {
1978   -webkit-padding-end: 10px;
1979   -webkit-padding-start: 20px;
1980   display: block;
1981   flex: none;
1982   height: 33px;
1983   margin-bottom: 20px;
1984 }
1985
1986 #progress-center label {
1987   color: #777;
1988   display: block;
1989   height: 17px;
1990   opacity: 1;
1991   overflow: hidden;
1992   text-overflow: ellipsis;
1993   white-space: nowrap;
1994 }
1995
1996 #progress-center .progress-frame {
1997   align-items: center;
1998   display: flex;
1999   margin-top: 4px;
2000 }
2001
2002 #progress-center li.error .progress-bar,
2003 #progress-center li.canceled .progress-bar {
2004   visibility: hidden;
2005 }
2006
2007 #progress-center .progress-bar {
2008   -webkit-margin-end: 24px;
2009   background: #d8d8d8;
2010   border-radius: 3px;
2011   flex: 1 0 0;
2012   height: 6px;
2013   opacity: 1;
2014   overflow: hidden;
2015 }
2016
2017 #progress-center.opened li.closed-item .progress-bar {
2018   opacity: 0;
2019 }
2020
2021 #progress-center .progress-track {
2022   background: #787878;
2023   height: 100%;
2024   transition: width 300ms linear;
2025 }
2026
2027 #progress-center button {
2028   background: orange;
2029   border: none;
2030   cursor: pointer;
2031   flex: 0 0 auto;
2032   height: 12px;
2033   min-height: 0;
2034   min-width: 0;
2035   outline: none;
2036   padding: 0;
2037   width: 12px;
2038   z-index: 0;
2039 }
2040
2041 #progress-center button.toggle {
2042   background: -webkit-image-set(
2043       url(../images/files/ui/process_drawer_button_opened.png) 1x,
2044       url(../images/files/ui/2x/process_drawer_button_opened.png) 2x)
2045       no-repeat;
2046   bottom: 0;
2047   position: relative;
2048   transition: bottom 300ms ease-out;
2049   z-index: 1;
2050 }
2051
2052 #progress-center button.toggle:hover {
2053   background: -webkit-image-set(
2054       url(../images/files/ui/process_drawer_button_opened_hover.png) 1x,
2055       url(../images/files/ui/2x/process_drawer_button_opened_hover.png) 2x)
2056       no-repeat;
2057 }
2058
2059 #progress-center button.toggle:active {
2060   background: -webkit-image-set(
2061       url(../images/files/ui/process_drawer_button_opened_pressed.png) 1x,
2062       url(../images/files/ui/2x/process_drawer_button_opened_pressed.png) 2x)
2063       no-repeat;
2064 }
2065
2066 /*
2067  * If the progress center only one item,
2068  * toggle button turned into cancel button the item.
2069  */
2070 #progress-center-close-view.single button.toggle,
2071 #progress-center button.cancel {
2072   background: -webkit-image-set(
2073       url(../images/files/ui/close_bar.png) 1x,
2074       url(../images/files/ui/2x/close_bar.png) 2x)
2075       no-repeat;
2076 }
2077
2078 #progress-center-close-view.single li:not(.cancelable) button.toggle,
2079 #progress-center li:not(.cancelable) button.cancel {
2080   visibility: hidden;
2081 }
2082
2083 #progress-center.opened button.toggle {
2084   background: -webkit-image-set(
2085       url(../images/files/ui/process_drawer_button_closed.png) 1x,
2086       url(../images/files/ui/2x/process_drawer_button_closed.png) 2x)
2087       no-repeat;
2088   /*
2089    * This offset is for aliginig the position of toggle button in both open and
2090    * close view. The value euals to:
2091    *     label height 17px + label bottom margin 4px -
2092    *     top border width 1px - required margin in the open view 10px.
2093    */
2094   bottom: 10px;
2095 }
2096
2097 #progress-center.opened button.toggle:hover {
2098   background: -webkit-image-set(
2099       url(../images/files/ui/process_drawer_button_closed_hover.png) 1x,
2100       url(../images/files/ui/2x/process_drawer_button_closed_hover.png) 2x)
2101       no-repeat;
2102 }
2103
2104 #progress-center.opened button.toggle:active {
2105   background: -webkit-image-set(
2106       url(../images/files/ui/process_drawer_button_closed_pressed.png) 1x,
2107       url(../images/files/ui/2x/process_drawer_button_closed_pressed.png) 2x)
2108       no-repeat;
2109 }