blob: 3e0f0daa5ff649a1523dea4e01a64e93b34e7e56 [file] [log] [blame]
Dixsie Wolmersc652ed12019-07-19 13:03:28 -05001/**
2 * Application header styles
3 * Should only be used for the application header
4 */
5
Michael Davis51946552017-05-01 10:30:38 -05006$logoHeight: 30px;
7$logoMaxHeight: 100px;
8$logoMaxWidth: 125px;
9
Michael Davisa6a15c22017-07-31 18:45:41 -050010@mixin round-corners {
11 -webkit-border-radius: 6px 6px;
12 -moz-border-radius: 6px 6px;
13 border-radius: 6px 6px;
14}
15
Derick Montague1ffa2092019-04-01 17:57:27 -050016.header {
Michael Davis51946552017-05-01 10:30:38 -050017 position: fixed;
18 top: 0;
19 left: 0;
20 right: 0;
Iftekharul Islam4390b022017-06-05 09:44:50 -050021 z-index: 300;
Michael Davis51946552017-05-01 10:30:38 -050022}
23
Gunnar Mills844dace2018-05-15 12:46:59 -050024.header__title {
Michael Davis51946552017-05-01 10:30:38 -050025 margin-left: 1em;
26 display: none;
Derick Montague1ffa2092019-04-01 17:57:27 -050027 float: left;
Michael Davis51946552017-05-01 10:30:38 -050028 @include mediaQuery(x-small) {
29 display: inline-block;
30 position: absolute;
31 top: 50%;
32 transform: translateY(-50%);
33 }
34}
35
Derick Montague1ffa2092019-04-01 17:57:27 -050036.header__info-section {
Michael Davis51946552017-05-01 10:30:38 -050037 position: relative;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050038 background: $primary-dark;
39 color: $primary-light;
Michael Davis51946552017-05-01 10:30:38 -050040 overflow: hidden;
41}
42
43.header__logout {
44 float: right;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050045 color: $primary-light;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -050046 font-size: 0.9em;
Michael Davis51946552017-05-01 10:30:38 -050047 text-decoration: none;
48 padding: 1em;
Michael Davisa6a15c22017-07-31 18:45:41 -050049 font-weight: 400;
Michael Davis51946552017-05-01 10:30:38 -050050 &:visited {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050051 color: $primary-light;
Michael Davis51946552017-05-01 10:30:38 -050052 }
53}
54
Derick Montague1ffa2092019-04-01 17:57:27 -050055.header__functions-section {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050056 color: $primary-light;
Michael Davis51946552017-05-01 10:30:38 -050057 padding: 0 1.1em;
58 box-sizing: border-box;
59 display: block;
60 position: relative;
61 overflow: hidden;
62 min-height: 5em;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050063 border-bottom: 1px solid $border-color-01;
64 background: $primary-light;
Michael Davisa6a15c22017-07-31 18:45:41 -050065 .header__server-name {
Michael Davis51946552017-05-01 10:30:38 -050066 font-size: 1.5em;
67 font-weight: 500;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050068 color: $text-02;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -050069 padding: 0.4em 0 0 1em;
Michael Davis51946552017-05-01 10:30:38 -050070 height: 100%;
71 background: transparent;
Jayashankar Padatha5f48c72018-02-16 15:34:55 +053072 max-width: 600px;
Michael Davis51946552017-05-01 10:30:38 -050073 white-space: nowrap;
Michael Davisa6a15c22017-07-31 18:45:41 -050074 overflow: hidden;
75 .header__hostname {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050076 color: $primary-dark;
Michael Davisa6a15c22017-07-31 18:45:41 -050077 font-size: 1.2rem;
78 font-weight: 700;
79 margin-bottom: 0;
80 }
81 .header__server-ip {
82 font-size: 1rem;
83 }
Michael Davis51946552017-05-01 10:30:38 -050084 }
85 .logo__wrapper {
Dixsie Wolmersc652ed12019-07-19 13:03:28 -050086 padding-top: 0.5em;
Michael Davis51946552017-05-01 10:30:38 -050087 }
88
Michael Davisa6a15c22017-07-31 18:45:41 -050089 .header__logo {
Michael Davis51946552017-05-01 10:30:38 -050090 vertical-align: middle;
91 margin: 1em;
92 float: left;
93 height: $logoHeight; //required for <SVG> logos - can remove if using img
94 max-height: $logoMaxHeight;
95 max-width: $logoMaxWidth;
96 width: auto;
97 }
Michael Davis51946552017-05-01 10:30:38 -050098
99 .header__functions {
100 position: absolute;
101 top: 0;
Ryan Arnell75494d42019-01-16 15:07:58 -0600102 right: -480px;
Michael Davis51946552017-05-01 10:30:38 -0500103 bottom: 0;
Michael Davis51946552017-05-01 10:30:38 -0500104 z-index: 100;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500105 margin: 0.3em 0;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500106 background: $primary-light;
Michael Davis51946552017-05-01 10:30:38 -0500107 @include fastTransition-all;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500108 &.active {
109 right: 1em;
110 }
111 @media (min-width: 1025px) {
112 right: 0;
113 }
Michael Davis51946552017-05-01 10:30:38 -0500114 span {
115 display: block;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500116 color: $primary-dark;
Michael Davis51946552017-05-01 10:30:38 -0500117 font-size: 1em;
118 }
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500119 a,
120 p {
Michael Davis51946552017-05-01 10:30:38 -0500121 display: block;
122 float: left;
123 text-decoration: none;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500124 color: $text-02;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500125 padding: 1.25em;
Michael Davis51946552017-05-01 10:30:38 -0500126 height: 100%;
127 font-size: 0.875em;
Michael Davisa6a15c22017-07-31 18:45:41 -0500128 font-weight: 400;
Michael Davis51946552017-05-01 10:30:38 -0500129 line-height: 1;
130 > span {
Michael Davisa6a15c22017-07-31 18:45:41 -0500131 display: block;
Michael Davis51946552017-05-01 10:30:38 -0500132 font-size: 1rem;
133 font-weight: bold;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500134 margin-top: 0.5em;
Michael Davis51946552017-05-01 10:30:38 -0500135 }
136 }
137 }
138
Michael Davis4250f302017-09-06 11:03:52 -0500139 .header__server-power,
140 .header__page-refresh,
141 .header__server-health,
142 .header__info,
143 .header__multi-server {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500144 background: $background-02;
Michael Davis4250f302017-09-06 11:03:52 -0500145 @include round-corners;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500146 margin: 0 0.3em;
Michael Davis4250f302017-09-06 11:03:52 -0500147 height: 100%;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500148 border: 1px solid $border-color-01;
Michael Davis4250f302017-09-06 11:03:52 -0500149 opacity: 1;
150 @include fastTransition-all;
151 &:hover {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500152 background: $background-01;
Michael Davis4250f302017-09-06 11:03:52 -0500153 }
154 }
155
156 .header__multi-server {
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500157 padding: 0.5em;
158 padding-top: 0.8em;
Michael Davis4250f302017-09-06 11:03:52 -0500159 float: left;
160 margin-top: 10px;
161 margin-right: -10px;
162 .icon-angle::before {
163 margin-left: 0;
164 transform: rotate(90deg);
Michael Davisa6a15c22017-07-31 18:45:41 -0500165 @include fastTransition-all;
Michael Davis4250f302017-09-06 11:03:52 -0500166 }
167 &.active {
168 .icon-angle::before {
169 transform: rotate(266deg);
170 @include fastTransition-all;
Michael Davisa6a15c22017-07-31 18:45:41 -0500171 }
172 }
Michael Davis4250f302017-09-06 11:03:52 -0500173 }
174 .header__functions {
Michael Davisa1dcfe02017-08-18 16:32:33 -0500175 .header__info {
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500176 padding: 0.3em;
Ryan Arnell75494d42019-01-16 15:07:58 -0600177 min-width: 40px;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500178 text-align: center;
Ryan Arnell75494d42019-01-16 15:07:58 -0600179 float: left;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500180 span {
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500181 padding: 0.7em 0 0.3em;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500182 font-size: 1em;
183 font-weight: 400;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500184 color: $text-02;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500185 }
186 .icon-angle {
Ryan Arnell75494d42019-01-16 15:07:58 -0600187 margin: 0.2em 0 0 0;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500188 }
189 .icon-angle::before {
Ryan Arnell75494d42019-01-16 15:07:58 -0600190 font-size: 1.625em;
191 font-weight: 400;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500192 margin-left: 0;
193 display: block;
194 transform: rotate(180deg);
195 @include fastTransition-all;
196 }
197 @media (min-width: 1025px) {
198 display: none;
199 }
200 }
201
202 &.active > .header__info > .icon-angle::before {
Michael Davis4250f302017-09-06 11:03:52 -0500203 transform: rotate(-360deg);
204 @include fastTransition-all;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500205 }
206
Michael Davis51946552017-05-01 10:30:38 -0500207 .header__refresh {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500208 color: $text-02;
Michael Davisa5f222a2017-08-04 15:02:38 -0500209 line-height: 1.4;
210 border-radius: 6px;
Michael Davisa6a15c22017-07-31 18:45:41 -0500211 span {
212 @include fontCourierBold;
213 }
Michael Davis51946552017-05-01 10:30:38 -0500214 }
215 }
Michael Davis51946552017-05-01 10:30:38 -0500216 .header__page-refresh {
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500217 padding-top: 1em;
Michael Davisa6a15c22017-07-31 18:45:41 -0500218 span {
219 font-size: 0.875em;
220 font-weight: 400;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500221 color: $text-02;
Michael Davisa6a15c22017-07-31 18:45:41 -0500222 display: block;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500223 margin-bottom: 0.2em;
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500224 }
225 .icon {
226 display: block;
227 margin-left: auto;
228 margin-right: auto;
Michael Davis51946552017-05-01 10:30:38 -0500229 }
Michael Davisa6a15c22017-07-31 18:45:41 -0500230 svg {
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500231 width: 25px;
232 height: auto;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500233 fill: $primary-accent;
Michael Davis51946552017-05-01 10:30:38 -0500234 }
235 }
236}
237
Derick Montague1ffa2092019-04-01 17:57:27 -0500238// end header__functions-section