2017-08-17 16:08:12 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
* Open MCT, Copyright (c) 2014-2017, United States Government
|
|
|
|
* 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 23:32:25 +00:00
|
|
|
/*************************************************** MIXINS */
|
|
|
|
@mixin formulateStatusColors($c) {
|
|
|
|
// Sets bg and icon colors for elements
|
|
|
|
background: rgba($c, 0.4) !important;
|
|
|
|
&:before { color: $c !important; }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************** GENERAL */
|
2017-08-17 16:08:12 +00:00
|
|
|
.s-limit-yellow,
|
|
|
|
.s-limit-red,
|
|
|
|
.s-limit-yellow-icon,
|
2017-08-17 18:30:00 +00:00
|
|
|
.s-limit-red-icon,
|
|
|
|
.s-status-warning-lo,
|
|
|
|
.s-status-warning-hi,
|
|
|
|
.s-status-diagnostic,
|
|
|
|
.s-status-command,
|
|
|
|
.s-status-info,
|
2017-08-17 23:32:25 +00:00
|
|
|
.s-status-ok,
|
|
|
|
.s-status-warning-lo-icon,
|
|
|
|
.s-status-warning-hi-icon,
|
|
|
|
.s-status-diagnostic-icon,
|
|
|
|
.s-status-command-icon,
|
|
|
|
.s-status-info-icon,
|
|
|
|
.s-status-ok-icon {
|
|
|
|
@include trans-prop-nice($props: background, $dur: 500ms);
|
2015-10-27 18:40:35 +00:00
|
|
|
&:before {
|
2017-08-17 16:08:12 +00:00
|
|
|
content:'';
|
2015-10-27 18:40:35 +00:00
|
|
|
font-family: symbolsfont;
|
2015-10-27 18:50:16 +00:00
|
|
|
font-size: 0.8em;
|
2015-10-27 18:40:35 +00:00
|
|
|
display: inline;
|
|
|
|
margin-right: $interiorMarginSm;
|
|
|
|
}
|
2015-06-02 23:12:19 +00:00
|
|
|
}
|
|
|
|
|
2017-08-17 23:32:25 +00:00
|
|
|
|
|
|
|
/*************************************************** LIMITS */
|
|
|
|
.s-limit-yellow, .s-limit-yellow-icon {
|
|
|
|
@include formulateStatusColors($colorWarningLo);
|
2015-06-02 23:12:19 +00:00
|
|
|
}
|
|
|
|
|
2017-08-17 23:32:25 +00:00
|
|
|
.s-limit-red, .s-limit-red-icon {
|
|
|
|
@include formulateStatusColors($colorWarningHi);
|
2017-04-05 21:35:12 +00:00
|
|
|
}
|
2017-08-17 16:08:12 +00:00
|
|
|
|
|
|
|
.s-limit-upr:before { content: $glyph-icon-arrow-double-up; }
|
|
|
|
.s-limit-lwr:before { content: $glyph-icon-arrow-double-down; }
|
|
|
|
.s-limit-yellow-icon:before,
|
2017-08-17 18:30:00 +00:00
|
|
|
.s-limit-red-icon:before { content: $glyph-icon-alert-triangle; }
|
|
|
|
|
2017-08-17 23:32:25 +00:00
|
|
|
/*************************************************** STATUS */
|
|
|
|
.s-status-warning-hi, .s-status-warning-hi-icon { @include formulateStatusColors($colorWarningHi); }
|
|
|
|
.s-status-warning-lo, .s-status-warning-lo-icon { @include formulateStatusColors($colorWarningLo); }
|
|
|
|
.s-status-diagnostic, .s-status-diagnostic-icon { @include formulateStatusColors($colorDiagnostic); }
|
|
|
|
.s-status-info, .s-status-info-icon { @include formulateStatusColors($colorInfo); }
|
|
|
|
.s-status-ok, .s-status-ok-icon { @include formulateStatusColors($colorOk); }
|
|
|
|
|
|
|
|
.s-status-warning-hi-icon:before { content: $glyph-icon-alert-triangle; }
|
|
|
|
.s-status-warning-lo-icon:before { content: $glyph-icon-alert-rect; }
|
|
|
|
.s-status-diagnostic-icon:before { content: $glyph-icon-eye-open; }
|
|
|
|
.s-status-info-icon:before { content: $glyph-icon-info; }
|
|
|
|
.s-status-ok-icon:before { content: $glyph-icon-check; }
|
|
|
|
|
|
|
|
|