Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: chrome/browser/resources/file_manager/css/file_manager.css

Issue 10804010: HiDPI assets for Chrome OS Files app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed ID ranges to accommodate new resources Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 html.col-resize * { 5 html.col-resize * {
6 cursor: col-resize !important; 6 cursor: col-resize !important;
7 } 7 }
8 8
9 /* Outer frame of the dialog. */ 9 /* Outer frame of the dialog. */
10 body { 10 body {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 115
116 .butter-bar .actions { 116 .butter-bar .actions {
117 -webkit-box-orient: horizontal; 117 -webkit-box-orient: horizontal;
118 -webkit-box-pack: end; 118 -webkit-box-pack: end;
119 display: -webkit-box; 119 display: -webkit-box;
120 } 120 }
121 121
122 .butter-bar .actions a { 122 .butter-bar .actions a {
123 background: center center no-repeat; 123 background: center center no-repeat;
124 background-image: url('../images/close_bar.png'); 124 background-image: -webkit-image-set(
125 url('../images/files/ui/close_bar.png') 1x,
126 url('../images/files/ui/2x/close_bar.png') 2x);
125 display: inline-block; 127 display: inline-block;
126 height: 12px; 128 height: 12px;
127 padding: 4px; 129 padding: 4px;
128 width: 12px; 130 width: 12px;
129 } 131 }
130 132
131 .butter-bar.error { 133 .butter-bar.error {
132 background-color: rgba(221, 75, 57, 0.2); 134 background-color: rgba(221, 75, 57, 0.2);
133 border: 1px solid rgba(221, 75, 57, 0.5); 135 border: 1px solid rgba(221, 75, 57, 0.5);
134 border-radius: 2px; 136 border-radius: 2px;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 text-overflow: ellipsis; 273 text-overflow: ellipsis;
272 white-space: nowrap; 274 white-space: nowrap;
273 } 275 }
274 276
275 .root-label { 277 .root-label {
276 -webkit-padding-start: 38px; 278 -webkit-padding-start: 38px;
277 background-position: left center; 279 background-position: left center;
278 background-repeat: no-repeat; 280 background-repeat: no-repeat;
279 } 281 }
280 282
281 .root-label[type=downloads] {
282 background-image: url('../images/downloads_28x28.png');
283 }
284
285 .root-label[type=gdata] {
286 background-image: url('../images/gdrive_28x28.png');
287 }
288
289 .root-label[type=archive] {
290 background-image: url('../images/archive_28x28.png');
291 }
292
293 .root-label[type=removable] {
294 background-image: url('../images/device_usb_28x28.png');
295 }
296
297 .root-label[type=removable][subType=sd] {
298 background-image: url('../images/device_sd_28x28.png');
299 }
300
301 .root-label[type=removable][subType=optical] {
302 background-image: url('../images/device_optical_28x28.png');
303 }
304
305 /* TODO(kaznacheev): consider a better icon for subType=unknown.
306 Also find out if we need an icon for subType=mobile */
307 .root-label[type=removable][subType=unknown] {
308 background-image: url('../images/device_hd_28x28.png');
309 }
310
311 div.root-eject { 283 div.root-eject {
312 -webkit-transition: opacity 70ms linear; 284 -webkit-transition: opacity 70ms linear;
313 background-image: url('../images/eject.png'); 285 background-image: -webkit-image-set(
286 url('../images/files/ui/eject.png') 1x,
287 url('../images/files/ui/2x/eject.png') 2x);
314 background-position: center center; 288 background-position: center center;
315 background-repeat: no-repeat; 289 background-repeat: no-repeat;
316 cursor: pointer; 290 cursor: pointer;
317 height: 20px; 291 height: 20px;
318 margin-right: 6px; 292 margin-right: 6px;
319 opacity: 0; 293 opacity: 0;
320 width: 20px; 294 width: 20px;
321 } 295 }
322 296
323 div.root-eject:hover { 297 div.root-eject:hover {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 387
414 /* The final breadcrumb, representing the current directory. */ 388 /* The final breadcrumb, representing the current directory. */
415 .breadcrumb-last { 389 .breadcrumb-last {
416 color: black; 390 color: black;
417 cursor: default; 391 cursor: default;
418 } 392 }
419 393
420 /* The > arrow between breadcrumbs. */ 394 /* The > arrow between breadcrumbs. */
421 395
422 .breadcrumbs .separator { 396 .breadcrumbs .separator {
423 background-image: url('../images/breadcrumb-separator.png'); 397 background-image: -webkit-image-set(
398 url('../images/files/ui/breadcrumb-separator.png') 1x,
399 url('../images/files/ui/2x/breadcrumb-separator.png') 2x);
424 background-position: center center; 400 background-position: center center;
425 background-repeat: no-repeat; 401 background-repeat: no-repeat;
426 height: 10px; 402 height: 10px;
427 overflow: hidden; 403 overflow: hidden;
428 width: 25px; 404 width: 25px;
429 } 405 }
430 406
431 .dialog-header div[role=button] { 407 .dialog-header div[role=button] {
432 -webkit-transition: border-color 130ms linear; 408 -webkit-transition: border-color 130ms linear;
433 background-color: transparent; 409 background-color: transparent;
(...skipping 15 matching lines...) Expand all
449 .dialog-header div[role=button]:hover, 425 .dialog-header div[role=button]:hover,
450 .dialog-header div[role=button]:active { 426 .dialog-header div[role=button]:active {
451 border-color: #ddd; 427 border-color: #ddd;
452 } 428 }
453 429
454 .dialog-header div[role=button][disabled] { 430 .dialog-header div[role=button][disabled] {
455 background-color: #f1f1f1; 431 background-color: #f1f1f1;
456 } 432 }
457 433
458 #search-box { 434 #search-box {
459 background: url('../images/icon_search.png') no-repeat scroll 4px 3.5px; 435 background: -webkit-image-set(
436 url('../images/files/ui/icon_search.png') 1x,
437 url('../images/files/ui/2x/icon_search.png') 2x);
438 background-position: 4px 3.5px;
439 background-repeat: no-repeat;
460 display: -webkit-box; 440 display: -webkit-box;
461 height: 25px; 441 height: 25px;
462 margin-right: 10px; 442 margin-right: 10px;
463 padding-left: 22px; 443 padding-left: 22px;
464 } 444 }
465 445
466 #search-box, 446 #search-box,
467 #filename-input-box input { 447 #filename-input-box input {
468 border: 1px solid #BBB; 448 border: 1px solid #BBB;
469 border-radius: 2px; 449 border-radius: 2px;
470 } 450 }
471 451
452 button#detail-view {
453 background-image: -webkit-image-set(
454 url('../images/files/ui/view_list_black.png') 1x,
455 url('../images/files/ui/2x/view_list_black.png') 2x);
456 background-position: center;
457 background-repeat: no-repeat;
458 }
459
460
461 button#thumbnail-view {
462 background-image: -webkit-image-set(
463 url('../images/files/ui/view_thumbs_black.png') 1x,
464 url('../images/files/ui/2x/view_thumbs_black.png') 2x);
465 background-position: center;
466 background-repeat: no-repeat;
467 }
468
472 /* When detail-view is not disabled (thus thumbnail view is disabled), push 469 /* When detail-view is not disabled (thus thumbnail view is disabled), push
473 it up a little, to make it's right glowing border visible while focused.*/ 470 it up a little, to make it's right glowing border visible while focused.*/
474 button#detail-view:not([disabled]) { 471 button#detail-view:not([disabled]) {
475 z-index: 2; 472 z-index: 2;
476 } 473 }
477 474
478 .filelist-panel { 475 .filelist-panel {
479 -webkit-box-flex: 1; 476 -webkit-box-flex: 1;
480 -webkit-box-orient: vertical; 477 -webkit-box-orient: vertical;
481 display: -webkit-box; 478 display: -webkit-box;
482 } 479 }
483 480
484 #list-container { 481 #list-container {
485 -webkit-box-flex: 1; 482 -webkit-box-flex: 1;
486 display: -webkit-box; 483 display: -webkit-box;
487 position: relative; 484 position: relative;
488 } 485 }
489 486
490 .spinner { 487 .spinner {
491 background-image: url(../images/spinner.svg); 488 background-image: url(../images/common/spinner.svg);
492 background-size: 100%; 489 background-size: 100%;
493 height: 22px; 490 height: 22px;
494 left: 50%; 491 left: 50%;
495 margin-left: -11px; 492 margin-left: -11px;
496 margin-top: -11px; 493 margin-top: -11px;
497 opacity: 0.5; 494 opacity: 0.5;
498 position: absolute; 495 position: absolute;
499 top: 50%; 496 top: 50%;
500 width: 22px; 497 width: 22px;
501 } 498 }
502 499
503 .downloads-warning { 500 .downloads-warning {
504 -webkit-box-align: center; 501 -webkit-box-align: center;
505 -webkit-box-orient: horizontal; 502 -webkit-box-orient: horizontal;
506 -webkit-transition: height 70ms linear; 503 -webkit-transition: height 70ms linear;
507 background-color: #f0f0f0; 504 background-color: #f0f0f0;
505 background-image: -webkit-image-set(
506 url('../images/files/ui/warning_icon_square.png') 1x,
507 url('../images/files/ui/2x/warning_icon_square.png') 2x);
508 background-position: 15px center;
509 background-repeat: no-repeat;
508 color: #666; 510 color: #666;
509 display: -webkit-box; 511 display: -webkit-box;
510 font-size: 13px; 512 font-size: 13px;
511 height: 57px; 513 height: 57px;
512 overflow: hidden; 514 overflow: hidden;
515 padding-left: 57px; /* Make space for the icon. */
513 } 516 }
514 517
515 .downloads-warning[hidden] { 518 .downloads-warning[hidden] {
516 height: 0; 519 height: 0;
517 } 520 }
518 521
519 .downloads-warning img {
520 display: -webkit-box;
521 padding: 15px;
522 }
523
524 .downloads-warning div {
525 -webkit-box-flex: 1;
526 display: -webkit-box;
527 }
528
529 /* The cr.ui.Grid representing the detailed file list. */ 522 /* The cr.ui.Grid representing the detailed file list. */
530 .thumbnail-grid { 523 .thumbnail-grid {
531 overflow-y: auto; 524 overflow-y: auto;
532 width: 100%; 525 width: 100%;
533 } 526 }
534 527
535 /* Common styles for the grid view and draggable thumbnails. */ 528 /* Common styles for the grid view and draggable thumbnails. */
536 .thumbnail-item { 529 .thumbnail-item {
537 padding: 0; 530 padding: 0;
538 position: relative; 531 position: relative;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 dialogs have three nicely aligned columns of thumbnails. */ 572 dialogs have three nicely aligned columns of thumbnails. */
580 .thumbnail-grid .thumbnail-item { 573 .thumbnail-grid .thumbnail-item {
581 border: 2px solid transparent; /* Selection will make the border visible. */ 574 border: 2px solid transparent; /* Selection will make the border visible. */
582 height: 182px; 575 height: 182px;
583 margin-left: 8px; 576 margin-left: 8px;
584 margin-top: 7px; 577 margin-top: 7px;
585 width: 242px; 578 width: 242px;
586 } 579 }
587 580
588 .thumbnail-grid .thumbnail-frame { 581 .thumbnail-grid .thumbnail-frame {
589 background-image: url(../images/hashed_bg.gif); 582 background-image: -webkit-image-set(
583 url(../images/files/ui/hashed_bg.gif) 1x,
584 url(../images/files/ui/2x/hashed_bg.gif) 2x);
590 border: 1px solid rgb(217, 217, 217); 585 border: 1px solid rgb(217, 217, 217);
591 } 586 }
592 587
593 .thumbnail-grid .thumbnail-item[selected] .thumbnail-frame, 588 .thumbnail-grid .thumbnail-item[selected] .thumbnail-frame,
594 .thumbnail-grid .thumbnail-item:hover .thumbnail-frame { 589 .thumbnail-grid .thumbnail-item:hover .thumbnail-frame {
595 border-color: white; 590 border-color: white;
596 } 591 }
597 592
598 .thumbnail-grid .img-container { 593 .thumbnail-grid .img-container {
599 height: 100%; 594 height: 100%;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); 781 -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
787 background-color: #F2F2F2; 782 background-color: #F2F2F2;
788 border: 1px solid #fff; 783 border: 1px solid #fff;
789 height: 45px; 784 height: 45px;
790 margin: 0 0 0 -39px; /* Show 7 pixels of the overlapped image */ 785 margin: 0 0 0 -39px; /* Show 7 pixels of the overlapped image */
791 position: relative; 786 position: relative;
792 width: 45px; 787 width: 45px;
793 } 788 }
794 789
795 .preview-thumbnails > .thumbnail > .img-container { 790 .preview-thumbnails > .thumbnail > .img-container {
791 background-size: 45px 45px;
796 height: 45px; 792 height: 45px;
797 overflow: hidden; 793 overflow: hidden;
798 width: 45px; 794 width: 45px;
799 } 795 }
800 796
801 .preview-thumbnails > .popup { 797 .preview-thumbnails > .popup {
802 -webkit-transform: translate(0, 3px) scale(0.95); 798 -webkit-transform: translate(0, 3px) scale(0.95);
803 background-color: #F2F2F2; 799 background-color: #F2F2F2;
804 border: 2px solid #fff; 800 border: 2px solid #fff;
805 box-shadow: 0 0 0 1px #F0F0F0, 801 box-shadow: 0 0 0 1px #F0F0F0,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 /* Container for a table header. */ 842 /* Container for a table header. */
847 .table-header { 843 .table-header {
848 -webkit-box-sizing: border-box; 844 -webkit-box-sizing: border-box;
849 background-color: #f5f5f5; 845 background-color: #f5f5f5;
850 border-bottom: 1px #d2d2d2 solid; 846 border-bottom: 1px #d2d2d2 solid;
851 height: 27px; 847 height: 27px;
852 } 848 }
853 849
854 .table-header-sort-image-desc::after { 850 .table-header-sort-image-desc::after {
855 -webkit-padding-start: 13px; 851 -webkit-padding-start: 13px;
856 background-image: url(../images/sort_desc.png); 852 background-image: -webkit-image-set(
853 url(../images/files/ui/sort_desc.png) 1x,
854 url(../images/files/ui/2x/sort_desc.png) 2x);
857 background-position: center center; 855 background-position: center center;
858 background-repeat: no-repeat; 856 background-repeat: no-repeat;
859 color: #888; 857 color: #888;
860 content: '\00a0'; 858 content: '\00a0';
861 position: relative; 859 position: relative;
862 top: 1px; 860 top: 1px;
863 } 861 }
864 862
865 .table-header-sort-image-asc::after { 863 .table-header-sort-image-asc::after {
866 -webkit-padding-start: 13px; 864 -webkit-padding-start: 13px;
867 background-image: url(../images/sort_asc.png); 865 background-image: -webkit-image-set(
866 url(../images/files/ui/sort_asc.png) 1x,
867 url(../images/files/ui/2x/sort_asc.png) 2x);
868 background-position: center center; 868 background-position: center center;
869 background-repeat: no-repeat; 869 background-repeat: no-repeat;
870 color: #888; 870 color: #888;
871 content: '\00a0'; 871 content: '\00a0';
872 position: relative; 872 position: relative;
873 top: -1px; 873 top: -1px;
874 } 874 }
875 875
876 876
877 .preview-container .table-header { 877 .preview-container .table-header {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 934
935 #list-container li.table-row, 935 #list-container li.table-row,
936 #default-actions-list li { 936 #default-actions-list li {
937 border: none; 937 border: none;
938 border-top: 1px solid transparent; 938 border-top: 1px solid transparent;
939 line-height: 39px; 939 line-height: 39px;
940 padding-bottom: 1px; 940 padding-bottom: 1px;
941 padding-top: 1px; 941 padding-top: 1px;
942 } 942 }
943 943
944 /* The icon in the name column. */ 944 /* The icon in the name column. See file_types.css for specific icons. */
945 .detail-icon { 945 .detail-icon {
946 background-image: url(../images/filetype_generic.png);
947 background-position: center;
948 background-repeat: no-repeat;
949 height: 24px; 946 height: 24px;
950 width: 24px; 947 width: 24px;
951 } 948 }
952 949
953 /* Icon for files in the detail list. */
954 .detail-icon[iconType='archive'] {
955 background-image: url(../images/filetype_archive.png);
956 }
957
958 .detail-icon[iconType='audio'] {
959 background-image: url(../images/filetype_audio.png);
960 }
961
962 .detail-icon[iconType='device'] {
963 background-image: url(../images/filetype_device.png);
964 }
965
966 .detail-icon[iconType='excel'] {
967 background-image: url(../images/filetype_excel.png);
968 }
969
970 .detail-icon[iconType='folder'] {
971 background-image: url(../images/filetype_folder.png);
972 }
973
974 .detail-icon[iconType='html'] {
975 background-image: url(../images/filetype_html.png);
976 }
977
978 .detail-icon[iconType='image'] {
979 background-image: url(../images/filetype_image.png);
980 }
981
982 .detail-icon[iconType='pdf'] {
983 background-image: url(../images/filetype_pdf.png);
984 }
985
986 .detail-icon[iconType='ppt'] {
987 background-image: url(../images/filetype_ppt.png);
988 }
989
990 .detail-icon[iconType='video'] {
991 background-image: url(../images/filetype_video.png);
992 }
993
994 .detail-icon[iconType='word'] {
995 background-image: url(../images/filetype_word.png);
996 }
997
998 .detail-icon[iconType='gdoc'] {
999 background-image: url(../images/filetype_gdoc.png);
1000 }
1001
1002 .detail-icon[iconType='gsheet'] {
1003 background-image: url(../images/filetype_gsheet.png);
1004 }
1005
1006 .detail-icon[iconType='gslides'] {
1007 background-image: url(../images/filetype_gslides.png);
1008 }
1009
1010 .detail-icon[iconType='gdraw'] {
1011 background-image: url(../images/filetype_gdraw.png);
1012 }
1013
1014 .detail-icon[iconType='gtable'] {
1015 background-image: url(../images/filetype_gtable.png);
1016 }
1017
1018 .metadata-item { 950 .metadata-item {
1019 -webkit-box-flex: 1; 951 -webkit-box-flex: 1;
1020 -webkit-box-orient: horizontal; 952 -webkit-box-orient: horizontal;
1021 -webkit-padding-start: 8px; 953 -webkit-padding-start: 8px;
1022 display: -webkit-box; 954 display: -webkit-box;
1023 } 955 }
1024 956
1025 .metadata-label { 957 .metadata-label {
1026 -webkit-margin-end: 6px; 958 -webkit-margin-end: 6px;
1027 } 959 }
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 height: 112px; 1116 height: 112px;
1185 margin: 4px; 1117 margin: 4px;
1186 width: 112px; 1118 width: 112px;
1187 } 1119 }
1188 1120
1189 menu.file-context-menu { 1121 menu.file-context-menu {
1190 z-index: 4; 1122 z-index: 4;
1191 } 1123 }
1192 1124
1193 input.common.pin[type='checkbox']:checked::after { 1125 input.common.pin[type='checkbox']:checked::after {
1194 background-image: url('../images/pin.png'); 1126 background-image: -webkit-image-set(
1127 url('../images/files/ui/pin.png') 1x,
1128 url('../images/files/ui/2x/pin.png') 2x);
1195 background-position: 4px 0; 1129 background-position: 4px 0;
1196 } 1130 }
1197 1131
1198 div.offline { 1132 div.offline {
1199 -webkit-box-pack: center; 1133 -webkit-box-pack: center;
1200 display: -webkit-box; 1134 display: -webkit-box;
1201 } 1135 }
1202 1136
1203 div.offline > * { 1137 div.offline > * {
1204 -webkit-box-align: center; 1138 -webkit-box-align: center;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 body[ash] .dialog-title, 1225 body[ash] .dialog-title,
1292 body[type='full-page'] [invisibleif='full-page'], 1226 body[type='full-page'] [invisibleif='full-page'],
1293 body:not([type='full-page']) [visibleif='full-page'], 1227 body:not([type='full-page']) [visibleif='full-page'],
1294 body:not([type='saveas-file']) [visibleif='saveas-file'], 1228 body:not([type='saveas-file']) [visibleif='saveas-file'],
1295 body:not([type='saveas-file']):not([type='full-page']) 1229 body:not([type='saveas-file']):not([type='full-page'])
1296 [visibleif='saveas-file full-page'] { 1230 [visibleif='saveas-file full-page'] {
1297 display: none; 1231 display: none;
1298 } 1232 }
1299 1233
1300 #gdata-settings { 1234 #gdata-settings {
1235 background-image: url('../images/files/ui/settings.svg');
1236 background-position: 20px center;
1237 background-repeat: no-repeat;
1301 overflow: hidden; 1238 overflow: hidden;
1302 text-align: left; 1239 text-align: left;
1303 width: 54px; 1240 width: 54px;
1304 } 1241 }
1305 1242
1306 #gdata-settings img {
1307 margin-left: 12px;
1308 }
1309
1310 #gdata-settings span.disclosureindicator { 1243 #gdata-settings span.disclosureindicator {
1311 float: none; 1244 float: none;
1312 margin-left: 1px; 1245 margin-left: 42px;
1313 } 1246 }
1314 1247
1315 /* To animate the #gdata-settings element to invisibility we set every property 1248 /* To animate the #gdata-settings element to invisibility we set every property
1316 that affects its horizontal size to 0. */ 1249 that affects its horizontal size to 0. */
1317 .dialog-container:not([gdata]) #gdata-settings { 1250 .dialog-container:not([gdata]) #gdata-settings {
1318 border-color: transparent; /* Changing only the color to preserve layout. */ 1251 border-color: transparent; /* Changing only the color to preserve layout. */
1319 border-left-width: 0; 1252 border-left-width: 0;
1320 border-right-width: 0; 1253 border-right-width: 0;
1321 margin: 0; 1254 margin: 0;
1322 min-width: 0; 1255 min-width: 0;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 width: 50%; 1385 width: 50%;
1453 } 1386 }
1454 1387
1455 #list-container .table-header-inner { 1388 #list-container .table-header-inner {
1456 height: 100%; 1389 height: 100%;
1457 } 1390 }
1458 1391
1459 #list-container .table-header-cell:hover { 1392 #list-container .table-header-cell:hover {
1460 background-color: #f2f2f2; 1393 background-color: #f2f2f2;
1461 } 1394 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698