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

Unified Diff: chrome/browser/resources/settings/controls/settings_slider.html

Issue 2823143002: [MD settings] align sliders with margin (Closed)
Patch Set: nits Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/controls/settings_slider.html
diff --git a/chrome/browser/resources/settings/controls/settings_slider.html b/chrome/browser/resources/settings/controls/settings_slider.html
index e80d1caea85d74a635e6c041407a63ad11237b6a..bc10be0e99dd9a6dc0f63de28724cc80dbfd8045 100644
--- a/chrome/browser/resources/settings/controls/settings_slider.html
+++ b/chrome/browser/resources/settings/controls/settings_slider.html
@@ -7,6 +7,10 @@
<template>
<style>
:host {
+ --calculated-paper-slider-height: var(--paper-slider-height, 2px);
+ /* Counteract the margin on #sliderContainer in paper-slider.html. */
+ -webkit-margin-end:
+ calc(-15px - var(--calculated-paper-slider-height) / 2);
display: inline-flex;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698