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

Side by Side Diff: chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html

Issue 2760393004: MD Settings: make input with error msg scale spacing with font-size. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html "> 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html ">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
5 <link rel="import" href="../i18n_setup.html"> 5 <link rel="import" href="../i18n_setup.html">
6 <link rel="import" href="search_engines_browser_proxy.html"> 6 <link rel="import" href="search_engines_browser_proxy.html">
7 7
8 <dom-module id="settings-search-engine-dialog"> 8 <dom-module id="settings-search-engine-dialog">
9 <template> 9 <template>
10 <style include="settings-shared"></style> 10 <style include="settings-shared">
11 :host {
12 --paper-input-container: {
dpapad 2017/03/21 22:33:34 Could you attach before/after screenshots?
scottchen 2017/03/22 18:01:38 http://imgur.com/a/W30TO
13 /**
14 * Saves space for error message. Using calc to leave just enough
15 * space at all font sizes (default 0, grow/shrink with font-size).
16 */
17 padding-bottom: calc(1rem - 8px);
18 };
19 }
20 </style>
11 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}"> 21 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}">
12 <div class="title">[[dialogTitle_]]</div> 22 <div class="title">[[dialogTitle_]]</div>
13 <div class="body" on-keypress="onKeypress_"> 23 <div class="body" on-keypress="onKeypress_">
14 <paper-input always-float-label id="searchEngine" 24 <paper-input always-float-label id="searchEngine"
15 label="$i18n{searchEnginesSearchEngine}" 25 label="$i18n{searchEnginesSearchEngine}"
16 error-message="$i18n{searchEnginesNotValid}" 26 error-message="$i18n{searchEnginesNotValid}"
17 value="{{searchEngine_}}" on-input="validate_" 27 value="{{searchEngine_}}" on-input="validate_"
18 autofocus> 28 autofocus>
19 </paper-input> 29 </paper-input>
20 <paper-input always-float-label id="keyword" 30 <paper-input always-float-label id="keyword"
(...skipping 13 matching lines...) Expand all
34 $i18n{cancel}</paper-button> 44 $i18n{cancel}</paper-button>
35 <paper-button id="actionButton" class="action-button" 45 <paper-button id="actionButton" class="action-button"
36 on-tap="onActionButtonTap_"> 46 on-tap="onActionButtonTap_">
37 [[actionButtonText_]] 47 [[actionButtonText_]]
38 </paper-button> 48 </paper-button>
39 </div> 49 </div>
40 </dialog> 50 </dialog>
41 </template> 51 </template>
42 <script src="search_engine_dialog.js"></script> 52 <script src="search_engine_dialog.js"></script>
43 </dom-module> 53 </dom-module>
OLDNEW
« 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