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

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

Issue 2823143002: [MD settings] align sliders with margin (Closed)
Patch Set: 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..6a5b402954acefcb07add76bb17b0fc0ec655301 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);
dschuyler 2017/04/18 00:55:24 Lines 10 through 13 can be replaced with: -webkit
stevenjb 2017/04/18 15:53:38 This seems fine to me. nit: space surrounding '/'
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