mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 21:53:08 +00:00
Conditionals fixes and tweaks
- Legacy wrapper fixes to allow color styling to be applied as expected; - New `$mainViewPad` constant; - Fix `c-control-bar` element spacing in plots; - TODO: check for regressions, particularly with plot views; - Fixes #2772: better `is-style-invisible` css for `c-style-thumbs`;
This commit is contained in:
parent
cdf0dd0c10
commit
07d101ac1c
@ -21,22 +21,24 @@
|
|||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<table class="c-table c-lad-table">
|
<div class="c-lad-table-wrapper">
|
||||||
<thead>
|
<table class="c-table c-lad-table">
|
||||||
<tr>
|
<thead>
|
||||||
<th>Name</th>
|
<tr>
|
||||||
<th>Timestamp</th>
|
<th>Name</th>
|
||||||
<th>Value</th>
|
<th>Timestamp</th>
|
||||||
</tr>
|
<th>Value</th>
|
||||||
</thead>
|
</tr>
|
||||||
<tbody>
|
</thead>
|
||||||
<lad-row
|
<tbody>
|
||||||
v-for="item in items"
|
<lad-row
|
||||||
:key="item.key"
|
v-for="item in items"
|
||||||
:domain-object="item.domainObject"
|
:key="item.key"
|
||||||
/>
|
:domain-object="item.domainObject"
|
||||||
</tbody>
|
/>
|
||||||
</table>
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -94,6 +94,8 @@
|
|||||||
|
|
||||||
&.c-style-thumb {
|
&.c-style-thumb {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
|
background-color: transparent !important;
|
||||||
|
border-color: transparent !important;
|
||||||
@include bgCheckerboard($size: 10px, $imp: true);
|
@include bgCheckerboard($size: 10px, $imp: true);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
this source code distribution or the Licensing information page available
|
this source code distribution or the Licensing information page available
|
||||||
at runtime from the About dialog for additional information.
|
at runtime from the About dialog for additional information.
|
||||||
-->
|
-->
|
||||||
<span ng-controller="PlotController as controller"
|
<div ng-controller="PlotController as controller"
|
||||||
class="abs holder holder-plot has-control-bar">
|
class="c-plot holder holder-plot has-control-bar">
|
||||||
<div class="c-control-bar" ng-show="!controller.hideExportButtons">
|
<div class="c-control-bar" ng-show="!controller.hideExportButtons">
|
||||||
<span class="c-button-set c-button-set--strip-h">
|
<span class="c-button-set c-button-set--strip-h">
|
||||||
<button class="c-button icon-download"
|
<button class="c-button icon-download"
|
||||||
@ -50,4 +50,4 @@
|
|||||||
the-x-axis="xAxis">
|
the-x-axis="xAxis">
|
||||||
</mct-plot>
|
</mct-plot>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</div>
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
this source code distribution or the Licensing information page available
|
this source code distribution or the Licensing information page available
|
||||||
at runtime from the About dialog for additional information.
|
at runtime from the About dialog for additional information.
|
||||||
-->
|
-->
|
||||||
<span ng-controller="StackedPlotController as stackedPlot"
|
<div ng-controller="StackedPlotController as stackedPlot"
|
||||||
class="abs holder holder-plot has-control-bar t-plot-stacked">
|
class="c-plot c-plot--stacked holder holder-plot has-control-bar">
|
||||||
<div class="l-control-bar" ng-show="!stackedPlot.hideExportButtons">
|
<div class="l-control-bar" ng-show="!stackedPlot.hideExportButtons">
|
||||||
<span class="c-button-set c-button-set--strip-h">
|
<span class="c-button-set c-button-set--strip-h">
|
||||||
<button class="c-button icon-download"
|
<button class="c-button icon-download"
|
||||||
@ -57,4 +57,4 @@
|
|||||||
<mct-overlay-plot domain-object="telemetryObject"></mct-overlay-plot>
|
<mct-overlay-plot domain-object="telemetryObject"></mct-overlay-plot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</div>
|
||||||
|
@ -44,6 +44,7 @@ $overlayOuterMarginLg: 5%;
|
|||||||
$overlayOuterMarginFullscreen: 0%;
|
$overlayOuterMarginFullscreen: 0%;
|
||||||
$overlayOuterMarginDialog: 20%;
|
$overlayOuterMarginDialog: 20%;
|
||||||
$overlayInnerMargin: 25px;
|
$overlayInnerMargin: 25px;
|
||||||
|
$mainViewPad: 2px;
|
||||||
/*************** Items */
|
/*************** Items */
|
||||||
$itemPadLR: 5px;
|
$itemPadLR: 5px;
|
||||||
$gridItemDesk: 175px;
|
$gridItemDesk: 175px;
|
||||||
|
@ -25,32 +25,6 @@ mct-plot {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*********************** STACKED PLOT LAYOUT */
|
/*********************** STACKED PLOT LAYOUT */
|
||||||
.t-plot-stacked {
|
|
||||||
.l-view-section {
|
|
||||||
// Make this a flex container
|
|
||||||
display: flex;
|
|
||||||
flex-flow: column nowrap;
|
|
||||||
.gl-plot.child-frame {
|
|
||||||
mct-plot {
|
|
||||||
display: flex;
|
|
||||||
flex: 1 1 auto;
|
|
||||||
height: 100%;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
flex: 1 1 auto;
|
|
||||||
&:not(:first-child) {
|
|
||||||
margin-top: $interiorMargin;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.s-status-timeconductor-unsynced .holder-plot {
|
|
||||||
.t-object-alert.t-alert-unsynced {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.is-editing {
|
.is-editing {
|
||||||
.gl-plot.child-frame {
|
.gl-plot.child-frame {
|
||||||
&:hover {
|
&:hover {
|
||||||
@ -66,11 +40,42 @@ mct-plot {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.c-plot {
|
||||||
|
$p: $mainViewPad;
|
||||||
|
position: absolute;
|
||||||
|
top: $p; right: $p; bottom: $p; left: $p;
|
||||||
|
|
||||||
|
&--stacked {
|
||||||
|
.l-view-section {
|
||||||
|
// Make this a flex container
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column nowrap;
|
||||||
|
.gl-plot.child-frame {
|
||||||
|
mct-plot {
|
||||||
|
display: flex;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
flex: 1 1 auto;
|
||||||
|
&:not(:first-child) {
|
||||||
|
margin-top: $interiorMargin;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.s-status-timeconductor-unsynced .holder-plot {
|
||||||
|
.t-object-alert.t-alert-unsynced {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.gl-plot {
|
.gl-plot {
|
||||||
color: $colorPlotFg;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
//font-size: 0.7rem;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -146,10 +151,10 @@ mct-plot {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.gl-plot-coords {
|
.gl-plot-coords {
|
||||||
|
// This does not appear to be in use in Open MCT
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: $controlCr;
|
border-radius: $controlCr;
|
||||||
background: black;
|
background: black;
|
||||||
color: lighten($colorBodyFg, 30%);
|
|
||||||
padding: 2px 5px;
|
padding: 2px 5px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: nth($plotDisplayArea,1) + $interiorMarginLg;
|
top: nth($plotDisplayArea,1) + $interiorMarginLg;
|
||||||
@ -164,7 +169,6 @@ mct-plot {
|
|||||||
|
|
||||||
.gl-plot-label,
|
.gl-plot-label,
|
||||||
.l-plot-label {
|
.l-plot-label {
|
||||||
color: $colorPlotLabelFg;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
|
@ -32,6 +32,10 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
> * + * {
|
||||||
|
margin-left: $interiorMarginSm;
|
||||||
|
}
|
||||||
|
|
||||||
&__label {
|
&__label {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -78,10 +78,14 @@ div.c-table {
|
|||||||
|
|
||||||
.c-table-wrapper {
|
.c-table-wrapper {
|
||||||
// Wraps .c-control-bar and .c-table
|
// Wraps .c-control-bar and .c-table
|
||||||
@include abs();
|
|
||||||
overflow: hidden;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
// Using absolute here because sizing table can't calc width properly if padding is used
|
||||||
|
$p: $mainViewPad;
|
||||||
|
position: absolute;
|
||||||
|
top: $p; right: $p; bottom: $p; left: $p;
|
||||||
|
|
||||||
> .c-table {
|
> .c-table {
|
||||||
height: auto;
|
height: auto;
|
||||||
@ -158,6 +162,12 @@ div.c-table {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.c-lad-table-wrapper {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
padding: $mainViewPad;
|
||||||
|
}
|
||||||
|
|
||||||
.c-lad-table {
|
.c-lad-table {
|
||||||
th, td {
|
th, td {
|
||||||
width: 33%; // Needed to prevent size jumping as values dynamically update
|
width: 33%; // Needed to prevent size jumping as values dynamically update
|
||||||
|
Loading…
Reference in New Issue
Block a user