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    width: 100%;
35    padding: 1em 2em .7em;
36    margin-bottom: 3em;
37    background-size: 200% 100%;
38    background-image: linear-gradient(to right, darken($lightgrey,3%) 50%, $status-ok-light 50%);
39    background-position: 0;
40    transition: background-position 2s ease;
41    overflow: hidden;
42    display:flex;
43    justify-content: space-between;
44    align-items:center;
45    p {
46      padding: 0;
47      margin: 0;
48      font-size: 1.2em;
49    }
50    &.power__state-on {
51      background-position: -100%;
52      .power__state {
53        span:before {
54          content: '';
55         @extend .icon__good;
56        }
57      }
58    }
59    &.power__state-off {
60      background-position: 0;
61      color: $black;
62      .power__state {
63        span:before {
64          content: '';
65          @extend .icon__off;
66        }
67      }
68    }
69    &.power__state-indet {
70      color: $darkgrey;
71      @include indeterminate-bar;
72      .power__state {
73        span:before {
74          color: $status-warn;
75          content: '';
76          @extend .icon__warning;
77        }
78      }
79    }
80    &.power__state-error {
81      background-position: 0;
82      color: $black;
83      .power__state {
84        span:before {
85          content: '';
86          @extend .icon__critical;
87        }
88      }
89    }
90  }
91
92  // Power button options
93  .power-option {
94    padding: 1.8em 0 1em 0;
95    position: relative;
96    overflow: hidden;
97    min-height: 1px;
98    min-width: 100%;
99    .btn-secondary {
100      margin-bottom: .5em;
101      margin-right: 1em;
102      font-size: .9em;
103      display: block;
104      min-width: 240px;
105      @include mediaQuery(medium) {
106        display: inline-block;
107      }
108    }
109    @include mediaQuery(x-small){
110      padding: 1.8em 0 1em 0;
111    }
112  }
113
114} //end power-operations
115