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

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

Issue 9856014: Dragging files (not dropping yet). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 /* 1 /*
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* Outer frame of the dialog. */ 7 /* Outer frame of the dialog. */
8 body { 8 body {
9 -webkit-box-flex: 1; 9 -webkit-box-flex: 1;
10 -webkit-box-orient: vertical; 10 -webkit-box-orient: vertical;
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 div.img-container { 576 div.img-container {
577 position: relative; 577 position: relative;
578 overflow: hidden; 578 overflow: hidden;
579 margin: 4px; 579 margin: 4px;
580 width: 112px; 580 width: 112px;
581 height: 112px; 581 height: 112px;
582 } 582 }
583 583
584 div.img-container > img { 584 div.img-container > img {
585 position: absolute; 585 position: absolute;
586 -webkit-user-drag: none;
586 } 587 }
587 588
588 .list-container list > *, 589 .list-container list > *,
589 .list-container grid > * { 590 .list-container grid > * {
590 background-image: none; 591 background-image: none;
591 border-radius: 0; 592 border-radius: 0;
592 line-height: 30px; 593 line-height: 30px;
593 } 594 }
594 595
595 .list-container list > [selected], 596 .list-container list > [selected],
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 } 651 }
651 652
652 /* Text box used for renaming in the thumbnail list. */ 653 /* Text box used for renaming in the thumbnail list. */
653 .thumbnail-grid input.rename { 654 .thumbnail-grid input.rename {
654 -webkit-margin-start: -1px; 655 -webkit-margin-start: -1px;
655 width: 114px; 656 width: 114px;
656 height: 20px; 657 height: 20px;
657 -webkit-box-sizing: border-box; 658 -webkit-box-sizing: border-box;
658 } 659 }
659 660
661 .thumbnail-grid li,
662 .detail-table list li {
663 -webkit-user-drag: element;
664 }
665
660 /* The cr.ui.Table representing the detailed file list. */ 666 /* The cr.ui.Table representing the detailed file list. */
661 .detail-table { 667 .detail-table {
662 width: 100%; 668 width: 100%;
663 border: 0; 669 border: 0;
664 } 670 }
665 671
666 /* Bottom pane describing current selection. */ 672 /* Bottom pane describing current selection. */
667 .preview-panel { 673 .preview-panel {
668 -webkit-box-orient: horizontal; 674 -webkit-box-orient: horizontal;
669 display: -webkit-box; 675 display: -webkit-box;
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 color: #666666; 1039 color: #666666;
1034 overflow: hidden; 1040 overflow: hidden;
1035 padding: 5px; 1041 padding: 5px;
1036 text-overflow: ellipsis; 1042 text-overflow: ellipsis;
1037 white-space: nowrap; 1043 white-space: nowrap;
1038 vertical-align: middle; 1044 vertical-align: middle;
1039 } 1045 }
1040 1046
1041 .dialog-footer .filename-label { 1047 .dialog-footer .filename-label {
1042 -webkit-box-orient: horizontal; 1048 -webkit-box-orient: horizontal;
1049 background-color: white;
1043 color: #666; 1050 color: #666;
1044 display: -webkit-box; 1051 display: -webkit-box;
1045 font-weight: bold; 1052 font-weight: bold;
1046 padding-top: 4px; 1053 padding-top: 4px;
1047 padding-right: 4px; 1054 padding-right: 4px;
1048 } 1055 }
1049 1056
1050 .detail-name > * { 1057 .detail-name > * {
1051 display: -webkit-box; 1058 display: -webkit-box;
1052 -webkit-box-align: center; 1059 -webkit-box-align: center;
(...skipping 30 matching lines...) Expand all
1083 .overlay-pane { 1090 .overlay-pane {
1084 position: absolute; 1091 position: absolute;
1085 top: 0; 1092 top: 0;
1086 left: 0; 1093 left: 0;
1087 width: 100%; 1094 width: 100%;
1088 height: 100%; 1095 height: 100%;
1089 border: none; 1096 border: none;
1090 z-index: 100; 1097 z-index: 100;
1091 } 1098 }
1092 1099
1100 /* Invisible container for elements representing files while dragging. */
1101 #drag-image-container {
1102 position: fixed;
1103 /* Only nodes in visiblt viewport will be rendered. */
dgozman 2012/03/26 13:10:23 typo: visibilt
SeRya 2012/03/26 13:37:45 Done.
1104 top: 0;
1105 left: 0;
1106 display: -webkit-box;
1107 -webkit-box-orient: horizontal;
1108 padding-left: 100px;
1109 z-index: -1; /* below .dialog-container */
1110 }
1111
1112 #drag-image-container > li {
dgozman 2012/03/26 13:10:23 If you make this |list|. and not a |div|, this sty
SeRya 2012/03/26 13:37:45 Done.
1113 display: inline-block;
1114 background-color: #CBDBF1;
1115 border-color: #E0E9F7;
1116 border: 1px solid white; /* transparent white */
1117 cursor: default;
1118 line-height: 20px;
1119 margin: 0 0 0 -100px;
1120 overflow: hidden;
1121 padding: 0 3px;
1122 position: relative; /* to allow overlap */
1123 text-overflow: ellipsis;
1124 white-space: pre;
1125 }
1126
1127 #drag-image-container > li input[type=checkbox] {
1128 display: none;
1129 }
1130
1093 menu.file-context-menu { 1131 menu.file-context-menu {
1094 z-index: 4; 1132 z-index: 4;
1095 } 1133 }
1096 1134
1097 input.common.pin[type="checkbox"]:checked::after { 1135 input.common.pin[type="checkbox"]:checked::after {
1098 content: url('../images/pin.png'); 1136 content: url('../images/pin.png');
1099 left: 3px; 1137 left: 3px;
1100 top: -4px; 1138 top: -4px;
1101 } 1139 }
1102 1140
1103 div.offline { 1141 div.offline {
1104 -webkit-box-pack: center; 1142 -webkit-box-pack: center;
1105 display: -webkit-box; 1143 display: -webkit-box;
1106 } 1144 }
1107 1145
1108 div.offline > * { 1146 div.offline > * {
1109 -webkit-box-align: center; 1147 -webkit-box-align: center;
1110 display: -webkit-box; 1148 display: -webkit-box;
1111 } 1149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698