blob: 6a29dfd414d3c042de83a0df40e33d8a91edb04e [file] [log] [blame]
Michael Davis19475752017-02-23 18:30:23 -06001// Power Operations SCSS
2
Dixsie Wolmerse3681082019-06-21 13:48:06 -05003.power-operations {
dixsie3bf7b0c2019-04-02 15:05:43 -05004 // Power Current status wrapper
Michael Davis19475752017-02-23 18:30:23 -06005 .power__current-status {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -05006 border-bottom: 1px solid $border-color-01;
Michael Davis46f0a1f2017-07-13 11:23:16 -05007 margin: 1.3em 0 1.2em 0;
Michael Davis19475752017-02-23 18:30:23 -06008 }
9
10 // Power state indicator on/off
11 .power__state {
Michael Davis5d014692017-03-02 13:37:40 -060012 font-weight: 700;
Dixsie Wolmerse3681082019-06-21 13:48:06 -050013 margin-top: -0.3em;
Michael Davis19475752017-02-23 18:30:23 -060014 span:before {
Dixsie Wolmerse3681082019-06-21 13:48:06 -050015 content: "";
Michael Daviscdc3deb2017-07-20 17:11:52 -050016 position: absolute;
Michael Daviscdc3deb2017-07-20 17:11:52 -050017 @extend .icon__off;
Michael Davis9632d712017-08-28 18:36:53 -050018 margin-left: -25px;
Michael Davis19475752017-02-23 18:30:23 -060019 }
20 }
21
22 // Power bar indicator
23 .power__indicator-bar {
24 font-weight: bold;
Gunnar Mills84e114a2018-11-14 13:44:41 -060025 width: 100%;
Dixsie Wolmerse3681082019-06-21 13:48:06 -050026 padding: 1em 2em 0.7em;
Michael Davis46f0a1f2017-07-13 11:23:16 -050027 margin-bottom: 3em;
Michael Davis19475752017-02-23 18:30:23 -060028 background-size: 200% 100%;
Dixsie Wolmerse3681082019-06-21 13:48:06 -050029 background-image: linear-gradient(to right, darken($background-02, 3%) 50%, $accent-02--02 50%);
Iftekharul Islamcd789502017-04-19 14:37:55 -050030 background-position: 0;
Michael Davis19475752017-02-23 18:30:23 -060031 transition: background-position 2s ease;
Michael Davisea5241a2017-07-12 15:56:55 -050032 overflow: hidden;
Dixsie Wolmerse3681082019-06-21 13:48:06 -050033 display: flex;
Michael Daviscdc3deb2017-07-20 17:11:52 -050034 justify-content: space-between;
Dixsie Wolmerse3681082019-06-21 13:48:06 -050035 align-items: center;
Michael Davis19475752017-02-23 18:30:23 -060036 p {
37 padding: 0;
38 margin: 0;
Michael Daviscdc3deb2017-07-20 17:11:52 -050039 font-size: 1.2em;
Michael Davis19475752017-02-23 18:30:23 -060040 }
41 &.power__state-on {
Iftekharul Islamcd789502017-04-19 14:37:55 -050042 background-position: -100%;
Michael Davis19475752017-02-23 18:30:23 -060043 .power__state {
44 span:before {
Dixsie Wolmerse3681082019-06-21 13:48:06 -050045 content: "";
46 @extend .icon__good;
Michael Davis19475752017-02-23 18:30:23 -060047 }
48 }
49 }
50 &.power__state-off {
Iftekharul Islamcd789502017-04-19 14:37:55 -050051 background-position: 0;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050052 color: $primary-dark;
Michael Davis19475752017-02-23 18:30:23 -060053 .power__state {
54 span:before {
Dixsie Wolmerse3681082019-06-21 13:48:06 -050055 content: "";
Michael Daviscdc3deb2017-07-20 17:11:52 -050056 @extend .icon__off;
Michael Davis19475752017-02-23 18:30:23 -060057 }
58 }
59 }
Michael Davisc5626182017-03-10 15:48:05 -060060 &.power__state-indet {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050061 color: $text-02;
Michael Davisc5626182017-03-10 15:48:05 -060062 @include indeterminate-bar;
63 .power__state {
64 span:before {
65 color: $status-warn;
Dixsie Wolmerse3681082019-06-21 13:48:06 -050066 content: "";
Michael Davis9632d712017-08-28 18:36:53 -050067 @extend .icon__warning;
Michael Davisc5626182017-03-10 15:48:05 -060068 }
69 }
70 }
CamVan Nguyen3490c0f2018-05-01 22:23:21 -050071 &.power__state-error {
72 background-position: 0;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050073 color: $primary-dark;
CamVan Nguyen3490c0f2018-05-01 22:23:21 -050074 .power__state {
75 span:before {
Dixsie Wolmerse3681082019-06-21 13:48:06 -050076 content: "";
CamVan Nguyen3490c0f2018-05-01 22:23:21 -050077 @extend .icon__critical;
78 }
79 }
80 }
Michael Davis19475752017-02-23 18:30:23 -060081 }
82
Dixsie Wolmerse3681082019-06-21 13:48:06 -050083 .boot-options,
84 .boot-operations {
85 margin-bottom: 1em;
86 }
87
88 .boot-options {
89 .control-check {
90 padding-top: 4px;
Michael Davis19475752017-02-23 18:30:23 -060091 }
Dixsie Wolmerse3681082019-06-21 13:48:06 -050092 .boot-checkbox {
93 padding-left: 2em;
94 text-transform: none;
95 font-weight: 400;
96 font-size: 16px;
97 color: $primary-dark;
Michael Davis19475752017-02-23 18:30:23 -060098 }
99 }
Michael Davis19475752017-02-23 18:30:23 -0600100
Dixsie Wolmerse3681082019-06-21 13:48:06 -0500101 .boot-options-wrapper {
102 padding: 0 2em 2em 0;
103 }
104
105 .operations-wrapper {
106 .reboot__operations,
107 .shutdown__operations {
108 margin-bottom: 1.5em;
109 .control-radio {
110 padding: 0.3em 1em 0 2em;
111 text-transform: none;
112 font-weight: 400;
113 font-size: 16px;
114 color: $primary-dark;
115 }
116 }
117
118 .alert-warning {
119 border: 1px solid $accent-03--01;
120 padding: 1em;
121 margin-bottom: 1em;
122 display: flex;
123 align-items: center;
124 .pending-icon {
125 padding: 0 1em 0 0;
126 }
127 .alert-pending {
128 margin-top: 0.3em;
129 margin-bottom: 0;
130 }
131 }
132 }
133
134 .boot-settings-form {
135 background-color: $base-02--06;
136 padding: 2em;
137 .boot-form-actions {
138 margin-bottom: 4em;
139 }
140 .btn {
141 display: block;
142 float: right;
143 margin: 0.5em 0 0 1em;
144 }
145 }
146
147 .control-radio .control__indicator-on {
148 width: 20px;
149 height: 20px;
150 top: 3px;
151 left: 3px;
152 }
153
154 .control-radio .control__indicator-on:after {
155 top: 3px;
156 left: 3px;
157 width: 10px;
158 height: 10px;
159 }
160
161 .icon__warning {
162 width: 24px;
163 }
CamVan Nguyen3490c0f2018-05-01 22:23:21 -0500164} //end power-operations