2017-08-17 09:08:12 -07:00
|
|
|
/*****************************************************************************
|
2018-05-14 18:46:17 -04:00
|
|
|
* Open MCT, Copyright (c) 2014-2018, United States Government
|
2017-08-17 09:08:12 -07:00
|
|
|
* as represented by the Administrator of the National Aeronautics and Space
|
|
|
|
* Administration. All rights reserved.
|
|
|
|
*
|
|
|
|
* Open MCT is licensed under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
|
|
|
*
|
|
|
|
* Open MCT includes source code licensed under additional open source
|
|
|
|
* licenses. See the Open Source Licenses file (LICENSES.md) included with
|
|
|
|
* this source code distribution or the Licensing information page available
|
|
|
|
* at runtime from the About dialog for additional information.
|
|
|
|
*****************************************************************************/
|
2017-08-17 16:32:25 -07:00
|
|
|
/*************************************************** MIXINS */
|
2018-07-16 15:21:38 -07:00
|
|
|
@mixin elementStatusColors($c) {
|
2017-08-17 16:32:25 -07:00
|
|
|
// Sets bg and icon colors for elements
|
2018-07-16 15:21:38 -07:00
|
|
|
background: rgba($c, 0.5) !important;
|
|
|
|
&:before {
|
|
|
|
color: $c !important;
|
|
|
|
}
|
2017-08-17 16:32:25 -07:00
|
|
|
}
|
|
|
|
|
2018-07-16 15:21:38 -07:00
|
|
|
@mixin indicatorStatusColors($c) {
|
|
|
|
&:before, .count {
|
|
|
|
color: $c;
|
|
|
|
}
|
|
|
|
}
|
2017-08-17 16:32:25 -07:00
|
|
|
|
|
|
|
/*************************************************** GENERAL */
|
2018-07-16 15:21:38 -07:00
|
|
|
.s-limit-upr,
|
|
|
|
.s-limit-lwr,
|
|
|
|
[class*='s-limit-icon'],
|
|
|
|
[class*='s-status-icon'] {
|
2015-10-27 11:40:35 -07:00
|
|
|
&:before {
|
2017-08-17 09:08:12 -07:00
|
|
|
content:'';
|
2018-07-16 15:21:38 -07:00
|
|
|
display: inline-block;
|
2015-10-27 11:40:35 -07:00
|
|
|
font-family: symbolsfont;
|
2015-10-27 11:50:16 -07:00
|
|
|
font-size: 0.8em;
|
2015-10-27 11:40:35 -07:00
|
|
|
}
|
2015-06-02 16:12:19 -07:00
|
|
|
}
|
|
|
|
|
2017-08-17 16:32:25 -07:00
|
|
|
/*************************************************** LIMITS */
|
2018-07-16 15:21:38 -07:00
|
|
|
[class*='s-limit'] {
|
|
|
|
&[class*='icon-'] {
|
|
|
|
&:before {
|
|
|
|
margin-right: $interiorMargin;
|
|
|
|
}
|
|
|
|
}
|
2015-06-02 16:12:19 -07:00
|
|
|
}
|
|
|
|
|
2018-07-16 15:21:38 -07:00
|
|
|
.s-limit-yellow, .s-limit-icon-yellow {
|
|
|
|
@include elementStatusColors($colorWarningLo);
|
2017-04-05 14:35:12 -07:00
|
|
|
}
|
2017-08-17 09:08:12 -07:00
|
|
|
|
2018-07-16 15:21:38 -07:00
|
|
|
.s-limit-red, .s-limit-icon-red {
|
|
|
|
@include elementStatusColors($colorWarningHi);
|
|
|
|
}
|
|
|
|
|
|
|
|
.s-limit {
|
|
|
|
&-upr,
|
|
|
|
&-lwr {
|
|
|
|
&:before {
|
|
|
|
margin-right: $interiorMargin;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-upr:before { content: $glyph-icon-arrow-double-up; }
|
|
|
|
&-lwr:before { content: $glyph-icon-arrow-double-down; }
|
|
|
|
|
|
|
|
&-icon-yellow,
|
|
|
|
&-icon-red {
|
|
|
|
&:before {
|
|
|
|
content: $glyph-icon-alert-triangle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-08-17 11:30:00 -07:00
|
|
|
|
2017-08-17 16:32:25 -07:00
|
|
|
/*************************************************** STATUS */
|
2018-07-16 15:21:38 -07:00
|
|
|
[class*='s-status'] {
|
|
|
|
&[class*='icon-'] {
|
|
|
|
&:before {
|
|
|
|
margin-right: $interiorMargin;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.s-status-warning-hi, .s-status-icon-warning-hi { @include elementStatusColors($colorWarningHi); }
|
|
|
|
.s-status-warning-lo, .s-status-icon-warning-lo { @include elementStatusColors($colorWarningLo); }
|
|
|
|
.s-status-diagnostic, .s-status-icon-diagnostic { @include elementStatusColors($colorDiagnostic); }
|
|
|
|
.s-status-info, .s-status-icon-info { @include elementStatusColors($colorInfo); }
|
|
|
|
.s-status-ok, .s-status-icon-ok { @include elementStatusColors($colorOk); }
|
|
|
|
|
|
|
|
.s-status-icon-warning-hi:before { content: $glyph-icon-alert-triangle; }
|
|
|
|
.s-status-icon-warning-lo:before { content: $glyph-icon-alert-rect; }
|
|
|
|
.s-status-icon-diagnostic:before { content: $glyph-icon-eye-open; }
|
|
|
|
.s-status-icon-info:before { content: $glyph-icon-info; }
|
|
|
|
.s-status-icon-ok:before { content: $glyph-icon-check; }
|
|
|
|
|
|
|
|
/*************************************************** INDICATOR COLORING */
|
|
|
|
.ls-indicator {
|
|
|
|
&.s-status-info {
|
|
|
|
@include indicatorStatusColors($colorInfo);
|
|
|
|
}
|
2017-08-17 16:32:25 -07:00
|
|
|
|
2018-07-16 15:21:38 -07:00
|
|
|
&.s-status-disabled {
|
|
|
|
@include indicatorStatusColors($colorIndicatorDisabled);
|
|
|
|
}
|
2017-08-17 16:32:25 -07:00
|
|
|
|
2018-07-16 15:21:38 -07:00
|
|
|
&.s-status-available {
|
|
|
|
@include indicatorStatusColors($colorIndicatorAvailable);
|
|
|
|
}
|
2017-08-17 16:32:25 -07:00
|
|
|
|
2018-07-16 15:21:38 -07:00
|
|
|
&.s-status-on,
|
|
|
|
&.s-status-enabled {
|
|
|
|
@include indicatorStatusColors($colorIndicatorOn);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.s-status-off {
|
|
|
|
@include indicatorStatusColors($colorIndicatorOff);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.s-status-caution,
|
|
|
|
&.s-status-warning,
|
|
|
|
&.s-status-alert {
|
|
|
|
@include indicatorStatusColors($colorStatusAlert);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.s-status-error {
|
|
|
|
@include indicatorStatusColors($colorStatusError);
|
|
|
|
}
|
|
|
|
}
|