Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 1 | // Power Operations SCSS |
2 | |||||
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 3 | .power-operations { |
dixsie | 3bf7b0c | 2019-04-02 15:05:43 -0500 | [diff] [blame] | 4 | // Power Current status wrapper |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 5 | .power__current-status { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 6 | border-bottom: 1px solid $border-color-01; |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 7 | margin: 1.3em 0 1.2em 0; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 8 | } |
9 | |||||
10 | // Power state indicator on/off | ||||
11 | .power__state { | ||||
Michael Davis | 5d01469 | 2017-03-02 13:37:40 -0600 | [diff] [blame] | 12 | font-weight: 700; |
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 13 | margin-top: -0.3em; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 14 | span:before { |
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 15 | content: ""; |
Michael Davis | cdc3deb | 2017-07-20 17:11:52 -0500 | [diff] [blame] | 16 | position: absolute; |
Michael Davis | cdc3deb | 2017-07-20 17:11:52 -0500 | [diff] [blame] | 17 | @extend .icon__off; |
Michael Davis | 9632d71 | 2017-08-28 18:36:53 -0500 | [diff] [blame] | 18 | margin-left: -25px; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 19 | } |
20 | } | ||||
21 | |||||
22 | // Power bar indicator | ||||
23 | .power__indicator-bar { | ||||
24 | font-weight: bold; | ||||
Gunnar Mills | 84e114a | 2018-11-14 13:44:41 -0600 | [diff] [blame] | 25 | width: 100%; |
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 26 | padding: 1em 2em 0.7em; |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 27 | margin-bottom: 3em; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 28 | background-size: 200% 100%; |
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 29 | background-image: linear-gradient(to right, darken($background-02, 3%) 50%, $accent-02--02 50%); |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 30 | background-position: 0; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 31 | transition: background-position 2s ease; |
Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 32 | overflow: hidden; |
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 33 | display: flex; |
Michael Davis | cdc3deb | 2017-07-20 17:11:52 -0500 | [diff] [blame] | 34 | justify-content: space-between; |
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 35 | align-items: center; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 36 | p { |
37 | padding: 0; | ||||
38 | margin: 0; | ||||
Michael Davis | cdc3deb | 2017-07-20 17:11:52 -0500 | [diff] [blame] | 39 | font-size: 1.2em; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 40 | } |
41 | &.power__state-on { | ||||
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 42 | background-position: -100%; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 43 | .power__state { |
44 | span:before { | ||||
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 45 | content: ""; |
46 | @extend .icon__good; | ||||
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 47 | } |
48 | } | ||||
49 | } | ||||
50 | &.power__state-off { | ||||
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 51 | background-position: 0; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 52 | color: $primary-dark; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 53 | .power__state { |
54 | span:before { | ||||
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 55 | content: ""; |
Michael Davis | cdc3deb | 2017-07-20 17:11:52 -0500 | [diff] [blame] | 56 | @extend .icon__off; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 57 | } |
58 | } | ||||
59 | } | ||||
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 60 | &.power__state-indet { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 61 | color: $text-02; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 62 | @include indeterminate-bar; |
63 | .power__state { | ||||
64 | span:before { | ||||
65 | color: $status-warn; | ||||
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 66 | content: ""; |
Michael Davis | 9632d71 | 2017-08-28 18:36:53 -0500 | [diff] [blame] | 67 | @extend .icon__warning; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 68 | } |
69 | } | ||||
70 | } | ||||
CamVan Nguyen | 3490c0f | 2018-05-01 22:23:21 -0500 | [diff] [blame] | 71 | &.power__state-error { |
72 | background-position: 0; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 73 | color: $primary-dark; |
CamVan Nguyen | 3490c0f | 2018-05-01 22:23:21 -0500 | [diff] [blame] | 74 | .power__state { |
75 | span:before { | ||||
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 76 | content: ""; |
CamVan Nguyen | 3490c0f | 2018-05-01 22:23:21 -0500 | [diff] [blame] | 77 | @extend .icon__critical; |
78 | } | ||||
79 | } | ||||
80 | } | ||||
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 81 | } |
82 | |||||
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 83 | .boot-options, |
84 | .boot-operations { | ||||
85 | margin-bottom: 1em; | ||||
86 | } | ||||
87 | |||||
88 | .boot-options { | ||||
89 | .control-check { | ||||
90 | padding-top: 4px; | ||||
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 91 | } |
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 92 | .boot-checkbox { |
93 | padding-left: 2em; | ||||
94 | text-transform: none; | ||||
95 | font-weight: 400; | ||||
96 | font-size: 16px; | ||||
97 | color: $primary-dark; | ||||
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 98 | } |
99 | } | ||||
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 100 | |
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 101 | .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 Nguyen | 3490c0f | 2018-05-01 22:23:21 -0500 | [diff] [blame] | 164 | } //end power-operations |