From 30a4888363ec7ffae05bd247188888fbeef7e4a0 Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Thu, 20 Dec 2018 13:17:44 -0800 Subject: [PATCH] R&I Misc UI 3 (#2253) * Limits-related changes; WIP - Renamed CSS classes: `s-limit-*` > `is-limit--*`; - Removed load of legacy _status.scss and added new _status.scss file; - Minor re-org of limit/status constants in theme files; - Limit colors in theme constants all updated; * Fixes for s-selected always displaying the move cursor - Mod s-selected; - Reinstitute `.is-moveable` class; * Layout-related cleanup and refinements - LineView cleaned up; - Selection, hover, etc. classes for c-frame cleaned up; - Constant names normalized, theme files updated; * Fixes for editing plot options - Color palette now more flexible; - Styles for color palette button refined; - c-input--flex added for more flexible inputs; * Various swatch-related changes - Swatch refinements, new .c-click-swatch class; - Added .c-click-icon--major modifier style, applied in markup; * Local controls class application and behavior cleanup - Remmoved .has-local-controls from selected markup; - Refined CSS selector for better hover behavior; * Misc UI tweaks - click-icon--major in Notebook; - .test mixin improved; * Update _constants-espresso.scss * Update _constants-maelstrom.scss --- example/generator/SinewaveLimitProvider.js | 8 +- .../components/DisplayLayout.vue | 2 +- .../displayLayout/components/LayoutFrame.vue | 2 +- .../displayLayout/components/LineView.vue | 8 +- src/plugins/notebook/res/templates/entry.html | 2 +- .../res/templates/plot-options-browse.html | 12 +- .../plot/res/templates/plot-options-edit.html | 22 ++-- src/styles-new/_constants-espresso.scss | 59 +++++---- src/styles-new/_constants-maelstrom.scss | 41 +++++-- src/styles-new/_constants-snow.scss | 37 ++++-- src/styles-new/_controls.scss | 54 ++++++--- src/styles-new/_global.scss | 34 +++--- src/styles-new/_mixins.scss | 9 +- src/styles-new/_status.scss | 113 ++++++++++++++++++ src/styles-new/core.scss | 1 + src/styles-new/legacy-styles.scss | 2 +- src/ui/components/ObjectFrame.vue | 2 +- src/ui/inspector/Inspector.vue | 11 +- src/ui/layout/BrowseBar.vue | 2 +- src/ui/layout/Layout.vue | 4 +- 20 files changed, 303 insertions(+), 122 deletions(-) create mode 100644 src/styles-new/_status.scss diff --git a/example/generator/SinewaveLimitProvider.js b/example/generator/SinewaveLimitProvider.js index 22bb6ccd6d..c1fb39a0df 100644 --- a/example/generator/SinewaveLimitProvider.js +++ b/example/generator/SinewaveLimitProvider.js @@ -37,25 +37,25 @@ define([ }, LIMITS = { rh: { - cssClass: "s-limit-upr s-limit-red", + cssClass: "is-limit--upr is-limit--red", low: RED, high: Number.POSITIVE_INFINITY, name: "Red High" }, rl: { - cssClass: "s-limit-lwr s-limit-red", + cssClass: "is-limit--lwr is-limit--red", high: -RED, low: Number.NEGATIVE_INFINITY, name: "Red Low" }, yh: { - cssClass: "s-limit-upr s-limit-yellow", + cssClass: "is-limit--upr is-limit--yellow", low: YELLOW, high: RED, name: "Yellow High" }, yl: { - cssClass: "s-limit-lwr s-limit-yellow", + cssClass: "is-limit--lwr is-limit--yellow", low: -RED, high: -YELLOW, name: "Yellow Low" diff --git a/src/plugins/displayLayout/components/DisplayLayout.vue b/src/plugins/displayLayout/components/DisplayLayout.vue index b7b48c92a0..967e0d9d5d 100644 --- a/src/plugins/displayLayout/components/DisplayLayout.vue +++ b/src/plugins/displayLayout/components/DisplayLayout.vue @@ -77,7 +77,7 @@ .l-shell__main-container { > .l-layout { [s-selected] { - border: $browseBorderSelected; + border: $browseSelectedBorder; } } } diff --git a/src/plugins/displayLayout/components/LayoutFrame.vue b/src/plugins/displayLayout/components/LayoutFrame.vue index 4a51793f97..2560aa7393 100644 --- a/src/plugins/displayLayout/components/LayoutFrame.vue +++ b/src/plugins/displayLayout/components/LayoutFrame.vue @@ -21,7 +21,7 @@ *****************************************************************************/