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