From a7c035fdceed4425ab5ea1090add66ee49ec2313 Mon Sep 17 00:00:00 2001 From: Jared Scheib Date: Wed, 2 Aug 2017 09:40:22 -0700 Subject: [PATCH] Revert "Rename classes and element" This reverts commit b7bb9cb33905afabfcd45baa38aa924015b272db. --- ui/src/dashboards/components/Ranger.js | 4 +- ui/src/style/components/one-or-any.scss | 60 +++++++++++++------------ 2 files changed, 33 insertions(+), 31 deletions(-) diff --git a/ui/src/dashboards/components/Ranger.js b/ui/src/dashboards/components/Ranger.js index 19c3fbd0cb..b5615c6b8a 100644 --- a/ui/src/dashboards/components/Ranger.js +++ b/ui/src/dashboards/components/Ranger.js @@ -23,8 +23,8 @@ const Ranger = ({onSetRange, axes}) => {
auto
-
-
+
+
div { + margin: 0 10px; + z-index: 3; + width: 28px; + height: 8px; + border-radius: 4px; + background-color: $g6-smoke; + position: relative; + + // Dot + &:after { + content: ''; + position: absolute; + top: 50%; + left: 50%; + width: 14px; + height: 14px; + border-radius: 50%; + background-color: $c-pool; + transition: + background-color 0.25s ease, + transform 0.25s ease; + transform: translate(-100%,-50%); + } + } + // Background Gradients &:before, &:after { content: ''; @@ -55,32 +82,7 @@ &:hover { cursor: pointer; - .one-or-any--groove-knob:after {background-color: $c-laser;} - } -} -.one-or-any--groove-knob { - margin: 0 10px; - z-index: 3; - width: 28px; - height: 8px; - border-radius: 4px; - background-color: $g6-smoke; - position: relative; - - // Knob - &:after { - content: ''; - position: absolute; - top: 50%; - left: 50%; - width: 14px; - height: 14px; - border-radius: 50%; - background-color: $c-pool; - transition: - background-color 0.25s ease, - transform 0.25s ease; - transform: translate(-100%,-50%); + > div:after {background-color: $c-laser;} } } // Customize form input @@ -90,9 +92,9 @@ } // Toggled state .one-or-any.toggled { - .one-or-any--groove-knob:after {transform: translate(0%,-50%);} + .one-or-any--switch > div:after {transform: translate(0%,-50%);} // Fade out left, fade in right - .one-or-any--toggle:before {opacity: 0;} + .one-or-any--switch:before {opacity: 0;} // Make auto look disabled .one-or-any--auto { background-color: $g3-castle;