[Frontend] Time Conductor mobile

open #889
- Major refactoring of mobile approach,
leveraging flex-box layout change;
This commit is contained in:
Charles Hacskaylo
2016-05-10 19:52:11 -07:00
parent 7ade873365
commit 2829b8d495
2 changed files with 83 additions and 193 deletions

View File

@ -25,7 +25,6 @@
{ {
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
//top: auto;
&:not(:first-child) { &:not(:first-child) {
margin-top: $interiorMargin; margin-top: $interiorMargin;
} }
@ -39,7 +38,8 @@
.l-time-range-inputs-holder { .l-time-range-inputs-holder {
border-top: 1px solid $colorInteriorBorder; border-top: 1px solid $colorInteriorBorder;
padding-top: $interiorMargin; padding-top: $interiorMargin;
&.l-flex-row { &.l-flex-row,
.l-flex-row {
@include align-items(center); @include align-items(center);
.flex-elem { .flex-elem {
height: auto; height: auto;
@ -192,7 +192,7 @@
.l-time-domain-selector { .l-time-domain-selector {
position: absolute; position: absolute;
right: 0px; right: 0px;
bottom: $r2H + $r3H + $interiorMargin; top: $interiorMargin;
} }
} }
@ -206,172 +206,61 @@
/******************************************************************** MOBILE */ /******************************************************************** MOBILE */
@include phoneandtablet { @include phoneandtablet {
.l-time-controller, .l-time-range-inputs-holder {
min-width: 0px;
}
.l-time-controller { .l-time-controller {
min-width: 0;
.l-time-domain-selector { .l-time-range-slider-holder,
select { .l-time-range-ticks-holder {
height: 25px;
margin-bottom: 0px;
}
}
.l-time-range-slider-holder, .l-time-range-ticks-holder {
display: none; display: none;
} }
.time-range-start, .time-range-end, {
width: 100%;
}
.l-time-range-inputs-holder {
.l-time-range-input {
display: block;
.s-btn {
padding-right: 18px;
white-space: nowrap;
input {
width: 100%;
}
}
}
.l-time-range-inputs-elem {
}
}
} }
} }
@include phone { @include phone {
.l-time-controller { .l-time-controller {
height: 48px;
.l-time-range-inputs-holder { .l-time-range-inputs-holder {
bottom: 24px; &.l-flex-row,
} .l-flex-row {
@include align-items(flex-start);
.l-time-domain-selector {
width: 33%;
bottom: -9px;
}
.l-time-range-inputs-holder {
.l-time-range-input {
margin-bottom: 5px;
.s-btn {
width: 66%;
}
} }
.l-time-range-inputs-elem { .l-time-range-inputs-elem {
&.ui-symbol { &.type-icon {
display: none; margin-top: 3px;
} }
}
&.lbl { .t-inputs-w {
width: 33%; @include flex-direction(column);
right: 0px; .l-time-range-input-w:not(:first-child) {
top: 5px; &:not(:first-child) {
display: block; margin-top: $interiorMargin;
height: 25px; }
margin: 0; margin-right: 0;
line-height: 25px; }
position: absolute; .l-time-range-inputs-elem {
&.lbl { display: none; }
} }
} }
} }
} }
} }
@include tablet { @include phonePortrait {
.l-time-controller { .l-time-controller {
height: 17px;
.l-time-range-inputs-holder { .l-time-range-inputs-holder {
bottom: -7px; .t-inputs-w {
left: -5px; @include flex(1 1 auto);
} padding-top: 25px; // Make room for the ever lovin' Time Domain Selector
.flex-elem {
.l-time-domain-selector { @include flex(1 1 auto);
width: 23%; width: 100%;
right: -4px; }
bottom: -10px; input[type="text"] {
}
.l-time-range-inputs-holder {
.l-time-range-input {
float: left;
.s-btn {
width: 100%; width: 100%;
padding-left: 4px;
} }
} }
} }
} }
}
@include tabletLandscape {
.l-time-controller {
height: 17px;
.l-time-range-inputs-holder {
bottom: -7px;
}
.l-time-domain-selector { .l-time-domain-selector {
width: 23%;
right: auto; right: auto;
bottom: -10px; left: 20px;
left: 391px;
}
.l-time-range-inputs-holder {
.l-time-range-inputs-elem {
&.ui-symbol, &.lbl {
display: block;
float: left;
line-height: 25px;
}
}
}
}
.pane-tree-hidden .l-time-controller {
.l-time-domain-selector {
left: 667px;
}
.l-time-range-inputs-holder {
padding-left: 277px;
}
}
}
@include tabletPortrait {
.l-time-controller {
height: 17px;
.l-time-range-inputs-holder {
bottom: -7px;
left: -5px;
}
.l-time-domain-selector {
width: 23%;
right: -4px;
bottom: -10px;
}
.l-time-range-inputs-holder {
.l-time-range-input {
width: 38%;
float: left;
}
.l-time-range-inputs-elem {
&.ui-symbol, &.lbl {
display: none;
}
}
}
} }
} }

View File

@ -23,6 +23,7 @@
<form class="l-time-range-inputs-holder l-flex-row flex-elem" <form class="l-time-range-inputs-holder l-flex-row flex-elem"
ng-submit="trCtrl.updateBoundsFromForm()"> ng-submit="trCtrl.updateBoundsFromForm()">
<span class="l-time-range-inputs-elem ui-symbol type-icon flex-elem">&#x43;</span> <span class="l-time-range-inputs-elem ui-symbol type-icon flex-elem">&#x43;</span>
<span class="l-time-range-inputs-elem t-inputs-w l-flex-row flex-elem">
<span class="l-time-range-input-w flex-elem"> <span class="l-time-range-input-w flex-elem">
<mct-control key="'datetime-field'" <mct-control key="'datetime-field'"
structure="{ structure="{
@ -50,7 +51,7 @@
class="time-range-end"> class="time-range-end">
</mct-control> </mct-control>
</span> </span>
</span>
<input type="submit" class="hidden"> <input type="submit" class="hidden">
</form> </form>