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