Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 1 | $logoHeight: 30px; |
2 | $logoMaxHeight: 100px; | ||||
3 | $logoMaxWidth: 125px; | ||||
4 | |||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 5 | @mixin round-corners { |
6 | -webkit-border-radius: 6px 6px; | ||||
7 | -moz-border-radius: 6px 6px; | ||||
8 | border-radius: 6px 6px; | ||||
9 | } | ||||
10 | |||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 11 | #header__wrapper { |
12 | position: fixed; | ||||
13 | top: 0; | ||||
14 | left: 0; | ||||
15 | right: 0; | ||||
Iftekharul Islam | 4390b02 | 2017-06-05 09:44:50 -0500 | [diff] [blame] | 16 | z-index: 300; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 17 | } |
18 | |||||
19 | .app__version { | ||||
20 | margin-left: 1em; | ||||
21 | display: none; | ||||
22 | @include mediaQuery(x-small) { | ||||
23 | display: inline-block; | ||||
24 | position: absolute; | ||||
25 | top: 50%; | ||||
26 | transform: translateY(-50%); | ||||
27 | } | ||||
28 | } | ||||
29 | |||||
30 | header { | ||||
31 | position: relative; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 32 | background: $black; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 33 | color: $white; |
34 | overflow: hidden; | ||||
35 | } | ||||
36 | |||||
37 | .header__logout { | ||||
38 | float: right; | ||||
39 | display: inline-block; | ||||
40 | color: $white; | ||||
41 | font-size: .9em; | ||||
42 | text-decoration: none; | ||||
43 | padding: 1em; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 44 | font-weight: 400; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 45 | &:visited { |
46 | color: $white; | ||||
47 | } | ||||
48 | } | ||||
49 | |||||
50 | .header__functions-wrapper { | ||||
51 | color: $white; | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 52 | padding: 0 1.1em; |
53 | box-sizing: border-box; | ||||
54 | display: block; | ||||
55 | position: relative; | ||||
56 | overflow: hidden; | ||||
57 | min-height: 5em; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 58 | border-bottom: 1px solid $medgrey; |
59 | background: $white; | ||||
60 | .header__server-name { | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 61 | font-size: 1.5em; |
62 | font-weight: 500; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 63 | color: $darkgrey; |
64 | padding: .4em 0 0 1em; | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 65 | height: 100%; |
66 | background: transparent; | ||||
67 | max-width: 350px; | ||||
68 | white-space: nowrap; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 69 | overflow: hidden; |
70 | .header__hostname { | ||||
71 | color: $black; | ||||
72 | font-size: 1.2rem; | ||||
73 | font-weight: 700; | ||||
74 | margin-bottom: 0; | ||||
75 | } | ||||
76 | .header__server-ip { | ||||
77 | font-size: 1rem; | ||||
78 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 79 | } |
80 | .logo__wrapper { | ||||
81 | padding-top: .5em; | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 82 | } |
83 | |||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 84 | .header__logo { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 85 | vertical-align: middle; |
86 | margin: 1em; | ||||
87 | float: left; | ||||
88 | height: $logoHeight; //required for <SVG> logos - can remove if using img | ||||
89 | max-height: $logoMaxHeight; | ||||
90 | max-width: $logoMaxWidth; | ||||
91 | width: auto; | ||||
92 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 93 | |
94 | .header__functions { | ||||
95 | position: absolute; | ||||
96 | top: 0; | ||||
Michael Davis | afba071 | 2017-09-14 09:17:05 -0500 | [diff] [blame] | 97 | right: -650px; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 98 | bottom: 0; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 99 | z-index: 100; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 100 | margin: .3em 0; |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 101 | background: $white; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 102 | @include fastTransition-all; |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 103 | &.active { |
104 | right: 1em; | ||||
105 | } | ||||
106 | @media (min-width: 1025px) { | ||||
107 | right: 0; | ||||
108 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 109 | span { |
110 | display: block; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 111 | color: $black; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 112 | font-size: 1em; |
113 | } | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 114 | a, p { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 115 | display: block; |
116 | float: left; | ||||
117 | text-decoration: none; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 118 | color: $darkgrey; |
Michael Davis | afba071 | 2017-09-14 09:17:05 -0500 | [diff] [blame] | 119 | padding: 1.25em 1.3em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 120 | height: 100%; |
121 | font-size: 0.875em; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 122 | font-weight: 400; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 123 | line-height: 1; |
124 | > span { | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 125 | display: block; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 126 | font-size: 1rem; |
127 | font-weight: bold; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 128 | margin-top: .3em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 129 | } |
130 | } | ||||
131 | } | ||||
132 | |||||
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 133 | .header__server-power, |
134 | .header__page-refresh, | ||||
135 | .header__server-health, | ||||
136 | .header__info, | ||||
137 | .header__multi-server { | ||||
138 | background: $lightgrey; | ||||
139 | @include round-corners; | ||||
140 | margin: 0 .3em; | ||||
141 | height: 100%; | ||||
142 | border: 1px solid $medgrey; | ||||
143 | opacity: 1; | ||||
144 | @include fastTransition-all; | ||||
145 | &:hover { | ||||
146 | background: rgba(255, 255, 255, 1); | ||||
147 | } | ||||
148 | } | ||||
149 | |||||
150 | .header__multi-server { | ||||
151 | padding: .5em; | ||||
152 | padding-top: .8em; | ||||
153 | float: left; | ||||
154 | margin-top: 10px; | ||||
155 | margin-right: -10px; | ||||
156 | .icon-angle::before { | ||||
157 | margin-left: 0; | ||||
158 | transform: rotate(90deg); | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 159 | @include fastTransition-all; |
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 160 | } |
161 | &.active { | ||||
162 | .icon-angle::before { | ||||
163 | transform: rotate(266deg); | ||||
164 | @include fastTransition-all; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 165 | } |
166 | } | ||||
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 167 | } |
168 | .header__functions { | ||||
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 169 | .header__info { |
170 | padding: .3em; | ||||
171 | min-width: 60px; | ||||
172 | text-align: center; | ||||
173 | display: inline-block; | ||||
174 | span { | ||||
175 | padding: .7em 0 .3em; | ||||
176 | font-size: 1em; | ||||
177 | font-weight: 400; | ||||
178 | color: $darkgrey; | ||||
179 | } | ||||
180 | .icon-angle { | ||||
181 | margin-bottom: .9em; | ||||
182 | } | ||||
183 | .icon-angle::before { | ||||
184 | font-size: 2em; | ||||
185 | margin-left: 0; | ||||
186 | display: block; | ||||
187 | transform: rotate(180deg); | ||||
188 | @include fastTransition-all; | ||||
189 | } | ||||
190 | @media (min-width: 1025px) { | ||||
191 | display: none; | ||||
192 | } | ||||
193 | } | ||||
194 | |||||
195 | &.active > .header__info > .icon-angle::before { | ||||
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 196 | transform: rotate(-360deg); |
197 | @include fastTransition-all; | ||||
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 198 | } |
199 | |||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 200 | .header__refresh { |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 201 | color: $darkgrey; |
Michael Davis | a5f222a | 2017-08-04 15:02:38 -0500 | [diff] [blame] | 202 | line-height: 1.4; |
203 | border-radius: 6px; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 204 | span { |
205 | @include fontCourierBold; | ||||
206 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 207 | } |
208 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 209 | .header__page-refresh { |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 210 | padding-top: 0; |
211 | position: relative; | ||||
212 | span { | ||||
213 | font-size: 0.875em; | ||||
214 | font-weight: 400; | ||||
215 | color: $darkgrey; | ||||
216 | display: block; | ||||
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 217 | margin-bottom: 1.1em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 218 | } |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 219 | svg { |
220 | stroke: $medblue; | ||||
221 | fill: $medblue; | ||||
222 | height: 20px; | ||||
223 | width: 20px; | ||||
224 | display: block; | ||||
225 | margin: 0 auto; | ||||
226 | position: absolute; | ||||
227 | left: 50%; | ||||
228 | top: 55%; | ||||
229 | transform: translateX(-50%); | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 230 | } |
231 | } | ||||
232 | } | ||||
233 | |||||
234 | // end header__functions-wrapper |