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