mirror of
https://github.com/nasa/openmct.git
synced 2025-06-13 12:48:14 +00:00
[Frontend] Styling for Time Conductor v2
Fixes #933 Color adjusts, mini super-menu size and font tweaks, glyphs added to selector, SVG style fixes in progress
This commit is contained in:
@ -202,7 +202,7 @@
|
|||||||
margin-bottom: $interiorMargin * 2;
|
margin-bottom: $interiorMargin * 2;
|
||||||
}
|
}
|
||||||
&.description {
|
&.description {
|
||||||
color: $colorCreateMenuText;
|
color: pushBack($colorCreateMenuText, 20%);
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
}
|
}
|
||||||
@ -211,15 +211,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.mini {
|
&.mini {
|
||||||
width: 350px;
|
width: 400px;
|
||||||
height: 250px;
|
height: 300px;
|
||||||
.pane {
|
.pane {
|
||||||
|
&.menu-items {
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
&.menu-item-description {
|
&.menu-item-description {
|
||||||
padding: $interiorMargin * 3;
|
padding: $interiorMargin * 3;
|
||||||
.desc-area {
|
.desc-area {
|
||||||
&.icon {
|
&.icon {
|
||||||
font-size: 4em;
|
font-size: 4em;
|
||||||
}
|
}
|
||||||
|
&.title {
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,10 +14,14 @@
|
|||||||
$r2H: nth($ueTimeControlH,2);
|
$r2H: nth($ueTimeControlH,2);
|
||||||
$r3H: nth($ueTimeControlH,3);
|
$r3H: nth($ueTimeControlH,3);
|
||||||
|
|
||||||
|
// Glyphs Todo: replace with refactored CSS approach when that is merged into master
|
||||||
|
$glyphIconFixed: '\e604';
|
||||||
|
$glyphIconRealtime: '\43';
|
||||||
|
$glyphIconLatest: '\44';
|
||||||
|
|
||||||
border-top: 1px solid $colorInteriorBorder;
|
border-top: 1px solid $colorInteriorBorder;
|
||||||
padding-top: $interiorMargin;
|
padding-top: $interiorMargin;
|
||||||
min-width: $minW;
|
min-width: $minW;
|
||||||
font-size: 0.8rem;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
>.l-row-elem {
|
>.l-row-elem {
|
||||||
@ -30,20 +34,30 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.l-time-conductor-inputs-holder,
|
||||||
|
.l-time-conductor-ticks {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
.l-time-conductor-inputs-holder {
|
.l-time-conductor-inputs-holder {
|
||||||
$inputW: 200px;
|
$inputW: 180px;
|
||||||
$ticksBlockerFadeW: 25px;
|
$ticksBlockerFadeW: 25px;
|
||||||
|
$iconCalendarW: 16px;
|
||||||
|
$wBgColor: $colorBodyBg;
|
||||||
|
//$wBgColor: green;
|
||||||
|
$wBgW: $inputW + $interiorMargin + $iconCalendarW;
|
||||||
|
|
||||||
height: $r1H;
|
height: $r1H;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
.l-time-range-input-w {
|
.l-time-range-input-w {
|
||||||
// Wraps a datetime text input field
|
// Wraps a datetime text input field
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: $inputW + $ticksBlockerFadeW;
|
width: $wBgW + $ticksBlockerFadeW;
|
||||||
&.start-date {
|
&.start-date {
|
||||||
@include background-image(linear-gradient(90deg, $colorBodyBg $inputW + $interiorMargin, transparent 100%));
|
@include background-image(linear-gradient(90deg, $wBgColor $wBgW, transparent 100%));
|
||||||
}
|
}
|
||||||
&.end-date {
|
&.end-date {
|
||||||
@include background-image(linear-gradient(270deg, $colorBodyBg $inputW + $interiorMargin, transparent 100%));
|
@include background-image(linear-gradient(270deg, $wBgColor $wBgW, transparent 100%));
|
||||||
right: 0;
|
right: 0;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
@ -51,8 +65,6 @@
|
|||||||
width: $inputW;
|
width: $inputW;
|
||||||
}
|
}
|
||||||
.icon-calendar {
|
.icon-calendar {
|
||||||
position: absolute;
|
|
||||||
margin-left: -16px;
|
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -61,8 +73,8 @@
|
|||||||
.l-time-conductor-ticks {
|
.l-time-conductor-ticks {
|
||||||
$c: $colorTick;
|
$c: $colorTick;
|
||||||
height: $r1H;
|
height: $r1H;
|
||||||
margin-top: 0 !important;
|
|
||||||
mct-conductor-axis {
|
mct-conductor-axis {
|
||||||
|
@include transform(translateY(3px));
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -72,10 +84,12 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
svg {
|
svg {
|
||||||
stroke: $c;
|
text-rendering: geometricPrecision;
|
||||||
|
color: transparent;
|
||||||
|
fill: $c !important; // Todo: figure out why this isn't working
|
||||||
width: 100%; height: 100%;
|
width: 100%; height: 100%;
|
||||||
> g {
|
> g {
|
||||||
font-size: 0.8em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
path {display: none;}
|
path {display: none;}
|
||||||
line {stroke: $c;}
|
line {stroke: $c;}
|
||||||
@ -86,11 +100,44 @@
|
|||||||
background: rgba($colorTick, 0.3);
|
background: rgba($colorTick, 0.3);
|
||||||
height: $r2H;
|
height: $r2H;
|
||||||
}
|
}
|
||||||
.l-time-domain-selector {
|
|
||||||
position: absolute;
|
.mode-selector .s-menu-btn {
|
||||||
right: 0px;
|
&:before {
|
||||||
top: $interiorMargin;
|
@extend .ui-symbol;
|
||||||
}
|
margin-right: $interiorMarginSm;
|
||||||
|
content: $glyphIconFixed;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Realtime, latest modes
|
||||||
|
&.realtime-mode,
|
||||||
|
&.latest-mode {
|
||||||
|
.l-time-conductor-inputs-holder {
|
||||||
|
.l-time-range-input-w {
|
||||||
|
input:not(:hover) {
|
||||||
|
background: transparent;
|
||||||
|
box-shadow: none;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
.icon-calendar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
&.end-date {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.l-data-visualization {
|
||||||
|
background: rgba($colorTimeCondKey, 0.5) !important
|
||||||
|
}
|
||||||
|
.mode-selector .s-menu-btn {
|
||||||
|
@include btnSubtle($colorTimeCondKey, pullForward($colorTimeCondKey, $ltGamma));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.realtime-mode .mode-selector .s-menu-btn:before { content: $glyphIconRealtime; }
|
||||||
|
&.latest-mode .mode-selector .s-menu-btn:before { content: $glyphIconLatest; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.s-time-range-val {
|
.s-time-range-val {
|
||||||
|
@ -207,4 +207,7 @@ $colorAboutLink: #84b3ff;
|
|||||||
|
|
||||||
// Loading
|
// Loading
|
||||||
$colorLoadingFg: $colorAlt1;
|
$colorLoadingFg: $colorAlt1;
|
||||||
$colorLoadingBg: rgba($colorBodyFg, 0.2);
|
$colorLoadingBg: rgba($colorBodyFg, 0.2);
|
||||||
|
|
||||||
|
// Time Conductor
|
||||||
|
$colorTimeCondKey: #1d7a96;
|
@ -52,7 +52,7 @@ $colorGridLines: rgba(#000, 0.05);
|
|||||||
$colorInvokeMenu: #fff;
|
$colorInvokeMenu: #fff;
|
||||||
$colorObjHdrTxt: $colorBodyFg;
|
$colorObjHdrTxt: $colorBodyFg;
|
||||||
$colorObjHdrIc: pushBack($colorObjHdrTxt, 30%);
|
$colorObjHdrIc: pushBack($colorObjHdrTxt, 30%);
|
||||||
$colorTick: rgba(black, 0.2);
|
$colorTick: pullForward($colorBodyBg, 30%);
|
||||||
|
|
||||||
// Menu colors
|
// Menu colors
|
||||||
$colorMenuBg: pushBack($colorBodyBg, 10%);
|
$colorMenuBg: pushBack($colorBodyBg, 10%);
|
||||||
@ -185,6 +185,7 @@ $scrollbarThumbColorOverlayHov: $scrollbarThumbColorHov;
|
|||||||
// Splitter
|
// Splitter
|
||||||
$splitterD: 16px; // splitterD and $splitterHandleD should both be odd, or even
|
$splitterD: 16px; // splitterD and $splitterHandleD should both be odd, or even
|
||||||
$splitterHandleD: 2px;
|
$splitterHandleD: 2px;
|
||||||
|
$splitterDSm: 16px; // Smaller splitter, used inside elements like a Timeline view
|
||||||
$colorSplitterBg: pullForward($colorBodyBg, 10%);
|
$colorSplitterBg: pullForward($colorBodyBg, 10%);
|
||||||
$splitterShdw: none;
|
$splitterShdw: none;
|
||||||
$splitterEndCr: none;
|
$splitterEndCr: none;
|
||||||
@ -207,3 +208,6 @@ $colorAboutLink: #84b3ff;
|
|||||||
// Loading
|
// Loading
|
||||||
$colorLoadingFg: $colorAlt1;
|
$colorLoadingFg: $colorAlt1;
|
||||||
$colorLoadingBg: rgba($colorLoadingFg, 0.1);
|
$colorLoadingBg: rgba($colorLoadingFg, 0.1);
|
||||||
|
|
||||||
|
// Time Conductor
|
||||||
|
$colorTimeCondKey: #0092b3;
|
||||||
|
Reference in New Issue
Block a user