1// Power Operations SCSS 2 3#power-operations { 4 5 .h4 { 6 font-weight: bold; 7 } 8 9 // Power Curernt status wrapper 10 .power__current-status { 11 border-bottom: 1px solid $medgrey; 12 margin: 1.3em 0 1.2em 0; 13 .h4 { 14 padding: 0; 15 margin: 0 0 .5em 0; 16 } 17 } 18 19 // Power state indicator on/off 20 .power__state { 21 font-weight: 700; 22 margin-top: -.3em; 23 span:before { 24 content: ''; 25 position: absolute; 26 margin-left: -25px; 27 @extend .icon__off; 28 } 29 } 30 31 // Power bar indicator 32 .power__indicator-bar { 33 font-weight: bold; 34 padding: 1em 2em .7em; 35 margin-bottom: 3em; 36 background-size: 200% 100%; 37 background-image: linear-gradient(to right, darken($lightgrey,3%) 50%, $status-ok-light 50%); 38 background-position: 0; 39 transition: background-position 2s ease; 40 overflow: hidden; 41 display:flex; 42 justify-content: space-between; 43 align-items:center; 44 p { 45 padding: 0; 46 margin: 0; 47 font-size: 1.2em; 48 } 49 &.power__state-on { 50 background-position: -100%; 51 .power__state { 52 span:before { 53 content: ''; 54 @extend .icon__good; 55 } 56 } 57 } 58 &.power__state-off { 59 background-position: 0; 60 color: $black; 61 .power__state { 62 span:before { 63 content: ''; 64 @extend .icon__off; 65 } 66 } 67 } 68 &.power__state-indet { 69 color: $darkgrey; 70 @include indeterminate-bar; 71 .power__state { 72 span:before { 73 color: $status-warn; 74 } 75 } 76 } 77 } 78 79 // Power button options 80 .power-option { 81 padding: 1.8em 0 1em 0; 82 position: relative; 83 overflow: hidden; 84 min-height: 1px; 85 min-width: 100%; 86 .btn-secondary { 87 margin-bottom: .5em; 88 margin-right: 1em; 89 font-size: .9em; 90 display: block; 91 min-width: 240px; 92 @include mediaQuery(medium) { 93 display: inline-block; 94 } 95 } 96 @include mediaQuery(x-small){ 97 padding: 1.8em 0 1em 0; 98 } 99 } 100 101} //end power-operations