blob: 616b89c7ab1e029b0ba335c9d178b626085d7600 [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
Michael Davis19475752017-02-23 18:30:23 -06009 // Power Curernt status wrapper
10 .power__current-status {
Michael Davis51946552017-05-01 10:30:38 -050011 border-bottom: 1px solid $medgrey;
Michael Davis46f0a1f2017-07-13 11:23:16 -050012 margin: 1.3em 0 1.2em 0;
Michael Davis19475752017-02-23 18:30:23 -060013 .h4 {
14 padding: 0;
15 margin: 0 0 .5em 0;
16 }
17 }
18
19 // Power state indicator on/off
20 .power__state {
Michael Davis5d014692017-03-02 13:37:40 -060021 font-weight: 700;
22 margin-top: -.3em;
Michael Davis19475752017-02-23 18:30:23 -060023 span:before {
Michael Daviscdc3deb2017-07-20 17:11:52 -050024 content: '';
25 position: absolute;
26 margin-left: -25px;
27 @extend .icon__off;
Michael Davis19475752017-02-23 18:30:23 -060028 }
29 }
30
31 // Power bar indicator
32 .power__indicator-bar {
33 font-weight: bold;
Michael Daviscdc3deb2017-07-20 17:11:52 -050034 padding: 1em 2em .7em;
Michael Davis46f0a1f2017-07-13 11:23:16 -050035 margin-bottom: 3em;
Michael Davis19475752017-02-23 18:30:23 -060036 background-size: 200% 100%;
Michael Daviscdc3deb2017-07-20 17:11:52 -050037 background-image: linear-gradient(to right, darken($lightgrey,3%) 50%, $status-ok-light 50%);
Iftekharul Islamcd789502017-04-19 14:37:55 -050038 background-position: 0;
Michael Davis19475752017-02-23 18:30:23 -060039 transition: background-position 2s ease;
Michael Davisea5241a2017-07-12 15:56:55 -050040 overflow: hidden;
Michael Daviscdc3deb2017-07-20 17:11:52 -050041 display:flex;
42 justify-content: space-between;
43 align-items:center;
Michael Davis19475752017-02-23 18:30:23 -060044 p {
45 padding: 0;
46 margin: 0;
Michael Daviscdc3deb2017-07-20 17:11:52 -050047 font-size: 1.2em;
Michael Davis19475752017-02-23 18:30:23 -060048 }
49 &.power__state-on {
Iftekharul Islamcd789502017-04-19 14:37:55 -050050 background-position: -100%;
Michael Davis19475752017-02-23 18:30:23 -060051 .power__state {
52 span:before {
Michael Davis68f929d2017-07-27 15:33:59 -050053 content: '';
54 @extend .icon__good;
Michael Davis19475752017-02-23 18:30:23 -060055 }
56 }
57 }
58 &.power__state-off {
Iftekharul Islamcd789502017-04-19 14:37:55 -050059 background-position: 0;
Michael Daviscdc3deb2017-07-20 17:11:52 -050060 color: $black;
Michael Davis19475752017-02-23 18:30:23 -060061 .power__state {
62 span:before {
Michael Daviscdc3deb2017-07-20 17:11:52 -050063 content: '';
64 @extend .icon__off;
Michael Davis19475752017-02-23 18:30:23 -060065 }
66 }
67 }
Michael Davisc5626182017-03-10 15:48:05 -060068 &.power__state-indet {
69 color: $darkgrey;
70 @include indeterminate-bar;
71 .power__state {
72 span:before {
73 color: $status-warn;
74 }
75 }
76 }
Michael Davis19475752017-02-23 18:30:23 -060077 }
78
79 // Power button options
80 .power-option {
Michael Davisea5241a2017-07-12 15:56:55 -050081 padding: 1.8em 0 1em 0;
Michael Davis19475752017-02-23 18:30:23 -060082 position: relative;
83 overflow: hidden;
84 min-height: 1px;
Michael Davisea5241a2017-07-12 15:56:55 -050085 min-width: 100%;
Michael Davis19475752017-02-23 18:30:23 -060086 .btn-secondary {
87 margin-bottom: .5em;
Michael Davis46edf2a2017-07-20 17:09:28 -050088 margin-right: 1em;
89 font-size: .9em;
Michael Davis68f929d2017-07-27 15:33:59 -050090 display: block;
91 min-width: 240px;
92 @include mediaQuery(medium) {
93 display: inline-block;
Michael Davis19475752017-02-23 18:30:23 -060094 }
95 }
Michael Davis68f929d2017-07-27 15:33:59 -050096 @include mediaQuery(x-small){
97 padding: 1.8em 0 1em 0;
Michael Davis19475752017-02-23 18:30:23 -060098 }
99 }
Michael Davis19475752017-02-23 18:30:23 -0600100
Michael Davisea5241a2017-07-12 15:56:55 -0500101} //end power-operations