| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 1 | // Power Operations SCSS |
| 2 | |||||
| 3 | #power-operations { | ||||
| 4 | |||||
| 5 | .h4 { | ||||
| 6 | font-weight: bold; | ||||
| 7 | } | ||||
| 8 | |||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 9 | // Power Curernt status wrapper |
| 10 | .power__current-status { | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 11 | border-bottom: 1px solid $medgrey; |
| Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 12 | margin: 1.3em 0 1.2em 0; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 13 | .h4 { |
| 14 | padding: 0; | ||||
| 15 | margin: 0 0 .5em 0; | ||||
| 16 | } | ||||
| 17 | } | ||||
| 18 | |||||
| 19 | // Power state indicator on/off | ||||
| 20 | .power__state { | ||||
| Michael Davis | 5d01469 | 2017-03-02 13:37:40 -0600 | [diff] [blame] | 21 | font-weight: 700; |
| 22 | margin-top: -.3em; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 23 | span:before { |
| Michael Davis | cdc3deb | 2017-07-20 17:11:52 -0500 | [diff] [blame] | 24 | content: ''; |
| 25 | position: absolute; | ||||
| Michael Davis | cdc3deb | 2017-07-20 17:11:52 -0500 | [diff] [blame] | 26 | @extend .icon__off; |
| Michael Davis | 9632d71 | 2017-08-28 18:36:53 -0500 | [diff] [blame] | 27 | margin-left: -25px; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 28 | } |
| 29 | } | ||||
| 30 | |||||
| 31 | // Power bar indicator | ||||
| 32 | .power__indicator-bar { | ||||
| 33 | font-weight: bold; | ||||
| Gunnar Mills | 84e114a | 2018-11-14 13:44:41 -0600 | [diff] [blame] | 34 | width: 100%; |
| Michael Davis | cdc3deb | 2017-07-20 17:11:52 -0500 | [diff] [blame] | 35 | padding: 1em 2em .7em; |
| Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 36 | margin-bottom: 3em; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 37 | background-size: 200% 100%; |
| Michael Davis | cdc3deb | 2017-07-20 17:11:52 -0500 | [diff] [blame] | 38 | background-image: linear-gradient(to right, darken($lightgrey,3%) 50%, $status-ok-light 50%); |
| Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 39 | background-position: 0; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 40 | transition: background-position 2s ease; |
| Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 41 | overflow: hidden; |
| Michael Davis | cdc3deb | 2017-07-20 17:11:52 -0500 | [diff] [blame] | 42 | display:flex; |
| 43 | justify-content: space-between; | ||||
| 44 | align-items:center; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 45 | p { |
| 46 | padding: 0; | ||||
| 47 | margin: 0; | ||||
| Michael Davis | cdc3deb | 2017-07-20 17:11:52 -0500 | [diff] [blame] | 48 | font-size: 1.2em; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 49 | } |
| 50 | &.power__state-on { | ||||
| Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 51 | background-position: -100%; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 52 | .power__state { |
| 53 | span:before { | ||||
| Michael Davis | 68f929d | 2017-07-27 15:33:59 -0500 | [diff] [blame] | 54 | content: ''; |
| 55 | @extend .icon__good; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 56 | } |
| 57 | } | ||||
| 58 | } | ||||
| 59 | &.power__state-off { | ||||
| Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 60 | background-position: 0; |
| Michael Davis | cdc3deb | 2017-07-20 17:11:52 -0500 | [diff] [blame] | 61 | color: $black; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 62 | .power__state { |
| 63 | span:before { | ||||
| Michael Davis | cdc3deb | 2017-07-20 17:11:52 -0500 | [diff] [blame] | 64 | content: ''; |
| 65 | @extend .icon__off; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 66 | } |
| 67 | } | ||||
| 68 | } | ||||
| Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 69 | &.power__state-indet { |
| 70 | color: $darkgrey; | ||||
| 71 | @include indeterminate-bar; | ||||
| 72 | .power__state { | ||||
| 73 | span:before { | ||||
| 74 | color: $status-warn; | ||||
| Michael Davis | 9632d71 | 2017-08-28 18:36:53 -0500 | [diff] [blame] | 75 | content: ''; |
| 76 | @extend .icon__warning; | ||||
| Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 77 | } |
| 78 | } | ||||
| 79 | } | ||||
| CamVan Nguyen | 3490c0f | 2018-05-01 22:23:21 -0500 | [diff] [blame] | 80 | &.power__state-error { |
| 81 | background-position: 0; | ||||
| 82 | color: $black; | ||||
| 83 | .power__state { | ||||
| 84 | span:before { | ||||
| 85 | content: ''; | ||||
| 86 | @extend .icon__critical; | ||||
| 87 | } | ||||
| 88 | } | ||||
| 89 | } | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 90 | } |
| 91 | |||||
| 92 | // Power button options | ||||
| 93 | .power-option { | ||||
| Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 94 | padding: 1.8em 0 1em 0; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 95 | position: relative; |
| 96 | overflow: hidden; | ||||
| 97 | min-height: 1px; | ||||
| Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 98 | min-width: 100%; |
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 99 | .btn-secondary { |
| 100 | margin-bottom: .5em; | ||||
| Michael Davis | 46edf2a | 2017-07-20 17:09:28 -0500 | [diff] [blame] | 101 | margin-right: 1em; |
| 102 | font-size: .9em; | ||||
| Michael Davis | 68f929d | 2017-07-27 15:33:59 -0500 | [diff] [blame] | 103 | display: block; |
| 104 | min-width: 240px; | ||||
| 105 | @include mediaQuery(medium) { | ||||
| 106 | display: inline-block; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 107 | } |
| 108 | } | ||||
| Michael Davis | 68f929d | 2017-07-27 15:33:59 -0500 | [diff] [blame] | 109 | @include mediaQuery(x-small){ |
| 110 | padding: 1.8em 0 1em 0; | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 111 | } |
| 112 | } | ||||
| Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 113 | |
| CamVan Nguyen | 3490c0f | 2018-05-01 22:23:21 -0500 | [diff] [blame] | 114 | } //end power-operations |