| 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 | |||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 11 | #header__wrapper { |
| 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; | ||||
| 22 | @include mediaQuery(x-small) { | ||||
| 23 | display: inline-block; | ||||
| 24 | position: absolute; | ||||
| 25 | top: 50%; | ||||
| 26 | transform: translateY(-50%); | ||||
| 27 | } | ||||
| 28 | } | ||||
| 29 | |||||
| 30 | header { | ||||
| 31 | position: relative; | ||||
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 32 | background: $black; |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 33 | color: $white; |
| 34 | overflow: hidden; | ||||
| 35 | } | ||||
| 36 | |||||
| 37 | .header__logout { | ||||
| 38 | float: right; | ||||
| 39 | display: inline-block; | ||||
| 40 | color: $white; | ||||
| 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 { |
| 46 | color: $white; | ||||
| 47 | } | ||||
| 48 | } | ||||
| 49 | |||||
| 50 | .header__functions-wrapper { | ||||
| 51 | color: $white; | ||||
| 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; | ||||
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 58 | border-bottom: 1px solid $medgrey; |
| 59 | background: $white; | ||||
| 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; | ||||
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 63 | color: $darkgrey; |
| 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 { | ||||
| 71 | color: $black; | ||||
| 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; | ||||
| Iftekharul Islam | db28a38 | 2017-11-02 13:16:17 -0500 | [diff] [blame] | 82 | //position: absolute; |
| 83 | //top: 50%; | ||||
| 84 | //transform: translateY(-50%); | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 85 | } |
| 86 | |||||
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 87 | .header__logo { |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 88 | vertical-align: middle; |
| 89 | margin: 1em; | ||||
| 90 | float: left; | ||||
| 91 | height: $logoHeight; //required for <SVG> logos - can remove if using img | ||||
| 92 | max-height: $logoMaxHeight; | ||||
| 93 | max-width: $logoMaxWidth; | ||||
| 94 | width: auto; | ||||
| 95 | } | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 96 | |
| 97 | .header__functions { | ||||
| 98 | position: absolute; | ||||
| 99 | top: 0; | ||||
| Iftekharul Islam | db28a38 | 2017-11-02 13:16:17 -0500 | [diff] [blame] | 100 | right: -680px; |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 101 | bottom: 0; |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 102 | z-index: 100; |
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 103 | margin: .3em 0; |
| Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 104 | background: $white; |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 105 | @include fastTransition-all; |
| Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 106 | &.active { |
| 107 | right: 1em; | ||||
| 108 | } | ||||
| 109 | @media (min-width: 1025px) { | ||||
| 110 | right: 0; | ||||
| 111 | } | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 112 | span { |
| 113 | display: block; | ||||
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 114 | color: $black; |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 115 | font-size: 1em; |
| 116 | } | ||||
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 117 | a, p { |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 118 | display: block; |
| 119 | float: left; | ||||
| 120 | text-decoration: none; | ||||
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 121 | color: $darkgrey; |
| Iftekharul Islam | db28a38 | 2017-11-02 13:16:17 -0500 | [diff] [blame] | 122 | padding: 1.250em 1.688em; |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 123 | height: 100%; |
| 124 | font-size: 0.875em; | ||||
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 125 | font-weight: 400; |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 126 | line-height: 1; |
| 127 | > span { | ||||
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 128 | display: block; |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 129 | font-size: 1rem; |
| 130 | font-weight: bold; | ||||
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 131 | margin-top: .3em; |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 132 | } |
| 133 | } | ||||
| 134 | } | ||||
| 135 | |||||
| Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 136 | .header__server-power, |
| 137 | .header__page-refresh, | ||||
| 138 | .header__server-health, | ||||
| 139 | .header__info, | ||||
| 140 | .header__multi-server { | ||||
| 141 | background: $lightgrey; | ||||
| 142 | @include round-corners; | ||||
| 143 | margin: 0 .3em; | ||||
| 144 | height: 100%; | ||||
| 145 | border: 1px solid $medgrey; | ||||
| 146 | opacity: 1; | ||||
| 147 | @include fastTransition-all; | ||||
| 148 | &:hover { | ||||
| 149 | background: rgba(255, 255, 255, 1); | ||||
| 150 | } | ||||
| 151 | } | ||||
| 152 | |||||
| 153 | .header__multi-server { | ||||
| 154 | padding: .5em; | ||||
| 155 | padding-top: .8em; | ||||
| 156 | float: left; | ||||
| 157 | margin-top: 10px; | ||||
| 158 | margin-right: -10px; | ||||
| 159 | .icon-angle::before { | ||||
| 160 | margin-left: 0; | ||||
| 161 | transform: rotate(90deg); | ||||
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 162 | @include fastTransition-all; |
| Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 163 | } |
| 164 | &.active { | ||||
| 165 | .icon-angle::before { | ||||
| 166 | transform: rotate(266deg); | ||||
| 167 | @include fastTransition-all; | ||||
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 168 | } |
| 169 | } | ||||
| Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 170 | } |
| 171 | .header__functions { | ||||
| Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 172 | .header__info { |
| 173 | padding: .3em; | ||||
| 174 | min-width: 60px; | ||||
| 175 | text-align: center; | ||||
| 176 | display: inline-block; | ||||
| 177 | span { | ||||
| 178 | padding: .7em 0 .3em; | ||||
| 179 | font-size: 1em; | ||||
| 180 | font-weight: 400; | ||||
| 181 | color: $darkgrey; | ||||
| 182 | } | ||||
| 183 | .icon-angle { | ||||
| 184 | margin-bottom: .9em; | ||||
| 185 | } | ||||
| 186 | .icon-angle::before { | ||||
| 187 | font-size: 2em; | ||||
| 188 | margin-left: 0; | ||||
| 189 | display: block; | ||||
| 190 | transform: rotate(180deg); | ||||
| 191 | @include fastTransition-all; | ||||
| 192 | } | ||||
| 193 | @media (min-width: 1025px) { | ||||
| 194 | display: none; | ||||
| 195 | } | ||||
| 196 | } | ||||
| 197 | |||||
| 198 | &.active > .header__info > .icon-angle::before { | ||||
| Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 199 | transform: rotate(-360deg); |
| 200 | @include fastTransition-all; | ||||
| Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 201 | } |
| 202 | |||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 203 | .header__refresh { |
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 204 | color: $darkgrey; |
| Michael Davis | a5f222a | 2017-08-04 15:02:38 -0500 | [diff] [blame] | 205 | line-height: 1.4; |
| 206 | border-radius: 6px; | ||||
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 207 | span { |
| 208 | @include fontCourierBold; | ||||
| 209 | } | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 210 | } |
| 211 | } | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 212 | .header__page-refresh { |
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 213 | padding-top: 0; |
| 214 | position: relative; | ||||
| 215 | span { | ||||
| 216 | font-size: 0.875em; | ||||
| 217 | font-weight: 400; | ||||
| 218 | color: $darkgrey; | ||||
| 219 | display: block; | ||||
| Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 220 | margin-bottom: 1.1em; |
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 221 | } |
| Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 222 | svg { |
| 223 | stroke: $medblue; | ||||
| 224 | fill: $medblue; | ||||
| 225 | height: 20px; | ||||
| 226 | width: 20px; | ||||
| 227 | display: block; | ||||
| 228 | margin: 0 auto; | ||||
| 229 | position: absolute; | ||||
| 230 | left: 50%; | ||||
| 231 | top: 55%; | ||||
| 232 | transform: translateX(-50%); | ||||
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 233 | } |
| 234 | } | ||||
| 235 | } | ||||
| 236 | |||||
| 237 | // end header__functions-wrapper | ||||