LT-342: Study List style issues

This commit is contained in:
Leonardo Campos 2016-11-18 01:04:31 -02:00
parent 5272cc234a
commit bda7e6df8c
8 changed files with 81 additions and 25 deletions

View File

@ -1,13 +1,15 @@
<template name="studyAssociationTable"> <template name="studyAssociationTable">
<div id="studyAssociationTable"> <div id="studyAssociationTable">
<div class="row"> <div id="associationInstructions" class="row">
<div class="col-md-12"> <div class="col-md-12">
<h4>Instructions</h4> <h4>Instructions</h4>
<p>Associate the selected studies with timepoints in the clinical trial. Only 1 follow-up time point can be associated at the same time.</p> <p>Select the studies you would like to associate to a time point. Only one follow-up time point can be associated at the same time.</p>
<p>We have automatically retrieved all studies within 14 days (<strong>{{formatDA this.earliestDate}}</strong> to <strong>{{formatDA latestDate}}</strong>) of your selected studies, in case you forgot to select a study.</p> <p>We have automatically retrieved all studies within 14 days (<strong>{{formatDA this.earliestDate}}</strong> to <strong>{{formatDA latestDate}}</strong>) of your selected studies, in case you forgot to select a study.</p>
</div> </div>
</div> </div>
<div class="tableHeaderBackground">
</div>
<table class="table table-responsive"> <table class="table table-responsive">
<thead> <thead>
<tr> <tr>

View File

@ -1,18 +1,65 @@
@import "{design}/app" @import "{design}/app"
$tableHoverColor = #2c363f
$tableTextPrimaryColor = white
$tableHeaderHeight = 50px
$bodyCellHeight = 30px
#studyAssociationTable #studyAssociationTable
color: #fff;
.header .header
text-align: center text-align: center
.center .center
text-align: center text-align: center
#associationInstructions
theme('background', '$uiGrayDarker')
margin-bottom: 2px
padding: 0 15px
.tableHeaderBackground
theme('background-color', '$uiGrayDarker')
position: absolute
height: $tableHeaderHeight + 1px
left: 0
width: 100%
z-index: 1
border-bottom: solid 1px;
theme('border-bottom-color', '$largeNumbersColor')
table table
z-index: 2
position: relative
thead
tr
th
padding: 0
border-bottom: solid 1px #6fbde2
height: $tableHeaderHeight
tbody tbody
tr tr
padding: 5px
background-color: black
&:nth-child(even)
theme('background-color', '$uiGrayDarker')
td td
position: relative position: relative
height: $bodyCellHeight
line-height: $bodyCellHeight
color: $tableTextPrimaryColor
border-top: 1px solid #436270
border-bottom: 1px solid #436270
vertical-align: middle;
transition(all 0.1s ease)
p
margin: 0;
&.timepointOptions &.timepointOptions
input input
margin: 0 3px margin: 0 3px
@ -61,11 +108,16 @@
padding-left: 20px padding-left: 20px
display: inline-block display: inline-block
position: relative position: relative
line-height: initial;
&.disabled &.disabled
opacity: 0.2 opacity: 0.2
&.checkboxWrapper &.checkboxWrapper
label
display: block
margin: 0
input input
margin: 0 3px margin: 0 3px
@ -81,25 +133,22 @@
& + span & + span
display: block display: block
position: absolute
border: 1px solid #b6b6b6 border: 1px solid #b6b6b6
background-color: white background-color: white
border-radius: 2px border-radius: 2px
height: 16px height: 16px
width: 16px width: 16px
top: 10px margin: 0 auto
left: calc((100% - 16px)/2)
z-index: 5 z-index: 5
transition: border .25s linear transition: border .25s linear
-webkit-transition: border .25s linear -webkit-transition: border .25s linear
& + span:before & + span:before
display: block display: block
position: absolute position: relative
content: '' content: ''
font-size: 9px font-size: 9px
left: 3px top: -7px
top: 1px
color: white color: white
background-color: transparent background-color: transparent
transition: background 0.25s linear transition: background 0.25s linear
@ -109,4 +158,14 @@
theme('background-color', '$activeColor') theme('background-color', '$activeColor')
&:before &:before
content: '\2713' content: '\2713'
&:hover, &:active, &.active
background-color: $tableHoverColor
color: white
td
// This selector is necessary to override bootstrap's 'table' class
border-top: 1px solid #436270
border-bottom: 1px solid #436270
background-color: $tableHoverColor

View File

@ -10,7 +10,7 @@
{{/if}} {{/if}}
{{#if progressComplete}} {{#if progressComplete}}
<div class="caseProgressStatus"> <div class="caseProgressStatus">
<button class="btn js-finish-case">Enter response</button> <button class="btn js-finish-case">Save</button>
</div> </div>
{{/if}} {{/if}}
</div> </div>

View File

@ -53,3 +53,7 @@
&.disabled a &.disabled a
theme('color', '$uiGrayLight') theme('color', '$uiGrayLight')
@media only screen and (max-width: 1069px)
.studylistPagination > .row
margin-right: 0;

View File

@ -1,7 +1,7 @@
<template name="studylistResult"> <template name="studylistResult">
<div class="studyListToolbar clearfix"> <div class="studyListToolbar clearfix">
<div class="header pull-left"> <div class="header pull-left">
Study list Study List
</div> </div>
<div class="studyCount pull-right"> <div class="studyCount pull-right">
{{numberOfStudies}} {{numberOfStudies}}
@ -71,13 +71,6 @@
class="form-control studylist-search" class="form-control studylist-search"
id="studyDescription"> id="studyDescription">
</th> </th>
<th class="numberOfStudyRelatedInstances">
<div id="_numberOfStudyRelatedInstances" class="sortingCell">
<span># Images</span>
<i class="{{sortingColumnsIcons.numberOfStudyRelatedInstances}}">&nbsp;</i>
</div>
<input type="text" class="form-control studylist-search invisible"/>
</th>
</tr> </tr>
</thead> </thead>
<tbody id="studyListData"> <tbody id="studyListData">

View File

@ -204,8 +204,7 @@ Template.studylistResult.onCreated(() => {
patientId: 0, patientId: 0,
accessionNumber: 0, accessionNumber: 0,
studyDescription: 0, studyDescription: 0,
modality: 0, modality: 0
numberOfStudyRelatedInstances: 0
}); });
} }
}); });

View File

@ -209,6 +209,9 @@ $bodyCellHeight = 40px
@media only screen and (max-width: 1069px) @media only screen and (max-width: 1069px)
$tablePaddingMediumScreen = 5px $tablePaddingMediumScreen = 5px
.theadBackground
height: 101px
.studyListToolbar .studyListToolbar
padding: 0 $tablePaddingMediumScreen padding: 0 $tablePaddingMediumScreen
@ -229,7 +232,6 @@ $bodyCellHeight = 40px
div.sortingCell div.sortingCell
padding: 10px 5px padding: 10px 5px
min-width: auto
i i
width: auto width: auto

View File

@ -18,8 +18,5 @@
<td class="studyDescription"> <td class="studyDescription">
{{studyDescription}} {{studyDescription}}
</td> </td>
<td class="numberOfStudyRelatedInstances">
{{numberOfStudyRelatedInstances}}
</td>
</tr> </tr>
</template> </template>