blob: 3593780bb64b55e6dd817df346aad02ff7df999c [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
Derick Montague1ffa2092019-04-01 17:57:27 -050011.header {
Michael Davis51946552017-05-01 10:30:38 -050012 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
Gunnar Mills844dace2018-05-15 12:46:59 -050019.header__title {
Michael Davis51946552017-05-01 10:30:38 -050020 margin-left: 1em;
21 display: none;
Derick Montague1ffa2092019-04-01 17:57:27 -050022 float: left;
Michael Davis51946552017-05-01 10:30:38 -050023 @include mediaQuery(x-small) {
24 display: inline-block;
25 position: absolute;
26 top: 50%;
27 transform: translateY(-50%);
28 }
29}
30
Derick Montague1ffa2092019-04-01 17:57:27 -050031.header__info-section {
Michael Davis51946552017-05-01 10:30:38 -050032 position: relative;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050033 background: $primary-dark;
34 color: $primary-light;
Michael Davis51946552017-05-01 10:30:38 -050035 overflow: hidden;
36}
37
38.header__logout {
39 float: right;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050040 color: $primary-light;
Michael Davis51946552017-05-01 10:30:38 -050041 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 {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050046 color: $primary-light;
Michael Davis51946552017-05-01 10:30:38 -050047 }
48}
49
Derick Montague1ffa2092019-04-01 17:57:27 -050050.header__functions-section {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050051 color: $primary-light;
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;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050058 border-bottom: 1px solid $border-color-01;
59 background: $primary-light;
Michael Davisa6a15c22017-07-31 18:45:41 -050060 .header__server-name {
Michael Davis51946552017-05-01 10:30:38 -050061 font-size: 1.5em;
62 font-weight: 500;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050063 color: $text-02;
Michael Davisa6a15c22017-07-31 18:45:41 -050064 padding: .4em 0 0 1em;
Michael Davis51946552017-05-01 10:30:38 -050065 height: 100%;
66 background: transparent;
Jayashankar Padatha5f48c72018-02-16 15:34:55 +053067 max-width: 600px;
Michael Davis51946552017-05-01 10:30:38 -050068 white-space: nowrap;
Michael Davisa6a15c22017-07-31 18:45:41 -050069 overflow: hidden;
70 .header__hostname {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050071 color: $primary-dark;
Michael Davisa6a15c22017-07-31 18:45:41 -050072 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;
Ryan Arnell75494d42019-01-16 15:07:58 -060097 right: -480px;
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;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500101 background: $primary-light;
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;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500111 color: $primary-dark;
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;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500118 color: $text-02;
Ryan Arnell75494d42019-01-16 15:07:58 -0600119 padding: 1.250em;
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;
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500128 margin-top: .5em;
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 {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500138 background: $background-02;
Michael Davis4250f302017-09-06 11:03:52 -0500139 @include round-corners;
140 margin: 0 .3em;
141 height: 100%;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500142 border: 1px solid $border-color-01;
Michael Davis4250f302017-09-06 11:03:52 -0500143 opacity: 1;
144 @include fastTransition-all;
145 &:hover {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500146 background: $background-01;
Michael Davis4250f302017-09-06 11:03:52 -0500147 }
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;
Ryan Arnell75494d42019-01-16 15:07:58 -0600171 min-width: 40px;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500172 text-align: center;
Ryan Arnell75494d42019-01-16 15:07:58 -0600173 float: left;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500174 span {
175 padding: .7em 0 .3em;
176 font-size: 1em;
177 font-weight: 400;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500178 color: $text-02;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500179 }
180 .icon-angle {
Ryan Arnell75494d42019-01-16 15:07:58 -0600181 margin: 0.2em 0 0 0;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500182 }
183 .icon-angle::before {
Ryan Arnell75494d42019-01-16 15:07:58 -0600184 font-size: 1.625em;
185 font-weight: 400;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500186 margin-left: 0;
187 display: block;
188 transform: rotate(180deg);
189 @include fastTransition-all;
190 }
191 @media (min-width: 1025px) {
192 display: none;
193 }
194 }
195
196 &.active > .header__info > .icon-angle::before {
Michael Davis4250f302017-09-06 11:03:52 -0500197 transform: rotate(-360deg);
198 @include fastTransition-all;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500199 }
200
Michael Davis51946552017-05-01 10:30:38 -0500201 .header__refresh {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500202 color: $text-02;
Michael Davisa5f222a2017-08-04 15:02:38 -0500203 line-height: 1.4;
204 border-radius: 6px;
Michael Davisa6a15c22017-07-31 18:45:41 -0500205 span {
206 @include fontCourierBold;
207 }
Michael Davis51946552017-05-01 10:30:38 -0500208 }
209 }
Michael Davis51946552017-05-01 10:30:38 -0500210 .header__page-refresh {
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500211 padding-top: 1em;
Michael Davisa6a15c22017-07-31 18:45:41 -0500212 span {
213 font-size: 0.875em;
214 font-weight: 400;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500215 color: $text-02;
Michael Davisa6a15c22017-07-31 18:45:41 -0500216 display: block;
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500217 margin-bottom: .2em;
218 }
219 .icon {
220 display: block;
221 margin-left: auto;
222 margin-right: auto;
Michael Davis51946552017-05-01 10:30:38 -0500223 }
Michael Davisa6a15c22017-07-31 18:45:41 -0500224 svg {
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500225 width: 25px;
226 height: auto;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500227 fill: $primary-accent;
Michael Davis51946552017-05-01 10:30:38 -0500228 }
229 }
230}
231
Derick Montague1ffa2092019-04-01 17:57:27 -0500232// end header__functions-section