blob: 8cd7aa80d3834496e780e9cbb43d578ada149a19 [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 {
17 border-bottom: 1px solid $lightbg__grey;
Michael Davis0f03ad12017-02-27 16:54:18 -060018 margin: 2.625em 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 Davis19475752017-02-23 18:30:23 -060045 margin-bottom: 3.750em;
46 background-size: 200% 100%;
47 background-image: linear-gradient(to right, $status-ok-light 50%, $lightgrey 50%);
48 background-position: 100%;
49 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 {
56 background-position: -200%;
57 .power__state {
58 span:before {
59 color: $status-ok;
60 }
61 }
62 }
63 &.power__state-off {
64 background-position: -100%;
65 color: $darkgrey;
66 .power__state {
67 span:before {
68 color: $darkgrey;
69 }
70 }
71 }
72 }
73
74 // Power button options
75 .power-option {
76 border-top: 1px solid $lightgrey;
Michael Davisea5241a2017-07-12 15:56:55 -050077 padding: 1.8em 0 1em 0;
Michael Davis19475752017-02-23 18:30:23 -060078 position: relative;
79 overflow: hidden;
80 min-height: 1px;
Michael Davisea5241a2017-07-12 15:56:55 -050081 min-width: 100%;
Michael Davis19475752017-02-23 18:30:23 -060082 .btn-secondary {
83 margin-bottom: .5em;
Michael Davisea5241a2017-07-12 15:56:55 -050084 @include mediaQuery(small) {
85 min-width: 300px;
Michael Davis19475752017-02-23 18:30:23 -060086 }
87 }
Michael Davisea5241a2017-07-12 15:56:55 -050088 @include mediaQuery(small){
89 padding: 1.8em 0 1em 1.8em;
Michael Davis19475752017-02-23 18:30:23 -060090 }
91 }
Michael Davis19475752017-02-23 18:30:23 -060092
Michael Davisea5241a2017-07-12 15:56:55 -050093} //end power-operations