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 | |
| 19 | .app__version { |
| 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; |
| 67 | max-width: 350px; |
| 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; |
| 82 | //position: absolute; |
| 83 | //top: 50%; |
| 84 | //transform: translateY(-50%); |
| 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; |
| 100 | right: 0; |
| 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 | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 104 | @include fastTransition-all; |
| 105 | span { |
| 106 | display: block; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 107 | color: $black; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 108 | font-size: 1em; |
| 109 | } |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 110 | a, p { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 111 | display: block; |
| 112 | float: left; |
| 113 | text-decoration: none; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 114 | color: $darkgrey; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 115 | padding: 1.250em 1.688em; |
| 116 | height: 100%; |
| 117 | font-size: 0.875em; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 118 | font-weight: 400; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 119 | line-height: 1; |
| 120 | > span { |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 121 | display: block; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 122 | font-size: 1rem; |
| 123 | font-weight: bold; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 124 | margin-top: .3em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 125 | } |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | // hide/show header functions based on screen size |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 130 | .header__functions > .header__server-health { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 131 | display: none; |
| 132 | @include mediaQuery(small) { |
| 133 | display: block; |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | .header__functions > .header__refresh { |
| 138 | display: none; |
| 139 | @include mediaQuery(medium) { |
| 140 | display: block; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 141 | background-color: $white; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 142 | } |
| 143 | } |
| 144 | |
| 145 | .header__functions { |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 146 | .header__server-power, |
| 147 | .header__page-refresh, |
| 148 | .header__server-health { |
| 149 | background: $lightgrey; |
| 150 | @include round-corners; |
| 151 | margin: 0 .3em; |
| 152 | height: 100%; |
| 153 | border: 1px solid $medgrey; |
| 154 | @include fastTransition-all; |
| 155 | &:hover { |
| 156 | background: rgba(255, 255, 255, 1); |
| 157 | } |
| 158 | } |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 159 | .header__refresh { |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 160 | color: $darkgrey; |
Michael Davis | a5f222a | 2017-08-04 15:02:38 -0500 | [diff] [blame^] | 161 | line-height: 1.4; |
| 162 | border-radius: 6px; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 163 | span { |
| 164 | @include fontCourierBold; |
| 165 | } |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 166 | } |
| 167 | } |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 168 | |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 169 | .header__page-refresh { |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 170 | padding-top: 0; |
| 171 | position: relative; |
| 172 | span { |
| 173 | font-size: 0.875em; |
| 174 | font-weight: 400; |
| 175 | color: $darkgrey; |
| 176 | display: block; |
| 177 | margin-bottom: 1.8em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 178 | } |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 179 | svg { |
| 180 | stroke: $medblue; |
| 181 | fill: $medblue; |
| 182 | height: 20px; |
| 183 | width: 20px; |
| 184 | display: block; |
| 185 | margin: 0 auto; |
| 186 | position: absolute; |
| 187 | left: 50%; |
| 188 | top: 55%; |
| 189 | transform: translateX(-50%); |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 190 | } |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | // end header__functions-wrapper |