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