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  }
80
81  // Power button options
82  .power-option {
83    padding: 1.8em 0 1em 0;
84    position: relative;
85    overflow: hidden;
86    min-height: 1px;
87    min-width: 100%;
88    .btn-secondary {
89      margin-bottom: .5em;
90      margin-right: 1em;
91      font-size: .9em;
92      display: block;
93      min-width: 240px;
94      @include mediaQuery(medium) {
95        display: inline-block;
96      }
97    }
98    @include mediaQuery(x-small){
99      padding: 1.8em 0 1em 0;
100    }
101  }
102
103} //end power-operations