From ef742ee3b50f06ddffaf2417316eba07e8f0f137 Mon Sep 17 00:00:00 2001 From: Bruno Alves de Faria Date: Mon, 13 Jun 2016 16:30:33 -0300 Subject: [PATCH] LT-250: Fixing quick switch dimensions --- .../studySeriesQuickSwitch.styl | 62 +++++++++++-------- .../toolbarSection/toolbarSection.styl | 13 ---- 2 files changed, 37 insertions(+), 38 deletions(-) diff --git a/Packages/lesiontracker/client/components/studySeriesQuickSwitch/studySeriesQuickSwitch.styl b/Packages/lesiontracker/client/components/studySeriesQuickSwitch/studySeriesQuickSwitch.styl index edc98098d..1cd839829 100644 --- a/Packages/lesiontracker/client/components/studySeriesQuickSwitch/studySeriesQuickSwitch.styl +++ b/Packages/lesiontracker/client/components/studySeriesQuickSwitch/studySeriesQuickSwitch.styl @@ -1,12 +1,23 @@ @import "{design}/app" $switchSize = 50px +$switchTop = 5px +$switchHeight = 70px +$switchWrapperWidth = 140px .quickSwitch height: 80px position: absolute - top: 5px - width: 140px + top: $switchTop + width: $switchWrapperWidth + + &.middle + left: 'calc(50% - %s)' % ($switchWrapperWidth / 2) + + &.left + left: 'calc(50% - %s - 20px)' % $switchWrapperWidth + &.right + left: calc(50% + 20px) div.switchSection display: inline-block @@ -42,11 +53,10 @@ $switchSize = 50px .mirror-x transform(scaleX(-1)); -.studyHover +.studyHover, .seriesHover position: absolute z-index: 10000 - top: 70px - left: -350px + top: $switchHeight width: 400px height: 500px background: black @@ -54,17 +64,13 @@ $switchSize = 50px border-radius: 5px transition(all 0.3s ease) +.studyHover + left: -350px + width: 400px + .seriesHover - position: absolute - z-index: 10000 - top: 70px left: 50px width: 700px - height: 900px - background: black - opacity: 0.8 - border-radius: 5px - transition(all 0.3s ease) &.tiny width: 0 @@ -76,16 +82,22 @@ $switchSize = 50px width: 33% display: inline-block -$switchSizeSmall = 30px +$switchSizeSmall = 35px @media screen and (max-width: 1600px) - .quickSwitch div.switchSection - .label - font-size: 8px - font-weight: 400 - padding: 0 - .studySwitch - border-radius: 7px - .studySwitch, .seriesSwitch - &, svg - width: $switchSizeSmall - height: $switchSizeSmall + .quickSwitch + &.left + left: 'calc(50% - %s - 8px)' % $switchWrapperWidth + &.right + left: calc(50% + 8px) + height: 45px + div.switchSection + .label + font-size: 8px + font-weight: 400 + padding: 0 + .studySwitch + border-radius: 7px + .studySwitch, .seriesSwitch + &, svg + width: $switchSizeSmall + height: $switchSizeSmall diff --git a/Packages/lesiontracker/client/components/toolbarSection/toolbarSection.styl b/Packages/lesiontracker/client/components/toolbarSection/toolbarSection.styl index 9c79551b5..cd5eadb3d 100644 --- a/Packages/lesiontracker/client/components/toolbarSection/toolbarSection.styl +++ b/Packages/lesiontracker/client/components/toolbarSection/toolbarSection.styl @@ -60,16 +60,3 @@ min-width: 30px stroke: $defaultColor text-align: center - - .quickSwitch - position: absolute - - &.middle - left: calc(50% - 60px) - - &.left - left: calc(50% - 160px) - - &.right - left: 50% - margin-left: 20px