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