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

123 lines
3.1 KiB
Stylus
Raw Normal View History

@import "{ohif:design}/app"
2016-08-03 16:22:37 +02:00
$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
2015-12-10 12:01:06 +01:00
.imageControls
height: 100%
padding: 5px
2017-04-19 08:22:42 -03:00
position: absolute
right: 0
top: 0
2016-01-18 14:48:09 -05:00
2017-04-19 07:45:39 -03:00
.scrollbar
2017-04-19 08:22:42 -03:00
height: calc(100% - 20px)
2015-12-10 12:01:06 +01:00
margin-top: 5px
2017-04-19 08:22:42 -03:00
position: relative
width: 12px
2015-12-10 12:01:06 +01:00
2017-04-19 07:45:39 -03:00
.imageSlider
2017-04-19 08:22:42 -03:00
height: $imageSliderWidth
left: 12px
padding: 0
2015-12-10 12:01:06 +01:00
position: absolute
2017-04-19 08:22:42 -03:00
top: 0
2015-12-10 12:01:06 +01:00
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
2017-04-19 08:22:42 -03:00
background-color: $imageSliderTrackColor
2016-08-03 16:22:37 +02:00
border: none
cursor: pointer
2017-04-19 08:22:42 -03:00
height: 5px
2015-12-10 12:01:06 +01:00
z-index: 6
&::-moz-range-track
2017-04-19 08:22:42 -03:00
background-color: $imageSliderTrackColor
2016-08-03 16:22:37 +02:00
border: none
cursor: pointer
2017-04-19 08:22:42 -03:00
height: 2px
2015-12-10 12:01:06 +01:00
z-index: 6
&::-ms-track
2016-01-18 14:48:09 -05:00
animate: 0.2s
background: transparent
2017-04-19 08:22:42 -03:00
border: none
2016-01-18 14:48:09 -05:00
border-width: 15px 0
2016-08-03 16:22:37 +02:00
color: $imageSliderTrackColor
2017-04-19 08:22:42 -03:00
cursor: pointer
height: $imageSliderWidth
width: 100%
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: $imageSliderBorder
2017-04-19 08:22:42 -03:00
border-radius: $imageSliderBorderRadius
cursor: -webkit-grab
2016-08-03 16:22:37 +02:00
height: $imageSliderWidth
2017-04-19 08:22:42 -03:00
margin-top: -4px
2016-08-03 16:22:37 +02:00
width: $imageSliderHeight
2015-12-10 12:01:06 +01:00
&:active
2016-08-23 14:24:51 -03:00
theme('background-color', '$activeColor')
2017-04-19 07:45:39 -03:00
cursor: -webkit-grabbing
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: $imageSliderBorder
2017-04-19 08:22:42 -03:00
border-radius: $imageSliderBorderRadius
cursor: -moz-grab
2016-08-03 16:22:37 +02:00
height: $imageSliderWidth
width: $imageSliderHeight
2015-12-10 12:01:06 +01:00
z-index: 7
&:active
2016-08-23 14:24:51 -03:00
theme('background-color', '$activeColor')
2017-04-19 07:45:39 -03:00
cursor: -moz-grabbing
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: $imageSliderBorder
2017-04-19 08:22:42 -03:00
border-radius: $imageSliderBorderRadius
cursor: ns-resize
2016-08-03 16:22:37 +02:00
height: $imageSliderWidth
width: $imageSliderHeight
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
2017-04-19 07:45:39 -03:00
&::-ms-tooltip
display: none
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)
2017-04-19 07:45:39 -03:00
.imageSlider
left: 50px