terraform/website/source/assets/stylesheets/_home.scss

805 lines
13 KiB
SCSS
Raw Normal View History

2014-07-16 23:51:48 +02:00
//
// Home
// --------------------------------------------------
2014-07-23 00:31:43 +02:00
2016-10-04 20:07:55 +02:00
body.page-home {
2016-10-31 17:53:26 +01:00
h2.tag-line {
2017-02-13 23:41:09 +01:00
font-size: 40px;
}
2016-10-05 23:05:07 +02:00
#primary-cta{
2016-10-31 23:21:39 +01:00
position: relative;
2016-10-11 04:08:13 +02:00
margin-top: -30px;
2016-10-31 23:21:39 +01:00
padding-bottom: 40px;
2016-10-05 23:05:07 +02:00
color: $white;
background: $black;
2016-10-31 23:21:39 +01:00
z-index: 99;
2016-10-06 01:47:07 +02:00
2016-10-11 04:08:13 +02:00
.terra-btn{
margin-top: 30px;
2016-10-06 01:47:07 +02:00
}
2016-10-05 23:05:07 +02:00
}
.temp-skew {
2016-10-31 23:21:39 +01:00
position: relative;
height: 240px;
background-color: #000;
@include skewY(-3deg);
margin-top: -100px;
-webkit-backface-visibility: hidden;
border: 2px solid #000;
2016-10-31 23:21:39 +01:00
z-index: 0;
}
2016-10-05 23:05:07 +02:00
#customer-logos{
position: relative;
width: 100%;
2016-10-07 20:00:02 +02:00
margin-top: -100px;
2016-10-05 23:05:07 +02:00
padding: 60px 0;
color: $white;
2016-10-07 20:00:02 +02:00
>.container {
z-index: 91;
2016-10-07 20:00:02 +02:00
}
p {
2016-10-11 04:08:13 +02:00
text-transform: uppercase;
letter-spacing: 2px;
}
2016-10-07 20:00:02 +02:00
#customer-logos-bg{
z-index: 30;
2016-10-07 20:00:02 +02:00
background: $black;
background-size: 100%;
2016-10-08 01:43:51 +02:00
@include skewY(-3deg);
2016-10-07 20:00:02 +02:00
}
2014-07-16 23:51:48 +02:00
}
2016-10-04 20:07:55 +02:00
ul.customer-list{
2016-10-11 04:08:13 +02:00
padding-left: 15px;
2016-10-05 23:05:07 +02:00
2016-10-10 19:43:42 +02:00
li{
display: inline-block;
2016-10-11 04:08:13 +02:00
width: 16%;
height: 80px;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
2016-10-04 20:07:55 +02:00
}
#nike {
2016-10-11 04:08:13 +02:00
background: transparent image-url("customer-logos/nike.svg") left no-repeat;
background-size: 80px;
}
#hbo {
2016-10-11 04:08:13 +02:00
background: transparent image-url("customer-logos/hbo.svg") left no-repeat;
background-size: 80px;
}
#target {
2016-10-11 04:08:13 +02:00
background: transparent image-url("customer-logos/target.svg") left no-repeat;
background-size: 50px;
}
#capital-one {
2016-10-11 04:08:13 +02:00
background: transparent image-url("customer-logos/capital-one.svg") left no-repeat;
background-size: 100px;
}
#home-depot {
2016-10-11 04:08:13 +02:00
background: transparent image-url("customer-logos/home-depot.svg") left no-repeat;
background-size: 50px;
}
#hotels-dot-com {
2016-10-11 04:08:13 +02:00
background: transparent image-url("customer-logos/hotels-dot-com.svg") left no-repeat;
background-size: 100px;
}
2016-10-04 20:07:55 +02:00
}
2016-10-03 22:06:23 +02:00
2016-10-04 20:07:55 +02:00
#feature-overview{
position: relative;
2016-10-05 20:53:28 +02:00
padding: 120px 0;
2016-10-04 20:07:55 +02:00
border-bottom: 2px solid #E6E7E8;
z-index: 80;
2016-10-04 20:07:55 +02:00
}
2016-10-03 22:06:23 +02:00
2016-10-10 19:43:42 +02:00
.feature-card{
2016-10-31 20:18:45 +01:00
display: block;
height: 200px;
2016-10-04 20:07:55 +02:00
border: 2px solid #E6E7E8;
margin-bottom: 15px;
2016-10-04 20:07:55 +02:00
padding:20px;
font-size: 18px;
2016-10-04 20:07:55 +02:00
h3{
margin:0;
padding: 0;
color: $purple;
font-size: 16px;
line-height: 1.2;
2016-10-04 20:07:55 +02:00
font-weight: 400;
text-transform: uppercase;
}
2016-10-04 20:07:55 +02:00
p{
2016-10-31 20:18:45 +01:00
color: #000;
font-size: 16px;
line-height: 1.2;
2016-10-04 20:07:55 +02:00
font-weight: 400;
text-transform: uppercase;
letter-spacing: 1px;
}
2016-10-05 01:03:46 +02:00
&.feature-card-write{
background: image-url("feature-card-write.svg") left 20px top 70% no-repeat;
background-size: 80%;
2016-10-05 01:03:46 +02:00
}
&.feature-card-plan{
background: image-url("feature-card-plan.svg") left 0 top 69% no-repeat;
background-size: 100%;
2016-10-05 01:03:46 +02:00
}
&.feature-card-create{
background: image-url("feature-card-create.svg") left 0 top 70% no-repeat;
background-size: 80%;
2016-10-05 01:03:46 +02:00
}
2016-10-31 20:18:45 +01:00
&:hover {
border: 2px solid $purple;
text-decoration: none;
}
}
2014-07-23 01:29:54 +02:00
2016-10-10 19:43:42 +02:00
.feature{
p.lead{
max-width: 30em;
}
}
.skew-item{
>.container{
position: relative;
top: 0;
z-index: 11;
}
.feature-skew{
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
}
}
2016-10-04 20:07:55 +02:00
#feature-write{
2016-10-05 20:53:28 +02:00
position: relative;
padding: 180px 0 120px;
2016-10-05 20:53:28 +02:00
margin-top: -80px;
2016-10-05 20:53:28 +02:00
>.container {
z-index: 71;
2016-10-05 20:53:28 +02:00
}
// This svg appears twice in the markup and swapped for layout purposes.
// Image for small screens. Styles below are for larger screens.
#feature-image-write-sm-screen {
display: block;
position: relative;
margin: 0 auto;
width:80%;
max-width: 400px;
}
// Image hidden, made visible for larger screens
#feature-image-write-lg-screen {
display: none;
position: absolute;
bottom: 2px;
right: 3%;
width: 581px;
@include skewY(-3deg);
}
2016-10-05 20:53:28 +02:00
#feature-write-bg{
background: $white;
z-index: 70;
@include skewY(3deg);
overflow: hidden;
2016-10-05 20:53:28 +02:00
}
2014-07-23 12:22:08 +02:00
}
2016-10-04 20:07:55 +02:00
#feature-plan{
position: relative;
color: $white;
2016-10-05 21:31:21 +02:00
background-size: 80%;
2016-10-05 20:53:28 +02:00
position: relative;
padding: 220px 0 180px;
2016-10-05 20:53:28 +02:00
margin-top: -80px;
2016-10-04 20:07:55 +02:00
2016-10-05 20:53:28 +02:00
>.container {
z-index: 61;
2016-10-14 20:34:27 +02:00
// background: image-url("feature-plan-bg.svg") 0% 45% no-repeat;
2016-10-05 21:31:21 +02:00
background-size: 100%;
}
2016-10-14 20:34:27 +02:00
// This svg appears twice in the markup and swapped for layout purposes.
// Image for small screens. Styles below are for larger screens.
#feature-image-plan-sm-screen {
display: block;
position: relative;
margin: 0 auto;
width: 100%;
max-width: 400px;
}
// Image hidden, made visible for larger screens
#feature-image-plan-lg-screen {
display: none;
position: relative;
width: 100%;
2016-10-05 20:53:28 +02:00
}
2014-07-23 04:39:04 +02:00
2016-10-05 20:53:28 +02:00
#feature-plan-bg{
background: $purple;
z-index: 60;
@include skewY(-3deg);
2016-10-05 20:53:28 +02:00
}
2014-07-23 07:09:12 +02:00
}
2014-07-23 07:13:48 +02:00
2016-10-04 20:07:55 +02:00
#feature-create{
position: relative;
margin-top: -80px;
padding: 240px 0 180px;
2014-07-23 04:39:04 +02:00
2016-10-04 20:07:55 +02:00
>.container{
z-index: 51;
2014-07-23 04:39:04 +02:00
}
2016-10-14 20:35:32 +02:00
#feature-image-create {
2016-10-14 20:34:27 +02:00
display: block;
max-width: 500px;
padding-left: 10px;
margin: 0 auto;
margin-bottom: 40px;
}
#feature-image-create-lg-screen{
display: none;
2016-10-05 21:39:53 +02:00
}
2016-10-04 20:07:55 +02:00
#feature-create-bg{
@include skewY(3deg);
z-index: 50;
overflow: hidden;
2014-07-23 04:39:04 +02:00
}
2016-10-04 20:07:55 +02:00
}
2014-07-23 04:39:04 +02:00
2016-10-04 20:07:55 +02:00
#demos{
position: relative;
padding: 120px 0 60px;
2016-10-04 20:07:55 +02:00
margin-top: -80px;
2016-10-04 20:07:55 +02:00
>.container{
z-index: 41;
2016-10-04 20:07:55 +02:00
}
2014-07-16 23:51:48 +02:00
2016-10-04 20:07:55 +02:00
#demo-bg{
background-color: #E6E7E8;
@include skewY(3deg);
z-index: 40;
2016-10-04 20:07:55 +02:00
}
2014-07-16 23:51:48 +02:00
2016-10-04 20:07:55 +02:00
h2{
text-align: center;
}
p {
margin-bottom: 20px;
2014-07-16 23:51:48 +02:00
}
2016-10-04 20:07:55 +02:00
.terminals{
margin-bottom: 80px;
2014-07-16 23:51:48 +02:00
2016-10-04 20:07:55 +02:00
.terminal-item{
2016-10-05 03:11:15 +02:00
margin-bottom: 80px;
2014-07-16 23:51:48 +02:00
2016-10-04 20:07:55 +02:00
&.last{
border-bottom: none;
2014-07-16 23:51:48 +02:00
}
2016-10-04 20:07:55 +02:00
>header{
.left{
span.icn{
display: inline-block;
width: 83px;
height: 74px;
}
2014-07-16 23:51:48 +02:00
}
2016-10-04 20:07:55 +02:00
.right{
padding-left: 25px;
2014-07-16 23:51:48 +02:00
}
2016-10-04 20:07:55 +02:00
}
2014-07-16 23:51:48 +02:00
2016-10-04 20:07:55 +02:00
.terminal{
2016-10-04 20:07:55 +02:00
border: 2px solid #1e1e1e;
background: $black;
//border-radius: 4px;
header{
position: relative;
text-align: center;
padding: 3px;
border-bottom: 2px solid #1e1e1e;
h4{
font-size: 14px;
letter-spacing: 1px;
color: white;
}
2014-07-16 23:51:48 +02:00
2016-10-04 20:07:55 +02:00
ul.shell-dots{
position: absolute;
top: 10px;
left: 8px;
padding-left: 0;
li{
&.d1{
background-color: #4a08a7;
}
&.d2{
background-color: #6517cf;
}
&.d3{
background-color: #7b29ee;
}
display: inline-block;
width: 12px;
height: 12px;
border-radius: 6px;
margin-left: 6px;
2014-07-23 01:53:39 +02:00
}
2014-07-16 23:51:48 +02:00
}
}
2016-10-04 20:07:55 +02:00
.terminal-window{
min-height: 140px;
padding: 20px;
font-size: 15px;
color: $white;
background-color: transparent;
overflow:auto;
font-weight: 500;
-webkit-font-smoothing: subpixel-antialiased;
p {
font-family: "Courier New", Monaco, Menlo, Consolas, monospace;
}
2016-10-04 20:07:55 +02:00
.txt-spe {
color: lighten($blue, 5%);
font-weight: 600;
}
2014-07-29 02:30:12 +02:00
2016-10-04 20:07:55 +02:00
.txt-var {
color: lighten($purple, 8%);
font-weight: 600;
}
2014-07-29 02:30:12 +02:00
2016-10-04 20:07:55 +02:00
.txt-str {
color: lighten($green, 2%);
}
2014-07-29 02:30:12 +02:00
2016-10-04 20:07:55 +02:00
.txt-int {
color: lighten($orange, 2%);
font-weight: 600;
}
2014-07-29 02:30:12 +02:00
2016-10-04 20:07:55 +02:00
p{
margin-bottom: 2px;
white-space: pre-wrap;
}
.cursor {
background-color: lighten($purple, 5%);
}
2014-07-16 23:51:48 +02:00
}
}
2016-10-04 20:07:55 +02:00
.feature-bullets{
list-style-type: none;
padding-left: 35px;
2014-07-16 23:51:48 +02:00
2016-10-04 20:07:55 +02:00
li{
padding: 5px 0 5px 45px;
}
2014-07-16 23:51:48 +02:00
}
}
}
}
2016-10-11 17:55:19 +02:00
#demo-cta{
2016-10-05 03:08:55 +02:00
text-align: center;
}
#latest-announcement{
position: relative;
2016-10-05 20:53:28 +02:00
margin-top: -80px;
padding: 160px 0 200px;
color: $white;
text-align: left;
2016-10-11 18:13:59 +02:00
>.container{
z-index: 51;
}
h2{
margin-bottom: 60px;
}
.latest-col-right{
position: relative;
padding-left: 60px;
&:after{
content: '';
position: absolute;
left: 30px;
top: 0;
width: 2px;
height: 100%;
background-color: rgba(255, 255, 255, .15);
}
}
.latest-item{
&.latest-item-text{
border-bottom: 2px solid rgba(255, 255, 255, .15);
&:first-child{
h3{
margin-top: 0;
}
}
&:last-child{
border-bottom: none;
}
}
img{
box-shadow: 8px 8px 8px rgba(0,0,0,.25);
margin-bottom: 10px;
max-width: 100%;
}
h3{
line-height: 1.2;
font-family: $font-family-open-sans;
text-transform: none;
}
p{
margin-bottom: 10px;
}
a{
margin-top: 5px;
margin-bottom: 10px;
}
}
}
#latest-announcement-bg{
@include skewY(-3deg);
z-index: 30;
2016-10-05 21:51:35 +02:00
background: $purple image-url("latest-announce-bg.svg") bottom left no-repeat;
background-size: cover;
}
2016-10-10 19:47:47 +02:00
#enterprise-intro{
2016-10-05 04:27:35 +02:00
position: relative;
padding: 220px 0 180px;
2016-10-05 20:53:28 +02:00
margin-top: -80px;
2016-10-05 04:27:35 +02:00
color: #fff;
2016-10-10 19:47:47 +02:00
>.container{
z-index: 31;
2016-10-05 20:53:28 +02:00
}
2016-10-10 19:47:47 +02:00
h2{
2016-10-06 01:47:07 +02:00
position: relative;
left: -5px;
margin-bottom: 20px;
background: image-url("terraform-enterprise-logo.svg") top left no-repeat;
background-size: 320px;
2016-10-06 01:47:07 +02:00
overflow: hidden;
span {margin-left: -200%}
}
2016-10-10 19:47:47 +02:00
.lead{
2016-10-05 04:27:35 +02:00
max-width: 30em;
2016-10-06 01:47:07 +02:00
margin-bottom: 40px;
2016-10-05 04:27:35 +02:00
}
2016-10-05 20:53:28 +02:00
2016-10-10 19:47:47 +02:00
#enterprise-intro-bg{
2016-10-05 20:53:28 +02:00
background: #000 image-url("enterprise-callout-bg.svg") bottom right no-repeat;
2016-10-06 20:47:27 +02:00
background-size: 80%;
2016-10-05 20:53:28 +02:00
@include skewY(3deg);
z-index: 20;
2016-10-05 20:53:28 +02:00
}
2016-10-05 04:27:35 +02:00
}
2014-07-24 20:58:22 +02:00
2016-10-04 20:07:55 +02:00
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
#demos{
.terminals{
.terminal-item{
.feature-bullets{
li{
background-size: 12px 12px;
}
2014-07-24 20:58:22 +02:00
}
}
}
}
}
@media (min-width: 768px) {
#feature-write{
// Hide image for small screens
#feature-image-write-sm-screen {
display: none;
}
2014-07-24 20:58:22 +02:00
// Image hidden, made visible for larger screens
#feature-image-write-lg-screen {
display: block;
}
}
2016-10-14 20:34:27 +02:00
#feature-plan{
// Hide image for small screens
#feature-image-plan-sm-screen {
display: none;
}
// Image hidden, made visible for larger screens
#feature-image-plan-lg-screen {
display: block;
}
}
}
2014-07-24 21:34:13 +02:00
@media (min-width: 1024px) {
#feature-write{
#feature-image-write-lg-screen {
right: 10%;
width: 640px;
}
}
2014-07-24 21:34:13 +02:00
}
@media (min-width: 1440px) {
2016-10-31 23:21:39 +01:00
2016-10-31 23:02:48 +01:00
#feature-write{
2016-10-31 23:08:20 +01:00
padding: 280px 0 200px;
2016-10-31 23:02:48 +01:00
margin-top: -120px;
}
#feature-plan{
padding: 320px 0 200px;
margin-top: -120px;
}
2016-10-31 23:02:48 +01:00
#feature-create{
padding: 320px 0 200px;
margin-top: -120px;
}
#latest-announcement{
2016-10-31 23:03:59 +01:00
margin-top: -140px;
padding: 180px 0 240px;
}
#enterprise-intro{
2016-10-31 23:03:59 +01:00
margin-top: -140px;
padding: 320px 0 180px;
}
}
2016-10-04 20:07:55 +02:00
@media (max-width: 992px) {
2016-10-04 20:07:55 +02:00
#demos{
.terminals{
.terminal-item{
>header{
.left{
span.icn{
}
2014-07-16 23:51:48 +02:00
}
2016-10-04 20:07:55 +02:00
.right{
padding-left: 54px;
}
2014-07-16 23:51:48 +02:00
}
}
}
}
#latest-announcement{
.latest-col-left{
.latest-item{
border-bottom: 2px solid rgba(255, 255, 255, .15);
}
}
.latest-col-right{
padding-left: 15px;
&:after{
width: 0;
}
}
.latest-item{
padding-bottom: 30px;
margin-bottom: 30px;
&.latest-item-text{
border-bottom: 2px solid rgba(255, 255, 255, .15);
&:first-child{
h3{
margin-top: 20px;
}
}
}
}
}
2014-07-16 23:51:48 +02:00
}
2016-10-04 20:07:55 +02:00
@media (max-width: 768px) {
h2{
margin-bottom: 40px;
font-size: 28px;
line-height: 32px;
letter-spacing: 2px;
text-transform: uppercase;
font-weight: regular;
}
h3{
margin-bottom: 10px;
font-size: 16px;
line-height: 1.2;
letter-spacing: 1px;
text-transform: uppercase;
font-weight: bold;
}
p{
font-size: 14px;
}
p.lead{
font-size: 17px;
}
2014-07-24 20:43:14 +02:00
#primary-cta{
padding-bottom: 100px;
}
#customer-logos{
padding: 40px 0;
p {
display: block;
position: relative;
width: 100%;
text-align: center;
}
#customer-logos-bg{
z-index: 30;
background: $black;
background-size: 100%;
@include skewY(-3deg);
}
ul.customer-list{
padding-left: 15px;
li{
display: inline-block;
width: 16%;
height: 80px;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
#nike {
background: transparent image-url("customer-logos/nike.svg") left no-repeat;
background-size: 40px;
}
#hbo {
background: transparent image-url("customer-logos/hbo.svg") left no-repeat;
background-size: 40px;
}
#target {
background: transparent image-url("customer-logos/target.svg") left no-repeat;
background-size: 30px;
}
#capital-one {
background: transparent image-url("customer-logos/capital-one.svg") left no-repeat;
background-size: 40px;
}
#home-depot {
background: transparent image-url("customer-logos/home-depot.svg") left no-repeat;
background-size: 30px;
}
#hotels-dot-com {
background: transparent image-url("customer-logos/hotels-dot-com.svg") left no-repeat;
background-size: 40px;
}
}
ul.customer-list{
display: block;
position: relative;
width: 100%;
margin: 0 auto;
padding: 0;
text-align: center;
li{
display: inline-block;
position: relative;
width: 40px;
height: 40px;
margin: 0 2%;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
2016-10-04 20:07:55 +02:00
}
}
#demos{
2014-07-25 00:59:37 +02:00
2016-10-04 20:07:55 +02:00
.terminals{
.terminal-item{
>header{
.left{
span.icn{
padding-bottom: 15px;
}
2014-07-16 23:51:48 +02:00
}
2016-10-04 20:07:55 +02:00
.right{
padding-left: 15px;
}
2014-07-16 23:51:48 +02:00
}
}
}
}
2014-07-24 02:14:03 +02:00
}
2014-07-24 03:26:26 +02:00
}