blob: cb2e1903b94591e454a814490a93262e1264ca40 [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;
Michael Daviscdc3deb2017-07-20 17:11:52 -050026 @extend .icon__off;
Michael Davis9632d712017-08-28 18:36:53 -050027 margin-left: -25px;
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;
Michael Davis9632d712017-08-28 18:36:53 -050074 content: '';
75 @extend .icon__warning;
Michael Davisc5626182017-03-10 15:48:05 -060076 }
77 }
78 }
CamVan Nguyen3490c0f2018-05-01 22:23:21 -050079 &.power__state-error {
80 background-position: 0;
81 color: $black;
82 .power__state {
83 span:before {
84 content: '';
85 @extend .icon__critical;
86 }
87 }
88 }
Michael Davis19475752017-02-23 18:30:23 -060089 }
90
91 // Power button options
92 .power-option {
Michael Davisea5241a2017-07-12 15:56:55 -050093 padding: 1.8em 0 1em 0;
Michael Davis19475752017-02-23 18:30:23 -060094 position: relative;
95 overflow: hidden;
96 min-height: 1px;
Michael Davisea5241a2017-07-12 15:56:55 -050097 min-width: 100%;
Michael Davis19475752017-02-23 18:30:23 -060098 .btn-secondary {
99 margin-bottom: .5em;
Michael Davis46edf2a2017-07-20 17:09:28 -0500100 margin-right: 1em;
101 font-size: .9em;
Michael Davis68f929d2017-07-27 15:33:59 -0500102 display: block;
103 min-width: 240px;
104 @include mediaQuery(medium) {
105 display: inline-block;
Michael Davis19475752017-02-23 18:30:23 -0600106 }
107 }
Michael Davis68f929d2017-07-27 15:33:59 -0500108 @include mediaQuery(x-small){
109 padding: 1.8em 0 1em 0;
Michael Davis19475752017-02-23 18:30:23 -0600110 }
111 }
Michael Davis19475752017-02-23 18:30:23 -0600112
CamVan Nguyen3490c0f2018-05-01 22:23:21 -0500113} //end power-operations