blob: c5b580f7659c99896f65a8e64eacd4978298f108 [file] [log] [blame]
Michael Davis19475752017-02-23 18:30:23 -06001// Power Operations SCSS
2
3#power-operations {
4
5 .h4 {
6 font-weight: bold;
7 }
8
9 // Power op time stamp
10 .power__status-log {
11 color: $darkgrey;
Michael Davis5d014692017-03-02 13:37:40 -060012 font-weight:500;
Michael Davis19475752017-02-23 18:30:23 -060013 }
14
15 // Power Curernt status wrapper
16 .power__current-status {
Michael Davis51946552017-05-01 10:30:38 -050017 border-bottom: 1px solid $medgrey;
Michael Davis46f0a1f2017-07-13 11:23:16 -050018 margin: 1.3em 0 1.2em 0;
Michael Davis19475752017-02-23 18:30:23 -060019 .h4 {
20 padding: 0;
21 margin: 0 0 .5em 0;
22 }
23 }
24
25 // Power state indicator on/off
26 .power__state {
Michael Davis5d014692017-03-02 13:37:40 -060027 font-weight: 700;
28 margin-top: -.3em;
Michael Davis19475752017-02-23 18:30:23 -060029 span:before {
Michael Daviscdc3deb2017-07-20 17:11:52 -050030 content: '';
31 position: absolute;
32 margin-left: -25px;
33 @extend .icon__off;
Michael Davis19475752017-02-23 18:30:23 -060034 }
35 }
36
37 // Power bar indicator
38 .power__indicator-bar {
39 font-weight: bold;
Michael Daviscdc3deb2017-07-20 17:11:52 -050040 padding: 1em 2em .7em;
Michael Davis46f0a1f2017-07-13 11:23:16 -050041 margin-bottom: 3em;
Michael Davis19475752017-02-23 18:30:23 -060042 background-size: 200% 100%;
Michael Daviscdc3deb2017-07-20 17:11:52 -050043 background-image: linear-gradient(to right, darken($lightgrey,3%) 50%, $status-ok-light 50%);
Iftekharul Islamcd789502017-04-19 14:37:55 -050044 background-position: 0;
Michael Davis19475752017-02-23 18:30:23 -060045 transition: background-position 2s ease;
Michael Davisea5241a2017-07-12 15:56:55 -050046 overflow: hidden;
Michael Daviscdc3deb2017-07-20 17:11:52 -050047 display:flex;
48 justify-content: space-between;
49 align-items:center;
Michael Davis19475752017-02-23 18:30:23 -060050 p {
51 padding: 0;
52 margin: 0;
Michael Daviscdc3deb2017-07-20 17:11:52 -050053 font-size: 1.2em;
Michael Davis19475752017-02-23 18:30:23 -060054 }
55 &.power__state-on {
Iftekharul Islamcd789502017-04-19 14:37:55 -050056 background-position: -100%;
Michael Davis19475752017-02-23 18:30:23 -060057 .power__state {
58 span:before {
Michael Davis68f929d2017-07-27 15:33:59 -050059 content: '';
60 @extend .icon__good;
Michael Davis19475752017-02-23 18:30:23 -060061 }
62 }
63 }
64 &.power__state-off {
Iftekharul Islamcd789502017-04-19 14:37:55 -050065 background-position: 0;
Michael Daviscdc3deb2017-07-20 17:11:52 -050066 color: $black;
Michael Davis19475752017-02-23 18:30:23 -060067 .power__state {
68 span:before {
Michael Daviscdc3deb2017-07-20 17:11:52 -050069 content: '';
70 @extend .icon__off;
Michael Davis19475752017-02-23 18:30:23 -060071 }
72 }
73 }
Michael Davisc5626182017-03-10 15:48:05 -060074 &.power__state-indet {
75 color: $darkgrey;
76 @include indeterminate-bar;
77 .power__state {
78 span:before {
79 color: $status-warn;
80 }
81 }
82 }
Michael Davis19475752017-02-23 18:30:23 -060083 }
84
85 // Power button options
86 .power-option {
Michael Davisea5241a2017-07-12 15:56:55 -050087 padding: 1.8em 0 1em 0;
Michael Davis19475752017-02-23 18:30:23 -060088 position: relative;
89 overflow: hidden;
90 min-height: 1px;
Michael Davisea5241a2017-07-12 15:56:55 -050091 min-width: 100%;
Michael Davis19475752017-02-23 18:30:23 -060092 .btn-secondary {
93 margin-bottom: .5em;
Michael Davis46edf2a2017-07-20 17:09:28 -050094 margin-right: 1em;
95 font-size: .9em;
Michael Davis68f929d2017-07-27 15:33:59 -050096 display: block;
97 min-width: 240px;
98 @include mediaQuery(medium) {
99 display: inline-block;
Michael Davis19475752017-02-23 18:30:23 -0600100 }
101 }
Michael Davis68f929d2017-07-27 15:33:59 -0500102 @include mediaQuery(x-small){
103 padding: 1.8em 0 1em 0;
Michael Davis19475752017-02-23 18:30:23 -0600104 }
105 }
Michael Davis19475752017-02-23 18:30:23 -0600106
Michael Davisea5241a2017-07-12 15:56:55 -0500107} //end power-operations