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

Unified Diff: chrome/browser/resources/settings/settings_page/settings_subpage_search.html

Issue 2279093002: [MD settings] layout sub-page search (Closed)
Patch Set: merge with master Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/settings_page/settings_subpage_search.html
diff --git a/chrome/browser/resources/settings/settings_page/settings_subpage_search.html b/chrome/browser/resources/settings/settings_page/settings_subpage_search.html
index 72e462a170c52ec68894141f9e19ef8aac8e2297..906683a104fa6a49fdbfa1a9dd9c91752601daf1 100644
--- a/chrome/browser/resources/settings/settings_page/settings_subpage_search.html
+++ b/chrome/browser/resources/settings/settings_page/settings_subpage_search.html
@@ -1,15 +1,30 @@
<link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_search_field_behavior.html">
<link rel="import" href="chrome://resources/cr_elements/icons.html">
<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input-container.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html">
<dom-module id="settings-subpage-search">
<template>
<style>
+ :host {
+ --paper-input-suffix: {
+ /* Required to align the icon in |clearSearch| vertically. */
+ line-height: 0;
+ }
+ }
+
+ paper-icon-button {
+ /* A 16px icon that fits on the input line. */
+ height: 24px;
+ padding: 4px;
+ width: 24px;
+ }
+
paper-input-container {
display: inline-block;
- width: var(--paper-input-max-width);
+ width: 160px; /* Special width for search input. */
}
input[type='search']::-webkit-search-cancel-button {
@@ -18,12 +33,11 @@
#prompt,
#searchInput {
- font-size: inherit;
- line-height: 36px;
+ font-size: 92.3076923%; /* To 12px from 13px. */
}
#prompt {
- color: var(--google-grey-500);
+ color: var(--paper-grey-600);
}
#searchInput {
@@ -31,20 +45,8 @@
}
#clearSearch {
- -webkit-margin-end: -8px;
- -webkit-margin-start: 8px;
- }
-
- :root {
- --paper-icon-button {
- height: 36px;
- width: 36px;
- }
-
- --paper-input-suffix: {
- /* Required to align the icon in |clearSearch| vertically. */
- line-height: 0;
- }
+ -webkit-margin-end: -4px;
+ -webkit-margin-start: 4px;
}
</style>
<paper-icon-button id="searchIcon" icon="cr:search"></paper-icon-button>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698