github.com/mattyr/nomad@v0.3.3-0.20160919021406-3485a065154a/website/source/assets/stylesheets/_home.scss (about) 1 // 2 // Home 3 // -------------------------------------------------- 4 5 #hero{ 6 position: relative; 7 text-align: center; 8 background: image-url('nomad-giant.jpg') 0 0 no-repeat; 9 @include img-retina("nomad-giant.jpg", "nomad-giant.jpg", 624px, 358px); 10 background-size: cover !important; 11 overflow: hidden; 12 13 &:before{ 14 content: ''; 15 position: absolute; 16 top: -20px; 17 left: 50%; 18 width: 1000px; 19 height: 1000px; 20 margin-left: -500px; 21 border-radius: 500px; 22 background-color: $white; 23 z-index: 1; 24 } 25 26 #hero-graphic{ 27 position: absolute; 28 display: inline-block; 29 left: 50%; 30 top: 0; 31 width: 499px; 32 height: 340px; 33 margin-top: 38px; 34 margin-left: -250px; 35 z-index: 2; 36 37 #hero-logotype{ 38 position: absolute; 39 display: inline-block; 40 top: 75px; 41 left: 50%; 42 width: 115px; 43 height: 155px; 44 margin-left: -60px; 45 background: image-url('hero-logotype.png') 0 0 no-repeat; 46 @include img-retina("hero-logotype.png", "hero-logotype@2x.png", 115px, 155px); 47 } 48 49 #cubes{ 50 .cube{ 51 position: absolute; 52 top: 300px; 53 left: 248px; 54 opacity: 0.01; 55 @include transform( translate(0, 150px) ); 56 @include transition( all 1.5s $easeInOutBack ); 57 58 &.in{ 59 @include transform( translate(0, 0) ); 60 opacity: 1; 61 } 62 63 .face { 64 @include transform-origin(0 0); 65 position: absolute; 66 height: 44px; 67 width: 44px; 68 69 &.top{ 70 background-color: $green; 71 @include transform(rotate(210deg) skewX(-30deg) scaleY(0.864) ); 72 } 73 &.left{ 74 background-color: $green-dark; 75 @include transform(rotate(90deg) skewX(-30deg) scaleY(0.864) ); 76 } 77 &.right{ 78 background-color: $green-light; 79 @include transform(rotate(-30deg) skewX(-30deg) scaleY(0.864) ); 80 } 81 } 82 } 83 } 84 } 85 86 #hero-text{ 87 position: relative; 88 padding-top: 400px; 89 90 #hero-text-content{ 91 position: relative; 92 z-index: 2; 93 padding-bottom: 40px; 94 } 95 96 h1{ 97 margin-top: 0; 98 color: $blue-dark; 99 font-size: $font-size-xl; 100 font-family: $font-family-blanc; 101 } 102 103 h4{ 104 color: $blue-light; 105 font-family: $font-family-blanc; 106 } 107 108 #hero-btns{ 109 margin-top: 26px; 110 a{ 111 112 } 113 } 114 } 115 116 #tag-line{ 117 margin: 15px 0 20px 0; 118 font-size: 24px; 119 font-weight: 300; 120 } 121 122 p{ 123 margin-top: 60px; 124 text-align: left; 125 font-size: 18px; 126 font-weight: 300; 127 line-height: 2em; 128 129 .strong{ 130 font-size: 20px; 131 font-weight: 500; 132 } 133 } 134 } 135 136 .banner{ 137 margin-top: 120px; 138 139 .col{ 140 p{ 141 line-height: 24px; 142 } 143 } 144 145 &.gray-banner{ 146 .col{ 147 border: 1px solid $blue-faint; 148 } 149 150 p{ 151 color: $blue-light; 152 } 153 } 154 155 &.green-banner{ 156 .col{ 157 border: 1px solid $blue-faint; 158 } 159 160 p{ 161 color: $blue-dark; 162 } 163 } 164 165 &#cta-banner{ 166 margin-top: 0; 167 margin-bottom: 80px; 168 169 .col{ 170 padding: 60px 20px; 171 } 172 } 173 174 .col{ 175 padding: 20px; 176 text-align: center; 177 border-radius: 3px; 178 } 179 180 p{ 181 margin-bottom: 0px; 182 margin-right: 30px; 183 font-size: $font-size-reg; 184 line-height: $font-size-reg; 185 font-family: $font-family-blanc-reg; 186 } 187 188 p, a{ 189 display: inline-block; 190 } 191 } 192 193 #content{ 194 overflow: hidden; 195 margin-top: 120px; 196 197 h2{ 198 margin-bottom: 120px; 199 text-align: center; 200 font-size: $font-size-m; 201 font-family: $font-family-blanc; 202 color: $green; 203 text-transform: uppercase; 204 } 205 206 .feature{ 207 position: relative; 208 margin-bottom: 60px; 209 padding-bottom: 60px; 210 border-bottom: 1px solid $blue-faint; 211 212 &:last-child{ 213 border-bottom: none; 214 } 215 216 &#deploy{ 217 .feature-graphic{ 218 margin-top: -130px; 219 width: 1161px; 220 height: 735px; 221 background: image-url('feature-deploy.png') 0 0 no-repeat; 222 @include img-retina("feature-deploy.png", "feature-deploy@2x.png", 1161px, 735px); 223 } 224 } 225 226 &#maintain{ 227 .feature-graphic{ 228 margin-top: -50px; 229 width: 1113px; 230 height: 689px; 231 background: image-url('feature-manage.png') 0 0 no-repeat; 232 @include img-retina("feature-manage.png", "feature-manage@2x.png", 1113px, 689px); 233 } 234 } 235 236 &#healing{ 237 .feature-graphic{ 238 margin-top: 80px; 239 width: 1009px; 240 height: 309px; 241 background: image-url('feature-healing.png') 0 0 no-repeat; 242 @include img-retina("feature-healing.png", "feature-healing@2x.png", 1009px, 309px); 243 } 244 } 245 246 &#density{ 247 .feature-graphic{ 248 margin-top: 80px; 249 width: 1040px; 250 height: 409px; 251 background: image-url('feature-density.png') 0 0 no-repeat; 252 @include img-retina("feature-density.png", "feature-density@2x.png", 1040px, 409px); 253 } 254 } 255 256 &#partners{ 257 .partner-logos{ 258 .docker-wrap{ 259 border-right: 1px solid $blue-faint; 260 261 .partner-logo{ 262 display: inline-block; 263 width: 120px; 264 height: 180px; 265 266 &.docker-logo{ 267 background: image-url('partner-docker.png') center center no-repeat; 268 @include img-retina("partner-docker.png", "partner-docker@2x.png", 100px, 84px); 269 } 270 } 271 } 272 273 .cloud-wrap{ 274 .partner-logo{ 275 float: left; 276 width: 25%; 277 height: 180px; 278 279 &.aws-logo{ 280 background: image-url('partner-amazon.png') center center no-repeat; 281 @include img-retina("partner-amazon.png", "partner-amazon@2x.png", 153px, 56px); 282 } 283 &.google-logo{ 284 background: image-url('partner-google.png') center center no-repeat; 285 @include img-retina("partner-google.png", "partner-google@2x.png", 135px, 87px); 286 } 287 &.microsoft-logo{ 288 background: image-url('partner-microsoft.png') center center no-repeat; 289 @include img-retina("partner-microsoft.png", "partner-microsoft@2x.png", 188px, 84px); 290 } 291 &.engineyard-logo{ 292 background: image-url('partner-engineyard.png') center center no-repeat; 293 @include img-retina("partner-engineyard.png", "partner-engineyard@2x.png", 178px, 37px); 294 } 295 &.digitalocean-logo{ 296 background: image-url('partner-digitalocean.png') center center no-repeat; 297 @include img-retina("partner-digitalocean.png", "partner-digitalocean@2x.png", 134px, 85px); 298 } 299 } 300 } 301 } 302 } 303 304 .feature-graphic{ 305 margin: 0 auto; 306 } 307 308 .feature-header{ 309 310 &.right{ 311 h3, p{ 312 text-align: right; 313 display: block; 314 float: right; 315 } 316 } 317 318 h3{ 319 margin: 30px 0 20px 0; 320 color: $blue-dark; 321 letter-spacing: 1px; 322 font-size: $font-size-l; 323 font-family: $font-family-blanc; 324 line-height: 1.25em; 325 max-width: 640px; 326 } 327 328 p{ 329 margin-bottom: 30px; 330 color: $blue-light; 331 font-size: $font-size-reg+2; 332 font-family: $font-family-blanc-reg; 333 line-height: 1.75em; 334 max-width: 480px; 335 } 336 } 337 338 .feature-footer{ 339 margin-top: -50px; 340 341 p{ 342 display: inline-block; 343 color: $blue-dark; 344 font-size: $font-size-reg; 345 font-family: $font-family-blanc; 346 line-height: 1.75em; 347 max-width: 320px; 348 padding-left: 20px; 349 border-left: 1px solid $blue-faint; 350 } 351 352 .docker-outline-logo{ 353 display: inline-block; 354 width: 80px; 355 height: 67px; 356 position: relative; 357 top: 12px; 358 margin-left: 8px; 359 background: image-url('partner-docker.png') 0 0 no-repeat; 360 @include img-retina("partner-docker.png", "partner-docker@2x.png", 80px, 67px); 361 } 362 363 a{ 364 margin-bottom: 15px; 365 margin-left: 15px; 366 367 &:first-child{ 368 margin-left: 0; 369 } 370 } 371 } 372 } 373 } 374 375 @media (min-width: 1200px) { 376 377 } 378 379 380 @media (max-width: 1200px) { 381 382 } 383 384 @media (min-width: 992px) and (max-width:1200px) { 385 #cta a { 386 margin-top: 15px; 387 font-size: 18px; 388 } 389 } 390 391 @media (min-width: 768px) and (max-width:992px) { 392 #cta a { 393 margin-top: 10px; 394 } 395 } 396 397 @media (max-width: 992px) { 398 #content{ 399 .feature{ 400 &#deploy{ 401 .feature-graphic{ 402 margin-top: -60px; 403 width: 768px; 404 height: 486px; 405 background: image-url('feature-deploy.png') 0 0 no-repeat; 406 @include img-retina("feature-deploy.png", "feature-deploy@2x.png", 768px, 486px); 407 } 408 409 .feature-footer{ 410 margin-top: 0; 411 } 412 } 413 414 &#maintain{ 415 .feature-graphic{ 416 margin-top: -50px; 417 width: 768px; 418 height: 475px; 419 background: image-url('feature-manage.png') 0 0 no-repeat; 420 @include img-retina("feature-manage.png", "feature-manage@2x.png", 768px, 475px); 421 } 422 } 423 424 &#density{ 425 .feature-graphic{ 426 width: 768px; 427 height: 302px; 428 background: image-url('feature-density.png') 0 0 no-repeat; 429 @include img-retina("feature-density.png", "feature-density@2x.png", 768px, 302px); 430 } 431 } 432 433 &#partners{ 434 .partner-logos{ 435 .docker-wrap{ 436 //border: none; 437 .partner-logo{ 438 @include scale(.8); 439 margin-left: -18px; 440 } 441 } 442 .cloud-wrap{ 443 .partner-logo{ 444 @include scale(.8); 445 } 446 } 447 } 448 } 449 } 450 } 451 } 452 453 @media (max-width: 768px) { 454 #hero{ 455 #hero-graphic{ 456 @include scale(.8); 457 } 458 } 459 460 #content{ 461 .feature{ 462 &#deploy{ 463 .feature-graphic{ 464 margin-top: 0px; 465 width: 480px; 466 height: 304px; 467 background: image-url('feature-deploy.png') 0 0 no-repeat; 468 @include img-retina("feature-deploy.png", "feature-deploy@2x.png", 480px, 304px); 469 } 470 471 .feature-footer{ 472 margin-top: $small-pad; 473 474 .docker-outline-logo{ 475 width: 94px; 476 height: 63px; 477 background: image-url('partner-docker.png') 0 0 no-repeat; 478 @include img-retina("partner-docker.png", "partner-docker@2x.png", 94px, 63px); 479 } 480 } 481 } 482 483 &#maintain{ 484 .feature-graphic{ 485 margin-top: $small-pad; 486 width: 480px; 487 height: 297px; 488 background: image-url('feature-manage.png') 0 0 no-repeat; 489 @include img-retina("feature-manage.png", "feature-manage@2x.png", 480px, 297px); 490 } 491 } 492 493 &#healing{ 494 .feature-graphic{ 495 margin-top: $small-pad; 496 width: 480px; 497 height: 147px; 498 background: image-url('feature-healing.png') 0 0 no-repeat; 499 @include img-retina("feature-healing.png", "feature-healing@2x.png", 480px, 147px); 500 } 501 } 502 503 &#density{ 504 .feature-graphic{ 505 margin-top: $small-pad; 506 width: 480px; 507 height: 189px; 508 background: image-url('feature-density.png') 0 0 no-repeat; 509 @include img-retina("feature-density.png", "feature-density@2x.png", 480px, 189px); 510 } 511 } 512 513 &#partners{ 514 .partner-logo{ 515 display: block !important; 516 float: none !important; 517 width: 100% !important; 518 margin: 0 auto; 519 -webkit-transform: scale(1) !important; 520 -ms-transform: scale(1) !important; 521 transform: scale(1) !important; 522 margin-left: 0 !important; 523 height: 130px !important; 524 } 525 526 p{ 527 padding: 0 20px; 528 } 529 } 530 } 531 532 .feature-header{ 533 h3,p{ 534 text-align: center !important; 535 max-width: none !important; 536 float: none !important; 537 } 538 } 539 } 540 541 .banner{ 542 padding: 18px; 543 margin: 0 20px; 544 545 .col{ 546 text-align: center; 547 548 p{ 549 display: block; 550 margin-right: 0; 551 margin-bottom: $small-pad; 552 } 553 } 554 } 555 556 #cta{ 557 .intro{ 558 text-align: center; 559 p{ 560 text-align: center; 561 margin-bottom: 15px; 562 } 563 } 564 } 565 } 566 567 568 @media (max-width: 480px) { 569 #hero{ 570 background: none; 571 572 &:before{ 573 display: none; 574 } 575 576 #hero-graphic{ 577 height: 60px; 578 margin-top: 0; 579 @include scale(.54); 580 } 581 582 #hero-text{ 583 position: relative; 584 padding-top: 220px; 585 } 586 } 587 588 #content{ 589 .feature{ 590 &#deploy{ 591 .feature-graphic{ 592 width: 280px; 593 height: 177px; 594 background: image-url('feature-deploy.png') 0 0 no-repeat; 595 @include img-retina("feature-deploy.png", "feature-deploy@2x.png", 280px, 177px); 596 } 597 .feature-footer{ 598 .docker-outline-logo{ 599 display: block; 600 } 601 } 602 } 603 604 &#maintain{ 605 .feature-graphic{ 606 margin-top: $small-pad; 607 width: 280px; 608 height: 173px; 609 background: image-url('feature-manage.png') 0 0 no-repeat; 610 @include img-retina("feature-manage.png", "feature-manage@2x.png", 280px, 173px); 611 } 612 } 613 614 &#healing{ 615 .feature-graphic{ 616 width: 280px; 617 height: 86px; 618 background: image-url('feature-healing.png') 0 0 no-repeat; 619 @include img-retina("feature-healing.png", "feature-healing@2x.png", 280px, 86px); 620 } 621 } 622 623 &#density{ 624 .feature-graphic{ 625 width: 280px; 626 height: 110px; 627 background: image-url('feature-density.png') 0 0 no-repeat; 628 @include img-retina("feature-density.png", "feature-density@2x.png", 280px, 110px); 629 } 630 } 631 } 632 } 633 }