blob: c034c828161c63370ef12322cf8df3fb5953aa81 [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 {
Dixsie Wolmers50c1aa12019-10-14 13:22:36 -0500149 height: 1rem;
Derick Montague30d7c632019-07-31 22:35:48 -0500150 }
151
Yoshie Muranaka4b366b52019-09-24 08:32:42 -0700152 .status-icon {
153 vertical-align: text-top;
154 }
155
Michael Davis4250f302017-09-06 11:03:52 -0500156 &:hover {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500157 background: $background-01;
Michael Davis4250f302017-09-06 11:03:52 -0500158 }
159 }
160
Michael Davis4250f302017-09-06 11:03:52 -0500161 .header__functions {
Derick Montague30d7c632019-07-31 22:35:48 -0500162 .header__action--info {
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500163 padding: 0.3em;
Ryan Arnell75494d42019-01-16 15:07:58 -0600164 min-width: 40px;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500165 text-align: center;
Ryan Arnell75494d42019-01-16 15:07:58 -0600166 float: left;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500167 span {
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500168 padding: 0.7em 0 0.3em;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500169 font-size: 1em;
170 font-weight: 400;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500171 color: $text-02;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500172 }
Derick Montague30d7c632019-07-31 22:35:48 -0500173
174 .icon {
Michael Davisa1dcfe02017-08-18 16:32:33 -0500175 @include fastTransition-all;
Derick Montague30d7c632019-07-31 22:35:48 -0500176 svg {
Dixsie Wolmers50c1aa12019-10-14 13:22:36 -0500177 width: 1.25rem;
Derick Montague30d7c632019-07-31 22:35:48 -0500178 height: auto;
179 }
Michael Davisa1dcfe02017-08-18 16:32:33 -0500180 }
Derick Montague30d7c632019-07-31 22:35:48 -0500181
Michael Davisa1dcfe02017-08-18 16:32:33 -0500182 @media (min-width: 1025px) {
183 display: none;
184 }
185 }
186
Derick Montague30d7c632019-07-31 22:35:48 -0500187 &.active > .header__action--info > .icon {
188 transform: rotate(-180deg);
Michael Davisa1dcfe02017-08-18 16:32:33 -0500189 }
190
Michael Davis51946552017-05-01 10:30:38 -0500191 .header__refresh {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500192 color: $text-02;
Michael Davisa5f222a2017-08-04 15:02:38 -0500193 line-height: 1.4;
194 border-radius: 6px;
Michael Davisa6a15c22017-07-31 18:45:41 -0500195 span {
196 @include fontCourierBold;
197 }
Michael Davis51946552017-05-01 10:30:38 -0500198 }
199 }
Derick Montague30d7c632019-07-31 22:35:48 -0500200 .header__action--refresh {
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500201 padding-top: 1em;
Michael Davisa6a15c22017-07-31 18:45:41 -0500202 span {
203 font-size: 0.875em;
204 font-weight: 400;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500205 color: $text-02;
Michael Davisa6a15c22017-07-31 18:45:41 -0500206 display: block;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500207 margin-bottom: 0.2em;
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500208 }
209 .icon {
210 display: block;
211 margin-left: auto;
212 margin-right: auto;
Derick Montague30d7c632019-07-31 22:35:48 -0500213
214 svg {
Dixsie Wolmers50c1aa12019-10-14 13:22:36 -0500215 height: 1.5rem;
Derick Montague30d7c632019-07-31 22:35:48 -0500216 fill: $primary-accent;
217 }
Michael Davis51946552017-05-01 10:30:38 -0500218 }
219 }
220}
221
Derick Montague1ffa2092019-04-01 17:57:27 -0500222// end header__functions-section