| OLD | NEW |
| 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 /* The order of z-index: | 5 /* The order of z-index: |
| 6 * - -1: text-measure | 6 * - -1: text-measure |
| 7 * - 2: drag-selection-border | 7 * - 2: drag-selection-border |
| 8 * - 3: preview-panel | 8 * - 3: preview-panel |
| 9 * - 500: scrollbar | 9 * - 500: scrollbar |
| 10 * - 500: splitter | 10 * - 500: splitter |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 } | 637 } |
| 638 | 638 |
| 639 .volume-warning .drive-text { | 639 .volume-warning .drive-text { |
| 640 flex: none; | 640 flex: none; |
| 641 margin-right: 11px; | 641 margin-right: 11px; |
| 642 } | 642 } |
| 643 | 643 |
| 644 /* The cr.ui.Grid representing the detailed file list. */ | 644 /* The cr.ui.Grid representing the detailed file list. */ |
| 645 .thumbnail-grid { | 645 .thumbnail-grid { |
| 646 overflow-y: auto; | 646 overflow-y: auto; |
| 647 padding-bottom: 0; /* For the preview panel. Will be overridden by JS. */ | 647 /* padding-bottom will be overridden by JS for preview panel. */ |
| 648 padding: 7px 7px 0 7px; |
| 648 width: 100%; | 649 width: 100%; |
| 649 } | 650 } |
| 650 | 651 |
| 651 body[type='full-page'] .thumbnail-frame > .img-container { | 652 body[type='full-page'] .thumbnail-frame > .img-container { |
| 652 position: relative; | 653 position: relative; |
| 653 } | 654 } |
| 654 | 655 |
| 655 body[type='full-page'] .thumbnail-frame > .img-container, | 656 body[type='full-page'] .thumbnail-frame > .img-container, |
| 656 body[type='full-page'] .detail-name .detail-icon { | 657 body[type='full-page'] .detail-name .detail-icon { |
| 657 cursor: pointer; | 658 cursor: pointer; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 679 right: 0; | 680 right: 0; |
| 680 } | 681 } |
| 681 | 682 |
| 682 .thumbnail-bottom .filename-label { | 683 .thumbnail-bottom .filename-label { |
| 683 flex: auto; | 684 flex: auto; |
| 684 } | 685 } |
| 685 | 686 |
| 686 /* Styles specific for the grid view. */ | 687 /* Styles specific for the grid view. */ |
| 687 | 688 |
| 688 .thumbnail-grid .thumbnail-item { | 689 .thumbnail-grid .thumbnail-item { |
| 689 -webkit-margin-start: 21px; | 690 -webkit-margin-start: 12px; |
| 690 border: 3px solid transparent; /* Selection will make the border visible. */ | 691 background-color: rgb(245, 245, 245); |
| 691 margin-top: 20px; | 692 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37); |
| 693 height: 180px; |
| 694 margin-top: 8px; |
| 695 overflow: hidden; |
| 692 position: relative; | 696 position: relative; |
| 697 width: 180px; |
| 693 } | 698 } |
| 694 | 699 |
| 695 .thumbnail-grid .thumbnail-frame { | 700 .thumbnail-grid .thumbnail-frame { |
| 696 background-color: rgb(245, 245, 245); | 701 height: 100%; |
| 697 height: 120px; | 702 width: 100%; |
| 698 overflow: hidden; | |
| 699 position: relative; | |
| 700 width: 160px; | |
| 701 } | 703 } |
| 702 | 704 |
| 703 .thumbnail-grid .thumbnail-item[selected] .thumbnail-frame, | 705 .thumbnail-grid .thumbnail-item[selected], |
| 704 .thumbnail-grid .thumbnail-item.accepts .thumbnail-frame { | 706 .thumbnail-grid .thumbnail-item.accepts { |
| 705 border-color: white; | 707 background-color: rgb(221, 242, 253); |
| 708 box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.3); |
| 709 } |
| 710 |
| 711 .thumbnail-grid .thumbnail-frame .checkmark { |
| 712 background-image: -webkit-image-set( |
| 713 url(../images/files/ui/thumbnail_checked.png) 1x, |
| 714 url(../images/files/ui/2x/thumbnail_checked.png) 2x); |
| 715 height: 34px; |
| 716 left: 9px; |
| 717 opacity: 0; |
| 718 position: absolute; |
| 719 top: 9px; |
| 720 transition: opacity 220ms ease; |
| 721 width: 34px; |
| 722 } |
| 723 |
| 724 .thumbnail-grid .thumbnail-item[selected] .thumbnail-frame .checkmark { |
| 725 opacity: 1; |
| 706 } | 726 } |
| 707 | 727 |
| 708 .thumbnail-grid .img-container { | 728 .thumbnail-grid .img-container { |
| 709 height: 100%; | 729 height: 100%; |
| 710 width: 100%; | 730 width: 100%; |
| 711 } | 731 } |
| 712 | 732 |
| 713 .thumbnail-grid .thumbnail-bottom { | 733 .thumbnail-grid .thumbnail-bottom { |
| 714 background: rgba(0, 0, 0, 0.55); | 734 background: rgba(0, 0, 0, 0.55); |
| 715 color: #fff; | 735 color: #fff; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 | 776 |
| 757 #default-actions-list > li > * { | 777 #default-actions-list > li > * { |
| 758 background-position: 5px center; | 778 background-position: 5px center; |
| 759 background-repeat: no-repeat; | 779 background-repeat: no-repeat; |
| 760 background-size: 16px 16px; | 780 background-size: 16px 16px; |
| 761 padding-left: 26px; | 781 padding-left: 26px; |
| 762 } | 782 } |
| 763 | 783 |
| 764 #list-container list > li[selected], | 784 #list-container list > li[selected], |
| 765 #list-container list > li:active, | 785 #list-container list > li:active, |
| 766 #list-container grid > li[selected], | |
| 767 #list-container grid > li:active, | |
| 768 #default-actions-list > li[selected] { | 786 #default-actions-list > li[selected] { |
| 769 background-color: rgb(225, 225, 225); | 787 background-color: rgb(225, 225, 225); |
| 770 } | 788 } |
| 771 | 789 |
| 772 #list-container list:focus > li[selected], | 790 #list-container list:focus > li[selected], |
| 773 #list-container grid:focus > li[selected], | |
| 774 #default-actions-list:focus > li[selected] { | 791 #default-actions-list:focus > li[selected] { |
| 775 background-color: rgb(66, 129, 244); | 792 background-color: rgb(66, 129, 244); |
| 776 color: white; | 793 color: white; |
| 777 } | 794 } |
| 778 | 795 |
| 779 #list-container list > li.accepts[selected], | 796 #list-container list > li.accepts[selected] { |
| 780 #list-container grid > li.accepts[selected] { | |
| 781 background-color: rgb(215, 215, 215); | 797 background-color: rgb(215, 215, 215); |
| 782 } | 798 } |
| 783 | 799 |
| 784 #list-container list:focus > li.accepts[selected], | 800 #list-container list:focus > li.accepts[selected] { |
| 785 #list-container grid:focus > li.accepts[selected] { | |
| 786 background-color: rgb(48, 125, 254); | 801 background-color: rgb(48, 125, 254); |
| 787 } | 802 } |
| 788 | 803 |
| 789 #list-container list > li.accepts, | 804 #list-container list > li.accepts { |
| 790 #list-container grid > li.accepts { | |
| 791 background-color: #f1f1f1; | 805 background-color: #f1f1f1; |
| 792 } | 806 } |
| 793 | 807 |
| 794 #list-container.nohover grid > .accepts { | 808 #list-container.nohover grid > .accepts { |
| 795 background-color: transparent; | 809 background-color: transparent; |
| 796 } | 810 } |
| 797 | 811 |
| 798 #directory-tree .tree-item.accepts > .tree-row, | 812 #directory-tree .tree-item.accepts > .tree-row, |
| 799 #list-container list > li.accepts, | 813 #list-container list > li.accepts, |
| 800 #list-container grid > li.accepts { | 814 #list-container grid > li.accepts { |
| (...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1778 padding: 20px 15px; | 1792 padding: 20px 15px; |
| 1779 } | 1793 } |
| 1780 | 1794 |
| 1781 .text-measure { | 1795 .text-measure { |
| 1782 pointer-events: none; | 1796 pointer-events: none; |
| 1783 position: absolute; | 1797 position: absolute; |
| 1784 top: 0; | 1798 top: 0; |
| 1785 visibility: hidden; | 1799 visibility: hidden; |
| 1786 z-index: -1; | 1800 z-index: -1; |
| 1787 } | 1801 } |
| OLD | NEW |