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