OHIF-164 Prevent overflowing navigationButtons of the protocol editor

This commit is contained in:
Evren Ozkan 2017-05-05 12:17:29 -04:00
parent 88385857b6
commit 0c5f79f434
2 changed files with 37 additions and 33 deletions

View File

@ -1,6 +1,6 @@
<template name="protocolEditor">
<div id='protocolEditor'>
<div class="row">
<div class="row navigationButtonsContainer">
<div class="navigationButtons col-xs-12">
<ul class="nav nav-pills">
<li class="active">

View File

@ -10,42 +10,46 @@ $height = 20px
position: absolute
top: 0
.navigationButtons
ul
margin: 0 auto
width: 300px
.navigationButtonsContainer
margin-left: 0
margin-right: 0
li
text-align: center
width: 150px
margin: 0
.navigationButtons
ul
margin: 0 auto
width: 300px
li
text-align: center
width: 150px
margin: 0
&:first-child:not(:last-child)
a
border-top-right-radius: 0
border-bottom-right-radius: 0
&:last-child:not(:first-child)
a
border-top-left-radius: 0
border-bottom-left-radius: 0
&:first-child:not(:last-child)
a
border-top-right-radius: 0
border-bottom-right-radius: 0
padding: 3px 9px
cursor: pointer
text-decoration: none
outline: none
theme('background-color', '$uiGrayDark')
theme('border', '2px solid $uiBorderColorDark')
theme('color', '$textSecondaryColor')
transition: transition($sidebarTransition)
border-radius: $height
&:last-child:not(:first-child)
a
border-top-left-radius: 0
border-bottom-left-radius: 0
a
padding: 3px 9px
cursor: pointer
text-decoration: none
outline: none
theme('background-color', '$uiGrayDark')
theme('border', '2px solid $uiBorderColorDark')
theme('color', '$textSecondaryColor')
transition: transition($sidebarTransition)
border-radius: $height
&.active a
theme('background-color', '$activeColor')
theme('border-color', '$uiBorderColorActive')
theme('color', '$textColorActive')
transition: transition($sidebarTransition)
&.active a
theme('background-color', '$activeColor')
theme('border-color', '$uiBorderColorActive')
theme('color', '$textColorActive')
transition: transition($sidebarTransition)
p
h2