diff options
| author | Melissa Zhang <mzhang19096@gmail.com> | 2020-05-23 23:28:41 -0700 |
|---|---|---|
| committer | Melissa Zhang <mzhang19096@gmail.com> | 2020-05-23 23:28:41 -0700 |
| commit | cfb39128ecd63cf38a0a63cea8ae904884422fad (patch) | |
| tree | 47346127640c0ef12fe03febc11f518c2bebb1ec /src/client/views/nodes/ComparisonBox.scss | |
| parent | afd30b6b109fd612f7a5bd7958fd781a371d6e34 (diff) | |
add sliding/click listener to slider-bar div
Diffstat (limited to 'src/client/views/nodes/ComparisonBox.scss')
| -rw-r--r-- | src/client/views/nodes/ComparisonBox.scss | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/client/views/nodes/ComparisonBox.scss b/src/client/views/nodes/ComparisonBox.scss index 7849c9976..810a824cf 100644 --- a/src/client/views/nodes/ComparisonBox.scss +++ b/src/client/views/nodes/ComparisonBox.scss @@ -1,4 +1,5 @@ -.comparisonBox-interactive, .comparisonBox { +.comparisonBox-interactive, +.comparisonBox { border-radius: inherit; width: 100%; height: 100%; @@ -19,13 +20,13 @@ } } - .slide-bar { + .slide-bar { position: absolute; height: 100%; width: 3px; display: inline-block; background: white; - cursor: ew-resize; + .slide-handle { position: absolute; display: none; @@ -33,7 +34,9 @@ width: 30px; bottom: 0px; left: -10.5px; - .left-handle, .right-handle{ + + .left-handle, + .right-handle { width: 15px; } } @@ -77,10 +80,13 @@ } } } + .comparisonBox-interactive { pointer-events: unset; + cursor: ew-resize; + .slide-bar { - .slide-handle { + .slide-handle { display: flex; } } |
