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 | |
| 9 | // Power op time stamp |
| 10 | .power__status-log { |
| 11 | color: $darkgrey; |
Michael Davis | 5d01469 | 2017-03-02 13:37:40 -0600 | [diff] [blame] | 12 | font-weight:500; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | // Power Curernt status wrapper |
| 16 | .power__current-status { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 17 | border-bottom: 1px solid $medgrey; |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 18 | margin: 1.3em 0 1.2em 0; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 19 | .h4 { |
| 20 | padding: 0; |
| 21 | margin: 0 0 .5em 0; |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | // Power state indicator on/off |
| 26 | .power__state { |
Michael Davis | 5d01469 | 2017-03-02 13:37:40 -0600 | [diff] [blame] | 27 | font-weight: 700; |
| 28 | margin-top: -.3em; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 29 | span:before { |
| 30 | content: '\25CF'; |
| 31 | display: inline-block; |
Michael Davis | 5d01469 | 2017-03-02 13:37:40 -0600 | [diff] [blame] | 32 | font-size: 1.8em; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 33 | color: $darkgrey; |
Michael Davis | 5d01469 | 2017-03-02 13:37:40 -0600 | [diff] [blame] | 34 | margin-right: .1em; |
| 35 | vertical-align: middle; |
| 36 | transform: translateY(-4px); |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 37 | @include slowTransition-all; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | // Power bar indicator |
| 42 | .power__indicator-bar { |
| 43 | font-weight: bold; |
Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 44 | padding: 1.4em 3em 0; |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 45 | margin-bottom: 3em; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 46 | background-size: 200% 100%; |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 47 | background-image: linear-gradient(to right, $lightgrey 50%, $status-ok-light 50%); |
| 48 | background-position: 0; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 49 | transition: background-position 2s ease; |
Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 50 | overflow: hidden; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 51 | p { |
| 52 | padding: 0; |
| 53 | margin: 0; |
| 54 | } |
| 55 | &.power__state-on { |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 56 | background-position: -100%; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 57 | .power__state { |
| 58 | span:before { |
| 59 | color: $status-ok; |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | &.power__state-off { |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 64 | background-position: 0; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 65 | color: $darkgrey; |
| 66 | .power__state { |
| 67 | span:before { |
| 68 | color: $darkgrey; |
| 69 | } |
| 70 | } |
| 71 | } |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 72 | &.power__state-indet { |
| 73 | color: $darkgrey; |
| 74 | @include indeterminate-bar; |
| 75 | .power__state { |
| 76 | span:before { |
| 77 | color: $status-warn; |
| 78 | } |
| 79 | } |
| 80 | } |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 81 | } |
| 82 | |
| 83 | // Power button options |
| 84 | .power-option { |
Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 85 | padding: 1.8em 0 1em 0; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 86 | position: relative; |
| 87 | overflow: hidden; |
| 88 | min-height: 1px; |
Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 89 | min-width: 100%; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 90 | .btn-secondary { |
| 91 | margin-bottom: .5em; |
Michael Davis | 46edf2a | 2017-07-20 17:09:28 -0500 | [diff] [blame^] | 92 | margin-right: 1em; |
| 93 | font-size: .9em; |
Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 94 | @include mediaQuery(small) { |
Michael Davis | 46edf2a | 2017-07-20 17:09:28 -0500 | [diff] [blame^] | 95 | min-width: 240px; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 96 | } |
| 97 | } |
Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 98 | @include mediaQuery(small){ |
Michael Davis | 46edf2a | 2017-07-20 17:09:28 -0500 | [diff] [blame^] | 99 | padding: 1.8em 0 0 0; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 100 | } |
| 101 | } |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 102 | |
Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 103 | } //end power-operations |