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

Side by Side Diff: ui/file_manager/file_manager/foreground/css/file_manager.css

Issue 962103002: Files.app: Introduce check-select mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove remaining debug log. Created 5 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
OLDNEW
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2014 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 /* Special attribute used in HTML to hide elements. */ 5 /* Special attribute used in HTML to hide elements. */
6 body[type='folder'] [invisibleif~='folder'], 6 body[type='folder'] [invisibleif~='folder'],
7 body[type='upload-folder'] [invisibleif~='upload-folder'], 7 body[type='upload-folder'] [invisibleif~='upload-folder'],
8 body[type='saveas-file'] [invisibleif~='saveas-file'], 8 body[type='saveas-file'] [invisibleif~='saveas-file'],
9 body[type='open-file'] [invisibleif~='open-file'], 9 body[type='open-file'] [invisibleif~='open-file'],
10 body[type='open-multi-file'] [invisibleif~='open-multi-file'], 10 body[type='open-multi-file'] [invisibleif~='open-multi-file'],
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 border-bottom: 1px solid rgb(56, 179, 244); 245 border-bottom: 1px solid rgb(56, 179, 244);
246 color: white; 246 color: white;
247 display: flex; 247 display: flex;
248 flex: none; 248 flex: none;
249 flex-direction: row; 249 flex-direction: row;
250 height: 48px; 250 height: 48px;
251 margin: 0; 251 margin: 0;
252 transition: background 220ms ease; 252 transition: background 220ms ease;
253 } 253 }
254 254
255 body.selecting .dialog-header { 255 body.check-select .dialog-header {
256 background: white; 256 background: white;
257 border-bottom: 1px solid rgb(219, 219, 219); 257 border-bottom: 1px solid rgb(219, 219, 219);
258 color: rgb(90, 90, 90); 258 color: rgb(90, 90, 90);
259 } 259 }
260 260
261 .dialog-header > .spacer { 261 .dialog-header > .spacer {
262 flex: auto; 262 flex: auto;
263 } 263 }
264 264
265 .dialog-header button { 265 .dialog-header button {
266 cursor: pointer; 266 cursor: pointer;
267 text-transform: uppercase; 267 text-transform: uppercase;
268 } 268 }
269 269
270 .dialog-header button, 270 .dialog-header button,
271 .dialog-header button:hover { 271 .dialog-header button:hover {
272 color: white; 272 color: white;
273 } 273 }
274 274
275 body.selecting button, 275 body.check-select button,
276 body.selecting button:hover { 276 body.check-select button:hover {
277 color: rgb(90, 90, 90); 277 color: rgb(90, 90, 90);
278 } 278 }
279 279
280 .dialog-header .icon-button { 280 .dialog-header .icon-button {
281 -webkit-margin-end: 4px; 281 -webkit-margin-end: 4px;
282 -webkit-margin-start: 12px; 282 -webkit-margin-start: 12px;
283 background-color: transparent; 283 background-color: transparent;
284 background-position: center; 284 background-position: center;
285 background-repeat: no-repeat; 285 background-repeat: no-repeat;
286 background-size: 16px 16px; 286 background-size: 16px 16px;
287 border: 0; 287 border: 0;
288 border-radius: 16px; 288 border-radius: 16px;
289 height: 32px; 289 height: 32px;
290 line-height: 16px; 290 line-height: 16px;
291 min-width: 32px; 291 min-width: 32px;
292 padding: 0; 292 padding: 0;
293 width: 32px; 293 width: 32px;
294 } 294 }
295 295
296 .dialog-header .icon-button paper-ripple { 296 .dialog-header .icon-button paper-ripple {
297 color: black; 297 color: black;
298 } 298 }
299 299
300 body.selecting .dialog-header .icon-button paper-ripple { 300 body.check-select .dialog-header .icon-button paper-ripple {
301 rgb(90, 90, 90); 301 rgb(90, 90, 90);
302 } 302 }
303 303
304 .dialog-header .icon-button:hover, 304 .dialog-header .icon-button:hover,
305 .dialog-header .icon-button:focus, 305 .dialog-header .icon-button:focus,
306 .dialog-header .combobutton:hover, 306 .dialog-header .combobutton:hover,
307 .dialog-header .combobutton:focus { 307 .dialog-header .combobutton:focus {
308 background-color: rgba(90, 90, 90, 0.15); 308 background-color: rgba(90, 90, 90, 0.15);
309 } 309 }
310 310
311 body.selecting .dialog-header .icon-button:hover, 311 body.check-select .dialog-header .icon-button:hover,
312 body.selecting .dialog-header .icon-button:focus, 312 body.check-select .dialog-header .icon-button:focus,
313 body.selecting .dialog-header .combobutton:hover, 313 body.check-select .dialog-header .combobutton:hover,
314 body.selecting .dialog-header .combobutton:focus { 314 body.check-select .dialog-header .combobutton:focus {
315 background-color: rgba(153, 153, 153, 0.20); 315 background-color: rgba(153, 153, 153, 0.20);
316 } 316 }
317 317
318 .dialog-header .icon-button[disabled]:not(.manual-display) { 318 .dialog-header .icon-button[disabled]:not(.manual-display) {
319 display: none !important; 319 display: none !important;
320 } 320 }
321 321
322 .dialog-header core-icon, 322 .dialog-header core-icon,
323 .dialog-header .icon { 323 .dialog-header .icon {
324 height: 16px; 324 height: 16px;
(...skipping 23 matching lines...) Expand all
348 .dialog-header button.icon-button > core-icon { 348 .dialog-header button.icon-button > core-icon {
349 margin: 8px; 349 margin: 8px;
350 } 350 }
351 351
352 #search-button { 352 #search-button {
353 background-image: -webkit-image-set( 353 background-image: -webkit-image-set(
354 url(../images/files/ui/search_white.png) 1x, 354 url(../images/files/ui/search_white.png) 1x,
355 url(../images/files/ui/2x/search_white.png) 2x); 355 url(../images/files/ui/2x/search_white.png) 2x);
356 } 356 }
357 357
358 body.selecting #search-button { 358 body.check-select #search-button {
359 background-image: -webkit-image-set( 359 background-image: -webkit-image-set(
360 url(../images/files/ui/search.png) 1x, 360 url(../images/files/ui/search.png) 1x,
361 url(../images/files/ui/2x/search.png) 2x); 361 url(../images/files/ui/2x/search.png) 2x);
362 } 362 }
363 363
364 #share-button { 364 #share-button {
365 background-image: -webkit-image-set( 365 background-image: -webkit-image-set(
366 url(../images/files/ui/share_white.png) 1x, 366 url(../images/files/ui/share_white.png) 1x,
367 url(../images/files/ui/2x/share_white.png) 2x); 367 url(../images/files/ui/2x/share_white.png) 2x);
368 } 368 }
369 369
370 body.selecting #share-button { 370 body.check-select #share-button {
371 background-image: -webkit-image-set( 371 background-image: -webkit-image-set(
372 url(../images/files/ui/share.png) 1x, 372 url(../images/files/ui/share.png) 1x,
373 url(../images/files/ui/2x/share.png) 2x); 373 url(../images/files/ui/2x/share.png) 2x);
374 } 374 }
375 375
376 #delete-button { 376 #delete-button {
377 background-image: -webkit-image-set( 377 background-image: -webkit-image-set(
378 url(../images/files/ui/delete_white.png) 1x, 378 url(../images/files/ui/delete_white.png) 1x,
379 url(../images/files/ui/2x/delete_white.png) 2x); 379 url(../images/files/ui/2x/delete_white.png) 2x);
380 } 380 }
381 381
382 body.selecting #delete-button { 382 body.check-select #delete-button {
383 background-image: -webkit-image-set( 383 background-image: -webkit-image-set(
384 url(../images/files/ui/delete.png) 1x, 384 url(../images/files/ui/delete.png) 1x,
385 url(../images/files/ui/2x/delete.png) 2x); 385 url(../images/files/ui/2x/delete.png) 2x);
386 } 386 }
387 387
388 #view-button { 388 #view-button {
389 background-image: -webkit-image-set( 389 background-image: -webkit-image-set(
390 url(../images/files/ui/view_list_white.png) 1x, 390 url(../images/files/ui/view_list_white.png) 1x,
391 url(../images/files/ui/2x/view_list_white.png) 2x); 391 url(../images/files/ui/2x/view_list_white.png) 2x);
392 } 392 }
393 393
394 body.selecting #view-button { 394 body.check-select #view-button {
395 background-image: -webkit-image-set( 395 display: none;
396 url(../images/files/ui/view_list.png) 1x,
397 url(../images/files/ui/2x/view_list.png) 2x);
398 } 396 }
399 397
400 #view-button.thumbnail { 398 #view-button.thumbnail {
401 background-image: -webkit-image-set( 399 background-image: -webkit-image-set(
402 url(../images/files/ui/view_thumbnail_white.png) 1x, 400 url(../images/files/ui/view_thumbnail_white.png) 1x,
403 url(../images/files/ui/2x/view_thumbnail_white.png) 2x); 401 url(../images/files/ui/2x/view_thumbnail_white.png) 2x);
404 } 402 }
405 403
406 body.selecting #view-button.thumbnail { 404 body.check-select #view-button.thumbnail {
407 background-image: -webkit-image-set( 405 display: none;
408 url(../images/files/ui/view_thumbnail.png) 1x,
409 url(../images/files/ui/2x/view_thumbnail.png) 2x);
410 } 406 }
411 407
412 #gear-button { 408 #gear-button {
413 background-image: -webkit-image-set( 409 background-image: -webkit-image-set(
414 url(../images/files/ui/menu_white.png) 1x, 410 url(../images/files/ui/menu_white.png) 1x,
415 url(../images/files/ui/2x/menu_white.png) 2x); 411 url(../images/files/ui/2x/menu_white.png) 2x);
416 } 412 }
417 413
418 body.selecting #gear-button { 414 body.check-select #gear-button {
419 background-image: -webkit-image-set( 415 display: none;
420 url(../images/files/ui/menu.png) 1x,
421 url(../images/files/ui/2x/menu.png) 2x);
422 } 416 }
423 417
424 #cloud-import-details-button { 418 #cloud-import-details-button {
425 margin-left: -15px; 419 margin-left: -15px;
426 } 420 }
427 421
428 #cloud-import-details { 422 #cloud-import-details {
429 background-color: white; 423 background-color: white;
430 border-radius: 2px; 424 border-radius: 2px;
431 line-height: 1.5em; 425 line-height: 1.5em;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 background-color: #1BA8F3; 489 background-color: #1BA8F3;
496 color: white; 490 color: white;
497 margin-top: 20px; 491 margin-top: 20px;
498 } 492 }
499 493
500 #files-selected-label { 494 #files-selected-label {
501 display: none; 495 display: none;
502 margin: 0 10px; 496 margin: 0 10px;
503 } 497 }
504 498
505 body.selecting #files-selected-label { 499 body.check-select #files-selected-label {
506 display: block; 500 display: block;
507 } 501 }
508 502
509 #cancel-selection-button { 503 #cancel-selection-button {
510 display: none; 504 display: none;
511 margin: 0 8px; 505 margin: 0 8px;
512 text-transform: none; 506 text-transform: none;
513 } 507 }
514 508
515 #cancel-selection-button .icon-arrow-back { 509 #cancel-selection-button .icon-arrow-back {
516 -webkit-margin-end: 8px; 510 -webkit-margin-end: 8px;
517 background-image: -webkit-image-set( 511 background-image: -webkit-image-set(
518 url(../images/files/ui/back.png) 1x, 512 url(../images/files/ui/back.png) 1x,
519 url(../images/files/ui/2x/back.png) 2x); 513 url(../images/files/ui/2x/back.png) 2x);
520 background-position: center; 514 background-position: center;
521 background-repeat: no-repeat; 515 background-repeat: no-repeat;
522 height: 16px; 516 height: 16px;
523 width: 16px; 517 width: 16px;
524 } 518 }
525 519
526 #cancel-selection-button-wrapper { 520 #cancel-selection-button-wrapper {
527 width: 240px; /* initial value, same as .dialog-navigation-list's width. */ 521 width: 240px; /* initial value, same as .dialog-navigation-list's width. */
528 } 522 }
529 523
530 #cancel-selection-button > core-icon { 524 #cancel-selection-button > core-icon {
531 -webkit-margin-end: 6px; 525 -webkit-margin-end: 6px;
532 } 526 }
533 527
534 body.selecting #cancel-selection-button { 528 body.check-select #cancel-selection-button {
535 display: inline-block; 529 display: inline-block;
536 } 530 }
537 531
538 /* Search button */ 532 /* Search button */
539 body.selecting #search-button { 533 body.check-select #search-button {
540 display: none; 534 display: none;
541 } 535 }
542 536
543 /* Search box */ 537 /* Search box */
544 #search-box { 538 #search-box {
545 display: flex; 539 display: flex;
546 flex: none; 540 flex: none;
547 } 541 }
548 542
549 body.selecting #search-box { 543 body.check-select #search-box {
550 display: none; 544 display: none;
551 } 545 }
552 546
553 #search-box input { 547 #search-box input {
554 cursor: default; 548 cursor: default;
555 display: inline-block; 549 display: inline-block;
556 transition: width 0.2s ease; 550 transition: width 0.2s ease;
557 width: 0; 551 width: 0;
558 } 552 }
559 553
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 -webkit-margin-start: 16px; 778 -webkit-margin-start: 16px;
785 align-items: center; 779 align-items: center;
786 display: flex; 780 display: flex;
787 flex: auto; 781 flex: auto;
788 flex-direction: row; 782 flex-direction: row;
789 line-height: 20px; 783 line-height: 20px;
790 overflow: hidden; 784 overflow: hidden;
791 padding-top: 1px; 785 padding-top: 1px;
792 } 786 }
793 787
794 body.selecting .breadcrumbs { 788 body.check-select .breadcrumbs {
795 display: none; 789 display: none;
796 } 790 }
797 791
798 .breadcrumbs > [collapsed]::before { 792 .breadcrumbs > [collapsed]::before {
799 content: '...'; 793 content: '...';
800 } 794 }
801 795
802 .breadcrumbs > [collapsed] { 796 .breadcrumbs > [collapsed] {
803 width: 1em; 797 width: 1em;
804 } 798 }
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 position: absolute; 1038 position: absolute;
1045 top: 9px; 1039 top: 9px;
1046 transition: opacity 220ms ease; 1040 transition: opacity 220ms ease;
1047 width: 34px; 1041 width: 34px;
1048 } 1042 }
1049 1043
1050 body.selecting .thumbnail-grid .checkmark { 1044 body.selecting .thumbnail-grid .checkmark {
1051 background-image: -webkit-image-set( 1045 background-image: -webkit-image-set(
1052 url(../images/files/ui/thumbnail_unchecked.png) 1x, 1046 url(../images/files/ui/thumbnail_unchecked.png) 1x,
1053 url(../images/files/ui/2x/thumbnail_unchecked.png) 2x); 1047 url(../images/files/ui/2x/thumbnail_unchecked.png) 2x);
1048 opacity: 0.6;
1049 }
1050
1051 body.check-select .thumbnail-grid .thumbnail-item .checkmark {
1052 background-image: -webkit-image-set(
1053 url(../images/files/ui/thumbnail_unchecked.png) 1x,
1054 url(../images/files/ui/2x/thumbnail_unchecked.png) 2x);
1054 opacity: 1; 1055 opacity: 1;
1055 } 1056 }
1056 1057
1057 body.selecting .thumbnail-grid .thumbnail-item[selected] .checkmark { 1058 body.check-select .thumbnail-grid .thumbnail-item[selected] .checkmark {
1058 background-image: -webkit-image-set( 1059 background-image: -webkit-image-set(
1059 url(../images/files/ui/thumbnail_checked.png) 1x, 1060 url(../images/files/ui/thumbnail_checked.png) 1x,
1060 url(../images/files/ui/2x/thumbnail_checked.png) 2x); 1061 url(../images/files/ui/2x/thumbnail_checked.png) 2x);
1061 opacity: 1; 1062 opacity: 1;
1062 } 1063 }
1063 1064
1064 .thumbnail-grid .img-container { 1065 .thumbnail-grid .img-container {
1065 background-color: rgb(230, 230, 230); 1066 background-color: rgb(230, 230, 230);
1066 height: 100%; 1067 height: 100%;
1067 width: 100%; 1068 width: 100%;
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 background-image: -webkit-image-set( 1358 background-image: -webkit-image-set(
1358 url(../images/files/ui/list_checked.png) 1x, 1359 url(../images/files/ui/list_checked.png) 1x,
1359 url(../images/files/ui/2x/list_checked.png) 2x); 1360 url(../images/files/ui/2x/list_checked.png) 2x);
1360 height: 28px; 1361 height: 28px;
1361 opacity: 0; 1362 opacity: 0;
1362 position: absolute; 1363 position: absolute;
1363 transition: opacity 220ms ease; 1364 transition: opacity 220ms ease;
1364 width: 28px; 1365 width: 28px;
1365 } 1366 }
1366 1367
1367 #list-container list li[selected] .detail-checkmark { 1368 body.check-select #list-container list li[selected] .detail-checkmark {
1368 opacity: 1; 1369 opacity: 1;
1369 } 1370 }
1370 1371
1371 #list-container list li .detail-thumbnail { 1372 #list-container list li .detail-thumbnail {
1372 -webkit-user-drag: none; 1373 -webkit-user-drag: none;
1373 background-color: rgb(245, 245, 245); 1374 background-color: rgb(245, 245, 245);
1374 background-position: center; 1375 background-position: center;
1375 background-size: cover; 1376 background-size: cover;
1376 border-radius: 14px; 1377 border-radius: 14px;
1377 height: 28px; 1378 height: 28px;
1378 opacity: 0; 1379 opacity: 0;
1379 overflow: hidden; 1380 overflow: hidden;
1380 position: absolute; 1381 position: absolute;
1381 transition: opacity 220ms ease; 1382 transition: opacity 220ms ease;
1382 width: 28px; 1383 width: 28px;
1383 } 1384 }
1384 1385
1385 #list-container list li:not([selected]) .detail-thumbnail.loaded { 1386 #list-container list li .detail-thumbnail.loaded {
1386 opacity: 1; 1387 opacity: 1;
1387 } 1388 }
1388 1389
1390 body.check-select #list-container list li[selected] .detail-thumbnail.loaded {
1391 opacity: 0;
1392 }
1393
1389 #tasks-menu cr-menu-item:not(.change-default) { 1394 #tasks-menu cr-menu-item:not(.change-default) {
1390 background-position: left 10px center; 1395 background-position: left 10px center;
1391 padding-left: 32px; 1396 padding-left: 32px;
1392 } 1397 }
1393 1398
1394 #share-button { 1399 #share-button {
1395 display: block; 1400 display: block;
1396 min-width: 0; /* overrride */ 1401 min-width: 0; /* overrride */
1397 } 1402 }
1398 1403
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1982 padding: 20px 15px; 1987 padding: 20px 15px;
1983 } 1988 }
1984 1989
1985 .text-measure { 1990 .text-measure {
1986 pointer-events: none; 1991 pointer-events: none;
1987 position: absolute; 1992 position: absolute;
1988 top: 0; 1993 top: 0;
1989 visibility: hidden; 1994 visibility: hidden;
1990 z-index: -1; 1995 z-index: -1;
1991 } 1996 }
OLDNEW
« no previous file with comments | « ui/file_manager/file_manager/common/js/util.js ('k') | ui/file_manager/file_manager/foreground/js/compiled_resources.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698