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

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

Issue 2902363002: [MD settings] adjust button layout (Closed)
Patch Set: icon buttons Created 3 years, 6 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/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 2
3 <link rel="import" href="chrome://resources/html/assert.html"> 3 <link rel="import" href="chrome://resources/html/assert.html">
4 <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-button/paper-butt on.html">
5 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_be havior.html"> 5 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_be havior.html">
6 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html"> 6 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html">
7 <link rel="import" href="pref_control_behavior.html"> 7 <link rel="import" href="pref_control_behavior.html">
8 <link rel="import" href="../i18n_setup.html"> 8 <link rel="import" href="../i18n_setup.html">
9 <link rel="import" href="../settings_shared_css.html"> 9 <link rel="import" href="../settings_shared_css.html">
10 10
11 <dom-module id="controlled-button"> 11 <dom-module id="controlled-button">
12 <template> 12 <template>
13 <style include="settings-shared"> 13 <style include="settings-shared">
14 :host { 14 :host {
15 --justify-margin: 8px; 15 --justify-margin: 8px;
16 -webkit-margin-end: calc(var(--settings-button-edge-spacing) * -1);
17 -webkit-margin-start: calc(var(--settings-button-edge-spacing) * -1);
dschuyler 2017/05/25 21:30:23 This should be modified to take the separator into
16 align-items: center; 18 align-items: center;
17 display: flex; 19 display: flex;
18 } 20 }
19 21
20 :host([enforced_]) { 22 :host([enforced_]) {
21 /* Disable pointer events for this whole element, as outer on-tap gets 23 /* Disable pointer events for this whole element, as outer on-tap gets
22 * triggered when clicking/tapping anywhere in :host. */ 24 * triggered when clicking/tapping anywhere in :host. */
23 pointer-events: none; 25 pointer-events: none;
24 } 26 }
25 27
(...skipping 21 matching lines...) Expand all
47 49
48 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]" restamp> 50 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]" restamp>
49 <cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_" 51 <cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_"
50 icon-aria-label="[[label]]"> 52 icon-aria-label="[[label]]">
51 </cr-policy-pref-indicator> 53 </cr-policy-pref-indicator>
52 </template> 54 </template>
53 55
54 </template> 56 </template>
55 <script src="controlled_button.js"></script> 57 <script src="controlled_button.js"></script>
56 </dom-module> 58 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698