blob: b1665ca20368476200d038fe14dc1d1bc16548c0 [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
Derick Montague1ffa2092019-04-01 17:57:27 -050024.header__info-section {
Michael Davis51946552017-05-01 10:30:38 -050025 position: relative;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050026 background: $primary-dark;
27 color: $primary-light;
Yoshie Muranaka4148f2e2020-01-29 13:21:12 -080028 width: 100%;
29 height: 50px;
30 display: flex;
31 justify-content: space-between;
32 .dropdown-menu {
33 left: unset;
34 right: 0;
35 border-radius: 0;
36 font-size: 0.9rem;
37 .btn {
38 color: $primary-dark;
39 }
40 }
41 .dropdown-toggle {
42 color: $primary-light;
43 fill: $primary-light;
44 text-decoration: none;
45 font-weight: 400;
46 margin-right: 0.5rem;
47 height: 50px; //to vertically align in 50px header
48 &::after {
49 display: none; //hiding dropdown caret inserted by bootstrap
50 }
51 }
Michael Davis51946552017-05-01 10:30:38 -050052}
53
Yoshie Muranaka4148f2e2020-01-29 13:21:12 -080054.header__title {
55 margin-left: 1rem;
56 display: block;
57 line-height: 50px; //to vertically align in 50px header
Michael Davis51946552017-05-01 10:30:38 -050058}
59
Derick Montague1ffa2092019-04-01 17:57:27 -050060.header__functions-section {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050061 color: $primary-light;
Michael Davis51946552017-05-01 10:30:38 -050062 padding: 0 1.1em;
63 box-sizing: border-box;
64 display: block;
65 position: relative;
66 overflow: hidden;
67 min-height: 5em;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050068 border-bottom: 1px solid $border-color-01;
69 background: $primary-light;
Michael Davisa6a15c22017-07-31 18:45:41 -050070 .header__server-name {
Michael Davis51946552017-05-01 10:30:38 -050071 font-size: 1.5em;
72 font-weight: 500;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050073 color: $text-02;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -050074 padding: 0.4em 0 0 1em;
Michael Davis51946552017-05-01 10:30:38 -050075 height: 100%;
76 background: transparent;
Jayashankar Padatha5f48c72018-02-16 15:34:55 +053077 max-width: 600px;
Michael Davis51946552017-05-01 10:30:38 -050078 white-space: nowrap;
Michael Davisa6a15c22017-07-31 18:45:41 -050079 overflow: hidden;
80 .header__hostname {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050081 color: $primary-dark;
Michael Davisa6a15c22017-07-31 18:45:41 -050082 font-size: 1.2rem;
83 font-weight: 700;
84 margin-bottom: 0;
85 }
86 .header__server-ip {
87 font-size: 1rem;
88 }
Michael Davis51946552017-05-01 10:30:38 -050089 }
90 .logo__wrapper {
Dixsie Wolmersc652ed12019-07-19 13:03:28 -050091 padding-top: 0.5em;
Michael Davis51946552017-05-01 10:30:38 -050092 }
93
Michael Davisa6a15c22017-07-31 18:45:41 -050094 .header__logo {
Michael Davis51946552017-05-01 10:30:38 -050095 vertical-align: middle;
96 margin: 1em;
97 float: left;
98 height: $logoHeight; //required for <SVG> logos - can remove if using img
99 max-height: $logoMaxHeight;
100 max-width: $logoMaxWidth;
101 width: auto;
102 }
Michael Davis51946552017-05-01 10:30:38 -0500103
104 .header__functions {
105 position: absolute;
106 top: 0;
Ryan Arnell75494d42019-01-16 15:07:58 -0600107 right: -480px;
Michael Davis51946552017-05-01 10:30:38 -0500108 bottom: 0;
Michael Davis51946552017-05-01 10:30:38 -0500109 z-index: 100;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500110 margin: 0.3em 0;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500111 background: $primary-light;
Michael Davis51946552017-05-01 10:30:38 -0500112 @include fastTransition-all;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500113 &.active {
114 right: 1em;
115 }
116 @media (min-width: 1025px) {
117 right: 0;
118 }
Michael Davis51946552017-05-01 10:30:38 -0500119 span {
120 display: block;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500121 color: $primary-dark;
Michael Davis51946552017-05-01 10:30:38 -0500122 font-size: 1em;
123 }
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500124 a,
125 p {
Michael Davis51946552017-05-01 10:30:38 -0500126 display: block;
127 float: left;
128 text-decoration: none;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500129 color: $text-02;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500130 padding: 1.25em;
Michael Davis51946552017-05-01 10:30:38 -0500131 height: 100%;
132 font-size: 0.875em;
Michael Davisa6a15c22017-07-31 18:45:41 -0500133 font-weight: 400;
Michael Davis51946552017-05-01 10:30:38 -0500134 line-height: 1;
135 > span {
Michael Davisa6a15c22017-07-31 18:45:41 -0500136 display: block;
Michael Davis51946552017-05-01 10:30:38 -0500137 font-size: 1rem;
138 font-weight: bold;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500139 margin-top: 0.5em;
Michael Davis51946552017-05-01 10:30:38 -0500140 }
141 }
142 }
143
Derick Montague30d7c632019-07-31 22:35:48 -0500144 .header__action {
Michael Davis4250f302017-09-06 11:03:52 -0500145 @include fastTransition-all;
Derick Montague30d7c632019-07-31 22:35:48 -0500146 @include round-corners;
147 height: 100%;
148 background: $background-02;
149 border: 1px solid $border-color-01;
150 margin: 0 0.3em;
151 opacity: 1;
152
153 .icon svg {
Dixsie Wolmers50c1aa12019-10-14 13:22:36 -0500154 height: 1rem;
Derick Montague30d7c632019-07-31 22:35:48 -0500155 }
156
Yoshie Muranaka4b366b52019-09-24 08:32:42 -0700157 .status-icon {
158 vertical-align: text-top;
159 }
160
Michael Davis4250f302017-09-06 11:03:52 -0500161 &:hover {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500162 background: $background-01;
Michael Davis4250f302017-09-06 11:03:52 -0500163 }
164 }
165
Michael Davis4250f302017-09-06 11:03:52 -0500166 .header__functions {
Derick Montague30d7c632019-07-31 22:35:48 -0500167 .header__action--info {
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500168 padding: 0.3em;
Ryan Arnell75494d42019-01-16 15:07:58 -0600169 min-width: 40px;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500170 text-align: center;
Ryan Arnell75494d42019-01-16 15:07:58 -0600171 float: left;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500172 span {
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500173 padding: 0.7em 0 0.3em;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500174 font-size: 1em;
175 font-weight: 400;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500176 color: $text-02;
Michael Davisa1dcfe02017-08-18 16:32:33 -0500177 }
Derick Montague30d7c632019-07-31 22:35:48 -0500178
179 .icon {
Michael Davisa1dcfe02017-08-18 16:32:33 -0500180 @include fastTransition-all;
Derick Montague30d7c632019-07-31 22:35:48 -0500181 svg {
Dixsie Wolmers50c1aa12019-10-14 13:22:36 -0500182 width: 1.25rem;
Derick Montague30d7c632019-07-31 22:35:48 -0500183 height: auto;
184 }
Michael Davisa1dcfe02017-08-18 16:32:33 -0500185 }
Derick Montague30d7c632019-07-31 22:35:48 -0500186
Michael Davisa1dcfe02017-08-18 16:32:33 -0500187 @media (min-width: 1025px) {
188 display: none;
189 }
190 }
191
Derick Montague30d7c632019-07-31 22:35:48 -0500192 &.active > .header__action--info > .icon {
193 transform: rotate(-180deg);
Michael Davisa1dcfe02017-08-18 16:32:33 -0500194 }
195
Michael Davis51946552017-05-01 10:30:38 -0500196 .header__refresh {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500197 color: $text-02;
Michael Davisa5f222a2017-08-04 15:02:38 -0500198 line-height: 1.4;
199 border-radius: 6px;
Michael Davisa6a15c22017-07-31 18:45:41 -0500200 span {
201 @include fontCourierBold;
202 }
Michael Davis51946552017-05-01 10:30:38 -0500203 }
204 }
Derick Montague30d7c632019-07-31 22:35:48 -0500205 .header__action--refresh {
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500206 padding-top: 1em;
Michael Davisa6a15c22017-07-31 18:45:41 -0500207 span {
208 font-size: 0.875em;
209 font-weight: 400;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -0500210 color: $text-02;
Michael Davisa6a15c22017-07-31 18:45:41 -0500211 display: block;
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500212 margin-bottom: 0.2em;
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500213 }
214 .icon {
215 display: block;
216 margin-left: auto;
217 margin-right: auto;
Derick Montague30d7c632019-07-31 22:35:48 -0500218
219 svg {
Dixsie Wolmers50c1aa12019-10-14 13:22:36 -0500220 height: 1.5rem;
Derick Montague30d7c632019-07-31 22:35:48 -0500221 fill: $primary-accent;
222 }
Michael Davis51946552017-05-01 10:30:38 -0500223 }
224 }
225}
226
Derick Montague1ffa2092019-04-01 17:57:27 -0500227// end header__functions-section