blob: fbc5a7f52f936c000d962f597b84f406ef812cd6 [file] [log] [blame]
Michael Davis19475752017-02-23 18:30:23 -06001// Power Operations SCSS
2
3#power-operations {
4
dixsie3bf7b0c2019-04-02 15:05:43 -05005 // Power Current status wrapper
Michael Davis19475752017-02-23 18:30:23 -06006 .power__current-status {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -05007 border-bottom: 1px solid $border-color-01;
Michael Davis46f0a1f2017-07-13 11:23:16 -05008 margin: 1.3em 0 1.2em 0;
Michael Davis19475752017-02-23 18:30:23 -06009 }
10
11 // Power state indicator on/off
12 .power__state {
Michael Davis5d014692017-03-02 13:37:40 -060013 font-weight: 700;
14 margin-top: -.3em;
Michael Davis19475752017-02-23 18:30:23 -060015 span:before {
Michael Daviscdc3deb2017-07-20 17:11:52 -050016 content: '';
17 position: absolute;
Michael Daviscdc3deb2017-07-20 17:11:52 -050018 @extend .icon__off;
Michael Davis9632d712017-08-28 18:36:53 -050019 margin-left: -25px;
Michael Davis19475752017-02-23 18:30:23 -060020 }
21 }
22
23 // Power bar indicator
24 .power__indicator-bar {
25 font-weight: bold;
Gunnar Mills84e114a2018-11-14 13:44:41 -060026 width: 100%;
Michael Daviscdc3deb2017-07-20 17:11:52 -050027 padding: 1em 2em .7em;
Michael Davis46f0a1f2017-07-13 11:23:16 -050028 margin-bottom: 3em;
Michael Davis19475752017-02-23 18:30:23 -060029 background-size: 200% 100%;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050030 background-image: linear-gradient(to right, darken($background-02,3%) 50%, $accent-02--02 50%);
Iftekharul Islamcd789502017-04-19 14:37:55 -050031 background-position: 0;
Michael Davis19475752017-02-23 18:30:23 -060032 transition: background-position 2s ease;
Michael Davisea5241a2017-07-12 15:56:55 -050033 overflow: hidden;
Michael Daviscdc3deb2017-07-20 17:11:52 -050034 display:flex;
35 justify-content: space-between;
36 align-items:center;
Michael Davis19475752017-02-23 18:30:23 -060037 p {
38 padding: 0;
39 margin: 0;
Michael Daviscdc3deb2017-07-20 17:11:52 -050040 font-size: 1.2em;
Michael Davis19475752017-02-23 18:30:23 -060041 }
42 &.power__state-on {
Iftekharul Islamcd789502017-04-19 14:37:55 -050043 background-position: -100%;
Michael Davis19475752017-02-23 18:30:23 -060044 .power__state {
45 span:before {
Michael Davis68f929d2017-07-27 15:33:59 -050046 content: '';
47 @extend .icon__good;
Michael Davis19475752017-02-23 18:30:23 -060048 }
49 }
50 }
51 &.power__state-off {
Iftekharul Islamcd789502017-04-19 14:37:55 -050052 background-position: 0;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050053 color: $primary-dark;
Michael Davis19475752017-02-23 18:30:23 -060054 .power__state {
55 span:before {
Michael Daviscdc3deb2017-07-20 17:11:52 -050056 content: '';
57 @extend .icon__off;
Michael Davis19475752017-02-23 18:30:23 -060058 }
59 }
60 }
Michael Davisc5626182017-03-10 15:48:05 -060061 &.power__state-indet {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050062 color: $text-02;
Michael Davisc5626182017-03-10 15:48:05 -060063 @include indeterminate-bar;
64 .power__state {
65 span:before {
66 color: $status-warn;
Michael Davis9632d712017-08-28 18:36:53 -050067 content: '';
68 @extend .icon__warning;
Michael Davisc5626182017-03-10 15:48:05 -060069 }
70 }
71 }
CamVan Nguyen3490c0f2018-05-01 22:23:21 -050072 &.power__state-error {
73 background-position: 0;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050074 color: $primary-dark;
CamVan Nguyen3490c0f2018-05-01 22:23:21 -050075 .power__state {
76 span:before {
77 content: '';
78 @extend .icon__critical;
79 }
80 }
81 }
Michael Davis19475752017-02-23 18:30:23 -060082 }
83
84 // Power button options
85 .power-option {
Michael Davisea5241a2017-07-12 15:56:55 -050086 padding: 1.8em 0 1em 0;
Michael Davis19475752017-02-23 18:30:23 -060087 position: relative;
88 overflow: hidden;
89 min-height: 1px;
Michael Davisea5241a2017-07-12 15:56:55 -050090 min-width: 100%;
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -050091 .btn {
Michael Davis19475752017-02-23 18:30:23 -060092 margin-bottom: .5em;
Michael Davis46edf2a2017-07-20 17:09:28 -050093 margin-right: 1em;
Michael Davis68f929d2017-07-27 15:33:59 -050094 min-width: 240px;
Michael Davis19475752017-02-23 18:30:23 -060095 }
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
CamVan Nguyen3490c0f2018-05-01 22:23:21 -0500101} //end power-operations