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

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

Issue 8554003: [filebrowser] Add left panel with roots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2011 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 background-image: -webkit-linear-gradient(top, #fff,#f6f6f6); 93 background-image: -webkit-linear-gradient(top, #fff,#f6f6f6);
94 border-bottom: 1px #d6d9e3 solid; 94 border-bottom: 1px #d6d9e3 solid;
95 color: #42506c; 95 color: #42506c;
96 font-size: 15px; 96 font-size: 15px;
97 font-weight: bold; 97 font-weight: bold;
98 height: 32px; 98 height: 32px;
99 padding-top: 8px; 99 padding-top: 8px;
100 padding-bottom: 8px; 100 padding-bottom: 8px;
101 } 101 }
102 102
103 /* Main part of the dialog between header and footer. */
104 .dialog-container {
105 display: -webkit-box;
106 -webkit-box-orient: horizontal;
107 -webkit-box-align: stretch;
108 overflow: hidden;
109 -webkit-box-flex: 1;
110 }
111
112 /* List/grid and preview are inside this container. */
113 .dialog-main {
114 -webkit-box-flex: 1;
115 display:-webkit-box;
116 -webkit-box-orient: vertical;
117 -webkit-box-align: stretch;
118 }
119
120 /* Roots list at the left. */
121 .dialog-sidebar {
122 position: relative;
123 -webkit-box-flex: 0;
124 width: 200px;
125 margin-left: -200px;
arv (Not doing code reviews) 2011/12/01 19:08:29 -webkit-margin-start
126 background-color: rgba(240, 240, 240, 1);
127 margin-bottom: 15px;
128 margin-top: 15px;
129 -webkit-border-top-right-radius: 4px;
130 -webkit-border-top-left-radius: 4px;
131 -webkit-border-bottom-left-radius: 4px;
132 -webkit-transition: margin-left 180ms ease;
133 overflow: hidden;
134 }
135
136 .dialog-container[sidebar] .dialog-sidebar {
137 margin-left: 15px;
arv (Not doing code reviews) 2011/12/01 19:08:29 -webkit-margin-start
138 }
139
140 /* Roots list at the left. */
141 list.roots-list {
142 width: 100%;
143 }
144
145 list.roots-list > * {
146 border: none;
147 border-radius: 0;
148 line-height: 35px;
149 margin: 0;
150 padding: 0 5px;
151 background-color: rgba(240,240,240,1);
arv (Not doing code reviews) 2011/12/01 19:08:29 whitespace after commas
152 }
153
154 list.roots-list > [lead],
155 list.roots-list > [selected],
156 list.roots-list > [anchor] {
157 background-color: hsl(214,91%,89%);
158 }
159
160 list.roots-list > [lead]:hover,
161 list.roots-list > [selected]:hover,
162 list.roots-list > [anchor]:hover {
163 background-color: hsl(214,91%,87%);
164 }
165
166 list.roots-list li.root-item {
167 display: -webkit-box;
168 -webkit-box-align: center;
169 -webkit-box-pack: start;
170 }
171
172 li.root-item > * {
173 display: block;
174 margin-right: 5px;
175 }
176
177 li.root-item > .spacer {
178 -webkit-box-flex: 1;
179 }
180
181 img.root-eject {
182 opacity: 0.5;
183 cursor: pointer;
184 width: 15px;
185 height: 12px;
186 }
187
188 img.root-eject:hover {
189 opacity: 1;
190 }
191
103 /* Breadcrumbs and things under the title but above the list view. */ 192 /* Breadcrumbs and things under the title but above the list view. */
104 .dialog-header { 193 .dialog-header {
105 -webkit-box-orient: horizontal; 194 -webkit-box-orient: horizontal;
106 -webkit-box-align: center; 195 -webkit-box-align: center;
107 display: -webkit-box; 196 display: -webkit-box;
108 margin: 15px; 197 margin-top: 15px;
arv (Not doing code reviews) 2011/12/01 19:08:29 Use margin: 15px 15px 4px 15px;
198 margin-right: 15px;
109 margin-bottom: 4px; 199 margin-bottom: 4px;
200 margin-left: 15px;
201 -webkit-transition: all 180ms ease;
202 }
203
204 /* Container for the detail and thumbnail (not implemented yet) list views. */
205 .dialog-container[sidebar] .dialog-header {
206 margin-left: 0;
110 } 207 }
111 208
112 /* Container for the detail and thumbnail (not implemented yet) list views. */ 209 /* Close sidebar button. */
210 div.close-sidebar {
arv (Not doing code reviews) 2011/12/01 19:08:29 skip div here. In general skip the tag name in fro
211 cursor: pointer;
212 position: absolute;
213 right: 0;
arv (Not doing code reviews) 2011/12/01 19:08:29 RTL? Any time you have left or right you also nee
214 top: 2px;
215 display: none;
216 z-index: 10;
217 background-color: white;
218 border: 1px solid rgba(200,200,200,1);
219 width: 13px;
220 height: 24px;
221 }
222
223 div.close-sidebar:hover {
224 background-color: rgba(240,240,240,1);
225 }
226
227 /* Open sidebar button. */
228 div.open-sidebar {
229 cursor: pointer;
230 margin-right: 10px;
arv (Not doing code reviews) 2011/12/01 19:08:29 -webkit-margin-end
231 background-color: white;
232 width: 13px;
233 height: 24px;
234 }
235
236 div.open-sidebar:hover {
237 background-color: rgba(240,240,240,1);
238 }
239
240 .dialog-container[sidebar] div.open-sidebar {
241 display: none;;
242 }
243
244 .dialog-container[sidebar] div.close-sidebar {
245 display: block;
246 }
247
248 /* Container for the detail and thumbnail list views. */
113 .dialog-body { 249 .dialog-body {
114 -webkit-box-orient: vertical; 250 -webkit-box-orient: vertical;
115 -webkit-box-flex: 1; 251 -webkit-box-flex: 1;
116 border: 1px #aaa solid; 252 border: 1px #aaa solid;
117 border-radius: 4px; 253 border-radius: 4px;
118 display: -webkit-box; 254 display: -webkit-box;
119 margin: 15px; 255 margin-right: 15px;
120 margin-top: 0; 256 margin-bottom: 15px;
257 margin-left: 15px;
121 overflow: hidden; 258 overflow: hidden;
259 -webkit-transition: all 180ms ease;
260 }
261
262 .dialog-container[sidebar] .dialog-body {
263 -webkit-border-top-left-radius: 0;
264 -webkit-border-bottom-left-radius: 0;
265 margin-left: 0;
arv (Not doing code reviews) 2011/12/01 19:08:29 -webkti-margin-start
122 } 266 }
123 267
124 /* Container for the ok/cancel buttons. */ 268 /* Container for the ok/cancel buttons. */
125 .dialog-footer { 269 .dialog-footer {
126 -webkit-box-orient: horizontal; 270 -webkit-box-orient: horizontal;
127 display: -webkit-box; 271 display: -webkit-box;
128 margin: 15px; 272 margin: 15px;
129 margin-top: 0; 273 margin-top: 0;
130 } 274 }
131 275
132 /* The container for breadcrumb elements. */ 276 /* The container for breadcrumb elements. */
133 .breadcrumbs { 277 .breadcrumbs {
134 -webkit-box-orient: horizontal; 278 -webkit-box-orient: horizontal;
135 -webkit-box-flex: 1; 279 -webkit-box-flex: 1;
136 display: -webkit-box; 280 display: -webkit-box;
281 -webkit-box-align: center;
137 font-size: 15px; 282 font-size: 15px;
138 line-height: 15px; 283 line-height: 15px;
139 height: 18px; 284 height: 18px;
140 overflow: hidden; 285 overflow: hidden;
141 text-overflow: ellipsis; 286 text-overflow: ellipsis;
142 white-space: nowrap; 287 white-space: nowrap;
143 } 288 }
144 289
290 .dialog-container[sidebar] .breadcrumbs {
291 margin: 10px;
292 }
293
294 /* Icon at the start of breadcrumb path. Corresponds to the root selected. */
295 .breadcrumb-icon {
296 margin: 5px;
297 display: block;
298 }
299
300 .dialog-container[sidebar] .breadcrumb-icon {
301 display: none;
302 }
303
145 /* A single directory name in the list of path breadcrumbs. */ 304 /* A single directory name in the list of path breadcrumbs. */
146 .breadcrumb-path { 305 .breadcrumb-path {
147 color: #265692; 306 color: #265692;
148 cursor: pointer; 307 cursor: pointer;
149 font-size: 14px; 308 font-size: 14px;
150 } 309 }
151 310
152 /* The final breadcrumb, representing the current directory. */ 311 /* The final breadcrumb, representing the current directory. */
153 .breadcrumb-last { 312 .breadcrumb-last {
154 color: #666; 313 color: #666;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 padding: 15px; 362 padding: 15px;
204 } 363 }
205 364
206 .downloads-warning div { 365 .downloads-warning div {
207 display: -webkit-box; 366 display: -webkit-box;
208 -webkit-box-flex: 1; 367 -webkit-box-flex: 1;
209 } 368 }
210 369
211 /* The cr.ui.Grid representing the detailed file list. */ 370 /* The cr.ui.Grid representing the detailed file list. */
212 .thumbnail-grid { 371 .thumbnail-grid {
213 position: absolute; 372 width: 100%;
214 top: 0;
215 left: 0;
216 border: 0;
217 overflow-y: scroll; 373 overflow-y: scroll;
218 } 374 }
219 375
220 /* An item in the thumbnail view. */ 376 /* An item in the thumbnail view. */
221 .thumbnail-item { 377 .thumbnail-item {
222 margin-top: 10px; 378 margin-top: 10px;
223 margin-left: 10px; 379 margin-left: 10px;
224 width: 120px; 380 width: 120px;
225 height: 145px; 381 height: 145px;
226 text-align: center; 382 text-align: center;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 } 417 }
262 418
263 /* Text box used for renaming in the thumbnail list. */ 419 /* Text box used for renaming in the thumbnail list. */
264 .thumbnail-grid input.rename { 420 .thumbnail-grid input.rename {
265 -webkit-margin-start: -2px; 421 -webkit-margin-start: -2px;
266 position: absolute; 422 position: absolute;
267 } 423 }
268 424
269 /* The cr.ui.Table representing the detailed file list. */ 425 /* The cr.ui.Table representing the detailed file list. */
270 .detail-table { 426 .detail-table {
271 position: absolute; 427 width: 100%;
272 top: 0;
273 left: 0;
274 border: 0; 428 border: 0;
275 } 429 }
276 430
277 /* Bottom pane describing current selection. */ 431 /* Bottom pane describing current selection. */
278 .preview-panel { 432 .preview-panel {
279 -webkit-box-orient: horizontal; 433 -webkit-box-orient: horizontal;
280 display: -webkit-box; 434 display: -webkit-box;
281 height: 61px; 435 height: 61px;
282 background-color: #F0F0F0; 436 background-color: #F0F0F0;
283 padding: 0px 14px 0px 14px; 437 padding: 0px 14px 0px 14px;
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 /* Overlay pane covering the entire file manager window (e.g. image editor)*/ 766 /* Overlay pane covering the entire file manager window (e.g. image editor)*/
613 .overlay-pane { 767 .overlay-pane {
614 position: absolute; 768 position: absolute;
615 top: 0; 769 top: 0;
616 left: 0; 770 left: 0;
617 width: 100%; 771 width: 100%;
618 height: 100%; 772 height: 100%;
619 border: none; 773 border: none;
620 z-index: 100; 774 z-index: 100;
621 } 775 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/component_extension_resources.grd ('k') | chrome/browser/resources/file_manager/images/add_drive.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698