[Frontend] Modified .tick-labels in Timelines

open #909
- Changed markup to not use plot .tick-label class;
- Changed CSS accordingly;
- Fixed alignment (clipped bottom value) by
refactoring to use flex-box layout for tick labels;
This commit is contained in:
Charles Hacskaylo 2016-05-10 20:41:52 -07:00
parent 3727b287a1
commit a58fe1f81c
2 changed files with 10 additions and 6 deletions

View File

@ -158,9 +158,13 @@
top: 20px; bottom: 5px; top: 20px; bottom: 5px;
.l-labels-holder { .l-labels-holder {
@include absPosDefault(); @include absPosDefault();
@include justify-content(space-between);
left: $m; left: $m;
.tick-label.tick-label-y { .t-resource-graph-tick-label {
text-align: left; font-size: 0.9em;
&.tick-label-y {
text-align: left;
}
} }
} }
} }

View File

@ -23,14 +23,14 @@
{{parameters.title}} {{parameters.title}}
</div> </div>
<div class="l-graph-area"> <div class="l-graph-area">
<div class="l-labels-holder"> <div class="l-labels-holder l-flex-col">
<div class="tick-label tick-label-y tick-label-1" style="top: 0;"> <div class="t-resource-graph-tick-label tick-label-y flex-elem">
{{parameters.high}} {{parameters.high}}
</div> </div>
<div class="tick-label tick-label-y" style="top: 50%; margin-top: -0.5em; height: 1em;"> <div class="t-resource-graph-tick-label tick-label-y flex-elem">
{{parameters.middle}} {{parameters.middle}}
</div> </div>
<div class="tick-label tick-label-y" style="top: auto; bottom: 4px; height: 1em;"> <div class="t-resource-graph-tick-label tick-label-y flex-elem">
{{parameters.low}} {{parameters.low}}
</div> </div>
</div> </div>