diff options
| author | Gunnar Mills <gmills@us.ibm.com> | 2018-06-26 16:08:59 -0500 |
|---|---|---|
| committer | Gunnar Mills <gmills@us.ibm.com> | 2018-08-24 21:00:32 +0000 |
| commit | 006aaa0fd3df33f4029b5a19b1c5d712f72b9296 (patch) | |
| tree | 30b00b9646bb8c2442931406da1e7256cffe714a /app/server-control/styles | |
| parent | b817e07afb677d48851d8408a1b9d23091f0c429 (diff) | |
| download | phosphor-webui-006aaa0fd3df33f4029b5a19b1c5d712f72b9296.tar.gz phosphor-webui-006aaa0fd3df33f4029b5a19b1c5d712f72b9296.zip | |
Set the power cap
Created toggle button to enable power cap and a text field to set
it. This form is similar to the set network form.
Moved logic for displaying the power cap as disabled to the
overview controller.
Resolves openbmc/openbmc#3221
Tested: Set the power cap on a Witherspoon
Change-Id: I62346fe3ed123b9df58d159cee2584937d46213c
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'app/server-control/styles')
| -rw-r--r-- | app/server-control/styles/power-usage.scss | 62 |
1 files changed, 43 insertions, 19 deletions
diff --git a/app/server-control/styles/power-usage.scss b/app/server-control/styles/power-usage.scss index 4c956e2..f45a510 100644 --- a/app/server-control/styles/power-usage.scss +++ b/app/server-control/styles/power-usage.scss @@ -1,25 +1,49 @@ // Power Usage SCSS +.power-usage__form { -.power__usage-metadata { - border-bottom: 1px solid $medgrey; - padding: 1.8em 0 0 0; -} + input { + height: 2.1em; + margin-bottom: 0em; + } -.power__usage-metadata-wrapper { - margin: 0; - padding: 0; -} + fieldset { + padding-left: 1.8em; + } -.power__usage-metadata-block { - list-style-type: none; - min-width: 47%; - margin-bottom: 1.8em; - margin-right: .7em; - display: inline-block; - white-space: normal; - word-break: break-all; - @include mediaQuery(small) { - float: left; + .power-usage__switch-label { + padding-bottom: .5em; + } + + .power-usage__switch-label p { + margin: 0; + &:first-child {font-weight: 700;} } -} + .power-usage__metadata-wrapper { + margin: 0; + padding: 0; + } + + .power-usage__metadata-block { + min-width: 47%; + margin-bottom: 1.8em; + margin-right: .7em; + display: inline-block; + white-space: normal; + word-break: break-all; + @include mediaQuery(small) { + float: left; + } + } + + .power-usage__submit-wrapper { + width: 100%; + margin-top: 3em; + padding-top: 1em; + border-top: 1px solid $medgrey; + button { + float: right; + margin: .5em; + } + } +} |

