[Frontend] Layout and positioning fixes for TC controls

open #889
IN PROGRESS
- Smaller font used on range value;
- More space allocated to left and right
for slider range values;
- Style tweaks to slider look;
- Layout and style of datetime inputs
fixed;
- Input error colors fixed, moved to
theme constants;
This commit is contained in:
Charles Hacskaylo
2016-05-09 17:56:50 -07:00
parent 2e8604e18d
commit c301523156
9 changed files with 44 additions and 40 deletions

View File

@@ -10,8 +10,8 @@
$knobHOffset: 0px;
$knobM: ($sliderKnobW + $knobHOffset) * -1;
$rangeValPad: $interiorMargin;
$rangeValOffset: $sliderKnobW;
$timeRangeSliderLROffset: 80px + ($sliderKnobW * 2);
$rangeValOffset: $sliderKnobW + $interiorMargin;
$timeRangeSliderLROffset: 150px + ($sliderKnobW * 2);
$r1H: nth($ueTimeControlH,1);
$r2H: nth($ueTimeControlH,2);
$r3H: nth($ueTimeControlH,3);
@@ -38,7 +38,6 @@
.l-time-range-inputs-holder {
height: $r1H; bottom: $r2H + $r3H + ($interiorMarginSm * 2);
//padding-top: $interiorMargin;
border-top: 1px solid $colorInteriorBorder;
&.l-flex-row {
@include align-items(center);
@@ -51,7 +50,7 @@
font-size: 120%;
vertical-align: middle;
}
.l-time-range-input,
.l-time-range-input-w,
.l-time-range-inputs-elem {
margin-right: $interiorMargin;
.lbl {
@@ -59,9 +58,23 @@
}
.ui-symbol.icon {
font-size: 11px;
width: 11px;
}
}
.l-time-range-input-w {
// Wraps a datetime text input field
position: relative;
input[type="text"] {
width: 200px;
&.picker-icon {
padding-right: 20px;
}
}
.icon-calendar {
position: absolute;
right: 5px;
top: 5px;
}
}
}
.l-time-range-slider-holder {
@@ -80,26 +93,14 @@
width: $myW;
height: auto;
z-index: 2;
&:before,
&:after {
background-color: $myC;
//content: "";
position: absolute;
}
&:before {
// Vert line
background-color: $myC;
position: absolute;
content: "";
top: 0; right: auto; bottom: -10px; left: floor($myW/2) - 1;
width: 1px;
}
/* &:after {
// Circle element
border-radius: $myW;
@include transform(translateY(-50%));
top: 50%; right: 0; bottom: auto; left: 0;
width: auto;
height: $myW;
}*/
}
&:hover .toi-line {
@include toiLineHovEffects;
@@ -149,10 +150,10 @@
.range-value {
@include trans-prop-nice-fade(.25s);
font-size: 0.7rem;
padding: 0 $rangeValOffset;
position: absolute;
height: $r2H;
line-height: $r2H/2;
line-height: $r2H;
white-space: nowrap;
z-index: 1;
}
&:hover {
@@ -181,7 +182,7 @@
.l-time-domain-selector {
position: absolute;
right: 0px;
bottom: 43px;
bottom: $r2H + $r3H + $interiorMargin;
}
}
@@ -272,7 +273,6 @@
}
}
@include tablet {
.l-time-controller {
height: 17px;