From aa3641759005436a2ba2cd903bbe932feb6c12d3 Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Tue, 22 Aug 2017 10:27:37 -0700 Subject: [PATCH] [Frontend] Limits and Status classes Fixes #1677 Style Guide content updates; Reviewed against current master for regression; TO-DO: review against new plot functionality; --- example/styleguide/res/templates/status.html | 56 ++++++++++++++------ 1 file changed, 39 insertions(+), 17 deletions(-) diff --git a/example/styleguide/res/templates/status.html b/example/styleguide/res/templates/status.html index d692c11b70..bfc03d601f 100644 --- a/example/styleguide/res/templates/status.html +++ b/example/styleguide/res/templates/status.html @@ -37,7 +37,12 @@

Overview

-

Many elements in Open MCT need to articulate a dynamic status.

+

Many elements in Open MCT need to articulate a dynamic status; Open MCT provides the following styles and conventions to handle this:

+
@@ -46,12 +51,23 @@

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. "Level" limit classes - upper and lower - always use an icon in addition to a color; Open MCT doesn't support level limits without color.

    -
  • s-limit-yellow: A yellow limit.
  • -
  • s-limit-red: A red limit.
  • -
  • s-limit-yellow-icon: A yellow limit with icon.
  • -
  • s-limit-red-icon: A red limit with icon.
  • -
  • s-limit-upr: Upper limit. Use this class in concert with a yellow or red limit class.
  • -
  • s-limit-lwr: Lower limit. Use this class in concert with a yellow or red limit class.
  • +
  • Color only
  • +
      +
    • s-limit-yellow: A yellow limit.
    • +
    • s-limit-red: A red limit.
    • +
    +
  • Color and icon
  • +
      +
    • s-limit-yellow-icon: A yellow limit with icon.
    • +
    • s-limit-red-icon: A red limit with icon.
    • +
    +
  • Upper and lower limit indicators. Must be used with a color limit class to be visible.
  • +
      +
    • s-limit-upr: Upper limit. +
    • +
    • s-limit-lwr: Lower limit. +
    • +
Yellow limit
@@ -80,16 +96,22 @@

Classes here can be applied to elements as needed.

    -
  • s-status-warning-hi
  • -
  • s-status-warning-lo
  • -
  • s-status-diagnostic
  • -
  • s-status-info
  • -
  • s-status-ok
  • -
  • s-status-warning-hi-icon
  • -
  • s-status-warning-lo-icon
  • -
  • s-status-diagnostic-icon
  • -
  • s-status-info-icon
  • -
  • s-status-ok-icon
  • +
  • Color only
  • +
      +
    • s-status-warning-hi
    • +
    • s-status-warning-lo
    • +
    • s-status-diagnostic
    • +
    • s-status-info
    • +
    • s-status-ok
    • +
    +
  • Color and icon
  • +
      +
    • s-status-warning-hi-icon
    • +
    • s-status-warning-lo-icon
    • +
    • s-status-diagnostic-icon
    • +
    • s-status-info-icon
    • +
    • s-status-ok-icon
    • +
WARNING HI