github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/assets/stylesheets/_home.scss (about) 1 // 2 // Home 3 // -------------------------------------------------- 4 5 body.page-home { 6 h2.tag-line { 7 font-size: 40px; 8 } 9 10 #primary-cta{ 11 position: relative; 12 margin-top: -30px; 13 padding-bottom: 40px; 14 color: $white; 15 background: $black; 16 z-index: 99; 17 18 .terra-btn{ 19 margin-top: 30px; 20 } 21 } 22 23 .temp-skew { 24 position: relative; 25 height: 240px; 26 background-color: #000; 27 @include skewY(-3deg); 28 margin-top: -100px; 29 -webkit-backface-visibility: hidden; 30 border: 2px solid #000; 31 z-index: 0; 32 } 33 34 #customer-logos{ 35 position: relative; 36 width: 100%; 37 margin-top: -100px; 38 padding: 60px 0; 39 color: $white; 40 41 >.container { 42 z-index: 91; 43 } 44 45 p { 46 text-transform: uppercase; 47 letter-spacing: 2px; 48 } 49 50 #customer-logos-bg{ 51 z-index: 30; 52 background: $black; 53 background-size: 100%; 54 @include skewY(-3deg); 55 } 56 } 57 58 ul.customer-list{ 59 padding-left: 15px; 60 61 li{ 62 display: inline-block; 63 width: 16%; 64 height: 80px; 65 text-indent: 100%; 66 white-space: nowrap; 67 overflow: hidden; 68 } 69 70 #nike { 71 background: transparent image-url("customer-logos/nike.svg") left no-repeat; 72 background-size: 80px; 73 } 74 75 #hbo { 76 background: transparent image-url("customer-logos/hbo.svg") left no-repeat; 77 background-size: 80px; 78 } 79 80 #target { 81 background: transparent image-url("customer-logos/target.svg") left no-repeat; 82 background-size: 50px; 83 } 84 85 #capital-one { 86 background: transparent image-url("customer-logos/capital-one.svg") left no-repeat; 87 background-size: 100px; 88 } 89 90 #home-depot { 91 background: transparent image-url("customer-logos/home-depot.svg") left no-repeat; 92 background-size: 50px; 93 } 94 95 #hotels-dot-com { 96 background: transparent image-url("customer-logos/hotels-dot-com.svg") left no-repeat; 97 background-size: 100px; 98 } 99 } 100 101 #feature-overview{ 102 position: relative; 103 padding: 120px 0; 104 border-bottom: 2px solid #E6E7E8; 105 z-index: 80; 106 } 107 108 .feature-card{ 109 display: block; 110 height: 200px; 111 border: 2px solid #E6E7E8; 112 margin-bottom: 15px; 113 padding:20px; 114 font-size: 18px; 115 116 h3{ 117 margin:0; 118 padding: 0; 119 color: $purple; 120 font-size: 16px; 121 line-height: 1.2; 122 font-weight: 400; 123 text-transform: uppercase; 124 } 125 126 p{ 127 color: #000; 128 font-size: 16px; 129 line-height: 1.2; 130 font-weight: 400; 131 text-transform: uppercase; 132 letter-spacing: 1px; 133 } 134 135 &.feature-card-write{ 136 background: image-url("feature-card-write.svg") left 20px top 70% no-repeat; 137 background-size: 80%; 138 } 139 140 &.feature-card-plan{ 141 background: image-url("feature-card-plan.svg") left 0 top 69% no-repeat; 142 background-size: 100%; 143 } 144 145 &.feature-card-create{ 146 background: image-url("feature-card-create.svg") left 0 top 70% no-repeat; 147 background-size: 80%; 148 } 149 150 &:hover { 151 border: 2px solid $purple; 152 text-decoration: none; 153 } 154 } 155 156 .feature{ 157 158 p.lead{ 159 max-width: 30em; 160 } 161 } 162 163 .skew-item{ 164 >.container{ 165 position: relative; 166 top: 0; 167 z-index: 11; 168 } 169 170 .feature-skew{ 171 position: absolute; 172 top: 0px; 173 bottom: 0px; 174 left: 0px; 175 width: 100%; 176 height: 100%; 177 } 178 } 179 180 #feature-write{ 181 position: relative; 182 padding: 180px 0 120px; 183 margin-top: -80px; 184 185 186 >.container { 187 z-index: 71; 188 } 189 190 // This svg appears twice in the markup and swapped for layout purposes. 191 // Image for small screens. Styles below are for larger screens. 192 #feature-image-write-sm-screen { 193 display: block; 194 position: relative; 195 margin: 0 auto; 196 width:80%; 197 max-width: 400px; 198 } 199 200 // Image hidden, made visible for larger screens 201 #feature-image-write-lg-screen { 202 display: none; 203 position: absolute; 204 bottom: 2px; 205 right: 3%; 206 width: 581px; 207 @include skewY(-3deg); 208 } 209 210 #feature-write-bg{ 211 background: $white; 212 z-index: 70; 213 @include skewY(3deg); 214 overflow: hidden; 215 } 216 } 217 218 #feature-plan{ 219 position: relative; 220 color: $white; 221 background-size: 80%; 222 position: relative; 223 padding: 220px 0 180px; 224 margin-top: -80px; 225 226 >.container { 227 z-index: 61; 228 // background: image-url("feature-plan-bg.svg") 0% 45% no-repeat; 229 background-size: 100%; 230 } 231 232 // This svg appears twice in the markup and swapped for layout purposes. 233 // Image for small screens. Styles below are for larger screens. 234 #feature-image-plan-sm-screen { 235 display: block; 236 position: relative; 237 margin: 0 auto; 238 width: 100%; 239 max-width: 400px; 240 } 241 242 // Image hidden, made visible for larger screens 243 #feature-image-plan-lg-screen { 244 display: none; 245 position: relative; 246 width: 100%; 247 } 248 249 #feature-plan-bg{ 250 background: $purple; 251 z-index: 60; 252 @include skewY(-3deg); 253 } 254 } 255 256 #feature-create{ 257 position: relative; 258 margin-top: -80px; 259 padding: 240px 0 180px; 260 261 >.container{ 262 z-index: 51; 263 } 264 265 #feature-image-create { 266 display: block; 267 max-width: 500px; 268 padding-left: 10px; 269 margin: 0 auto; 270 margin-bottom: 40px; 271 } 272 273 #feature-image-create-lg-screen{ 274 display: none; 275 } 276 277 #feature-create-bg{ 278 @include skewY(3deg); 279 280 z-index: 50; 281 overflow: hidden; 282 } 283 } 284 285 #demos{ 286 position: relative; 287 padding: 120px 0 60px; 288 margin-top: -80px; 289 290 >.container{ 291 z-index: 41; 292 } 293 294 #demo-bg{ 295 background-color: #E6E7E8; 296 @include skewY(3deg); 297 z-index: 40; 298 } 299 300 h2{ 301 text-align: center; 302 } 303 304 p { 305 margin-bottom: 20px; 306 } 307 308 .terminals{ 309 margin-bottom: 80px; 310 311 .terminal-item{ 312 margin-bottom: 80px; 313 314 &.last{ 315 border-bottom: none; 316 } 317 >header{ 318 .left{ 319 span.icn{ 320 display: inline-block; 321 width: 83px; 322 height: 74px; 323 } 324 } 325 326 .right{ 327 padding-left: 25px; 328 } 329 } 330 331 .terminal{ 332 333 border: 2px solid #1e1e1e; 334 background: $black; 335 //border-radius: 4px; 336 337 header{ 338 position: relative; 339 text-align: center; 340 padding: 3px; 341 border-bottom: 2px solid #1e1e1e; 342 343 h4{ 344 font-size: 14px; 345 letter-spacing: 1px; 346 color: white; 347 } 348 349 ul.shell-dots{ 350 position: absolute; 351 top: 10px; 352 left: 8px; 353 padding-left: 0; 354 355 li{ 356 &.d1{ 357 background-color: #4a08a7; 358 } 359 &.d2{ 360 background-color: #6517cf; 361 } 362 &.d3{ 363 background-color: #7b29ee; 364 } 365 366 display: inline-block; 367 width: 12px; 368 height: 12px; 369 border-radius: 6px; 370 margin-left: 6px; 371 } 372 } 373 } 374 375 .terminal-window{ 376 min-height: 140px; 377 padding: 20px; 378 font-size: 15px; 379 color: $white; 380 background-color: transparent; 381 overflow:auto; 382 font-weight: 500; 383 -webkit-font-smoothing: subpixel-antialiased; 384 385 p { 386 font-family: "Courier New", Monaco, Menlo, Consolas, monospace; 387 } 388 389 .txt-spe { 390 color: lighten($blue, 5%); 391 font-weight: 600; 392 } 393 394 .txt-var { 395 color: lighten($purple, 8%); 396 font-weight: 600; 397 } 398 399 .txt-str { 400 color: lighten($green, 2%); 401 } 402 403 .txt-int { 404 color: lighten($orange, 2%); 405 font-weight: 600; 406 } 407 408 p{ 409 margin-bottom: 2px; 410 white-space: pre-wrap; 411 } 412 .cursor { 413 background-color: lighten($purple, 5%); 414 } 415 } 416 } 417 418 .feature-bullets{ 419 list-style-type: none; 420 padding-left: 35px; 421 422 li{ 423 padding: 5px 0 5px 45px; 424 } 425 } 426 } 427 } 428 } 429 430 #demo-cta{ 431 text-align: center; 432 } 433 434 #latest-announcement{ 435 position: relative; 436 margin-top: -80px; 437 padding: 160px 0 200px; 438 color: $white; 439 text-align: left; 440 441 >.container{ 442 z-index: 51; 443 } 444 445 h2{ 446 margin-bottom: 60px; 447 } 448 449 .latest-col-right{ 450 position: relative; 451 padding-left: 60px; 452 453 &:after{ 454 content: ''; 455 position: absolute; 456 left: 30px; 457 top: 0; 458 width: 2px; 459 height: 100%; 460 background-color: rgba(255, 255, 255, .15); 461 } 462 } 463 464 .latest-item{ 465 &.latest-item-text{ 466 border-bottom: 2px solid rgba(255, 255, 255, .15); 467 468 &:first-child{ 469 h3{ 470 margin-top: 0; 471 } 472 } 473 474 &:last-child{ 475 border-bottom: none; 476 } 477 } 478 479 img{ 480 box-shadow: 8px 8px 8px rgba(0,0,0,.25); 481 margin-bottom: 10px; 482 max-width: 100%; 483 } 484 485 h3{ 486 line-height: 1.2; 487 font-family: $font-family-open-sans; 488 text-transform: none; 489 } 490 491 p{ 492 margin-bottom: 10px; 493 } 494 495 a{ 496 margin-top: 5px; 497 margin-bottom: 10px; 498 } 499 } 500 } 501 502 #latest-announcement-bg{ 503 @include skewY(-3deg); 504 z-index: 30; 505 background: $purple image-url("latest-announce-bg.svg") bottom left no-repeat; 506 background-size: cover; 507 } 508 509 #enterprise-intro{ 510 position: relative; 511 padding: 220px 0 180px; 512 margin-top: -80px; 513 color: #fff; 514 515 >.container{ 516 z-index: 31; 517 } 518 519 h2{ 520 position: relative; 521 left: -5px; 522 margin-bottom: 20px; 523 background: image-url("terraform-enterprise-logo.svg") top left no-repeat; 524 background-size: 320px; 525 overflow: hidden; 526 527 span {margin-left: -200%} 528 } 529 530 .lead{ 531 max-width: 30em; 532 margin-bottom: 40px; 533 } 534 535 #enterprise-intro-bg{ 536 background: #000 image-url("enterprise-callout-bg.svg") bottom right no-repeat; 537 background-size: 80%; 538 @include skewY(3deg); 539 z-index: 20; 540 } 541 } 542 543 @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { 544 #demos{ 545 .terminals{ 546 .terminal-item{ 547 .feature-bullets{ 548 li{ 549 background-size: 12px 12px; 550 } 551 } 552 } 553 } 554 } 555 } 556 557 @media (min-width: 768px) { 558 #feature-write{ 559 // Hide image for small screens 560 #feature-image-write-sm-screen { 561 display: none; 562 } 563 564 // Image hidden, made visible for larger screens 565 #feature-image-write-lg-screen { 566 display: block; 567 } 568 } 569 570 #feature-plan{ 571 // Hide image for small screens 572 #feature-image-plan-sm-screen { 573 display: none; 574 } 575 576 // Image hidden, made visible for larger screens 577 #feature-image-plan-lg-screen { 578 display: block; 579 } 580 } 581 } 582 583 @media (min-width: 1024px) { 584 #feature-write{ 585 #feature-image-write-lg-screen { 586 right: 10%; 587 width: 640px; 588 } 589 } 590 } 591 592 @media (min-width: 1440px) { 593 594 #feature-write{ 595 padding: 280px 0 200px; 596 margin-top: -120px; 597 } 598 599 #feature-plan{ 600 padding: 320px 0 200px; 601 margin-top: -120px; 602 } 603 604 #feature-create{ 605 padding: 320px 0 200px; 606 margin-top: -120px; 607 } 608 609 #latest-announcement{ 610 margin-top: -140px; 611 padding: 180px 0 240px; 612 } 613 614 #enterprise-intro{ 615 margin-top: -140px; 616 padding: 320px 0 180px; 617 } 618 } 619 620 @media (max-width: 992px) { 621 622 #demos{ 623 .terminals{ 624 .terminal-item{ 625 >header{ 626 .left{ 627 span.icn{ 628 } 629 } 630 631 .right{ 632 padding-left: 54px; 633 } 634 } 635 } 636 } 637 } 638 639 #latest-announcement{ 640 .latest-col-left{ 641 .latest-item{ 642 border-bottom: 2px solid rgba(255, 255, 255, .15); 643 } 644 } 645 646 .latest-col-right{ 647 padding-left: 15px; 648 649 &:after{ 650 width: 0; 651 } 652 } 653 654 .latest-item{ 655 padding-bottom: 30px; 656 margin-bottom: 30px; 657 658 &.latest-item-text{ 659 border-bottom: 2px solid rgba(255, 255, 255, .15); 660 661 &:first-child{ 662 h3{ 663 margin-top: 20px; 664 } 665 } 666 } 667 } 668 } 669 } 670 671 @media (max-width: 768px) { 672 h2{ 673 margin-bottom: 40px; 674 font-size: 28px; 675 line-height: 32px; 676 letter-spacing: 2px; 677 text-transform: uppercase; 678 font-weight: regular; 679 } 680 681 h3{ 682 margin-bottom: 10px; 683 font-size: 16px; 684 line-height: 1.2; 685 letter-spacing: 1px; 686 text-transform: uppercase; 687 font-weight: bold; 688 } 689 690 p{ 691 font-size: 14px; 692 } 693 694 p.lead{ 695 font-size: 17px; 696 } 697 698 #primary-cta{ 699 padding-bottom: 100px; 700 } 701 702 #customer-logos{ 703 padding: 40px 0; 704 705 p { 706 display: block; 707 position: relative; 708 width: 100%; 709 text-align: center; 710 } 711 712 #customer-logos-bg{ 713 z-index: 30; 714 background: $black; 715 background-size: 100%; 716 @include skewY(-3deg); 717 718 } 719 720 ul.customer-list{ 721 padding-left: 15px; 722 723 li{ 724 display: inline-block; 725 width: 16%; 726 height: 80px; 727 text-indent: 100%; 728 white-space: nowrap; 729 overflow: hidden; 730 } 731 732 #nike { 733 background: transparent image-url("customer-logos/nike.svg") left no-repeat; 734 background-size: 40px; 735 } 736 737 #hbo { 738 background: transparent image-url("customer-logos/hbo.svg") left no-repeat; 739 background-size: 40px; 740 } 741 742 #target { 743 background: transparent image-url("customer-logos/target.svg") left no-repeat; 744 background-size: 30px; 745 } 746 747 #capital-one { 748 background: transparent image-url("customer-logos/capital-one.svg") left no-repeat; 749 background-size: 40px; 750 } 751 752 #home-depot { 753 background: transparent image-url("customer-logos/home-depot.svg") left no-repeat; 754 background-size: 30px; 755 } 756 757 #hotels-dot-com { 758 background: transparent image-url("customer-logos/hotels-dot-com.svg") left no-repeat; 759 background-size: 40px; 760 } 761 } 762 763 ul.customer-list{ 764 display: block; 765 position: relative; 766 width: 100%; 767 margin: 0 auto; 768 padding: 0; 769 text-align: center; 770 771 li{ 772 display: inline-block; 773 position: relative; 774 width: 40px; 775 height: 40px; 776 margin: 0 2%; 777 text-indent: 100%; 778 white-space: nowrap; 779 overflow: hidden; 780 } 781 } 782 } 783 784 785 #demos{ 786 787 .terminals{ 788 .terminal-item{ 789 >header{ 790 .left{ 791 span.icn{ 792 padding-bottom: 15px; 793 } 794 } 795 796 .right{ 797 padding-left: 15px; 798 } 799 } 800 } 801 } 802 } 803 } 804 }