blob: e6f1d09296b020393c60312d0ec6328cc8bf6a4e [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 {
30 content: '\25CF';
31 display: inline-block;
Michael Davis5d014692017-03-02 13:37:40 -060032 font-size: 1.8em;
Michael Davis19475752017-02-23 18:30:23 -060033 color: $darkgrey;
Michael Davis5d014692017-03-02 13:37:40 -060034 margin-right: .1em;
35 vertical-align: middle;
36 transform: translateY(-4px);
Michael Davis19475752017-02-23 18:30:23 -060037 @include slowTransition-all;
38 }
39 }
40
41 // Power bar indicator
42 .power__indicator-bar {
43 font-weight: bold;
Michael Davisea5241a2017-07-12 15:56:55 -050044 padding: 1.4em 3em 0;
Michael Davis46f0a1f2017-07-13 11:23:16 -050045 margin-bottom: 3em;
Michael Davis19475752017-02-23 18:30:23 -060046 background-size: 200% 100%;
Iftekharul Islamcd789502017-04-19 14:37:55 -050047 background-image: linear-gradient(to right, $lightgrey 50%, $status-ok-light 50%);
48 background-position: 0;
Michael Davis19475752017-02-23 18:30:23 -060049 transition: background-position 2s ease;
Michael Davisea5241a2017-07-12 15:56:55 -050050 overflow: hidden;
Michael Davis19475752017-02-23 18:30:23 -060051 p {
52 padding: 0;
53 margin: 0;
54 }
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 {
59 color: $status-ok;
60 }
61 }
62 }
63 &.power__state-off {
Iftekharul Islamcd789502017-04-19 14:37:55 -050064 background-position: 0;
Michael Davis19475752017-02-23 18:30:23 -060065 color: $darkgrey;
66 .power__state {
67 span:before {
68 color: $darkgrey;
69 }
70 }
71 }
Michael Davisc5626182017-03-10 15:48:05 -060072 &.power__state-indet {
73 color: $darkgrey;
74 @include indeterminate-bar;
75 .power__state {
76 span:before {
77 color: $status-warn;
78 }
79 }
80 }
Michael Davis19475752017-02-23 18:30:23 -060081 }
82
83 // Power button options
84 .power-option {
Michael Davisea5241a2017-07-12 15:56:55 -050085 padding: 1.8em 0 1em 0;
Michael Davis19475752017-02-23 18:30:23 -060086 position: relative;
87 overflow: hidden;
88 min-height: 1px;
Michael Davisea5241a2017-07-12 15:56:55 -050089 min-width: 100%;
Michael Davis19475752017-02-23 18:30:23 -060090 .btn-secondary {
91 margin-bottom: .5em;
Michael Davisea5241a2017-07-12 15:56:55 -050092 @include mediaQuery(small) {
93 min-width: 300px;
Michael Davis19475752017-02-23 18:30:23 -060094 }
95 }
Michael Davisea5241a2017-07-12 15:56:55 -050096 @include mediaQuery(small){
Michael Davis46f0a1f2017-07-13 11:23:16 -050097 padding: 1.8em 0 0 1.8em;
98 }
99 p {
100 margin-left: 2em;
Michael Davis19475752017-02-23 18:30:23 -0600101 }
102 }
Michael Davis19475752017-02-23 18:30:23 -0600103
Michael Davisea5241a2017-07-12 15:56:55 -0500104} //end power-operations