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

Side by Side Diff: chrome/browser/resources/settings/controls/settings_dropdown_menu.html

Issue 2744763003: [MD settings] CSS var --checkbox-spacing to --settings-control-spacing (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
OLDNEW
1 <link rel="import" href="chrome://resources/html/md_select_css.html"> 1 <link rel="import" href="chrome://resources/html/md_select_css.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/cr_elements/policy/cr_policy_pref_be havior.html"> 3 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_be havior.html">
4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html"> 4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html">
5 <link rel="import" href="pref_control_behavior.html"> 5 <link rel="import" href="pref_control_behavior.html">
6 <link rel="import" href="../i18n_setup.html"> 6 <link rel="import" href="../i18n_setup.html">
7 <link rel="import" href="../prefs/pref_util.html"> 7 <link rel="import" href="../prefs/pref_util.html">
8 <link rel="import" href="../settings_shared_css.html"> 8 <link rel="import" href="../settings_shared_css.html">
9 <link rel="import" href="../settings_vars_css.html"> 9 <link rel="import" href="../settings_vars_css.html">
10 10
11 <dom-module id="settings-dropdown-menu"> 11 <dom-module id="settings-dropdown-menu">
12 <template> 12 <template>
13 <style include="settings-shared md-select"> 13 <style include="settings-shared md-select">
14 :host { 14 :host {
15 display: inline-flex; 15 display: inline-flex;
16 } 16 }
17 17
18 cr-policy-pref-indicator { 18 cr-policy-pref-indicator {
19 margin: 0 var(--checkbox-spacing); 19 margin: 0 var(--settings-control-spacing);
20 } 20 }
21 21
22 /* Hide "Custom" value when unselectable. */ 22 /* Hide "Custom" value when unselectable. */
23 option:disabled { 23 option:disabled {
24 display: none; 24 display: none;
25 } 25 }
26 </style> 26 </style>
27 <template is="dom-if" if="[[pref.controlledBy]]" restamp> 27 <template is="dom-if" if="[[pref.controlledBy]]" restamp>
28 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> 28 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator>
29 </template> 29 </template>
30 <div class="md-select-wrapper"> 30 <div class="md-select-wrapper">
31 <select class="md-select" id="dropdownMenu" on-change="onChange_" 31 <select class="md-select" id="dropdownMenu" on-change="onChange_"
32 disabled="[[shouldDisableMenu_(disabled, menuOptions, pref.*)]]"> 32 disabled="[[shouldDisableMenu_(disabled, menuOptions, pref.*)]]">
33 <template is="dom-repeat" items="[[menuOptions]]"> 33 <template is="dom-repeat" items="[[menuOptions]]">
34 <option value="[[item.value]]">[[item.name]]</option> 34 <option value="[[item.value]]">[[item.name]]</option>
35 </template> 35 </template>
36 <option value="[[notFoundValue_]]" 36 <option value="[[notFoundValue_]]"
37 disabled="[[!showNotFoundValue_(menuOptions, pref.value)]]"> 37 disabled="[[!showNotFoundValue_(menuOptions, pref.value)]]">
38 $i18n{custom} 38 $i18n{custom}
39 </option> 39 </option>
40 </select> 40 </select>
41 <span class="md-select-underline"></span> 41 <span class="md-select-underline"></span>
42 </div> 42 </div>
43 </template> 43 </template>
44 <script src="settings_dropdown_menu.js"></script> 44 <script src="settings_dropdown_menu.js"></script>
45 </dom-module> 45 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698