blob: a5cc1f8bf7639cfdaa3562f2f450a2dae123ffe6 [file] [log] [blame]
Michael Davis19475752017-02-23 18:30:23 -06001// 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;
12 }
13
14 // Power Curernt status wrapper
15 .power__current-status {
16 border-bottom: 1px solid $lightbg__grey;
Michael Davis0f03ad12017-02-27 16:54:18 -060017 margin: 2.625em 0 1.2em 0;
Michael Davis19475752017-02-23 18:30:23 -060018 .h4 {
19 padding: 0;
20 margin: 0 0 .5em 0;
21 }
22 }
23
24 // Power state indicator on/off
25 .power__state {
26 span:before {
27 content: '\25CF';
28 display: inline-block;
29 font-size: 1.2em;
30 color: $darkgrey;
31 margin-right: .3em;
32 @include slowTransition-all;
33 }
34 }
35
36 // Power bar indicator
37 .power__indicator-bar {
38 font-weight: bold;
39 padding: 1.4em 3em;
40 margin-bottom: 3.750em;
41 background-size: 200% 100%;
42 background-image: linear-gradient(to right, $status-ok-light 50%, $lightgrey 50%);
43 background-position: 100%;
44 transition: background-position 2s ease;
45 p {
46 padding: 0;
47 margin: 0;
48 }
49 &.power__state-on {
50 background-position: -200%;
51 .power__state {
52 span:before {
53 color: $status-ok;
54 }
55 }
56 }
57 &.power__state-off {
58 background-position: -100%;
59 color: $darkgrey;
60 .power__state {
61 span:before {
62 color: $darkgrey;
63 }
64 }
65 }
66 }
67
68 // Power button options
69 .power-option {
70 border-top: 1px solid $lightgrey;
71 padding: 1.8em 0 1em 1.8em;
72 position: relative;
73 overflow: hidden;
74 min-height: 1px;
75 .btn-secondary {
76 margin-bottom: .5em;
77 }
78 // Confirmation message for power option
79 .power__confirm {
80 position: absolute;
81 top: 0;
82 transform: translateY(-100%);
83 width: 100%;
84 margin-left: -1.8em;
85 z-index: 5;
86 background: $darkbg__primary;
87 color: $white;
88 padding: 2em 2em 1.55em 2em;
89 &.active {
90 transform: translateY(0);
91 @include fastTransition-all;
92 }
93 }
94 &.disabled {
95 @include fastTransition-all;
Michael Davis0f03ad12017-02-27 16:54:18 -060096 p {opacity: .4;}
Michael Davis19475752017-02-23 18:30:23 -060097 }
98 }
99}
100
101// Power confirmation buttons
102.power__confirm-buttons {
103 .btn-primary {
104 background: transparent;
105 border: 2px solid $white;
106 padding: 1em 2.2em;
107 margin: 0 10px;
108 border-radius: 4px;
109 &:focus,
110 &:hover {
111 background: $primebtn__bg;
112 border: 2px solid $primebtn__bg;
113 }
114 }
115 @include mediaQuery(large) {
116 float: right;
117 }
118}
119
120// Power confirmation message
121.power__confirm-message {
122 display: inline-block;
123}
124
125// Power confirmation message icon
126.power__confirm-message i::before {
127 content: '\26A0';
128 color: $white;
129 display: inline-block;
130 font-size: 2em;
131 vertical-align: middle;
132 font-style: normal;
133 margin-right: 15px;
134}