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