Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a4d8e8f

Browse files
authoredAug 28, 2017
Merge pull request nasa#1683 from nasa/limits-1677
Review limit and status CSS classes
2 parents e205bf1 + 10c0c29 commit a4d8e8f

File tree

14 files changed

+315
-64
lines changed

14 files changed

+315
-64
lines changed
 

‎example/styleguide/bundle.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ define([
1616
{ "key": "styleguide.intro", "name": "Introduction", "cssClass": "icon-page", "description": "Introduction and overview to the style guide" },
1717
{ "key": "styleguide.standards", "name": "Standards", "cssClass": "icon-page", "description": "" },
1818
{ "key": "styleguide.colors", "name": "Colors", "cssClass": "icon-page", "description": "" },
19+
{ "key": "styleguide.status", "name": "status", "cssClass": "icon-page", "description": "Limits, telemetry paused, etc." },
1920
{ "key": "styleguide.glyphs", "name": "Glyphs", "cssClass": "icon-page", "description": "Glyphs overview" },
2021
{ "key": "styleguide.controls", "name": "Controls", "cssClass": "icon-page", "description": "Buttons, selects, HTML controls" },
2122
{ "key": "styleguide.input", "name": "Text Inputs", "cssClass": "icon-page", "description": "Various text inputs" },
@@ -25,6 +26,7 @@ define([
2526
{ "key": "styleguide.intro", "type": "styleguide.intro", "templateUrl": "templates/intro.html", "editable": false },
2627
{ "key": "styleguide.standards", "type": "styleguide.standards", "templateUrl": "templates/standards.html", "editable": false },
2728
{ "key": "styleguide.colors", "type": "styleguide.colors", "templateUrl": "templates/colors.html", "editable": false },
29+
{ "key": "styleguide.status", "type": "styleguide.status", "templateUrl": "templates/status.html", "editable": false },
2830
{ "key": "styleguide.glyphs", "type": "styleguide.glyphs", "templateUrl": "templates/glyphs.html", "editable": false },
2931
{ "key": "styleguide.controls", "type": "styleguide.controls", "templateUrl": "templates/controls.html", "editable": false },
3032
{ "key": "styleguide.input", "type": "styleguide.input", "templateUrl": "templates/input.html", "editable": false },
@@ -47,6 +49,7 @@ define([
4749
"intro",
4850
"standards",
4951
"colors",
52+
"status",
5053
"glyphs",
5154
"styleguide:ui-elements"
5255
]

‎example/styleguide/res/sass/_style-guide-base.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
color: $colorKey;
2929
}
3030

31-
h1, h2 {
32-
color: pullForward($colorBodyFg, 20%);
31+
h1, h2, strong, b {
32+
color: pullForward($colorBodyFg, 50%);
3333
}
3434

3535
h2 {
@@ -45,6 +45,10 @@
4545
text-transform: uppercase;
4646
}
4747

48+
strong, b {
49+
font-weight: normal;
50+
}
51+
4852
.w-markup {
4953
//Wrap markup example "pre" element
5054
background-color: $colorCode;
@@ -54,6 +58,12 @@
5458
position: relative;
5559
}
5660

61+
.w-mct-example {
62+
div {
63+
margin-bottom: $interiorMarginLg;
64+
}
65+
}
66+
5767
code,
5868
pre {
5969
font-size: 0.8rem;

‎example/styleguide/res/templates/mct-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ <h3>Markup</h3>
44
<pre></pre>
55
</span>
66
<h3>Example</h3>
7-
<div></div>
7+
<div class="w-mct-example"></div>
88
</div>
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
<!--
2+
Open MCT, Copyright (c) 2014-2016, United States Government
3+
as represented by the Administrator of the National Aeronautics and Space
4+
Administration. All rights reserved.
5+
6+
Open MCT is licensed under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
http://www.apache.org/licenses/LICENSE-2.0.
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
License for the specific language governing permissions and limitations
15+
under the License.
16+
17+
Open MCT includes source code licensed under additional open source
18+
licenses. See the Open Source Licenses file (LICENSES.md) included with
19+
this source code distribution or the Licensing information page available
20+
at runtime from the About dialog for additional information.
21+
-->
22+
<style>
23+
.w-mct-example div[class*="s-limit"],
24+
.w-mct-example div[class*="s-status"],
25+
.w-mct-example div[class*="s-unsynced"],
26+
.w-mct-example span[class*="s-limit"] {
27+
border-radius: 4px;
28+
padding: 3px 7px;
29+
}
30+
.w-mct-example table {
31+
width: 100%;
32+
}
33+
</style>
34+
<div class="l-style-guide s-text">
35+
<p class="doc-title">Open MCT Style Guide</p>
36+
<h1>Status Indication</h1>
37+
38+
<div class="l-section">
39+
<h2>Overview</h2>
40+
<p>Many elements in Open MCT need to articulate a dynamic status; Open MCT provides the following styles and conventions to handle this:</p>
41+
<ul>
42+
<li><strong>Limits</strong>: when telemetry values exceed minimum or maximum values, they can be violating limits. Limit styles include both color and iconography; color is used to indicate severity while icons are used to indicate direction, upper or lower.</li>
43+
<li><strong>Status</strong>: Open MCT also provides a number or built-in Status styles allowing telemetry or other displayed information to be visually classified by type. Common uses for these classes are to visually denote event records.</li>
44+
<li><strong>Synchronization</strong>: When the system is displaying real-time data, it is very important that displays clearly indicate when they are not doing so, such as when a plot if frozen while panning or zooming. Open MCT provides a style for this.</li>
45+
</ul>
46+
</div>
47+
48+
<div class="l-section">
49+
<h2>Limits</h2>
50+
<div class="cols cols1-1">
51+
<div class="col">
52+
<p>Limit CSS classes can be applied to any block or inline element. Open MCT limit classes set color and optionally an icon, but don't effect other properties. Yellow and red limit classes can be used as is, or allow the application of any custom icon available in Open MCT's glyphs library. &quot;Level&quot; limit classes - upper and lower - always use an icon in addition to a color; Open MCT doesn't support level limits without color.</p>
53+
<ul>
54+
<li>Color only</li>
55+
<ul>
56+
<li><code>s-limit-yellow</code>: A yellow limit.</li>
57+
<li><code>s-limit-red</code>: A red limit.</li>
58+
</ul>
59+
<li>Color and icon</li>
60+
<ul>
61+
<li><code>s-limit-yellow-icon</code>: A yellow limit with icon.</li>
62+
<li><code>s-limit-red-icon</code>: A red limit with icon.</li>
63+
</ul>
64+
<li>Upper and lower limit indicators. Must be used with a color limit class to be visible.</li>
65+
<ul>
66+
<li><code>s-limit-upr</code>: Upper limit.
67+
</li>
68+
<li><code>s-limit-lwr</code>: Lower limit.
69+
</li>
70+
</ul>
71+
</ul>
72+
</div>
73+
<mct-example><div class="s-limit-yellow">Yellow limit</div>
74+
<div class="s-limit-red">Red limit</div>
75+
<div class="s-limit-yellow-icon">Yellow limit with icon</div>
76+
<div class="s-limit-red-icon">Red limit with icon</div>
77+
<div class="s-limit-yellow s-limit-lwr">Lower yellow limit</div>
78+
<div class="s-limit-red s-limit-upr">Upper red limit</div>
79+
<div class="s-limit-red icon-bell">Red Limit with a custom icon</div>
80+
<div>Some text with an <span class="s-limit-yellow-icon">inline element</span> showing a yellow limit.</div>
81+
82+
<!-- Limits applied in a table -->
83+
<table>
84+
<tr class='header'><td>Name</td><td>Value 1</td><td>Value 2</td></tr>
85+
<tr><td>ENG_PWR 4991</td><td>7.023</td><td class="s-limit-yellow s-limit-upr">70.23</td></tr>
86+
<tr><td>ENG_PWR 4992</td><td>49.784</td><td class="s-limit-red s-limit-lwr">-121.22</td></tr>
87+
<tr><td>ENG_PWR 4993</td><td class="s-limit-yellow icon-bell">0.451</td><td>1.007</td></tr>
88+
</table>
89+
</mct-example>
90+
</div>
91+
</div>
92+
93+
<div class="l-section">
94+
<h2>Status</h2>
95+
<div class="cols cols1-1">
96+
<div class="col">
97+
<p>Classes here can be applied to elements as needed.</p>
98+
<ul>
99+
<li>Color only</li>
100+
<ul>
101+
<li><code>s-status-warning-hi</code></li>
102+
<li><code>s-status-warning-lo</code></li>
103+
<li><code>s-status-diagnostic</code></li>
104+
<li><code>s-status-info</code></li>
105+
<li><code>s-status-ok</code></li>
106+
</ul>
107+
<li>Color and icon</li>
108+
<ul>
109+
<li><code>s-status-warning-hi-icon</code></li>
110+
<li><code>s-status-warning-lo-icon</code></li>
111+
<li><code>s-status-diagnostic-icon</code></li>
112+
<li><code>s-status-info-icon</code></li>
113+
<li><code>s-status-ok-icon</code></li>
114+
</ul>
115+
</ul>
116+
</div>
117+
<mct-example><div class="s-status-warning-hi">WARNING HI</div>
118+
<div class="s-status-warning-lo">WARNING LOW</div>
119+
<div class="s-status-diagnostic">DIAGNOSTIC</div>
120+
<div class="s-status-info">INFO</div>
121+
<div class="s-status-ok">OK</div>
122+
<div class="s-status-warning-hi-icon">WARNING HI with icon</div>
123+
<div class="s-status-warning-lo-icon">WARNING LOW with icon</div>
124+
<div class="s-status-diagnostic-icon">DIAGNOSTIC with icon</div>
125+
<div class="s-status-info-icon">INFO with icon</div>
126+
<div class="s-status-ok-icon">OK with icon</div>
127+
<div class="s-status-warning-hi icon-gear">WARNING HI with custom icon</div>
128+
</mct-example>
129+
</div>
130+
</div>
131+
132+
<div class="l-section">
133+
<h2>Synchronization</h2>
134+
<div class="cols cols1-1">
135+
<div class="col">
136+
<p>When the system is operating in real-time streaming mode, it is important for views that display real-time data to clearly articulate when they are not, such as when a user zooms or pans a plot view, freezing that view. In that case, the CSS class <code>s-unsynced</code> should be applied to that view.</p>
137+
</div>
138+
<mct-example><div class="s-unsynced">This element is unsynced</div>
139+
</mct-example>
140+
</div>
141+
</div>
142+
</div>

‎example/styleguide/src/ExampleStyleGuideModelProvider.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ define(
3434
pages['standards'] = { name: "Standards", type: "styleguide.standards", location: "styleguide:home" };
3535
pages['colors'] = { name: "Colors", type: "styleguide.colors", location: "styleguide:home" };
3636
pages['glyphs'] = { name: "Glyphs", type: "styleguide.glyphs", location: "styleguide:home" };
37+
pages['status'] = { name: "Status Indication", type: "styleguide.status", location: "styleguide:home" };
3738
pages['controls'] = { name: "Controls", type: "styleguide.controls", location: "styleguide:ui-elements" };
3839
pages['input'] = { name: "Text Inputs", type: "styleguide.input", location: "styleguide:ui-elements" };
3940
pages['menus'] = { name: "Menus", type: "styleguide.menus", location: "styleguide:ui-elements" };

‎platform/commonUI/general/res/sass/_glyphs.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/*****************************************************************************
2+
* Open MCT, Copyright (c) 2014-2017, United States Government
3+
* as represented by the Administrator of the National Aeronautics and Space
4+
* Administration. All rights reserved.
5+
*
6+
* Open MCT is licensed under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
* http://www.apache.org/licenses/LICENSE-2.0.
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations
15+
* under the License.
16+
*
17+
* Open MCT includes source code licensed under additional open source
18+
* licenses. See the Open Source Licenses file (LICENSES.md) included with
19+
* this source code distribution or the Licensing information page available
20+
* at runtime from the About dialog for additional information.
21+
*****************************************************************************/
122
@mixin glyphBefore($unicode, $family: 'symbolsfont') {
223
&:before {
324
content: $unicode;

‎platform/commonUI/general/res/sass/_limits.scss

Lines changed: 0 additions & 39 deletions
This file was deleted.

‎platform/commonUI/general/res/sass/_main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@import "about";
2828
@import "text";
2929
@import "icons";
30-
@import "limits";
30+
@import "status";
3131
@import "data-status";
3232
@import "helpers/bubbles";
3333
@import "helpers/splitter";
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/*****************************************************************************
2+
* Open MCT, Copyright (c) 2014-2017, United States Government
3+
* as represented by the Administrator of the National Aeronautics and Space
4+
* Administration. All rights reserved.
5+
*
6+
* Open MCT is licensed under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
* http://www.apache.org/licenses/LICENSE-2.0.
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations
15+
* under the License.
16+
*
17+
* Open MCT includes source code licensed under additional open source
18+
* licenses. See the Open Source Licenses file (LICENSES.md) included with
19+
* this source code distribution or the Licensing information page available
20+
* at runtime from the About dialog for additional information.
21+
*****************************************************************************/
22+
/*************************************************** MIXINS */
23+
@mixin formulateStatusColors($c) {
24+
// Sets bg and icon colors for elements
25+
background: rgba($c, 0.4) !important;
26+
&:before { color: $c !important; }
27+
}
28+
29+
30+
31+
/*************************************************** GENERAL */
32+
.s-limit-yellow,
33+
.s-limit-red,
34+
.s-limit-yellow-icon,
35+
.s-limit-red-icon,
36+
.s-status-warning-lo,
37+
.s-status-warning-hi,
38+
.s-status-diagnostic,
39+
.s-status-command,
40+
.s-status-info,
41+
.s-status-ok,
42+
.s-status-warning-lo-icon,
43+
.s-status-warning-hi-icon,
44+
.s-status-diagnostic-icon,
45+
.s-status-command-icon,
46+
.s-status-info-icon,
47+
.s-status-ok-icon {
48+
@include trans-prop-nice($props: background, $dur: 500ms);
49+
&:before {
50+
content:'';
51+
font-family: symbolsfont;
52+
font-size: 0.8em;
53+
display: inline;
54+
margin-right: $interiorMarginSm;
55+
}
56+
}
57+
58+
59+
/*************************************************** LIMITS */
60+
.s-limit-yellow, .s-limit-yellow-icon {
61+
@include formulateStatusColors($colorWarningLo);
62+
}
63+
64+
.s-limit-red, .s-limit-red-icon {
65+
@include formulateStatusColors($colorWarningHi);
66+
}
67+
68+
.s-limit-upr:before { content: $glyph-icon-arrow-double-up; }
69+
.s-limit-lwr:before { content: $glyph-icon-arrow-double-down; }
70+
.s-limit-yellow-icon:before,
71+
.s-limit-red-icon:before { content: $glyph-icon-alert-triangle; }
72+
73+
/*************************************************** STATUS */
74+
.s-status-warning-hi, .s-status-warning-hi-icon { @include formulateStatusColors($colorWarningHi); }
75+
.s-status-warning-lo, .s-status-warning-lo-icon { @include formulateStatusColors($colorWarningLo); }
76+
.s-status-diagnostic, .s-status-diagnostic-icon { @include formulateStatusColors($colorDiagnostic); }
77+
.s-status-info, .s-status-info-icon { @include formulateStatusColors($colorInfo); }
78+
.s-status-ok, .s-status-ok-icon { @include formulateStatusColors($colorOk); }
79+
80+
.s-status-warning-hi-icon:before { content: $glyph-icon-alert-triangle; }
81+
.s-status-warning-lo-icon:before { content: $glyph-icon-alert-rect; }
82+
.s-status-diagnostic-icon:before { content: $glyph-icon-eye-open; }
83+
.s-status-info-icon:before { content: $glyph-icon-info; }
84+
.s-status-ok-icon:before { content: $glyph-icon-check; }
85+
86+

‎platform/commonUI/general/res/sass/controls/_messages.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
// Status coloring
4040
.ok, .info {
4141
.status-indicator {
42-
color: $colorStatusInfo;
42+
color: $colorInfo;
4343
}
4444
}
4545

@@ -224,15 +224,15 @@
224224
}
225225
&.ok,
226226
&.info {
227-
@include statusBannerColors($colorStatusInfo);
227+
@include statusBannerColors($colorInfo);
228228
}
229229
&.caution,
230230
&.warning,
231231
&.alert {
232-
@include statusBannerColors($colorStatusAlert);
232+
@include statusBannerColors($colorWarningLo);
233233
}
234234
&.error {
235-
@include statusBannerColors($colorStatusError);
235+
@include statusBannerColors($colorWarningHi);
236236
}
237237
}
238238

@@ -248,15 +248,15 @@
248248

249249
.message-severity-info .type-icon.message-type {
250250
@extend .icon-info;
251-
color: $colorStatusInfo;
251+
color: $colorInfo;
252252
}
253253
.message-severity-alert .type-icon.message-type {
254254
@extend .icon-bell;
255-
color: $colorStatusAlert;
255+
color: $colorWarningLo;
256256
}
257257
.message-severity-error .type-icon.message-type {
258258
@extend .icon-alert-rect;
259-
color: $colorStatusError;
259+
color: $colorWarningHi;
260260
}
261261
}
262262
/* Paths:

‎platform/commonUI/themes/espresso/res/sass/_constants.scss

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,15 @@ $timeControllerToiLineColor: #00c2ff;
5353
$timeControllerToiLineColorHov: #fff;
5454
$colorTransLucBg: #666; // Used as a visual blocking element over variable backgrounds, like imagery
5555

56-
// General Colors
56+
// Foundation Colors
5757
$colorAlt1: #ffc700;
5858
$colorAlert: #ff3c00;
59+
$colorWarningHi: #cc0000;
60+
$colorWarningLo: #ff9900;
61+
$colorDiagnostic: #a4b442;
62+
$colorCommand: #3693bd;
63+
$colorInfo: #2294a2;
64+
$colorOk: #33cc33;
5965
$colorIconLink: #49dedb;
6066
$colorPausedBg: #c56f01;
6167
$colorPausedFg: #fff;
@@ -84,8 +90,8 @@ $colorCreateMenuText: $colorMenuFg;
8490
// Form colors
8591
$colorCheck: $colorKey;
8692
$colorFormRequired: $colorAlt1;
87-
$colorFormValid: #33cc33;
88-
$colorFormError: #990000;
93+
$colorFormValid: $colorOk;
94+
$colorFormError: $colorWarningHi;
8995
$colorFormInvalid: #ff3300;
9096
$colorFormFieldErrorBg: $colorFormError;
9197
$colorFormFieldErrorFg: rgba(#fff, 0.6);
@@ -109,8 +115,8 @@ $colorInspectorSectionHeaderFg: pullForward($colorInspectorBg, 40%);
109115
// Status colors, mainly used for messaging and item ancillary symbols
110116
$colorStatusFg: #ccc;
111117
$colorStatusDefault: #ccc;
112-
$colorStatusInfo: #62ba72;
113-
$colorStatusAlert: #ffa66d;
118+
$colorStatusInfo: $colorInfo;
119+
$colorStatusAlert: $colorAlert;
114120
$colorStatusError: #d4585c;
115121
$colorStatusAvailable: $colorKey;
116122
$colorStatusBtnBg: $colorBtnBg;
@@ -125,14 +131,14 @@ $animPausedPulseDur: 500ms;
125131
$colorSelectBg: $colorBtnBg;
126132
$colorSelectFg: $colorBtnFg;
127133

128-
// Limits and staleness colors
134+
// Limits, status and staleness colors
129135
$colorTelemFresh: pullForward($colorBodyFg, 20%);
130136
$colorTelemStale: pushBack($colorBodyFg, 20%);
131137
$styleTelemStale: italic;
132-
$colorLimitYellowBg: rgba(#ffaa00, 0.3);
133-
$colorLimitYellowIc: #ffaa00;
134-
$colorLimitRedBg: rgba(red, 0.3);
135-
$colorLimitRedIc: red;
138+
$colorLimitYellowBg: rgba($colorWarningLo, 0.3);
139+
$colorLimitYellowIc: $colorWarningLo;
140+
$colorLimitRedBg: rgba($colorWarningHi, 0.3);
141+
$colorLimitRedIc: $colorWarningHi;
136142

137143
// Bubble colors
138144
$colorInfoBubbleBg: #ddd;

‎platform/commonUI/themes/espresso/res/sass/_mixins.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@
1313
// For dark interfaces, darker things move back - opposite for light interfaces
1414
@return darken($c, $p);
1515
}
16+
17+
@function bgFg($c) {
18+
// Given a single color, return valid background and foreground versions of that color
19+
$bg: darken($c, 20%);
20+
$fg: lighten($c, 20%);
21+
@return $bg, $fg;
22+
}

‎platform/commonUI/themes/snow/res/sass/_constants.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,15 @@ $timeControllerToiLineColor: $colorBodyFg;
5353
$timeControllerToiLineColorHov: #0052b5;
5454
$colorTransLucBg: #666; // Used as a visual blocking element over variable backgrounds, like imagery
5555

56-
// General Colors
56+
// Foundation Colors
5757
$colorAlt1: #776ba2;
5858
$colorAlert: #ff3c00;
59+
$colorWarningHi: #990000;
60+
$colorWarningLo: #ff9900;
61+
$colorDiagnostic: #a4b442;
62+
$colorCommand: #3693bd;
63+
$colorInfo: #2294a2;
64+
$colorOk: #33cc33;
5965
$colorIconLink: #49dedb;
6066
$colorPausedBg: #ff9900;
6167
$colorPausedFg: #fff;
@@ -84,8 +90,8 @@ $colorCreateMenuText: $colorBodyFg;
8490
// Form colors
8591
$colorCheck: $colorKey;
8692
$colorFormRequired: $colorKey;
87-
$colorFormValid: #33cc33;
88-
$colorFormError: #990000;
93+
$colorFormValid: $colorOk;
94+
$colorFormError: $colorWarningHi;
8995
$colorFormInvalid: #ff2200;
9096
$colorFormFieldErrorBg: $colorFormError;
9197
$colorFormFieldErrorFg: rgba(#fff, 0.6);
@@ -107,7 +113,7 @@ $colorInspectorSectionHeaderBg: pullForward($colorInspectorBg, 5%);
107113
$colorInspectorSectionHeaderFg: pullForward($colorInspectorBg, 40%);
108114

109115
// Status colors, mainly used for messaging and item ancillary symbols
110-
$colorStatusFg: #fff;
116+
$colorStatusFg: #999;
111117
$colorStatusDefault: #ccc;
112118
$colorStatusInfo: #60ba7b;
113119
$colorStatusAlert: #ffb66c;

‎platform/commonUI/themes/snow/res/sass/_mixins.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@
1212
// For dark interfaces, darker things move back - opposite for light interfaces
1313
@return lighten($c, $p);
1414
}
15+
16+
@function bgFg($c) {
17+
// Given a single color, return valid background and foreground versions of that color
18+
$bg: darken($c, 20%);
19+
$fg: lighten($c, 20%);
20+
@return $bg, $fg;
21+
}
22+

0 commit comments

Comments
 (0)
Please sign in to comment.