blob: 084fe7113a974cb8bb777bda3a07c2aae9a6c626 [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
Derick Montague30d7c632019-07-31 22:35:48 -0500139 .header__action {
Michael Davis4250f302017-09-06 11:03:52 -0500140 @include fastTransition-all;
Derick Montague30d7c632019-07-31 22:35:48 -0500141 @include round-corners;
142 height: 100%;
143 background: $background-02;
144 border: 1px solid $border-color-01;
145 margin: 0 0.3em;
146 opacity: 1;
147
148 .icon svg {
149 width: 1rem;
150 }
151
Michael Davis4250f302017-09-06 11:03:52 -0500152 &:hover {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500153 background: $background-01;
Michael Davis4250f302017-09-06 11:03:52 -0500154 }
155 }
156
Michael Davis4250f302017-09-06 11:03:52 -0500157 .header__functions {
Derick Montague30d7c632019-07-31 22:35:48 -0500158 .header__action--info {
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500159 padding: 0.3em;
Ryan Arnell75494d42019-01-16 15:07:58 -0600160 min-width: 40px;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500161 text-align: center;
Ryan Arnell75494d42019-01-16 15:07:58 -0600162 float: left;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500163 span {
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500164 padding: 0.7em 0 0.3em;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500165 font-size: 1em;
166 font-weight: 400;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500167 color: $text-02;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500168 }
Derick Montague30d7c632019-07-31 22:35:48 -0500169
170 .icon {
Michael Davisa1dcfe02017-08-18 16:32:33 -0500171 @include fastTransition-all;
Derick Montague30d7c632019-07-31 22:35:48 -0500172 margin: 0.2em 0 0 0;
173
174 svg {
175 width: 2.6rem;
176 height: auto;
177 }
Michael Davisa1dcfe02017-08-18 16:32:33 -0500178 }
Derick Montague30d7c632019-07-31 22:35:48 -0500179
Michael Davisa1dcfe02017-08-18 16:32:33 -0500180 @media (min-width: 1025px) {
181 display: none;
182 }
183 }
184
Derick Montague30d7c632019-07-31 22:35:48 -0500185 &.active > .header__action--info > .icon {
186 transform: rotate(-180deg);
Michael Davisa1dcfe02017-08-18 16:32:33 -0500187 }
188
Michael Davis51946552017-05-01 10:30:38 -0500189 .header__refresh {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500190 color: $text-02;
Michael Davisa5f222a2017-08-04 15:02:38 -0500191 line-height: 1.4;
192 border-radius: 6px;
Michael Davisa6a15c22017-07-31 18:45:41 -0500193 span {
194 @include fontCourierBold;
195 }
Michael Davis51946552017-05-01 10:30:38 -0500196 }
197 }
Derick Montague30d7c632019-07-31 22:35:48 -0500198 .header__action--refresh {
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500199 padding-top: 1em;
Michael Davisa6a15c22017-07-31 18:45:41 -0500200 span {
201 font-size: 0.875em;
202 font-weight: 400;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500203 color: $text-02;
Michael Davisa6a15c22017-07-31 18:45:41 -0500204 display: block;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500205 margin-bottom: 0.2em;
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500206 }
207 .icon {
208 display: block;
209 margin-left: auto;
210 margin-right: auto;
Derick Montague30d7c632019-07-31 22:35:48 -0500211
212 svg {
213 width: 1.6rem;
214 height: auto;
215 fill: $primary-accent;
216 }
Michael Davis51946552017-05-01 10:30:38 -0500217 }
218 }
219}
220
Derick Montague1ffa2092019-04-01 17:57:27 -0500221// end header__functions-section