OLD | NEW |
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"> | 10 <style include="settings-shared"> |
11 :host { | 11 :host { |
12 --paper-input-container: { | 12 --paper-input-container: { |
13 /** | 13 /** |
14 * Saves space for error message. Using calc to leave just enough | 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). | 15 * space at all font sizes (default 0, grow/shrink with font-size). |
| 16 * Using padding instead of padding-bottom to prevent |
| 17 * paper-input-container's default padding rule to eat up the |
| 18 * padding-bottom rule. |
16 */ | 19 */ |
17 padding-bottom: calc(1rem - 8px); | 20 padding: 8px 0 calc(1rem - 8px) 0; |
18 }; | 21 }; |
19 } | 22 } |
20 </style> | 23 </style> |
21 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}"> | 24 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}"> |
22 <div class="title">[[dialogTitle_]]</div> | 25 <div class="title">[[dialogTitle_]]</div> |
23 <div class="body" on-keypress="onKeypress_"> | 26 <div class="body" on-keypress="onKeypress_"> |
24 <paper-input always-float-label id="searchEngine" | 27 <paper-input always-float-label id="searchEngine" |
25 label="$i18n{searchEnginesSearchEngine}" | 28 label="$i18n{searchEnginesSearchEngine}" |
26 error-message="$i18n{notValid}" | 29 error-message="$i18n{notValid}" |
27 value="{{searchEngine_}}" on-input="validate_" | 30 value="{{searchEngine_}}" on-input="validate_" |
(...skipping 16 matching lines...) Expand all Loading... |
44 $i18n{cancel}</paper-button> | 47 $i18n{cancel}</paper-button> |
45 <paper-button id="actionButton" class="action-button" | 48 <paper-button id="actionButton" class="action-button" |
46 on-tap="onActionButtonTap_"> | 49 on-tap="onActionButtonTap_"> |
47 [[actionButtonText_]] | 50 [[actionButtonText_]] |
48 </paper-button> | 51 </paper-button> |
49 </div> | 52 </div> |
50 </dialog> | 53 </dialog> |
51 </template> | 54 </template> |
52 <script src="search_engine_dialog.js"></script> | 55 <script src="search_engine_dialog.js"></script> |
53 </dom-module> | 56 </dom-module> |
OLD | NEW |