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

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

Issue 2918953002: [MD settings] layout of buttons inside toggles and iron-lists (Closed)
Patch Set: 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
« no previous file with comments | « chrome/browser/resources/settings/on_startup_page/startup_urls_page.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 54203fafb937c5958a58f118490de9e0235fc9f0..917ba17c694d3ce4fc7ec5d1caaee591a327dae1 100644
--- a/chrome/browser/resources/settings/settings_shared_css.html
+++ b/chrome/browser/resources/settings/settings_shared_css.html
@@ -39,6 +39,13 @@
-webkit-margin-start: var(--cr-icon-ripple-margin));
}
+ .list-item paper-icon-button {
+ /* Workaround iron-list cutting off ripples on paper-icon-buttons.
+ * TODO(dschuyler): Can the end margin be done differently to allow for
+ * ripples to look like they are overlapping the margin. */
+ -webkit-margin-end: 0;
+ }
+
/* See notes in .primary-button.
* TODO(dschuyler): Remove unnecessary .secondary-button references. */
paper-button {
@@ -68,6 +75,11 @@
-webkit-margin-end: calc(var(--settings-button-edge-spacing) * -1);
}
+ /* Special case for buttons inside of toggle-buttons. */
+ .settings-box settings-toggle-button paper-button:last-of-type {
+ -webkit-margin-end: 16px;
+ }
+
/* Space out multiple buttons in the same row. */
.settings-box paper-button + paper-button {
-webkit-margin-start: 16px;
« no previous file with comments | « chrome/browser/resources/settings/on_startup_page/startup_urls_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698