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

Side by Side Diff: ui/webui/resources/cr_elements/cr_search_field/cr_search_field.css

Issue 2004263002: [Do not commit] MD History: Experimentally implement cr-toolbar using cr-search-field (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 /* Copyright 2015 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 :host { 5 :host {
6 -webkit-padding-end: 10px; 6 -webkit-padding-end: 10px;
7 box-sizing: border-box; 7 box-sizing: border-box;
8 display: flex; 8 display: flex;
9 justify-content: flex-end; 9 justify-content: flex-end;
10 } 10 }
11 11
12 [hidden] {
13 display: none !important;
14 }
15
12 :host paper-input-container { 16 :host paper-input-container {
13 margin-top: 2px; 17 margin-top: 2px;
14 max-width: 200px; 18 max-width: 200px;
15 padding: 2px 0; 19 padding: 2px 0;
16 width: 100%; 20 width: 100%;
21 @apply(--cr-search-field-container);
17 } 22 }
18 23
19 #search-term { 24 #searchTerm {
20 --paper-input-container-color: rgb(192, 199, 205); 25 --paper-input-container-color: var(--cr-search-color, rgb(192, 199, 205));
21 --paper-input-container-focus-color: rgb(192, 199, 205); 26 --paper-input-container-focus-color: var(--cr-search-color, rgb(192, 199, 205) );
22 --paper-input-container-input: { 27 --paper-input-container-input: {
23 color: inherit; 28 color: inherit;
24 font-family: inherit; 29 font-family: inherit;
25 font-size: inherit; 30 font-size: inherit;
26 }; 31 };
27 --paper-input-container-input-color: rgb(192, 199, 205); 32 --paper-input-container-input-color: var(--cr-search-color, rgb(192, 199, 205) );
28 color: rgb(192, 199, 205); 33 color: var(--cr-search-color, rgb(192, 199, 205));
29 z-index: 0; 34 z-index: 0;
30 } 35 }
31 36
32 #search-term input[type='search']::-webkit-search-decoration, 37 #searchTerm input[type='search']::-webkit-search-decoration,
33 #search-term input[type='search']::-webkit-search-cancel-button, 38 #searchTerm input[type='search']::-webkit-search-cancel-button,
34 #search-term input[type='search']::-webkit-search-results-button { 39 #searchTerm input[type='search']::-webkit-search-results-button {
35 -webkit-appearance: none; 40 -webkit-appearance: none;
36 } 41 }
37 42
38 #search-term input[type='search']::-webkit-search-cancel-button { 43 #searchTerm input[type='search']::-webkit-search-cancel-button {
39 display: block; 44 display: block;
40 width: 20px; 45 width: 20px;
41 } 46 }
42 47
43 paper-icon-button { 48 #searchButton {
44 --iron-icon-height: 20px; 49 height: 32px;
45 --iron-icon-width: 20px; 50 padding: 6px;
46 --paper-icon-button: { 51 width: 32px;
47 height: 32px; 52 @apply(--cr-search-field-search-button);
48 padding: 6px; 53 color: var(--cr-search-field-search-button-color, white);
49 width: 32px;
50 };
51 } 54 }
52 55
53 #search-term paper-icon-button { 56 #searchTerm paper-icon-button {
54 --iron-icon-height: 16px; 57 --iron-icon-height: 16px;
55 --iron-icon-width: 16px; 58 --iron-icon-width: 16px;
56 --paper-icon-button: { 59 --paper-icon-button: {
57 -webkit-margin-end: -8px; 60 -webkit-margin-end: -8px;
58 height: 32px; 61 height: 32px;
59 padding: 8px; 62 padding: 8px;
60 width: 32px; 63 width: 32px;
61 }; 64 };
62 position: absolute; 65 position: absolute;
63 right: 0; 66 right: 0;
64 top: -4px; 67 top: -4px;
65 z-index: 1; 68 z-index: 1;
66 } 69 }
67 70
68 :host-context([dir='rtl']) #search-term paper-icon-button { 71 :host-context([dir='rtl']) #searchTerm paper-icon-button {
69 left: 0; 72 left: 0;
70 right: auto; 73 right: auto;
71 } 74 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698