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

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

Issue 15946005: Files.app: Fit the size of search box as its contents size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/file_manager.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 { 5 html {
6 height: 100%; 6 height: 100%;
7 } 7 }
8 8
9 html.col-resize * { 9 html.col-resize * {
10 cursor: col-resize !important; 10 cursor: col-resize !important;
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 margin-top: 7px; 510 margin-top: 7px;
511 } 511 }
512 512
513 body[new-ui] .dialog-header { 513 body[new-ui] .dialog-header {
514 -webkit-app-region: drag; 514 -webkit-app-region: drag;
515 height: 48px; 515 height: 48px;
516 margin: 0; 516 margin: 0;
517 } 517 }
518 518
519 body[new-ui] .search-box-wrapper { 519 body[new-ui] .search-box-wrapper {
520 -webkit-align-items: center;
520 -webkit-box-flex: 1; 521 -webkit-box-flex: 1;
521 display: -webkit-box; 522 display: -webkit-flex;
522 height: 100%; 523 height: 100%;
523 } 524 }
524 525
525 body[new-ui] .dialog-header #search-box, 526 body[new-ui] .dialog-header #search-box,
526 body[new-ui] .dialog-header #autocomplete-list, 527 body[new-ui] .dialog-header #autocomplete-list,
528 body[new-ui] .dialog-header #search-icon,
529 body[new-ui] .dialog-header #search-clear-button,
527 body[new-ui] .dialog-header .buttonbar button { 530 body[new-ui] .dialog-header .buttonbar button {
528 -webkit-app-region: no-drag; 531 -webkit-app-region: no-drag;
529 } 532 }
530 533
531 body[new-ui] .dialog-header #autocomplete-list {
532 max-width: 240px;
533 }
534
535 body[new-ui] .dialog-header #gear-button { 534 body[new-ui] .dialog-header #gear-button {
536 background-image: -webkit-image-set( 535 background-image: -webkit-image-set(
537 url('../images/files/ui/new-ui/topbar_button_settings.png') 1x, 536 url('../images/files/ui/new-ui/topbar_button_settings.png') 1x,
538 url('../images/files/ui/new-ui/2x/topbar_button_settings.png') 2x); 537 url('../images/files/ui/new-ui/2x/topbar_button_settings.png') 2x);
539 } 538 }
540 539
541 body[new-ui] .dialog-header #maximize-button { 540 body[new-ui] .dialog-header #maximize-button {
542 background-image: -webkit-image-set( 541 background-image: -webkit-image-set(
543 url('../images/files/ui/new-ui/topbar_button_maximize.png') 1x, 542 url('../images/files/ui/new-ui/topbar_button_maximize.png') 1x,
544 url('../images/files/ui/new-ui/2x/topbar_button_maximize.png') 2x); 543 url('../images/files/ui/new-ui/2x/topbar_button_maximize.png') 2x);
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 display: -webkit-box; 802 display: -webkit-box;
804 height: 29px; 803 height: 29px;
805 line-height: 27px; 804 line-height: 27px;
806 max-width: 150px; 805 max-width: 150px;
807 transition: max-width 200ms; 806 transition: max-width 200ms;
808 width: 100%; 807 width: 100%;
809 } 808 }
810 809
811 body[new-ui] #search-box { 810 body[new-ui] #search-box {
812 -webkit-margin-end: 0; 811 -webkit-margin-end: 0;
813 -webkit-padding-after: 0; 812 background-image: none;
814 -webkit-padding-before: 0;
815 -webkit-padding-end: 52px;
816 -webkit-padding-start: 46px;
817 background: -webkit-image-set(
818 url('../images/files/ui/new-ui/search_icon_inactive.png') 1x,
819 url('../images/files/ui/new-ui/2x/search_icon_inactive.png') 2x);
820 background-position: 13px center;
821 background-repeat: no-repeat;
822 border-style: none; 813 border-style: none;
823 display: block; 814 display: block;
824 height: 48px; 815 height: 48px;
825 line-height: 1em; 816 line-height: 1em;
826 max-width: none; 817 max-width: 100%;
818 outline: none;
819 padding: 0;
820 pointer-events: none;
827 position: relative; 821 position: relative;
828 transition: width 0; 822 transition: width 0;
829 width: 58px; 823 width: 0; /* Overrided by script */
824 }
825
826 body[new-ui] #search-box:focus,
827 body[new-ui] #search-box:active,
828 body[new-ui] .has-text #search-box {
829 pointer-events: auto;
830 } 830 }
831 831
832 body #search-box[hidden] { 832 body #search-box[hidden] {
833 display: none; /* Required, since overriden by #search-box. */ 833 display: none; /* Required, since overriden by #search-box. */
834 } 834 }
835 835
836 html[dir='rtl'] #search-box { 836 html[dir='rtl'] body:not([new-ui]) #search-box {
837 background-position: right 4px top 5.5px; 837 background-position: right 4px top 5.5px;
838 } 838 }
839 839
840 html[dir='rtl'] body[new-ui] #search-box { 840 body:not([new-ui]) #search-box:hover {
841 background-position: right 13px center;
842 }
843
844 #search-box:hover {
845 border: 1px solid #b9b9b9; 841 border: 1px solid #b9b9b9;
846 border-top: 1px solid #a0a0a0; 842 border-top: 1px solid #a0a0a0;
847 box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); 843 box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
848 } 844 }
849 845
850 #search-box:focus { 846 body:not([new-ui]) #search-box:focus {
851 border: 1px solid rgb(77, 144, 254); 847 border: 1px solid rgb(77, 144, 254);
852 box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); 848 box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
853 max-width: 240px; 849 max-width: 240px;
854 outline: none; 850 outline: none;
855 width: 100%; 851 width: 100%;
856 } 852 }
857 853
858 body[new-ui] #search-box.has-text,
859 body[new-ui] #search-box:focus {
860 max-width: none;
861 width: 100%;
862 }
863
864 body[new-ui] #search-box:hover,
865 body[new-ui] #search-box:focus {
866 background: -webkit-image-set(
867 url('../images/files/ui/new-ui/search_icon_active.png') 1x,
868 url('../images/files/ui/new-ui/2x/search_icon_active.png') 2x);
869 background-position: 13px center;
870 background-repeat: no-repeat;
871 border-style: none;
872 box-shadow: none;
873 }
874
875 #search-box::-webkit-search-cancel-button { 854 #search-box::-webkit-search-cancel-button {
876 -webkit-appearance: none; 855 -webkit-appearance: none;
877 background-image: -webkit-image-set(
878 url('../images/files/ui/new-ui/search_clear.png') 1x,
879 url('../images/files/ui/new-ui/2x/search_clear.png') 2x);
880 height: 12px;
881 position: absolute;
882 top: 18px;
883 width: 12px;
884 } 856 }
885 857
886 body:not([new-ui]) #search-box::-webkit-search-cancel-button { 858 body:not([new-ui]) #search-box::-webkit-search-cancel-button {
887 background-image: -webkit-image-set( 859 background-image: -webkit-image-set(
888 url('../images/files/ui/search_clear.png') 1x, 860 url('../images/files/ui/search_clear.png') 1x,
889 url('../images/files/ui/2x/search_clear.png') 2x); 861 url('../images/files/ui/2x/search_clear.png') 2x);
890 height: 16px; 862 height: 16px;
863 position: absolute;
891 top: 6px; 864 top: 6px;
892 width: 16px; 865 width: 16px;
893 } 866 }
894 867
895 html:not([dir='rtl']) #search-box::-webkit-search-cancel-button {
896 right: 30px;
897 }
898
899 html[dir='rtl'] #search-box::-webkit-search-cancel-button {
900 left: 30px;
901 }
902
903 html[dir='rtl'] body:not([new-ui]) #search-box::-webkit-search-cancel-button {
904 left: 2px;
905 }
906
907 html:not([dir='rtl']) body:not([new-ui]) 868 html:not([dir='rtl']) body:not([new-ui])
908 #search-box::-webkit-search-cancel-button { 869 #search-box::-webkit-search-cancel-button {
909 right: 2px; 870 right: 2px;
910 } 871 }
911 872
912 #search-box::-webkit-search-cancel-button:hover { 873 html[dir='rtl'] body:not([new-ui]) #search-box::-webkit-search-cancel-button {
913 background-image: -webkit-image-set( 874 left: 2px;
914 url('../images/files/ui/new-ui/search_clear_hover.png') 1x,
915 url('../images/files/ui/new-ui/2x/search_clear_hover.png') 2x);
916 } 875 }
917 876
918 body:not([new-ui]) #search-box::-webkit-search-cancel-button:hover { 877 body:not([new-ui]) #search-box::-webkit-search-cancel-button:hover {
919 background-image: -webkit-image-set( 878 background-image: -webkit-image-set(
920 url('../images/files/ui/search_clear_hover.png') 1x, 879 url('../images/files/ui/search_clear_hover.png') 1x,
921 url('../images/files/ui/2x/search_clear_hover.png') 2x); 880 url('../images/files/ui/2x/search_clear_hover.png') 2x);
922 } 881 }
923 882
924 #search-box::-webkit-search-cancel-button:active {
925 background-image: -webkit-image-set(
926 url('../images/files/ui/new-ui/search_clear_pressed.png') 1x,
927 url('../images/files/ui/new-ui/2x/search_clear_pressed.png') 2x);
928 }
929
930 body:not([new-ui]) #search-box::-webkit-search-cancel-button:active { 883 body:not([new-ui]) #search-box::-webkit-search-cancel-button:active {
931 background-image: -webkit-image-set( 884 background-image: -webkit-image-set(
932 url('../images/files/ui/search_clear_pressed.png') 1x, 885 url('../images/files/ui/search_clear_pressed.png') 1x,
933 url('../images/files/ui/2x/search_clear_pressed.png') 2x); 886 url('../images/files/ui/2x/search_clear_pressed.png') 2x);
934 } 887 }
935 888
889 body[new-ui] #search-icon {
890 -webkit-flex-shrink: 0;
891 -webkit-margin-end: 3px;
892 -webkit-margin-start: 10px;
893 -webkit-order: -1;
894 background-image: -webkit-image-set(
895 url('../images/files/ui/new-ui/search_icon_inactive.png') 1x,
896 url('../images/files/ui/new-ui/2x/search_icon_inactive.png') 2x);
897 background-position: center;
898 background-repeat: no-repeat;
899 height: 32px;
900 width: 32px;
901 }
902
903 body[new-ui] #search-icon:hover,
904 body[new-ui] #search-box:active + #search-icon,
905 body[new-ui] #search-box:focus + #search-icon,
906 body[new-ui] .has-text #search-icon {
907 background: -webkit-image-set(
908 url('../images/files/ui/new-ui/search_icon_active.png') 1x,
909 url('../images/files/ui/new-ui/2x/search_icon_active.png') 2x);
910 }
911
912 body[new-ui] #search-clear-button {
913 -webkit-margin-end: 30px;
914 -webkit-margin-start: 10px;
915 background-image: -webkit-image-set(
916 url('../images/files/ui/new-ui/search_clear.png') 1x,
917 url('../images/files/ui/new-ui/2x/search_clear.png') 2x);
918 background-position: center;
919 background-repeat: no-repeat;
920 display: none;
921 height: 12px;
922 width: 12px;
923 }
924
925 body[new-ui] .search-box-wrapper.has-text + #search-clear-button {
926 display: block;
927 }
928
929 body[new-ui] #search-clear-button:hover {
930 background-image: -webkit-image-set(
931 url('../images/files/ui/new-ui/search_clear_hover.png') 1x,
932 url('../images/files/ui/new-ui/2x/search_clear_hover.png') 2x);
933 }
934
935 body[new-ui] #search-clear-button:active {
936 background-image: -webkit-image-set(
937 url('../images/files/ui/new-ui/search_clear_pressed.png') 1x,
938 url('../images/files/ui/new-ui/2x/search_clear_pressed.png') 2x);
939 }
940
936 body:not([new-ui]) button#detail-view::before { 941 body:not([new-ui]) button#detail-view::before {
937 background-image: -webkit-image-set( 942 background-image: -webkit-image-set(
938 url('../images/files/ui/view_list_black.png') 1x, 943 url('../images/files/ui/view_list_black.png') 1x,
939 url('../images/files/ui/2x/view_list_black.png') 2x); 944 url('../images/files/ui/2x/view_list_black.png') 2x);
940 } 945 }
941 946
942 body:not([new-ui]) button#thumbnail-view::before { 947 body:not([new-ui]) button#thumbnail-view::before {
943 background-image: -webkit-image-set( 948 background-image: -webkit-image-set(
944 url('../images/files/ui/view_thumbs_black.png') 1x, 949 url('../images/files/ui/view_thumbs_black.png') 1x,
945 url('../images/files/ui/2x/view_thumbs_black.png') 2x); 950 url('../images/files/ui/2x/view_thumbs_black.png') 2x);
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after
2246 background-color: white; 2251 background-color: white;
2247 border: 1px solid #aaa; 2252 border: 1px solid #aaa;
2248 border-radius: 2px; 2253 border-radius: 2px;
2249 box-sizing: border-box; /* To match the width with the search box's. */ 2254 box-sizing: border-box; /* To match the width with the search box's. */
2250 min-height: 0; 2255 min-height: 0;
2251 position: fixed; 2256 position: fixed;
2252 z-index: 3; 2257 z-index: 3;
2253 } 2258 }
2254 2259
2255 body[new-ui] list.autocomplete-suggestions { 2260 body[new-ui] list.autocomplete-suggestions {
2256 -webkit-margin-start: 10px; 2261 -webkit-margin-before: -7px;
2262 -webkit-margin-start: -38px;
2257 background-color: rgb(250, 250, 250); 2263 background-color: rgb(250, 250, 250);
2258 border: 1px solid rgb(255, 255, 255); 2264 border: 1px solid rgb(255, 255, 255);
2259 border-radius: 3px; 2265 border-radius: 3px;
2260 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .5); 2266 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .5);
2261 box-sizing: border-box; /* To match the width with the search box's. */ 2267 box-sizing: border-box; /* To match the width with the search box's. */
2262 color: rgb(34, 34, 34); 2268 color: rgb(34, 34, 34);
2263 overflow: hidden; 2269 overflow: hidden;
2264 padding: 5px 0; 2270 padding: 5px 0;
2265 position: fixed; 2271 position: fixed;
2272 width: 300px !important; /* This overrides the value specified by script. */
2266 z-index: 3; 2273 z-index: 3;
2267 } 2274 }
2268 2275
2269 list.autocomplete-suggestions > li { 2276 list.autocomplete-suggestions > li {
2270 -webkit-box-align: center; 2277 -webkit-box-align: center;
2271 border-radius: 0; 2278 border-radius: 0;
2272 display: -webkit-box; 2279 display: -webkit-box;
2273 margin: 0; /* To prevent vertical overflow. */ 2280 margin: 0; /* To prevent vertical overflow. */
2274 padding: 3px 0; 2281 padding: 3px 0;
2275 } 2282 }
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
2363 body[new-ui] #iframe-drag-area { 2370 body[new-ui] #iframe-drag-area {
2364 -webkit-app-region: drag; 2371 -webkit-app-region: drag;
2365 height: 45px; 2372 height: 45px;
2366 left: 64px; 2373 left: 64px;
2367 position: absolute; 2374 position: absolute;
2368 right: 70px; 2375 right: 70px;
2369 top: 0; 2376 top: 0;
2370 width: auto; 2377 width: auto;
2371 z-index: 101; 2378 z-index: 101;
2372 } 2379 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/file_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698