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