Skip to content

Commit

Permalink
[MD settings] adjust control spacing
Browse files Browse the repository at this point in the history
This CL makes several small adjustments to control/item spacing as
requested by bettes@. The following items were tweaked: toggle button
width, controlled button to policy icon spacing, and ripple size on
icon buttons.

BUG=714320
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2873163002
Cr-Commit-Position: refs/heads/master@{#471908}
  • Loading branch information
dschuyler authored and Commit bot committed May 15, 2017
1 parent ba864de commit 9a68250
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<template>
<style include="settings-shared">
:host {
--justify-margin: 8px;
align-items: center;
display: flex;
--justify-margin: 18px;
}

:host([enforced_]) {
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/settings/settings_shared_css.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
paper-toggle-button {
@apply(--settings-actionable);
height: var(--settings-row-min-height);
width: 31px;
width: 36px;
}

span ~ a {
Expand Down
9 changes: 4 additions & 5 deletions chrome/browser/resources/settings/settings_vars_css.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,13 @@
--paper-checkbox-label-color: inherit;
--paper-dialog-color: inherit;

--cr-icon-ripple-size: 40px;
--paper-icon-button: {
/**
* This makes the icons 20px (in combination with "--cr-icon-ripple-size:
* 40px"), since paper-icon-button>iron-icon width and height are
* hardcoded to 100%.
* This makes the icons 20px (in combination with --cr-icon-ripple-size),
* since paper-icon-button>iron-icon width and height are hard-coded to
* 100%.
*/
padding: 10px;
padding: var(--cr-icon-ripple-padding);
};
--paper-input-container-focus-color: var(--google-blue-500);
--paper-input-container-input: {
Expand Down

0 comments on commit 9a68250

Please sign in to comment.