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 @extend .icon__off; 27 margin-left: -25px; 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 content: ''; 75 @extend .icon__warning; 76 } 77 } 78 } 79 &.power__state-error { 80 background-position: 0; 81 color: $black; 82 .power__state { 83 span:before { 84 content: ''; 85 @extend .icon__critical; 86 } 87 } 88 } 89 } 90 91 // Power button options 92 .power-option { 93 padding: 1.8em 0 1em 0; 94 position: relative; 95 overflow: hidden; 96 min-height: 1px; 97 min-width: 100%; 98 .btn-secondary { 99 margin-bottom: .5em; 100 margin-right: 1em; 101 font-size: .9em; 102 display: block; 103 min-width: 240px; 104 @include mediaQuery(medium) { 105 display: inline-block; 106 } 107 } 108 @include mediaQuery(x-small){ 109 padding: 1.8em 0 1em 0; 110 } 111 } 112 113} //end power-operations 114