ohif-viewer/LesionTracker/client/components/viewerSection/viewerSection.styl

82 lines
1.8 KiB
Stylus
Raw Normal View History

2017-04-19 21:51:10 +02:00
@require '{ohif:design}/app'
2016-06-07 19:09:47 +02:00
.viewerSection
display: flex
flex: 1
2016-06-07 19:09:47 +02:00
flex-flow: row nowrap
align-items: stretch
2018-07-10 11:29:38 +02:00
height: 'calc(100% - %s)' % ($toolbarHeight + $topBarHeight)
2016-06-07 19:09:47 +02:00
width: 100%
.sidebarMenu
height: 100%
// required transformation to make inner fixed elements relative to this one
transform(scale(1))
transition($sidebarTransition)
.sidebar-option
height: 100%
max-width: inherit
position: absolute
transform(translateX(100%))
transition($sidebarTransition)
width: 100%
&.active
transform(translateX(0%))
2016-06-07 19:09:47 +02:00
.sidebar-left
theme('border-right', '%s solid $uiBorderColor' % $uiBorderThickness)
flex: 1
margin-left: - $studiesSidebarMenuWidth
2016-09-09 22:09:38 +02:00
max-width: $studiesSidebarMenuWidth
order: 1
visibility: hidden
2016-06-07 19:09:47 +02:00
&.sidebar-open
margin-left: 0
visibility: visible
2016-06-07 19:09:47 +02:00
.loadingTextDiv
theme('color', '$textSecondaryColor')
font-size: 32px
2016-06-07 19:09:47 +02:00
.mainContent
flex: 1
2016-06-07 19:09:47 +02:00
height: 100%
2017-04-19 21:51:10 +02:00
order: 2
2017-10-17 21:30:05 +02:00
overflow: visible
position: relative
transition($sidebarTransition)
2017-04-19 21:51:10 +02:00
width: 100%
2016-06-07 19:09:47 +02:00
2017-10-17 21:30:05 +02:00
.viewerMain
left: 0
position: absolute
top: 0
2016-06-07 19:09:47 +02:00
.sidebar-right
flex: 1
margin-right: - $rightSidebarMenuWidth
max-width: $rightSidebarMenuWidth
order: 3
position: relative
visibility: hidden
&[data-timepoints="3"]
margin-right: - ($rightSidebarMenuWidth + 135.5px)
max-width: $rightSidebarMenuWidth + 135.5px
&[data-timepoints="4"]
margin-right: - ($rightSidebarMenuWidth + 270px)
max-width: $rightSidebarMenuWidth + 270px
2016-06-07 19:09:47 +02:00
&.sidebar-open
margin-right: 0
visibility: visible
2016-06-07 19:09:47 +02:00
.studiesListedChanger
theme('border-bottom', '%s solid $uiBorderColor' % $uiBorderThickness)
2016-06-07 19:09:47 +02:00
padding: 20px 10px
text-align: center