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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ui/webui/resources/cr_elements/cr_search_field/cr_search_field.css
diff --git a/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.css b/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.css
index ee849b48841c2bc561d7a2105a2d2a83f7b3ab66..261da76104be07ccaf1b3143371ce45b5f685f8e 100644
--- a/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.css
+++ b/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.css
@@ -9,48 +9,51 @@
justify-content: flex-end;
}
+[hidden] {
+ display: none !important;
+}
+
:host paper-input-container {
margin-top: 2px;
max-width: 200px;
padding: 2px 0;
width: 100%;
+ @apply(--cr-search-field-container);
}
-#search-term {
- --paper-input-container-color: rgb(192, 199, 205);
- --paper-input-container-focus-color: rgb(192, 199, 205);
+#searchTerm {
+ --paper-input-container-color: var(--cr-search-color, rgb(192, 199, 205));
+ --paper-input-container-focus-color: var(--cr-search-color, rgb(192, 199, 205));
--paper-input-container-input: {
color: inherit;
font-family: inherit;
font-size: inherit;
};
- --paper-input-container-input-color: rgb(192, 199, 205);
- color: rgb(192, 199, 205);
+ --paper-input-container-input-color: var(--cr-search-color, rgb(192, 199, 205));
+ color: var(--cr-search-color, rgb(192, 199, 205));
z-index: 0;
}
-#search-term input[type='search']::-webkit-search-decoration,
-#search-term input[type='search']::-webkit-search-cancel-button,
-#search-term input[type='search']::-webkit-search-results-button {
+#searchTerm input[type='search']::-webkit-search-decoration,
+#searchTerm input[type='search']::-webkit-search-cancel-button,
+#searchTerm input[type='search']::-webkit-search-results-button {
-webkit-appearance: none;
}
-#search-term input[type='search']::-webkit-search-cancel-button {
+#searchTerm input[type='search']::-webkit-search-cancel-button {
display: block;
width: 20px;
}
-paper-icon-button {
- --iron-icon-height: 20px;
- --iron-icon-width: 20px;
- --paper-icon-button: {
- height: 32px;
- padding: 6px;
- width: 32px;
- };
+#searchButton {
+ height: 32px;
+ padding: 6px;
+ width: 32px;
+ @apply(--cr-search-field-search-button);
+ color: var(--cr-search-field-search-button-color, white);
}
-#search-term paper-icon-button {
+#searchTerm paper-icon-button {
--iron-icon-height: 16px;
--iron-icon-width: 16px;
--paper-icon-button: {
@@ -65,7 +68,7 @@ paper-icon-button {
z-index: 1;
}
-:host-context([dir='rtl']) #search-term paper-icon-button {
+:host-context([dir='rtl']) #searchTerm paper-icon-button {
left: 0;
right: auto;
}

Powered by Google App Engine
This is Rietveld 408576698