Skip to content

Commit

Permalink
[Frontend] Styling for TOI element
Browse files Browse the repository at this point in the history
Fixes #933
Fixes #1193
WIP: Tabular styling for TOI;
TODO: make bottom border work
  • Loading branch information
charlesh88 committed Oct 3, 2016
1 parent d3bf6c5 commit 1650aae
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 51 deletions.
44 changes: 22 additions & 22 deletions platform/commonUI/general/res/sass/controls/_time-of-interest.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,39 +115,39 @@ TC
}

// TOI in tables
@mixin toiIcon() {
@extend .ui-symbol;
@include transform(translate(-50%, -50%));
content: $glyph-icon-clock;
display: block;
position: absolute;
text-shadow: 0 1px 15px black;
left: 50%;
top: 0;
z-index: 2;
}

.tabular,
table {
tbody, .tbody {
tr, .tr {
&:hover {
&.l-toi.pinned {
td {
border-top: 1px dashed $toiColorBg;
&:first-child:before {
@include toiIcon();
color: $toiColorFg;
@extend .ui-symbol;
@include transform(translate(-50%, -50%));
content: $glyph-icon-clock;
display: block;
position: absolute;
text-shadow: 0 1px 15px black;
left: 50%;
top: 0;
z-index: 2;
color: $toiColorBg;
}
}
}
&.l-toi.pinned {
td {
border-top: 1px solid $toiColorBg;
&:first-child:before {
@include toiIcon();
color: $toiColorFg;

&.highlight-bottom-edge {
td {
border-bottom: 1px dashed $toiColorBg;
//border-top: 1px solid transparent;
&:first-child:before {
@include transform(translate(-50%, 50%));
top: auto;
bottom: 0;
}
}
}

&:hover {
td:first-child:before {
content: $glyph-icon-x-in-circle;
Expand Down
6 changes: 1 addition & 5 deletions platform/commonUI/themes/espresso/res/sass/_constants.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,8 @@ $colorInspectorSectionHeaderBg: $colorFormSectionHeader;
$colorInspectorSectionHeaderFg: pullForward($colorInspectorBg, 40%);

// Time of Interest
$toiColorBg: $colorBtnMajorBg;
$toiColorBgHov: $colorBtnMajorBgHov;
$toiColorBg: #6b93c6; //$colorBtnMajorBg;
$toiColorFg: #000;
$toiColorFgHov: #fff;
$toiColorBgActive: lighten($colorKey, 10%);
$toiColorFgActive: $toiColorFgHov;
$toiW: 12px;

// Status colors, mainly used for messaging and item ancillary symbols
Expand Down
6 changes: 1 addition & 5 deletions platform/commonUI/themes/snow/res/sass/_constants.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,8 @@ $colorInspectorSectionHeaderBg: pullForward($colorInspectorBg, 5%);
$colorInspectorSectionHeaderFg: pullForward($colorInspectorBg, 40%);

// Time of Interest
$toiColorBg: $colorKey;
$toiColorBgHov: lighten($colorKey, 10%);
$toiColorBg: #6b93c6;
$toiColorFg: #fff;
$toiColorFgHov: #fff;
$toiColorBgActive: lighten($colorKey, 20%);
$toiColorFgActive: $toiColorFgHov;
$toiW: 12px;

// Status colors, mainly used for messaging and item ancillary symbols
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,6 @@

// Time of Interest control
.l-toi-holder {
$c: $colorTimeCondTOIBg;
$cHov: $toiColorBgHov;
$linesVOffset: 2px;
&:before,
&:after {
Expand All @@ -291,20 +289,6 @@
.l-toi {
top: 50%;
@include transform(translateY(-50%));
//$d: $timeCondTOIIconD;
//@include transform(translate(-50%, -50%));
//font-size: $d;
//line-height: $d;
//left: 50%;
//top: 50%;
//height: $d;
//width: $d;
//z-index: 1;
}

.l-toi-val {
//@include transform(translateY(-51%));
//top: 50%;
}
}

Expand All @@ -314,13 +298,11 @@
.l-time-conductor-zoom-w {
@include justify-content(flex-end);
.time-conductor-zoom {
//display: none; // TEMP per request from Andrew 8/1/16
height: $r3H;
min-width: 100px;
width: 20%;
}
.time-conductor-zoom-current-range {
//display: none; // TEMP per request from Andrew 8/1/16
color: $colorTick;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ $colorTimeCondKeyBg: #4e70dc;
$colorTimeCondKeyFg: #fff;
$colorTimeCondDataVisBg: pullForward($colorBodyBg, 5%);
$colorTimeCondDataVisRtBg: pushBack($colorTimeCondKeyBg, 10%);
$colorTimeCondTOIBg: lighten($toiColorBg, 20%);
@import "time-conductor-base";

0 comments on commit 1650aae

Please sign in to comment.