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; | ||||
26 | margin-left: -25px; | ||||
27 | @extend .icon__off; | ||||
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; | ||||
74 | } | ||||
75 | } | ||||
76 | } | ||||
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 77 | } |
78 | |||||
79 | // Power button options | ||||
80 | .power-option { | ||||
Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 81 | padding: 1.8em 0 1em 0; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 82 | position: relative; |
83 | overflow: hidden; | ||||
84 | min-height: 1px; | ||||
Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 85 | min-width: 100%; |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 86 | .btn-secondary { |
87 | margin-bottom: .5em; | ||||
Michael Davis | 46edf2a | 2017-07-20 17:09:28 -0500 | [diff] [blame] | 88 | margin-right: 1em; |
89 | font-size: .9em; | ||||
Michael Davis | 68f929d | 2017-07-27 15:33:59 -0500 | [diff] [blame] | 90 | display: block; |
91 | min-width: 240px; | ||||
92 | @include mediaQuery(medium) { | ||||
93 | display: inline-block; | ||||
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 94 | } |
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 | |
Michael Davis | ea5241a | 2017-07-12 15:56:55 -0500 | [diff] [blame] | 101 | } //end power-operations |