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; |
| 12 | } |
| 13 | |
| 14 | // Power Curernt status wrapper |
| 15 | .power__current-status { |
| 16 | border-bottom: 1px solid $lightbg__grey; |
| 17 | margin: 3.625em 0 1.2em 0; |
| 18 | .h4 { |
| 19 | padding: 0; |
| 20 | margin: 0 0 .5em 0; |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | // Power state indicator on/off |
| 25 | .power__state { |
| 26 | span:before { |
| 27 | content: '\25CF'; |
| 28 | display: inline-block; |
| 29 | font-size: 1.2em; |
| 30 | color: $darkgrey; |
| 31 | margin-right: .3em; |
| 32 | @include slowTransition-all; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | // Power bar indicator |
| 37 | .power__indicator-bar { |
| 38 | font-weight: bold; |
| 39 | padding: 1.4em 3em; |
| 40 | margin-bottom: 3.750em; |
| 41 | background-size: 200% 100%; |
| 42 | background-image: linear-gradient(to right, $status-ok-light 50%, $lightgrey 50%); |
| 43 | background-position: 100%; |
| 44 | transition: background-position 2s ease; |
| 45 | p { |
| 46 | padding: 0; |
| 47 | margin: 0; |
| 48 | } |
| 49 | &.power__state-on { |
| 50 | background-position: -200%; |
| 51 | .power__state { |
| 52 | span:before { |
| 53 | color: $status-ok; |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | &.power__state-off { |
| 58 | background-position: -100%; |
| 59 | color: $darkgrey; |
| 60 | .power__state { |
| 61 | span:before { |
| 62 | color: $darkgrey; |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | // Power button options |
| 69 | .power-option { |
| 70 | border-top: 1px solid $lightgrey; |
| 71 | padding: 1.8em 0 1em 1.8em; |
| 72 | position: relative; |
| 73 | overflow: hidden; |
| 74 | min-height: 1px; |
| 75 | .btn-secondary { |
| 76 | margin-bottom: .5em; |
| 77 | } |
| 78 | // Confirmation message for power option |
| 79 | .power__confirm { |
| 80 | position: absolute; |
| 81 | top: 0; |
| 82 | transform: translateY(-100%); |
| 83 | width: 100%; |
| 84 | margin-left: -1.8em; |
| 85 | z-index: 5; |
| 86 | background: $darkbg__primary; |
| 87 | color: $white; |
| 88 | padding: 2em 2em 1.55em 2em; |
| 89 | &.active { |
| 90 | transform: translateY(0); |
| 91 | @include fastTransition-all; |
| 92 | } |
| 93 | } |
| 94 | &.disabled { |
| 95 | @include fastTransition-all; |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | // Power confirmation buttons |
| 101 | .power__confirm-buttons { |
| 102 | .btn-primary { |
| 103 | background: transparent; |
| 104 | border: 2px solid $white; |
| 105 | padding: 1em 2.2em; |
| 106 | margin: 0 10px; |
| 107 | border-radius: 4px; |
| 108 | &:focus, |
| 109 | &:hover { |
| 110 | background: $primebtn__bg; |
| 111 | border: 2px solid $primebtn__bg; |
| 112 | } |
| 113 | } |
| 114 | @include mediaQuery(large) { |
| 115 | float: right; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | // Power confirmation message |
| 120 | .power__confirm-message { |
| 121 | display: inline-block; |
| 122 | } |
| 123 | |
| 124 | // Power confirmation message icon |
| 125 | .power__confirm-message i::before { |
| 126 | content: '\26A0'; |
| 127 | color: $white; |
| 128 | display: inline-block; |
| 129 | font-size: 2em; |
| 130 | vertical-align: middle; |
| 131 | font-style: normal; |
| 132 | margin-right: 15px; |
| 133 | } |