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