\ No newline at end of file
diff --git a/platform/commonUI/dialog/res/templates/notification-message.html b/platform/commonUI/dialog/res/templates/notification-message.html
index c655faaffd..52ba7ecc8c 100644
--- a/platform/commonUI/dialog/res/templates/notification-message.html
+++ b/platform/commonUI/dialog/res/templates/notification-message.html
@@ -1,25 +1,25 @@
-
You must add at least one telemetry object to edit this widget.
diff --git a/src/plugins/timeConductor/DatePicker.vue b/src/plugins/timeConductor/DatePicker.vue
index 1baf0f900c..273d943d09 100644
--- a/src/plugins/timeConductor/DatePicker.vue
+++ b/src/plugins/timeConductor/DatePicker.vue
@@ -21,7 +21,7 @@
*****************************************************************************/
-
@@ -30,10 +30,10 @@
@click="toggle">
-
{{model.month}} {{model.year}}
-
@@ -91,7 +91,7 @@
grid-template-columns: auto 1fr auto;
align-items: center;
- .c-click-icon {
+ .c-icon-button {
font-size: 0.8em;
}
diff --git a/src/styles-new/_about.scss b/src/styles-new/_about.scss
index 8f2b66d405..df7fbb48b7 100644
--- a/src/styles-new/_about.scss
+++ b/src/styles-new/_about.scss
@@ -21,6 +21,46 @@
*****************************************************************************/
// Used by About screen, licenses, etc.
+.c-splash-image {
+ background-position: center;
+ background-repeat: no-repeat;
+ background-size: cover;
+ background-image: url('../ui/layout/assets/images/bg-splash.jpg');
+
+ &:before,
+ &:after {
+ background-position: center;
+ background-repeat: no-repeat;
+ position: absolute;
+ background-image: url('../ui/layout/assets/images/logo-app-shdw.svg');
+ background-size: contain;
+ content: '';
+ }
+
+ &:before {
+ // NASA logo, dude
+ $w: 5%;
+ $m: 10px;
+ background-image: url('../ui/layout/assets/images/logo-nasa.svg');
+ top: $m;
+ right: auto;
+ bottom: auto;
+ left: $m;
+ height: auto;
+ width: $w * 2;
+ padding-bottom: $w;
+ padding-top: $w;
+ }
+
+ &:after {
+ // App logo
+ top: 0;
+ right: 15%;
+ bottom: 0;
+ left: 15%;
+ }
+}
+
.c-about {
&--splash {
// Large initial image after click on app logo with text beneath
@@ -37,48 +77,6 @@
&__text {
height: 50%;
flex: 1 1 0;
- position: relative;
- }
-
- &__image {
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- background-image: url('../ui/layout/assets/images/bg-splash.jpg');
- position: relative;
-
- &:before,
- &:after {
- background-position: center;
- background-repeat: no-repeat;
- position: absolute;
- background-image: url('../ui/layout/assets/images/logo-app-shdw.svg');
- background-size: contain;
- content: '';
- }
-
- &:before {
- // NASA logo, dude
- $w: 5%;
- $m: 10px;
- background-image: url('../ui/layout/assets/images/logo-nasa.svg');
- top: $m;
- right: auto;
- bottom: auto;
- left: $m;
- height: auto;
- width: $w * 2;
- padding-bottom: $w;
- padding-top: $w;
- }
-
- &:after {
- // App logo
- top: 0;
- right: 15%;
- bottom: 0;
- left: 15%;
- }
}
&__text {
diff --git a/src/styles-new/_constants-espresso.scss b/src/styles-new/_constants-espresso.scss
index d713f5d1a1..59b4b1e44a 100644
--- a/src/styles-new/_constants-espresso.scss
+++ b/src/styles-new/_constants-espresso.scss
@@ -173,9 +173,9 @@ $colorBtnMajorFgHov: pushBack($colorBtnMajorFg, 10%);
$colorBtnCautionBg: #f16f6f;
$colorBtnCautionBgHov: #f1504e;
$colorBtnCautionFg: $colorBtnFg;
-$colorClickIcon: $colorKey;
-$colorClickIconBgHov: rgba($colorKey, 0.6);
-$colorClickIconFgHov: $colorKeyHov;
+$colorClickIconButton: $colorKey;
+$colorClickIconButtonBgHov: rgba($colorKey, 0.6);
+$colorClickIconButtonFgHov: $colorKeyHov;
$colorDropHint: $colorKey;
$colorDropHintBg: pushBack($colorDropHint, 10%);
$colorDropHintBgHov: $colorDropHint;
@@ -244,7 +244,7 @@ $overlayColorFg: $colorMenuFg;
$colorOvrBtnBg: pullForward($overlayColorBg, 20%);
$colorOvrBtnFg: #fff;
$overlayCr: $interiorMarginLg;
-$overlayBrightnessAdjust: brightness(1.3);
+$overlayBrightnessAdjust: brightness(1.3); // Applied in a filter: property
// Indicator colors
$colorIndicatorAvailable: $colorKey;
@@ -267,12 +267,19 @@ $colorLimitRedIc: #ff4222;
// Status
$colorAlert: #ff3c00;
+$colorAlertFg: #fff;
$colorWarningHi: #990000;
+$colorWarningHiFg: #FF9594;
$colorWarningLo: #ff9900;
+$colorWarningLoFg: #523400;
$colorDiagnostic: #a4b442;
+$colorDiagnosticFg: #39461A;
$colorCommand: #3693bd;
+$colorCommandFg: #fff;
$colorInfo: #2294a2;
+$colorInfoFg: #fff;
$colorOk: #33cc33;
+$colorOkFg: #fff;
// Bubble colors
$colorInfoBubbleBg: #dddddd;
diff --git a/src/styles-new/_constants-maelstrom.scss b/src/styles-new/_constants-maelstrom.scss
index 548efabdcf..37bafd7fb5 100644
--- a/src/styles-new/_constants-maelstrom.scss
+++ b/src/styles-new/_constants-maelstrom.scss
@@ -177,9 +177,9 @@ $colorBtnMajorFgHov: pushBack($colorBtnMajorFg, 10%);
$colorBtnCautionBg: #f16f6f;
$colorBtnCautionBgHov: #f1504e;
$colorBtnCautionFg: $colorBtnFg;
-$colorClickIcon: $colorKey;
-$colorClickIconBgHov: rgba($colorKey, 0.6);
-$colorClickIconFgHov: $colorKeyHov;
+$colorClickIconButton: $colorKey;
+$colorClickIconButtonBgHov: rgba($colorKey, 0.6);
+$colorClickIconButtonFgHov: $colorKeyHov;
$colorDropHint: $colorKey;
$colorDropHintBg: pushBack($colorDropHint, 10%);
$colorDropHintBgHov: $colorDropHint;
@@ -248,7 +248,7 @@ $overlayColorFg: $colorMenuFg;
$colorOvrBtnBg: pullForward($overlayColorBg, 20%);
$colorOvrBtnFg: #fff;
$overlayCr: $interiorMarginLg;
-$overlayBrightnessAdjust: brightness(1.3);
+$overlayBrightnessAdjust: brightness(1.3); // Applied in a filter: property
// Indicator colors
$colorIndicatorAvailable: $colorKey;
@@ -271,12 +271,19 @@ $colorLimitRedIc: #ff4222;
// Status
$colorAlert: #ff3c00;
+$colorAlertFg: #fff;
$colorWarningHi: #990000;
+$colorWarningHiFg: #FF9594;
$colorWarningLo: #ff9900;
+$colorWarningLoFg: #523400;
$colorDiagnostic: #a4b442;
+$colorDiagnosticFg: #39461A;
$colorCommand: #3693bd;
+$colorCommandFg: #fff;
$colorInfo: #2294a2;
+$colorInfoFg: #fff;
$colorOk: #33cc33;
+$colorOkFg: #fff;
// Bubble colors
$colorInfoBubbleBg: #dddddd;
diff --git a/src/styles-new/_constants-mobile.scss b/src/styles-new/_constants-mobile.scss
index 437185aa01..8016fa1d63 100644
--- a/src/styles-new/_constants-mobile.scss
+++ b/src/styles-new/_constants-mobile.scss
@@ -27,8 +27,8 @@ $mobileListIconSize: 30px;
$mobileTitleDescH: 35px;
$mobileOverlayMargin: 20px;
$mobileMenuIconD: 34px;
-$phoneItemH: floor($ueBrowseGridItemLg/4);
-$tabletItemH: floor($ueBrowseGridItemLg/3);
+$phoneItemH: floor($gridItemMobile / 4);
+$tabletItemH: floor($gridItemMobile / 3);
/************************** MOBILE TREE MENU DIMENSIONS */
$mobileTreeItemH: 35px;
diff --git a/src/styles-new/_constants-snow.scss b/src/styles-new/_constants-snow.scss
index d5e35f9b2a..bb1adae2d7 100644
--- a/src/styles-new/_constants-snow.scss
+++ b/src/styles-new/_constants-snow.scss
@@ -173,9 +173,9 @@ $colorBtnMajorFgHov: pushBack($colorBtnMajorFg, 10%);
$colorBtnCautionBg: #f16f6f;
$colorBtnCautionBgHov: #f1504e;
$colorBtnCautionFg: $colorBtnFg;
-$colorClickIcon: $colorKey;
-$colorClickIconBgHov: rgba($colorKey, 0.2);
-$colorClickIconFgHov: $colorKeyHov;
+$colorClickIconButton: $colorKey;
+$colorClickIconButtonBgHov: rgba($colorKey, 0.2);
+$colorClickIconButtonFgHov: $colorKeyHov;
$colorDropHint: $colorKey;
$colorDropHintBg: pushBack($colorDropHint, 10%);
$colorDropHintBgHov: pushBack($colorDropHint, 40%);
@@ -244,7 +244,7 @@ $overlayColorFg: $colorMenuFg;
$colorOvrBtnBg: pullForward($overlayColorBg, 40%);
$colorOvrBtnFg: #fff;
$overlayCr: $interiorMarginLg;
-$overlayBrightnessAdjust: brightness(1.3);
+$overlayBrightnessAdjust: brightness(1); // Applied in a filter: property
// Indicator colors
$colorIndicatorAvailable: $colorKey;
@@ -267,12 +267,19 @@ $colorLimitRedIc: #ffa99a;
// Status
$colorAlert: #ff3c00;
+$colorAlertFg: #fff;
$colorWarningHi: #990000;
+$colorWarningHiFg: #FF9594;
$colorWarningLo: #ff9900;
+$colorWarningLoFg: #523400;
$colorDiagnostic: #a4b442;
+$colorDiagnosticFg: #39461A;
$colorCommand: #3693bd;
+$colorCommandFg: #fff;
$colorInfo: #2294a2;
+$colorInfoFg: #fff;
$colorOk: #33cc33;
+$colorOkFg: #fff;
// Bubble colors
$colorInfoBubbleBg: $colorMenuBg;
diff --git a/src/styles-new/_constants.scss b/src/styles-new/_constants.scss
index 36a614b26b..7a2c78bd0a 100644
--- a/src/styles-new/_constants.scss
+++ b/src/styles-new/_constants.scss
@@ -81,6 +81,9 @@ $waitSpinnerD: 32px;
$waitSpinnerTreeD: 20px;
$waitSpinnerBorderW: 5px;
$waitSpinnerTreeBorderW: 4px;
+/*************** Messages */
+$messageIconD: 80px;
+$messageListIconD: 32px;
/************************** MOBILE */
$mobileMenuIconD: 24px; // Used
diff --git a/src/styles-new/_controls.scss b/src/styles-new/_controls.scss
index b6dc3208bd..17b62d368c 100644
--- a/src/styles-new/_controls.scss
+++ b/src/styles-new/_controls.scss
@@ -55,9 +55,13 @@ button {
}
/********* Icon Buttons */
-.c-click-icon,
-.c-click-swatch {
+.c-click-icon {
@include cClickIcon();
+}
+
+.c-icon-button,
+.c-click-swatch {
+ @include cClickIconButton();
&--menu {
&:after {
@@ -70,8 +74,8 @@ button {
}
}
-.c-click-icon {
- .c-click-icon__label {
+.c-icon-button {
+ .c-icon-button__label {
margin-left: $interiorMargin;
}
@@ -508,12 +512,12 @@ select {
@include cToolbarSeparator();
}
- .c-click-icon,
+ .c-icon-button,
.c-labeled-input {
color: $editUIBaseColorFg;
}
- .c-click-icon {
+ .c-icon-button {
@include cControl();
$pLR: $interiorMargin - 1;
$pTB: 2px;
@@ -567,9 +571,8 @@ select {
&[class*='--strip'] {
// Buttons are smashed together with minimal margin
- // c-buttons don't have border-radius between buttons, creates a horizontal tool-button-strip look
- // c-click-icons get grouped more closely together
-
+ // c-buttons don't have border-radius between buttons, creates a tool-button-strip look
+ // c-icon-buttons get grouped more closely together
[class^="c-button"] {
// Only apply the following to buttons that have background, eg. c-button
border-radius: 0;
diff --git a/src/styles-new/_forms.scss b/src/styles-new/_forms.scss
index 54b3ed1e11..02ce5de0b6 100644
--- a/src/styles-new/_forms.scss
+++ b/src/styles-new/_forms.scss
@@ -338,7 +338,6 @@
}
}
-
mct-form.validates {
.form-row.validates {
> .label {
diff --git a/src/styles-new/_legacy-messages.scss b/src/styles-new/_legacy-messages.scss
new file mode 100644
index 0000000000..10bcab25cc
--- /dev/null
+++ b/src/styles-new/_legacy-messages.scss
@@ -0,0 +1,144 @@
+/*****************************************************************************
+ * Open MCT, Copyright (c) 2014-2018, 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.
+ *****************************************************************************/
+/******************************************************************* MESSAGES */
+.w-message-contents {
+ flex: 1 1 auto;
+ display: flex;
+ flex-direction: column;
+
+ > * + * {
+ margin-bottom: $interiorMargin;
+ }
+
+ .message-body {
+ flex: 1 1 100%;
+ }
+}
+
+// Singleton in an overlay dialog
+.t-message-single .l-message,
+.t-message-single.l-message {
+ $iconW: $messageListIconD;
+ &:before {
+ font-size: $iconW;
+ width: $iconW + 2;
+ }
+ .title {
+ font-size: 1.2em;
+ }
+}
+
+// Singleton inline in a view
+.t-message-inline .l-message,
+.t-message-inline.l-message {
+ border-radius: $controlCr;
+ &.message-severity-info { background-color: rgba($colorInfo, 0.3); }
+ &.message-severity-alert { background-color: rgba($colorWarningLo, 0.3); }
+ &.message-severity-error { background-color: rgba($colorWarningHi, 0.3); }
+
+ .w-message-contents.l-message-body-only {
+ .message-body {
+ margin-top: $interiorMargin;
+ }
+ }
+}
+
+// In a list
+.c-overlay__messages {
+ //@include abs();
+ display: flex;
+ flex-direction: column;
+ overflow: auto;
+ padding-right: $interiorMargin;
+
+ > div,
+ > span {
+ margin-bottom: $interiorMargin;
+ }
+
+ .w-messages {
+ flex: 1 1 100%;
+ overflow-y: auto;
+ padding-right: $interiorMargin;
+ }
+ // Each message
+ .c-message {
+ @include discreteItem();
+ flex: 0 0 auto;
+ margin-bottom: $interiorMarginSm;
+
+ .hint,
+ .bottom-bar {
+ text-align: left;
+ }
+ }
+
+}
+
+@include phonePortrait {
+ .t-message-single .l-message,
+ .t-message-single.l-message {
+ flex-direction: column;
+ &:before {
+ margin-right: 0;
+ margin-bottom: $interiorMarginLg;
+ text-align: center;
+ width: 100%;
+ }
+
+ .bottom-bar {
+ text-align: center;
+ .s-button {
+ display: block;
+ width: 100%;
+ }
+ }
+ }
+}
+
+body.desktop .t-message-list {
+ .w-message-contents { padding-right: $interiorMargin; }
+}
+
+// Alert elements in views
+mixin sUnSynced() {
+ $c: $colorPausedBg;
+ border: 1px solid $c;
+}
+
+.s-unsynced {
+ @include sUnsynced();
+}
+
+.s-status-timeconductor-unsynced {
+ // Plot areas
+ .gl-plot .gl-plot-display-area {
+ @include sUnsynced();
+ }
+
+ // Object headers
+ .object-header {
+ .t-object-alert {
+ display: inline;
+ }
+ }
+}
diff --git a/src/styles-new/_legacy.scss b/src/styles-new/_legacy.scss
index f3e8b5c1be..a00585a262 100644
--- a/src/styles-new/_legacy.scss
+++ b/src/styles-new/_legacy.scss
@@ -314,7 +314,7 @@ body.mobile.phone {
transition: $transOut;
width: 0;
- .c-click-icon:before { font-size: 1em; }
+ .c-icon-button:before { font-size: 1em; }
}
&__direction {
@@ -797,6 +797,7 @@ mct-indicators mct-include {
display: inline-block;
position: relative;
padding: 1px $interiorMarginSm; // Use padding instead of margin to keep hover chatter to a minimum
+ text-transform: uppercase;
&:before {
display: inline-block;
@@ -806,7 +807,8 @@ mct-indicators mct-include {
display: inline-block;
a,
button,
- .s-button {
+ s-button,
+ .c-button {
// Make in label look like buttons
transition: $transIn;
background: transparent;
@@ -831,8 +833,6 @@ mct-indicators mct-include {
margin-right: $interiorMarginSm;
}
}
-
- button { text-transform: uppercase !important; }
}
&.no-collapse {
diff --git a/src/styles-new/_mixins.scss b/src/styles-new/_mixins.scss
index 6a162d49a6..7325ce3b0d 100644
--- a/src/styles-new/_mixins.scss
+++ b/src/styles-new/_mixins.scss
@@ -51,33 +51,15 @@
/************************** EFFECTS */
@mixin pulse($animName: pulse, $dur: 500ms, $iteration: infinite, $opacity0: 0.5, $opacity100: 1) {
- @include keyframes($animName) {
+ @keyframes pulse {
0% { opacity: $opacity0; }
100% { opacity: $opacity100; }
}
- @include animation-name($animName);
- @include animation-duration($dur);
- @include animation-direction(alternate);
- @include animation-iteration-count($iteration);
- @include animation-timing-function(ease-in-out);
-}
-
-@mixin animTo($animName, $propName, $propValStart, $propValEnd, $dur: 500ms, $delay: 0, $dir: normal, $count: 1) {
- @include keyframes($animName) {
- from { #{propName}: $propValStart; }
- to { #{$propName}: $propValEnd; }
- }
- @include animToParams($animName, $dur: $dur, $delay: $delay, $dir: $dir, $count: $count)
-}
-
-@mixin animToParams($animName, $dur: 500ms, $delay: 0, $dir: normal, $count: 1) {
- @include animation-name($animName);
- @include animation-duration($dur);
- @include animation-delay($delay);
- @include animation-fill-mode(both);
- @include animation-direction($dir);
- @include animation-iteration-count($count);
- @include animation-timing-function(ease-in-out);
+ animation-name: $animName;
+ animation-duration: $dur;
+ animation-direction: alternate;
+ animation-iteration-count: $iteration;
+ animation-timing-function: ease-in-out;
}
/************************** VISUALS */
@@ -412,24 +394,37 @@
}
}
+
@mixin cClickIcon() {
- // A clickable element that just includes the icon, no background
+ @include cControl();
+ cursor: pointer;
+ padding: 4px; // Bigger hit area
+ opacity: 0.6;
+ transition: $transOut;
+ transform-origin: center;
+
+ @include hover() {
+ transform: scale(1.1);
+ transition: $transIn;
+ opacity: 1;
+ }
+}
+
+@mixin cClickIconButton() {
+ // A clickable element that just includes the icon
+ // Background is displayed on hover
// Padding is included to facilitate a bigger hit area
// Make the icon bigger relative to its container
@include cControl();
- $pLR: 4px;
- $pTB: 4px;
background: none;
box-shadow: none;
- border-radius: $controlCr;
cursor: pointer;
+ $pLR: 4px;
+ $pTB: 4px;
+ transition: $transOut;
+ border-radius: $controlCr;
padding: $pTB $pLR;
- @include hover() {
- background: $colorClickIconBgHov;
- color: $colorClickIconFgHov;
- }
-
&:before,
*:before {
// *:before handles any nested containers that may contain glyph elements
@@ -437,6 +432,12 @@
font-size: 1.25em;
}
+ @include hover() {
+ transition: $transIn;
+ background: $colorClickIconButtonBgHov;
+ color: $colorClickIconButtonFgHov;
+ }
+
&[class*="--major"] {
color: $colorKey;
}
diff --git a/src/styles-new/core.scss b/src/styles-new/core.scss
index f3c4f5ab43..a07cf588c8 100644
--- a/src/styles-new/core.scss
+++ b/src/styles-new/core.scss
@@ -24,6 +24,7 @@
@import "sass-base";
/******************** RENDERS CSS */
+@import "about";
@import "glyphs";
@import "global";
@import "status";
diff --git a/src/styles-new/sass-base.scss b/src/styles-new/sass-base.scss
index ca9aea73e2..50bb54867a 100644
--- a/src/styles-new/sass-base.scss
+++ b/src/styles-new/sass-base.scss
@@ -24,6 +24,7 @@
// Meant for use as a single line import in Vue SFC's.
// Do not include anything that renders to CSS!
@import "constants";
+@import "constants-mobile.scss";
@import "constants-espresso"; // TEMP
//@import "constants-snow"; // TEMP
//@import "constants-maelstrom";
diff --git a/src/ui/layout/AboutDialog.vue b/src/ui/layout/AboutDialog.vue
index 7829450d44..a3c4ed51a4 100644
--- a/src/ui/layout/AboutDialog.vue
+++ b/src/ui/layout/AboutDialog.vue
@@ -1,7 +1,7 @@