Commit 8c2c8864 authored by Esmael El-Moslimany's avatar Esmael El-Moslimany Committed by Commit Bot

WebUI: cr-slider, adjust markers location to match up with bar

Bug: 908388
Change-Id: I0a93f9c648610331db2de63596f3349dd3d07333
Reviewed-on: https://chromium-review.googlesource.com/c/1351535Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Esmael El-Moslimany <aee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612073}
parent b1ec545a
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<template> <template>
<style include="cr-hidden-style"> <style include="cr-hidden-style">
:host { :host {
--cr-slider-bar-height: 2px;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
cursor: default; cursor: default;
user-select: none; user-select: none;
...@@ -36,19 +37,21 @@ ...@@ -36,19 +37,21 @@
#barContainer { #barContainer {
border-top-color: var(--google-blue-600-opacity-24); border-top-color: var(--google-blue-600-opacity-24);
height: 2px; height: var(--cr-slider-bar-height);
margin: 0 16px; margin: 0 16px;
position: absolute; position: absolute;
top: 15px; top: 15px;
width: calc(100% - 32px); width: calc(100% - 32px);
} }
#barContainer div {
top: calc(-1 * var(--cr-slider-bar-height));
}
#bar { #bar {
border-top-color: var(--cr-slider-active-color, var(--google-blue-600)); border-top-color: var(--cr-slider-active-color, var(--google-blue-600));
height: 2px;
left: 0; left: 0;
position: absolute; position: absolute;
top: -2px;
transition: width 80ms ease; transition: width 80ms ease;
width: 0; width: 0;
} }
...@@ -98,7 +101,6 @@ ...@@ -98,7 +101,6 @@
pointer-events: none; pointer-events: none;
position: absolute; position: absolute;
right: 0; right: 0;
top: 0;
@apply --layout-horizontal; @apply --layout-horizontal;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment