github.com/nevins-b/terraform@v0.3.8-0.20170215184714-bbae22007d5a/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: 240px 0 160px; 438 color: $white; 439 text-align: center; 440 441 >.container{ 442 z-index: 51; 443 } 444 } 445 446 #latest-announcement-bg{ 447 @include skewY(-3deg); 448 z-index: 30; 449 background: $purple image-url("latest-announce-bg.svg") bottom left no-repeat; 450 background-size: cover; 451 } 452 453 #enterprise-intro{ 454 position: relative; 455 padding: 220px 0 180px; 456 margin-top: -80px; 457 color: #fff; 458 459 >.container{ 460 z-index: 31; 461 } 462 463 h2{ 464 position: relative; 465 left: -5px; 466 margin-bottom: 20px; 467 background: image-url("terraform-enterprise-logo.svg") top left no-repeat; 468 background-size: 320px; 469 overflow: hidden; 470 471 span {margin-left: -200%} 472 } 473 474 .lead{ 475 max-width: 30em; 476 margin-bottom: 40px; 477 } 478 479 #enterprise-intro-bg{ 480 background: #000 image-url("enterprise-callout-bg.svg") bottom right no-repeat; 481 background-size: 80%; 482 @include skewY(3deg); 483 z-index: 20; 484 } 485 } 486 487 @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { 488 #demos{ 489 .terminals{ 490 .terminal-item{ 491 .feature-bullets{ 492 li{ 493 background-size: 12px 12px; 494 } 495 } 496 } 497 } 498 } 499 } 500 501 @media (min-width: 768px) { 502 #feature-write{ 503 // Hide image for small screens 504 #feature-image-write-sm-screen { 505 display: none; 506 } 507 508 // Image hidden, made visible for larger screens 509 #feature-image-write-lg-screen { 510 display: block; 511 } 512 } 513 514 #feature-plan{ 515 // Hide image for small screens 516 #feature-image-plan-sm-screen { 517 display: none; 518 } 519 520 // Image hidden, made visible for larger screens 521 #feature-image-plan-lg-screen { 522 display: block; 523 } 524 } 525 } 526 527 @media (min-width: 1024px) { 528 #feature-write{ 529 #feature-image-write-lg-screen { 530 right: 10%; 531 width: 640px; 532 } 533 } 534 } 535 536 @media (min-width: 1440px) { 537 538 #feature-write{ 539 padding: 280px 0 200px; 540 margin-top: -120px; 541 } 542 543 #feature-plan{ 544 padding: 320px 0 200px; 545 margin-top: -120px; 546 } 547 548 #feature-create{ 549 padding: 320px 0 200px; 550 margin-top: -120px; 551 } 552 553 #latest-announcement{ 554 margin-top: -140px; 555 padding: 320px 0 180px; 556 } 557 558 #enterprise-intro{ 559 margin-top: -140px; 560 padding: 320px 0 180px; 561 } 562 } 563 564 @media (max-width: 992px) { 565 566 567 #demos{ 568 .terminals{ 569 .terminal-item{ 570 >header{ 571 .left{ 572 span.icn{ 573 } 574 } 575 576 .right{ 577 padding-left: 54px; 578 } 579 } 580 } 581 } 582 } 583 } 584 585 @media (max-width: 768px) { 586 h2{ 587 margin-bottom: 40px; 588 font-size: 28px; 589 line-height: 32px; 590 letter-spacing: 2px; 591 text-transform: uppercase; 592 font-weight: regular; 593 } 594 595 h3{ 596 margin-bottom: 10px; 597 font-size: 16px; 598 line-height: 1.2; 599 letter-spacing: 1px; 600 text-transform: uppercase; 601 font-weight: bold; 602 } 603 604 p{ 605 font-size: 14px; 606 } 607 608 p.lead{ 609 font-size: 17px; 610 } 611 612 #primary-cta{ 613 padding-bottom: 100px; 614 } 615 616 #customer-logos{ 617 padding: 40px 0; 618 619 p { 620 display: block; 621 position: relative; 622 width: 100%; 623 text-align: center; 624 } 625 626 #customer-logos-bg{ 627 z-index: 30; 628 background: $black; 629 background-size: 100%; 630 @include skewY(-3deg); 631 632 } 633 634 ul.customer-list{ 635 padding-left: 15px; 636 637 li{ 638 display: inline-block; 639 width: 16%; 640 height: 80px; 641 text-indent: 100%; 642 white-space: nowrap; 643 overflow: hidden; 644 } 645 646 #nike { 647 background: transparent image-url("customer-logos/nike.svg") left no-repeat; 648 background-size: 40px; 649 } 650 651 #hbo { 652 background: transparent image-url("customer-logos/hbo.svg") left no-repeat; 653 background-size: 40px; 654 } 655 656 #target { 657 background: transparent image-url("customer-logos/target.svg") left no-repeat; 658 background-size: 30px; 659 } 660 661 #capital-one { 662 background: transparent image-url("customer-logos/capital-one.svg") left no-repeat; 663 background-size: 40px; 664 } 665 666 #home-depot { 667 background: transparent image-url("customer-logos/home-depot.svg") left no-repeat; 668 background-size: 30px; 669 } 670 671 #hotels-dot-com { 672 background: transparent image-url("customer-logos/hotels-dot-com.svg") left no-repeat; 673 background-size: 40px; 674 } 675 } 676 677 ul.customer-list{ 678 display: block; 679 position: relative; 680 width: 100%; 681 margin: 0 auto; 682 padding: 0; 683 text-align: center; 684 685 li{ 686 display: inline-block; 687 position: relative; 688 width: 40px; 689 height: 40px; 690 margin: 0 2%; 691 text-indent: 100%; 692 white-space: nowrap; 693 overflow: hidden; 694 } 695 } 696 } 697 698 699 #demos{ 700 701 .terminals{ 702 .terminal-item{ 703 >header{ 704 .left{ 705 span.icn{ 706 padding-bottom: 15px; 707 } 708 } 709 710 .right{ 711 padding-left: 15px; 712 } 713 } 714 } 715 } 716 } 717 } 718 }