Files
ohif-viewer/Packages/viewerbase/client/components/viewer/imageControls/imageControls.styl
T

115 lines
2.9 KiB
Stylus
Raw Normal View History

2016-08-03 16:22:37 +02:00
@import "{design}/app"
$imageSliderBorderRadius = 57px
$imageSliderTrackColor = rgba(0,0,0,0)
$imageSliderBorder = none
// Note that these are backwards due to the magic needed to make a cross-browser vertical slider
$imageSliderWidth = 12px
$imageSliderHeight = 39px
$imageSliderCursor = grab
2015-12-10 12:01:06 +01:00
.imageControls
position: absolute
top: 0
right: 0
height: 100%
padding: 5px
2016-01-18 14:48:09 -05:00
2015-12-10 12:01:06 +01:00
#scrollbar
height: calc(100% - 20px);
2015-12-10 12:01:06 +01:00
margin-top: 5px
width: 31px
#imageSlider
position: absolute
left: 20px
2016-08-03 16:22:37 +02:00
vendorize(transform, rotate(90deg))
vendorize(transform-origin, top left)
2015-12-10 12:01:06 +01:00
2016-08-03 16:22:37 +02:00
-webkit-appearance: none
background-color: $imageSliderTrackColor
2015-12-10 12:01:06 +01:00
// Remove focus highlights on range input
&:focus
outline: none
2016-08-03 16:22:37 +02:00
vendorize(box-shadow, none)
2015-12-10 12:01:06 +01:00
// Remove focus border in Firefox
&::-moz-focus-outer
border: none
2016-08-03 16:22:37 +02:00
2015-12-10 12:01:06 +01:00
// --- Style the range track --- //
&::-webkit-slider-runnable-track
2016-08-03 16:22:37 +02:00
height: 5px
border: none
cursor: pointer
background-color: $imageSliderTrackColor
2015-12-10 12:01:06 +01:00
z-index: 6
&::-moz-range-track
2016-08-03 16:22:37 +02:00
height: 2px
border: none
cursor: pointer
background-color: $imageSliderTrackColor
2015-12-10 12:01:06 +01:00
z-index: 6
&::-ms-track
2016-01-18 14:48:09 -05:00
width: 100%
2015-12-10 12:01:06 +01:00
height: 2px
2016-08-03 16:22:37 +02:00
border: none
2016-01-18 14:48:09 -05:00
cursor: pointer
animate: 0.2s
background: transparent
border-width: 15px 0
2016-08-03 16:22:37 +02:00
color: $imageSliderTrackColor
2015-12-10 12:01:06 +01:00
// Hide any fill IE tries to add
&::-ms-fill-lower
2016-08-03 16:22:37 +02:00
background: $imageSliderTrackColor
2015-12-10 12:01:06 +01:00
&::-ms-fill-upper
2016-08-03 16:22:37 +02:00
background: $imageSliderTrackColor
2015-12-10 12:01:06 +01:00
// --- Style the range thumb --- //
&::-webkit-slider-thumb
-webkit-appearance: none !important
2016-08-23 14:24:51 -03:00
theme('background-color', '$imageSliderColor')
2016-08-03 16:22:37 +02:00
border-radius: $imageSliderBorderRadius
border: $imageSliderBorder
height: $imageSliderWidth
width: $imageSliderHeight
cursor: $imageSliderCursor
2015-12-10 12:01:06 +01:00
margin-top: -7px
&:active
2016-08-23 14:24:51 -03:00
theme('background-color', '$activeColor')
2015-12-10 12:01:06 +01:00
&::-moz-range-thumb
2016-08-23 14:24:51 -03:00
theme('background-color', '$imageSliderColor')
2016-08-03 16:22:37 +02:00
border-radius: $imageSliderBorderRadius
border: $imageSliderBorder
height: $imageSliderWidth
width: $imageSliderHeight
cursor: $imageSliderCursor
2015-12-10 12:01:06 +01:00
z-index: 7
&:active
2016-08-23 14:24:51 -03:00
theme('background-color', '$activeColor')
2015-12-10 12:01:06 +01:00
&::-ms-thumb
2016-08-23 14:24:51 -03:00
theme('background-color', '$imageSliderColor')
2016-08-03 16:22:37 +02:00
border-radius: $imageSliderBorderRadius
border: $imageSliderBorder
height: $imageSliderWidth
width: $imageSliderHeight
cursor: $imageSliderCursor
2015-12-10 12:01:06 +01:00
&:active
2016-08-23 14:24:51 -03:00
theme('background-color', '$activeColor')
2016-08-03 16:22:37 +02:00
// Set left position in IE, border-width attribute breaks left position of imageSlider
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)
#imageSlider
left: 50px