Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame^] | 1 | /** |
2 | * Application header styles | ||||
3 | * Should only be used for the application header | ||||
4 | */ | ||||
5 | |||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 6 | $logoHeight: 30px; |
7 | $logoMaxHeight: 100px; | ||||
8 | $logoMaxWidth: 125px; | ||||
9 | |||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 10 | @mixin round-corners { |
11 | -webkit-border-radius: 6px 6px; | ||||
12 | -moz-border-radius: 6px 6px; | ||||
13 | border-radius: 6px 6px; | ||||
14 | } | ||||
15 | |||||
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 16 | .header { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 17 | position: fixed; |
18 | top: 0; | ||||
19 | left: 0; | ||||
20 | right: 0; | ||||
Iftekharul Islam | 4390b02 | 2017-06-05 09:44:50 -0500 | [diff] [blame] | 21 | z-index: 300; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 22 | } |
23 | |||||
Gunnar Mills | 844dace | 2018-05-15 12:46:59 -0500 | [diff] [blame] | 24 | .header__title { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 25 | margin-left: 1em; |
26 | display: none; | ||||
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 27 | float: left; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 28 | @include mediaQuery(x-small) { |
29 | display: inline-block; | ||||
30 | position: absolute; | ||||
31 | top: 50%; | ||||
32 | transform: translateY(-50%); | ||||
33 | } | ||||
34 | } | ||||
35 | |||||
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 36 | .header__info-section { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 37 | position: relative; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 38 | background: $primary-dark; |
39 | color: $primary-light; | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 40 | overflow: hidden; |
41 | } | ||||
42 | |||||
43 | .header__logout { | ||||
44 | float: right; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 45 | color: $primary-light; |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame^] | 46 | font-size: 0.9em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 47 | text-decoration: none; |
48 | padding: 1em; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 49 | font-weight: 400; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 50 | &:visited { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 51 | color: $primary-light; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 52 | } |
53 | } | ||||
54 | |||||
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 55 | .header__functions-section { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 56 | color: $primary-light; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 57 | padding: 0 1.1em; |
58 | box-sizing: border-box; | ||||
59 | display: block; | ||||
60 | position: relative; | ||||
61 | overflow: hidden; | ||||
62 | min-height: 5em; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 63 | border-bottom: 1px solid $border-color-01; |
64 | background: $primary-light; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 65 | .header__server-name { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 66 | font-size: 1.5em; |
67 | font-weight: 500; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 68 | color: $text-02; |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame^] | 69 | padding: 0.4em 0 0 1em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 70 | height: 100%; |
71 | background: transparent; | ||||
Jayashankar Padath | a5f48c7 | 2018-02-16 15:34:55 +0530 | [diff] [blame] | 72 | max-width: 600px; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 73 | white-space: nowrap; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 74 | overflow: hidden; |
75 | .header__hostname { | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 76 | color: $primary-dark; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 77 | font-size: 1.2rem; |
78 | font-weight: 700; | ||||
79 | margin-bottom: 0; | ||||
80 | } | ||||
81 | .header__server-ip { | ||||
82 | font-size: 1rem; | ||||
83 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 84 | } |
85 | .logo__wrapper { | ||||
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame^] | 86 | padding-top: 0.5em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 87 | } |
88 | |||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 89 | .header__logo { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 90 | 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 Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 98 | |
99 | .header__functions { | ||||
100 | position: absolute; | ||||
101 | top: 0; | ||||
Ryan Arnell | 75494d4 | 2019-01-16 15:07:58 -0600 | [diff] [blame] | 102 | right: -480px; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 103 | bottom: 0; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 104 | z-index: 100; |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame^] | 105 | margin: 0.3em 0; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 106 | background: $primary-light; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 107 | @include fastTransition-all; |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 108 | &.active { |
109 | right: 1em; | ||||
110 | } | ||||
111 | @media (min-width: 1025px) { | ||||
112 | right: 0; | ||||
113 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 114 | span { |
115 | display: block; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 116 | color: $primary-dark; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 117 | font-size: 1em; |
118 | } | ||||
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame^] | 119 | a, |
120 | p { | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 121 | display: block; |
122 | float: left; | ||||
123 | text-decoration: none; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 124 | color: $text-02; |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame^] | 125 | padding: 1.25em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 126 | height: 100%; |
127 | font-size: 0.875em; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 128 | font-weight: 400; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 129 | line-height: 1; |
130 | > span { | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 131 | display: block; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 132 | font-size: 1rem; |
133 | font-weight: bold; | ||||
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame^] | 134 | margin-top: 0.5em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 135 | } |
136 | } | ||||
137 | } | ||||
138 | |||||
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 139 | .header__server-power, |
140 | .header__page-refresh, | ||||
141 | .header__server-health, | ||||
142 | .header__info, | ||||
143 | .header__multi-server { | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 144 | background: $background-02; |
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 145 | @include round-corners; |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame^] | 146 | margin: 0 0.3em; |
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 147 | height: 100%; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 148 | border: 1px solid $border-color-01; |
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 149 | opacity: 1; |
150 | @include fastTransition-all; | ||||
151 | &:hover { | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 152 | background: $background-01; |
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 153 | } |
154 | } | ||||
155 | |||||
156 | .header__multi-server { | ||||
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame^] | 157 | padding: 0.5em; |
158 | padding-top: 0.8em; | ||||
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 159 | float: left; |
160 | margin-top: 10px; | ||||
161 | margin-right: -10px; | ||||
162 | .icon-angle::before { | ||||
163 | margin-left: 0; | ||||
164 | transform: rotate(90deg); | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 165 | @include fastTransition-all; |
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 166 | } |
167 | &.active { | ||||
168 | .icon-angle::before { | ||||
169 | transform: rotate(266deg); | ||||
170 | @include fastTransition-all; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 171 | } |
172 | } | ||||
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 173 | } |
174 | .header__functions { | ||||
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 175 | .header__info { |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame^] | 176 | padding: 0.3em; |
Ryan Arnell | 75494d4 | 2019-01-16 15:07:58 -0600 | [diff] [blame] | 177 | min-width: 40px; |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 178 | text-align: center; |
Ryan Arnell | 75494d4 | 2019-01-16 15:07:58 -0600 | [diff] [blame] | 179 | float: left; |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 180 | span { |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame^] | 181 | padding: 0.7em 0 0.3em; |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 182 | font-size: 1em; |
183 | font-weight: 400; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 184 | color: $text-02; |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 185 | } |
186 | .icon-angle { | ||||
Ryan Arnell | 75494d4 | 2019-01-16 15:07:58 -0600 | [diff] [blame] | 187 | margin: 0.2em 0 0 0; |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 188 | } |
189 | .icon-angle::before { | ||||
Ryan Arnell | 75494d4 | 2019-01-16 15:07:58 -0600 | [diff] [blame] | 190 | font-size: 1.625em; |
191 | font-weight: 400; | ||||
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 192 | 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 Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 203 | transform: rotate(-360deg); |
204 | @include fastTransition-all; | ||||
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 205 | } |
206 | |||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 207 | .header__refresh { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 208 | color: $text-02; |
Michael Davis | a5f222a | 2017-08-04 15:02:38 -0500 | [diff] [blame] | 209 | line-height: 1.4; |
210 | border-radius: 6px; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 211 | span { |
212 | @include fontCourierBold; | ||||
213 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 214 | } |
215 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 216 | .header__page-refresh { |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 217 | padding-top: 1em; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 218 | span { |
219 | font-size: 0.875em; | ||||
220 | font-weight: 400; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 221 | color: $text-02; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 222 | display: block; |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame^] | 223 | margin-bottom: 0.2em; |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 224 | } |
225 | .icon { | ||||
226 | display: block; | ||||
227 | margin-left: auto; | ||||
228 | margin-right: auto; | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 229 | } |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 230 | svg { |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 231 | width: 25px; |
232 | height: auto; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 233 | fill: $primary-accent; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 234 | } |
235 | } | ||||
236 | } | ||||
237 | |||||
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 238 | // end header__functions-section |