blob: 1f065f03e1c6f3844d94c0dfe81305640944ba66 [file] [log] [blame]
Michael Davis51946552017-05-01 10:30:38 -05001$logoHeight: 30px;
2$logoMaxHeight: 100px;
3$logoMaxWidth: 125px;
4
Michael Davisa6a15c22017-07-31 18:45:41 -05005@mixin round-corners {
6 -webkit-border-radius: 6px 6px;
7 -moz-border-radius: 6px 6px;
8 border-radius: 6px 6px;
9}
10
Michael Davis51946552017-05-01 10:30:38 -050011#header__wrapper {
12 position: fixed;
13 top: 0;
14 left: 0;
15 right: 0;
Iftekharul Islam4390b022017-06-05 09:44:50 -050016 z-index: 300;
Michael Davis51946552017-05-01 10:30:38 -050017}
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
30header {
31 position: relative;
Michael Davisa6a15c22017-07-31 18:45:41 -050032 background: $black;
Michael Davis51946552017-05-01 10:30:38 -050033 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 Davisa6a15c22017-07-31 18:45:41 -050044 font-weight: 400;
Michael Davis51946552017-05-01 10:30:38 -050045 &:visited {
46 color: $white;
47 }
48}
49
50.header__functions-wrapper {
51 color: $white;
Michael Davis51946552017-05-01 10:30:38 -050052 padding: 0 1.1em;
53 box-sizing: border-box;
54 display: block;
55 position: relative;
56 overflow: hidden;
57 min-height: 5em;
Michael Davisa6a15c22017-07-31 18:45:41 -050058 border-bottom: 1px solid $medgrey;
59 background: $white;
60 .header__server-name {
Michael Davis51946552017-05-01 10:30:38 -050061 font-size: 1.5em;
62 font-weight: 500;
Michael Davisa6a15c22017-07-31 18:45:41 -050063 color: $darkgrey;
64 padding: .4em 0 0 1em;
Michael Davis51946552017-05-01 10:30:38 -050065 height: 100%;
66 background: transparent;
67 max-width: 350px;
68 white-space: nowrap;
Michael Davisa6a15c22017-07-31 18:45:41 -050069 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 Davis51946552017-05-01 10:30:38 -050079 }
80 .logo__wrapper {
81 padding-top: .5em;
Michael Davis51946552017-05-01 10:30:38 -050082 }
83
Michael Davisa6a15c22017-07-31 18:45:41 -050084 .header__logo {
Michael Davis51946552017-05-01 10:30:38 -050085 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 Davis51946552017-05-01 10:30:38 -050093
94 .header__functions {
95 position: absolute;
96 top: 0;
Michael Davisafba0712017-09-14 09:17:05 -050097 right: -650px;
Michael Davis51946552017-05-01 10:30:38 -050098 bottom: 0;
Michael Davis51946552017-05-01 10:30:38 -050099 z-index: 100;
Michael Davisa6a15c22017-07-31 18:45:41 -0500100 margin: .3em 0;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500101 background: $white;
Michael Davis51946552017-05-01 10:30:38 -0500102 @include fastTransition-all;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500103 &.active {
104 right: 1em;
105 }
106 @media (min-width: 1025px) {
107 right: 0;
108 }
Michael Davis51946552017-05-01 10:30:38 -0500109 span {
110 display: block;
Michael Davisa6a15c22017-07-31 18:45:41 -0500111 color: $black;
Michael Davis51946552017-05-01 10:30:38 -0500112 font-size: 1em;
113 }
Michael Davisa6a15c22017-07-31 18:45:41 -0500114 a, p {
Michael Davis51946552017-05-01 10:30:38 -0500115 display: block;
116 float: left;
117 text-decoration: none;
Michael Davisa6a15c22017-07-31 18:45:41 -0500118 color: $darkgrey;
Michael Davisafba0712017-09-14 09:17:05 -0500119 padding: 1.25em 1.3em;
Michael Davis51946552017-05-01 10:30:38 -0500120 height: 100%;
121 font-size: 0.875em;
Michael Davisa6a15c22017-07-31 18:45:41 -0500122 font-weight: 400;
Michael Davis51946552017-05-01 10:30:38 -0500123 line-height: 1;
124 > span {
Michael Davisa6a15c22017-07-31 18:45:41 -0500125 display: block;
Michael Davis51946552017-05-01 10:30:38 -0500126 font-size: 1rem;
127 font-weight: bold;
Michael Davisa6a15c22017-07-31 18:45:41 -0500128 margin-top: .3em;
Michael Davis51946552017-05-01 10:30:38 -0500129 }
130 }
131 }
132
Michael Davis4250f302017-09-06 11:03:52 -0500133 .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 Davisa6a15c22017-07-31 18:45:41 -0500159 @include fastTransition-all;
Michael Davis4250f302017-09-06 11:03:52 -0500160 }
161 &.active {
162 .icon-angle::before {
163 transform: rotate(266deg);
164 @include fastTransition-all;
Michael Davisa6a15c22017-07-31 18:45:41 -0500165 }
166 }
Michael Davis4250f302017-09-06 11:03:52 -0500167 }
168 .header__functions {
Michael Davisa1dcfe02017-08-18 16:32:33 -0500169 .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 Davis4250f302017-09-06 11:03:52 -0500196 transform: rotate(-360deg);
197 @include fastTransition-all;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500198 }
199
Michael Davis51946552017-05-01 10:30:38 -0500200 .header__refresh {
Michael Davisa6a15c22017-07-31 18:45:41 -0500201 color: $darkgrey;
Michael Davisa5f222a2017-08-04 15:02:38 -0500202 line-height: 1.4;
203 border-radius: 6px;
Michael Davisa6a15c22017-07-31 18:45:41 -0500204 span {
205 @include fontCourierBold;
206 }
Michael Davis51946552017-05-01 10:30:38 -0500207 }
208 }
Michael Davis51946552017-05-01 10:30:38 -0500209 .header__page-refresh {
Michael Davisa6a15c22017-07-31 18:45:41 -0500210 padding-top: 0;
211 position: relative;
212 span {
213 font-size: 0.875em;
214 font-weight: 400;
215 color: $darkgrey;
216 display: block;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500217 margin-bottom: 1.1em;
Michael Davis51946552017-05-01 10:30:38 -0500218 }
Michael Davisa6a15c22017-07-31 18:45:41 -0500219 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 Davis51946552017-05-01 10:30:38 -0500230 }
231 }
232}
233
234// end header__functions-wrapper