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

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

Issue 2886603002: [MD settings] separate spacing of controlled-by icon and control-label (Closed)
Patch Set: review changes Created 3 years, 7 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 | chrome/browser/resources/settings/controls/controlled_radio_button.html » ('j') | 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/html/assert.html"> 1 <link rel="import" href="chrome://resources/html/assert.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/cr_elements/policy/cr_policy_pref_be havior.html"> 4 <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_in dicator.html"> 5 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html">
6 <link rel="import" href="pref_control_behavior.html"> 6 <link rel="import" href="pref_control_behavior.html">
7 <link rel="import" href="../i18n_setup.html"> 7 <link rel="import" href="../i18n_setup.html">
8 <link rel="import" href="../settings_shared_css.html"> 8 <link rel="import" href="../settings_shared_css.html">
9 9
10 <dom-module id="controlled-button"> 10 <dom-module id="controlled-button">
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 cr-policy-pref-indicator { 25 cr-policy-pref-indicator {
26 /* Enable pointer events for the indicator so :hover works. Disable 26 /* Enable pointer events for the indicator so :hover works. Disable
27 * clicks/taps via onIndicatorTap_ so outer on-tap doesn't trigger. */ 27 * clicks/taps via onIndicatorTap_ so outer on-tap doesn't trigger. */
28 pointer-events: all; 28 pointer-events: all;
29 } 29 }
30 30
31 :host(:not([end-justified])) cr-policy-pref-indicator { 31 :host(:not([end-justified])) cr-policy-pref-indicator {
32 -webkit-margin-end: calc( 32 -webkit-margin-end: calc(
33 var(--cr-control-spacing) - var(--justify-margin)); 33 var(--cr-controlled-by-spacing) - var(--justify-margin));
34 -webkit-margin-start: var(--cr-control-spacing); 34 -webkit-margin-start: var(--cr-controlled-by-spacing);
35 } 35 }
36 36
37 :host([end-justified]) cr-policy-pref-indicator { 37 :host([end-justified]) cr-policy-pref-indicator {
38 -webkit-margin-end: var(--cr-control-spacing); 38 -webkit-margin-end: var(--cr-controlled-by-spacing);
39 -webkit-margin-start: calc( 39 -webkit-margin-start: calc(
40 var(--cr-control-spacing) - var(--justify-margin)); 40 var(--cr-controlled-by-spacing) - var(--justify-margin));
41 order: -1; 41 order: -1;
42 } 42 }
43 </style> 43 </style>
44 44
45 <paper-button disabled="[[enforced_]]">[[label]]</paper-button> 45 <paper-button disabled="[[enforced_]]">[[label]]</paper-button>
46 46
47 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]" restamp> 47 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]" restamp>
48 <cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_" 48 <cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_"
49 icon-aria-label="[[label]]"> 49 icon-aria-label="[[label]]">
50 </cr-policy-pref-indicator> 50 </cr-policy-pref-indicator>
51 </template> 51 </template>
52 52
53 </template> 53 </template>
54 <script src="controlled_button.js"></script> 54 <script src="controlled_button.js"></script>
55 </dom-module> 55 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/controls/controlled_radio_button.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698