mirror of
https://github.com/nasa/openmct.git
synced 2025-01-02 03:16:41 +00:00
[Frontend] CSS hooks for staleness
WTD-1172 New .scss file for staleness Added CSS hooks in templates for staleness
This commit is contained in:
parent
a244502f16
commit
db74e2f84a
@ -752,6 +752,11 @@ span {
|
|||||||
color: #ff4444;
|
color: #ff4444;
|
||||||
content: "î"; }
|
content: "î"; }
|
||||||
|
|
||||||
|
/* line 1, ../sass/_data-status.scss */
|
||||||
|
.s-stale {
|
||||||
|
opacity: 0.5 !important;
|
||||||
|
font-style: italic !important; }
|
||||||
|
|
||||||
/* line 1, ../sass/lists/_tabular.scss */
|
/* line 1, ../sass/lists/_tabular.scss */
|
||||||
.w1 {
|
.w1 {
|
||||||
background: #4d4d4d;
|
background: #4d4d4d;
|
||||||
|
5
platform/commonUI/general/res/sass/_data-status.scss
Normal file
5
platform/commonUI/general/res/sass/_data-status.scss
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.s-stale {
|
||||||
|
//color: $colorTelemStale !important;
|
||||||
|
opacity: 0.5 !important;
|
||||||
|
font-style: italic !important;
|
||||||
|
}
|
@ -16,6 +16,7 @@
|
|||||||
@import "badges";
|
@import "badges";
|
||||||
@import "icons";
|
@import "icons";
|
||||||
@import "limits";
|
@import "limits";
|
||||||
|
@import "data-status";
|
||||||
@import "lists/tabular";
|
@import "lists/tabular";
|
||||||
@import "controls/buttons";
|
@import "controls/buttons";
|
||||||
@import "controls/color-palette";
|
@import "controls/color-palette";
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<div
|
<div
|
||||||
class="l-fixed-position-text l-telemetry"
|
class="l-fixed-position-text l-telemetry"
|
||||||
|
ng-class="{ 's-stale': 1 }"
|
||||||
ng-style="{ background: ngModel.fill(), 'border-color': ngModel.stroke(), color: ngModel.color() }"
|
ng-style="{ background: ngModel.fill(), 'border-color': ngModel.stroke(), color: ngModel.color() }"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@ -15,7 +16,7 @@
|
|||||||
<!-- ng-class is temporarily hard-coded in next element -->
|
<!-- ng-class is temporarily hard-coded in next element -->
|
||||||
<span
|
<span
|
||||||
class="l-value-bg s-value-bg"
|
class="l-value-bg s-value-bg"
|
||||||
ng-class="{ 's-limit-lwr': ngModel.value < 0, 's-limit-red' : 1 }"
|
ng-class="{ 's-limit-lwr': ngModel.value < 0, 's-limit-red' : ngModel.value < 0 }"
|
||||||
>
|
>
|
||||||
{{ngModel.value}}
|
{{ngModel.value}}
|
||||||
</span>
|
</span>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<span
|
<span
|
||||||
class='plot-legend-item'
|
class='plot-legend-item'
|
||||||
ng-repeat="telemetryObject in subplot.getTelemetryObjects()"
|
ng-repeat="telemetryObject in subplot.getTelemetryObjects()"
|
||||||
ng-class="{ 's-limit-lwr': $index < 1, 's-limit-yellow' : 1 }"
|
ng-class="{ 's-limit-upr s-limit-red': $index < 1, 's-stale': $index%2==0 }"
|
||||||
>
|
>
|
||||||
<span class='plot-color-swatch'
|
<span class='plot-color-swatch'
|
||||||
ng-style="{ 'background-color': plot.getColor($index) }">
|
ng-style="{ 'background-color': plot.getColor($index) }">
|
||||||
|
@ -12,7 +12,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tr" ng-repeat="row in rows">
|
<!-- ng-class is temporarily hard-coded in next element -->
|
||||||
|
<div
|
||||||
|
class="tr"
|
||||||
|
ng-repeat="row in rows"
|
||||||
|
ng-class="{ 's-stale': $index%3==0 }"
|
||||||
|
>
|
||||||
|
<!-- ng-class is temporarily hard-coded in next element -->
|
||||||
<div
|
<div
|
||||||
class="td"
|
class="td"
|
||||||
ng-class="{ 's-cell-type-value': $index > 1 }"
|
ng-class="{ 's-cell-type-value': $index > 1 }"
|
||||||
@ -21,7 +27,7 @@
|
|||||||
<!-- ng-class is temporarily hard-coded in next element -->
|
<!-- ng-class is temporarily hard-coded in next element -->
|
||||||
<span
|
<span
|
||||||
class="l-cell-contents"
|
class="l-cell-contents"
|
||||||
ng-class="{ 's-limit-upr': cell > 0, 's-limit-yellow':1 }"
|
ng-class="{ 's-limit-upr': cell > 0, 's-limit-yellow': cell > 0 }"
|
||||||
>
|
>
|
||||||
{{cell}}
|
{{cell}}
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user