blob: 3228fbda7070dd0e6e59d72d45ce4ab1854225d0 [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;
Gunnar Mills84e114a2018-11-14 13:44:41 -060034 width: 100%;
Michael Daviscdc3deb2017-07-20 17:11:52 -050035 padding: 1em 2em .7em;
Michael Davis46f0a1f2017-07-13 11:23:16 -050036 margin-bottom: 3em;
Michael Davis19475752017-02-23 18:30:23 -060037 background-size: 200% 100%;
Michael Daviscdc3deb2017-07-20 17:11:52 -050038 background-image: linear-gradient(to right, darken($lightgrey,3%) 50%, $status-ok-light 50%);
Iftekharul Islamcd789502017-04-19 14:37:55 -050039 background-position: 0;
Michael Davis19475752017-02-23 18:30:23 -060040 transition: background-position 2s ease;
Michael Davisea5241a2017-07-12 15:56:55 -050041 overflow: hidden;
Michael Daviscdc3deb2017-07-20 17:11:52 -050042 display:flex;
43 justify-content: space-between;
44 align-items:center;
Michael Davis19475752017-02-23 18:30:23 -060045 p {
46 padding: 0;
47 margin: 0;
Michael Daviscdc3deb2017-07-20 17:11:52 -050048 font-size: 1.2em;
Michael Davis19475752017-02-23 18:30:23 -060049 }
50 &.power__state-on {
Iftekharul Islamcd789502017-04-19 14:37:55 -050051 background-position: -100%;
Michael Davis19475752017-02-23 18:30:23 -060052 .power__state {
53 span:before {
Michael Davis68f929d2017-07-27 15:33:59 -050054 content: '';
55 @extend .icon__good;
Michael Davis19475752017-02-23 18:30:23 -060056 }
57 }
58 }
59 &.power__state-off {
Iftekharul Islamcd789502017-04-19 14:37:55 -050060 background-position: 0;
Michael Daviscdc3deb2017-07-20 17:11:52 -050061 color: $black;
Michael Davis19475752017-02-23 18:30:23 -060062 .power__state {
63 span:before {
Michael Daviscdc3deb2017-07-20 17:11:52 -050064 content: '';
65 @extend .icon__off;
Michael Davis19475752017-02-23 18:30:23 -060066 }
67 }
68 }
Michael Davisc5626182017-03-10 15:48:05 -060069 &.power__state-indet {
70 color: $darkgrey;
71 @include indeterminate-bar;
72 .power__state {
73 span:before {
74 color: $status-warn;
Michael Davis9632d712017-08-28 18:36:53 -050075 content: '';
76 @extend .icon__warning;
Michael Davisc5626182017-03-10 15:48:05 -060077 }
78 }
79 }
CamVan Nguyen3490c0f2018-05-01 22:23:21 -050080 &.power__state-error {
81 background-position: 0;
82 color: $black;
83 .power__state {
84 span:before {
85 content: '';
86 @extend .icon__critical;
87 }
88 }
89 }
Michael Davis19475752017-02-23 18:30:23 -060090 }
91
92 // Power button options
93 .power-option {
Michael Davisea5241a2017-07-12 15:56:55 -050094 padding: 1.8em 0 1em 0;
Michael Davis19475752017-02-23 18:30:23 -060095 position: relative;
96 overflow: hidden;
97 min-height: 1px;
Michael Davisea5241a2017-07-12 15:56:55 -050098 min-width: 100%;
Michael Davis19475752017-02-23 18:30:23 -060099 .btn-secondary {
100 margin-bottom: .5em;
Michael Davis46edf2a2017-07-20 17:09:28 -0500101 margin-right: 1em;
102 font-size: .9em;
Michael Davis68f929d2017-07-27 15:33:59 -0500103 display: block;
104 min-width: 240px;
105 @include mediaQuery(medium) {
106 display: inline-block;
Michael Davis19475752017-02-23 18:30:23 -0600107 }
108 }
Michael Davis68f929d2017-07-27 15:33:59 -0500109 @include mediaQuery(x-small){
110 padding: 1.8em 0 1em 0;
Michael Davis19475752017-02-23 18:30:23 -0600111 }
112 }
Michael Davis19475752017-02-23 18:30:23 -0600113
CamVan Nguyen3490c0f2018-05-01 22:23:21 -0500114} //end power-operations