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

Unified Diff: chrome/browser/resources/settings/settings_shared_css.html

Issue 2902363002: [MD settings] adjust button layout (Closed)
Patch Set: merge with master 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/settings_shared_css.html
diff --git a/chrome/browser/resources/settings/settings_shared_css.html b/chrome/browser/resources/settings/settings_shared_css.html
index f5a4653719711fb0ae0c50a934a781dcc2eea6ef..54203fafb937c5958a58f118490de9e0235fc9f0 100644
--- a/chrome/browser/resources/settings/settings_shared_css.html
+++ b/chrome/browser/resources/settings/settings_shared_css.html
@@ -27,6 +27,18 @@
--iron-icon-fill-color: var(--google-green-500);
}
+ paper-icon-button {
+ -webkit-margin-end: var(--cr-icon-ripple-margin);
+ -webkit-margin-start: 16px;
+ color: var(--paper-grey-600);
+ flex-shrink: 0;
+ }
+
+ .separator + button[is='paper-icon-button-light'],
+ .separator + paper-icon-button {
+ -webkit-margin-start: var(--cr-icon-ripple-margin));
+ }
+
/* See notes in .primary-button.
* TODO(dschuyler): Remove unnecessary .secondary-button references. */
paper-button {
@@ -50,8 +62,19 @@
background-color: var(--paper-grey-300);
}
- .settings-box paper-button {
+ /* If a button is at the end of the row, shift it to overlap the end of
+ * the row. */
+ .settings-box paper-button:last-of-type {
-webkit-margin-end: calc(var(--settings-button-edge-spacing) * -1);
+ }
+
+ /* Space out multiple buttons in the same row. */
+ .settings-box paper-button + paper-button {
+ -webkit-margin-start: 16px;
+ }
+
+ /* Adjust the margin between the separator and the first button. */
+ .settings-box .separator + paper-button {
-webkit-margin-start: calc(var(--settings-button-edge-spacing) * -1);
}

Powered by Google App Engine
This is Rietveld 408576698