github.com/hobbeswalsh/terraform@v0.3.7-0.20150619183303-ad17cf55a0fa/website/source/assets/stylesheets/_header.scss (about) 1 // 2 // Header 3 // -------------------------------------------------- 4 5 body.page-sub{ 6 7 .terra-btn{ 8 background-color: rgba(130, 47, 247, 1); 9 } 10 11 #header{ 12 height: 90px; 13 background-color: $purple; 14 15 .navbar-collapse{ 16 background-color: rgba(255, 255, 255, 0.98); 17 } 18 19 .nav-logo{ 20 height: 90px; 21 } 22 23 .nav-white{ 24 height: 90px; 25 background-color: white; 26 } 27 28 .main-links.navbar-nav{ 29 float: left !important; 30 li > a { 31 color: black; 32 @include transition( color 0.3s ease ); 33 } 34 } 35 36 .buttons.nav > li > a, .buttons.nav > li > a { 37 //background-color: lighten($purple, 1%); 38 @include transition( background-color 0.3s ease ); 39 } 40 41 .buttons.nav > li > a:hover, .buttons.nav > li > a:focus { 42 background-color: black; 43 @include transition( background-color 0.3s ease ); 44 } 45 46 .main-links.nav > li > a:hover, .main-links.nav > li > a:focus { 47 color: $purple; 48 @include transition( color 0.3s ease ); 49 } 50 } 51 } 52 53 #header { 54 position: relative; 55 color: $white; 56 text-rendering: optimizeLegibility; 57 margin-bottom: 0; 58 59 &.navbar-static-top{ 60 height:70px; 61 62 -webkit-transform:translate3d(0,0,0); 63 -moz-transform:translate3d(0,0,0); 64 -ms-transform:translate3d(0,0,0); 65 -o-transform:translate3d(0,0,0); 66 transform:translate3d(0,0,0); 67 z-index: 1000; 68 } 69 70 a{ 71 color: $white; 72 } 73 74 .navbar-toggle{ 75 margin-top: 26px; 76 margin-bottom: 14px; 77 margin-right: 0; 78 border: 2px solid $white; 79 border-radius: 0; 80 .icon-bar{ 81 border: 1px solid $white; 82 border-radius: 0; 83 } 84 } 85 86 .navbar-brand { 87 &.logo{ 88 margin-top: 15px; 89 padding: 5px 0 0 68px; 90 height: 56px; 91 line-height: 56px; 92 font-size: 24px; 93 @include lato-light(); 94 text-transform: uppercase; 95 background: image-url('consul-header-logo.png') 0 0 no-repeat; 96 @include img-retina("header-logo.png", "header-logo@2x.png", 50px, 56px); 97 -webkit-font-smoothing: default; 98 } 99 } 100 101 .navbar-nav{ 102 -webkit-font-smoothing: antialiased; 103 li{ 104 position: relative; 105 106 > a { 107 font-size: 12px; 108 text-transform: uppercase; 109 letter-spacing: 3px; 110 padding-left: 22px; 111 @include transition( color 0.3s ease ); 112 } 113 114 &.first{ 115 >a{ 116 padding-left: 15px; 117 } 118 } 119 } 120 } 121 122 .nav > li > a:hover, .nav > li > a:focus { 123 background-color: transparent; 124 color: lighten($purple, 15%); 125 @include transition( color 0.3s ease ); 126 } 127 128 .main-links.navbar-nav{ 129 margin-top: 28px; 130 131 li + li{ 132 padding-left: 6px; 133 } 134 135 li + li::before { 136 content: ""; 137 position: absolute; 138 left: 0; 139 top: 7px; 140 width: 1px; 141 height: 12px; 142 background-color: $purple; 143 @include skewY(24deg); 144 padding-right: 0; 145 } 146 147 li > a { 148 //border-bottom: 2px solid rgba(255, 255, 255, .2); 149 line-height: 26px; 150 margin: 0 8px; 151 padding: 0 0 0 4px; 152 } 153 154 } 155 156 .buttons.navbar-nav{ 157 margin-top: 25px; 158 margin-left: 30px; 159 160 li{ 161 &.first{ 162 margin-right: 13px; 163 } 164 165 &.download{ 166 a{ 167 padding-left: 30px; 168 background: image-url("header-download-icon.png") 12px 8px no-repeat; 169 @include img-retina("header-download-icon.png", "header-download-icon@2x.png", 12px, 13px); 170 } 171 } 172 173 &.github{ 174 a{ 175 background: image-url("header-github-icon.png") 12px 7px no-repeat; 176 @include img-retina("header-github-icon.png", "header-github-icon@2x.png", 12px, 13px); 177 } 178 } 179 } 180 181 li > a { 182 color: white; 183 padding-top: 4px; 184 padding-bottom: 4px; 185 padding-left: 32px; 186 padding-right: 12px; 187 letter-spacing: 0.05em; 188 } 189 } 190 } 191 192 @media (min-width: 1200px) { 193 194 #header{ 195 .main-links.navbar-nav{ 196 margin-top: 28px; 197 198 li + li{ 199 padding-left: 6px; 200 } 201 202 li + li::before { 203 content: ""; 204 position: absolute; 205 left: 0; 206 top: 9px; 207 width: 6px; 208 height: 8px; 209 background-color: $purple; 210 @include skewY(24deg); 211 padding-right: 8px; 212 } 213 214 li > a { 215 //border-bottom: 2px solid rgba(255, 255, 255, .2); 216 line-height: 26px; 217 margin: 0 12px; 218 padding: 0 0 0 4px; 219 } 220 221 } 222 } 223 } 224 225 @media (min-width: 992px) { 226 227 .collapse{ 228 margin-top: 8px; 229 } 230 231 //homepage has more space at this width to accommodate chevrons 232 .page-home{ 233 #header{ 234 .main-links.navbar-nav{ 235 li + li{ 236 padding-left: 6px; 237 } 238 239 li + li::before { 240 content: ""; 241 position: absolute; 242 left: 0; 243 top: 9px; 244 width: 6px; 245 height: 8px; 246 background-color: $purple; 247 @include skewY(24deg); 248 padding-right: 8px; 249 } 250 } 251 } 252 } 253 } 254 255 256 257 @media (min-width: 768px) and (max-width: 992px) { 258 259 body.page-home{ 260 .nav-logo{ 261 width: 30%; 262 } 263 .nav-white{ 264 margin-top: 8px; 265 width: 70%; 266 } 267 .buttons.navbar-nav{ 268 li{ 269 > a{ 270 padding-right: 4px !important; 271 text-indent: -9999px; 272 white-space: nowrap; 273 } 274 } 275 } 276 } 277 } 278 279 280 @media (max-width: 992px) { 281 282 #header { 283 .navbar-brand { 284 &.logo{ 285 span{ 286 width: 120px; 287 height: 39px; 288 margin-top: 12px; 289 background-size: 120px 39px; 290 } 291 } 292 } 293 } 294 } 295 296 @media (max-width: 768px) { 297 298 body.page-sub{ 299 #header{ 300 .nav-white{ 301 background-color: transparent; 302 } 303 } 304 } 305 306 #header{ 307 .buttons.navbar-nav{ 308 float: none !important; 309 margin: 0; 310 padding-bottom: 0 !important; 311 312 li{ 313 &.first{ 314 margin-right: 0; 315 } 316 } 317 } 318 } 319 320 //#footer, 321 #header{ 322 .buttons.navbar-nav, 323 .main-links.navbar-nav{ 324 display: block; 325 padding-bottom: 15px; 326 li{ 327 display: block; 328 float: none; 329 margin-top: 15px; 330 } 331 332 .li-under a::after, 333 li + li::before { 334 display: none; 335 } 336 } 337 } 338 339 //#footer, 340 #header{ 341 .main-links.navbar-nav{ 342 float: left !important; 343 li > a { 344 padding: 0; 345 padding-left: 0; 346 line-height: 22px; 347 } 348 } 349 } 350 } 351 352 @media (max-width: 763px) { 353 .navbar-static-top { 354 .nav-white { 355 background-color:rgba(0,0,0,0.5); 356 } 357 } 358 } 359 360 @media (max-width: 320px) { 361 362 #header{ 363 .navbar-brand { 364 &.logo{ 365 padding:0 0 0 54px !important; 366 font-size: 20px !important; 367 line-height:42px !important; 368 margin-top: 23px !important ; 369 @include img-retina("../images/header-logo.png", "../images/header-logo@2x.png", 39px, 44px); 370 } 371 } 372 373 } 374 375 #feature-auto{ 376 .terminal-text{ 377 line-height: 48px !important; 378 font-size: 20px !important; 379 } 380 } 381 382 }