Commit 6c52e706 authored by dschuyler's avatar dschuyler Committed by Commit bot

[MD settings] layout sub-page search

This CL changes the layout of the search input within a sub-page to more
closely match the updated mocks.

BUG=638453
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2279093002
Cr-Commit-Position: refs/heads/master@{#414620}
parent 2d0070ce
<link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_search_field_behavior.html"> <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/cr_elements/icons.html">
<link rel="import" href="chrome://resources/html/polymer.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-container.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html">
<dom-module id="settings-subpage-search"> <dom-module id="settings-subpage-search">
<template> <template>
<style> <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 { paper-input-container {
display: inline-block; display: inline-block;
width: var(--paper-input-max-width); width: 160px; /* Special width for search input. */
} }
input[type='search']::-webkit-search-cancel-button { input[type='search']::-webkit-search-cancel-button {
...@@ -18,12 +33,11 @@ ...@@ -18,12 +33,11 @@
#prompt, #prompt,
#searchInput { #searchInput {
font-size: inherit; font-size: 92.3076923%; /* To 12px from 13px. */
line-height: 36px;
} }
#prompt { #prompt {
color: var(--google-grey-500); color: var(--paper-grey-600);
} }
#searchInput { #searchInput {
...@@ -31,20 +45,8 @@ ...@@ -31,20 +45,8 @@
} }
#clearSearch { #clearSearch {
-webkit-margin-end: -8px; -webkit-margin-end: -4px;
-webkit-margin-start: 8px; -webkit-margin-start: 4px;
}
:root {
--paper-icon-button {
height: 36px;
width: 36px;
}
--paper-input-suffix: {
/* Required to align the icon in |clearSearch| vertically. */
line-height: 0;
}
} }
</style> </style>
<paper-icon-button id="searchIcon" icon="cr:search"></paper-icon-button> <paper-icon-button id="searchIcon" icon="cr:search"></paper-icon-button>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment