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

Unified Diff: chrome/browser/resources/md_downloads/vulcanized.html

Issue 2011943005: MD History/Downloads: Update toolbar and background color (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: chrome/browser/resources/md_downloads/vulcanized.html
diff --git a/chrome/browser/resources/md_downloads/vulcanized.html b/chrome/browser/resources/md_downloads/vulcanized.html
index 6363f38bab79aaa90a516bb94afb2b104c970eaf..8cb73c55c27b9c63528ada916795bf21c9ac23e7 100644
--- a/chrome/browser/resources/md_downloads/vulcanized.html
+++ b/chrome/browser/resources/md_downloads/vulcanized.html
@@ -24,10 +24,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
* found in the LICENSE file. */
:root {
- /* These are custom, Chrome-specific colors that don't have --paper or
- * --google equivalents. Blame bettes@. http://crbug.com/598451 */
- --md-background-color: rgb(236, 239, 241);
- --md-toolbar-color: rgb(52, 73, 94);
+ /* This is a custom, Chrome-specific color that does not have a --paper or
+ * --google equivalent. */
+ --md-background-color: rgb(241, 241, 241);
+ /* This is --google-blue-700, rewritten as a native custom property for speed.
+ */
+ --md-toolbar-color: rgb(51, 103, 214);
}
</style>
@@ -2391,14 +2393,18 @@ paper-button {
justify-content: flex-end;
}
-:host paper-input-container {
+[hidden] {
+ display: none !important;
+}
+
+paper-input-container {
margin-top: 2px;
max-width: 200px;
padding: 2px 0;
width: 100%;
}
-#search-term {
+#searchTerm {
--paper-input-container-color: rgb(192, 199, 205);
--paper-input-container-focus-color: rgb(192, 199, 205);
--paper-input-container-input: {
@@ -2411,13 +2417,13 @@ paper-button {
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;
}
@@ -2432,7 +2438,7 @@ paper-icon-button {
};
}
-#search-term paper-icon-button {
+#searchTerm paper-icon-button {
--iron-icon-height: 16px;
--iron-icon-width: 16px;
--paper-icon-button: {
@@ -2447,19 +2453,17 @@ 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;
}
</style>
- <paper-icon-button icon="cr:search" id="search-button" disabled$="[[showingSearch_]]" title="[[label]]" on-click="toggleShowingSearch_"></paper-icon-button>
- <template is="dom-if" if="[[showingSearch_]]" id="search-container">
- <paper-input-container id="search-term" on-search="onSearchTermSearch_" on-keydown="onSearchTermKeydown_" hidden$="[[!showingSearch_]]" no-label-float="">
- <input is="iron-input" id="search-input" type="search" placeholder="[[label]]" incremental="">
- <paper-icon-button icon="cr:cancel" id="clear-search" on-click="toggleShowingSearch_" title="[[clearLabel]]" hidden$="[[!showingSearch_]]"></paper-icon-button>
- </paper-input-container>
- </template>
+ <paper-icon-button icon="cr:search" id="searchButton" disabled$="[[showingSearch]]" title="[[label]]" on-click="toggleShowingSearch_"></paper-icon-button>
+ <paper-input-container id="searchTerm" on-search="onSearchTermSearch_" on-keydown="onSearchTermKeydown_" hidden$="[[!showingSearch]]" no-label-float="">
+ <input is="iron-input" id="searchInput" type="search" placeholder="[[label]]" incremental="">
+ <paper-icon-button icon="cr:cancel" id="clearSearch" on-click="toggleShowingSearch_" title="[[clearLabel]]" hidden$="[[!showingSearch]]"></paper-icon-button>
+ </paper-input-container>
</template>
</dom-module>
@@ -2630,10 +2634,12 @@ paper-button {
* found in the LICENSE file. */
:root {
- /* These are custom, Chrome-specific colors that don't have --paper or
- * --google equivalents. Blame bettes@. http://crbug.com/598451 */
- --md-background-color: rgb(236, 239, 241);
- --md-toolbar-color: rgb(52, 73, 94);
+ /* This is a custom, Chrome-specific color that does not have a --paper or
+ * --google equivalent. */
+ --md-background-color: rgb(241, 241, 241);
+ /* This is --google-blue-700, rewritten as a native custom property for speed.
+ */
+ --md-toolbar-color: rgb(51, 103, 214);
}
</style>

Powered by Google App Engine
This is Rietveld 408576698