open-nomad/website/source/assets/stylesheets/_home.scss

591 lines
12 KiB
SCSS
Raw Normal View History

2015-09-12 00:01:02 +00:00
//
// Home
// --------------------------------------------------
#hero{
2015-09-19 21:38:18 +00:00
position: relative;
2015-09-12 00:01:02 +00:00
@include translate3d(0, -10px, 0);
text-align: center;
2015-09-28 06:41:16 +00:00
//background: image-url('../images/nomad-bg.png') 0 0 repeat;
//@include img-retina("../images/nomad-bg.png", "../images/nomad-bg@2x.png", 624px, 358px);
background: image-url('../images/nomad-giant.jpg') 0 0 no-repeat;
@include img-retina("../images/nomad-giant.jpg", "../images/nomad-giant.jpg", 624px, 358px);
background-color: $green-dark;
background-size: cover !important;
2015-09-28 00:47:21 +00:00
overflow: hidden;
2015-09-19 21:38:18 +00:00
&:before{
content: '';
position: absolute;
top: -20px;
left: 50%;
width: 1000px;
height: 1000px;
margin-left: -500px;
border-radius: 500px;
background-color: $white;
z-index: 1;
}
2015-09-12 00:01:02 +00:00
#hero-graphic{
2015-09-28 00:47:21 +00:00
position: absolute;
2015-09-12 00:01:02 +00:00
display: inline-block;
2015-09-28 00:47:21 +00:00
left: 50%;
top: 0;
2015-09-12 00:01:02 +00:00
width: 499px;
height: 340px;
2015-09-28 00:47:21 +00:00
margin-top: 38px;
margin-left: -250px;
2015-09-19 21:38:18 +00:00
z-index: 2;
2015-09-12 00:01:02 +00:00
#hero-logotype{
position: absolute;
display: inline-block;
2015-09-19 21:38:18 +00:00
top: 75px;
left: 50%;
2015-09-12 00:01:02 +00:00
width: 115px;
height: 155px;
2015-09-19 21:38:18 +00:00
margin-left: -60px;
2015-09-12 00:01:02 +00:00
background: image-url('../images/hero-logotype.png') 0 0 no-repeat;
@include img-retina("../images/hero-logotype.png", "../images/hero-logotype@2x.png", 115px, 155px);
}
#cubes{
.cube{
position: absolute;
top: 300px;
left: 248px;
opacity: 0.01;
@include transform( translate(0, 150px) );
@include transition( all 1.5s $easeInOutBack );
&.in{
@include transform( translate(0, 0) );
opacity: 1;
}
.face {
@include transform-origin(0 0);
position: absolute;
height: 44px;
width: 44px;
&.top{
background-color: $green;
@include transform(rotate(210deg) skewX(-30deg) scaleY(0.864) );
}
&.left{
background-color: $green-dark;
@include transform(rotate(90deg) skewX(-30deg) scaleY(0.864) );
}
&.right{
background-color: $green-light;
@include transform(rotate(-30deg) skewX(-30deg) scaleY(0.864) );
}
}
}
}
}
#hero-text{
position: relative;
2015-09-28 00:47:21 +00:00
padding-top: 400px;
2015-09-19 21:38:18 +00:00
#hero-text-content{
position: relative;
z-index: 2;
padding-bottom: 40px;
}
2015-09-12 00:01:02 +00:00
h1{
2015-09-27 22:44:44 +00:00
margin-top: 0;
2015-09-12 00:01:02 +00:00
color: $blue-dark;
font-size: $font-size-xl;
font-family: $font-family-blanc;
}
2015-09-28 02:07:18 +00:00
h4{
2015-09-12 00:01:02 +00:00
color: $blue-light;
font-family: $font-family-blanc;
}
#hero-btns{
margin-top: 26px;
a{
}
}
}
#tag-line{
margin: 15px 0 20px 0;
font-size: 24px;
font-weight: 300;
}
p{
margin-top: 60px;
text-align: left;
font-size: 18px;
font-weight: 300;
line-height: 2em;
.strong{
font-size: 20px;
font-weight: 500;
}
}
}
.banner{
margin-top: 120px;
&.gray-banner{
.col{
border: 1px solid $blue-faint;
}
p{
color: $blue-light;
}
}
&.green-banner{
.col{
border: 1px solid $blue-faint;
}
p{
color: $blue-dark;
}
}
&#cta-banner{
margin-top: 0;
margin-bottom: 80px;
.col{
padding: 60px 20px;
}
}
.col{
padding: 20px;
text-align: center;
border-radius: 3px;
}
p{
margin-bottom: 0px;
margin-right: 30px;
font-size: $font-size-reg;
line-height: $font-size-reg;
font-family: $font-family-blanc-reg;
}
p, a{
display: inline-block;
}
}
#content{
overflow: hidden;
margin-top: 120px;
h2{
margin-bottom: 120px;
text-align: center;
font-size: $font-size-m;
font-family: $font-family-blanc;
color: $green;
text-transform: uppercase;
}
.feature{
position: relative;
2015-09-19 20:42:18 +00:00
margin-bottom: 60px;
padding-bottom: 60px;
2015-09-12 00:01:02 +00:00
border-bottom: 1px solid $blue-faint;
&:last-child{
border-bottom: none;
}
&#deploy{
2015-09-28 02:07:18 +00:00
.feature-graphic{
margin-top: -130px;
width: 1161px;
height: 735px;
background: image-url('../images/feature-deploy.png') 0 0 no-repeat;
@include img-retina("../images/feature-deploy.png", "../images/feature-deploy@2x.png", 1161px, 735px);
}
2015-09-12 00:01:02 +00:00
}
&#maintain{
.feature-graphic{
margin-top: -50px;
width: 1113px;
height: 689px;
background: image-url('../images/feature-manage.png') 0 0 no-repeat;
@include img-retina("../images/feature-manage.png", "../images/feature-manage@2x.png", 1113px, 689px);
}
}
&#healing{
.feature-graphic{
margin-top: 80px;
width: 1009px;
height: 309px;
background: image-url('../images/feature-healing.png') 0 0 no-repeat;
@include img-retina("../images/feature-healing.png", "../images/feature-healing@2x.png", 1009px, 309px);
}
}
&#density{
.feature-graphic{
margin-top: 80px;
width: 1040px;
height: 409px;
background: image-url('../images/feature-density.png') 0 0 no-repeat;
@include img-retina("../images/feature-density.png", "../images/feature-density@2x.png", 1040px, 409px);
}
}
&#partners{
.partner-logos{
.docker-wrap{
border-right: 1px solid $blue-faint;
.partner-logo{
display: inline-block;
width: 120px;
height: 180px;
&.docker-logo{
background: image-url('../images/partner-docker.png') center center no-repeat;
@include img-retina("../images/partner-docker.png", "../images/partner-docker@2x.png", 100px, 84px);
}
}
}
.cloud-wrap{
.partner-logo{
float: left;
width: 25%;
height: 180px;
&.aws-logo{
background: image-url('../images/partner-amazon.png') center center no-repeat;
@include img-retina("../images/partner-amazon.png", "../images/partner-amazon@2x.png", 153px, 56px);
}
&.google-logo{
background: image-url('../images/partner-google.png') center center no-repeat;
@include img-retina("../images/partner-google.png", "../images/partner-google@2x.png", 135px, 87px);
}
&.microsoft-logo{
background: image-url('../images/partner-microsoft.png') center center no-repeat;
@include img-retina("../images/partner-microsoft.png", "../images/partner-microsoft@2x.png", 188px, 84px);
}
&.engineyard-logo{
background: image-url('../images/partner-engineyard.png') center center no-repeat;
@include img-retina("../images/partner-engineyard.png", "../images/partner-engineyard@2x.png", 178px, 37px);
}
2015-09-19 20:00:09 +00:00
&.digitalocean-logo{
background: image-url('../images/partner-digitalocean.png') center center no-repeat;
@include img-retina("../images/partner-digitalocean.png", "../images/partner-digitalocean@2x.png", 134px, 85px);
}
2015-09-12 00:01:02 +00:00
}
}
}
}
.feature-graphic{
margin: 0 auto;
}
.feature-header{
&.right{
h3, p{
text-align: right;
display: block;
float: right;
}
}
h3{
margin: 30px 0 20px 0;
color: $blue-dark;
letter-spacing: 1px;
font-size: $font-size-l;
font-family: $font-family-blanc;
line-height: 1.25em;
max-width: 640px;
}
p{
margin-bottom: 30px;
color: $blue-light;
font-size: $font-size-reg+2;
font-family: $font-family-blanc-reg;
line-height: 1.75em;
max-width: 480px;
}
}
.feature-footer{
2015-09-28 02:07:18 +00:00
margin-top: -50px;
2015-09-12 00:01:02 +00:00
p{
display: inline-block;
color: $blue-dark;
font-size: $font-size-reg;
font-family: $font-family-blanc;
line-height: 1.75em;
max-width: 320px;
padding-left: 20px;
border-left: 1px solid $blue-faint;
}
.docker-outline-logo{
display: inline-block;
width: 125px;
height: 80px;
2015-09-28 02:07:18 +00:00
position: relative;
top: 12px;
margin-left: 10px;
2015-09-12 00:01:02 +00:00
background: image-url('../images/icon-docker-outline.png') 0 0 no-repeat;
@include img-retina("../images/icon-docker-outline.png", "../images/icon-docker-outline@2x.png", 125px, 80px);
}
a{
margin-bottom: 15px;
margin-left: 15px;
&:first-child{
margin-left: 0;
}
}
}
}
#cta {
position: relative;
padding: 160px 0;
background: image-url('../images/bg-iconscrud.png') center center no-repeat;
@include img-retina("../images/bg-icons.png", "../images/bg-icons@2x.png", 669px, 260px);
background-position: center center;
border-top: 1px solid $faint-gray;
border-bottom: 1px solid $faint-gray;
a{
margin-bottom: 5px;
}
p{
margin-top: 10px;
color: $black;
font-size: 14px;
font-weight: 600;
line-height: 1.5esm;
&.cta-gray{
color: $gray;
font-weight: 300;
}
}
.outline-btn {
padding: 16px 40px;
display: inline-block;
&:focus {
outline: 0;
}
}
}
}
@media (min-width: 1200px) {
}
@media (max-width: 1200px) {
}
@media (min-width: 992px) and (max-width:1200px) {
#cta a {
margin-top: 15px;
font-size: 18px;
}
}
@media (min-width: 768px) and (max-width:992px) {
#cta a {
margin-top: 10px;
}
}
@media (max-width: 992px) {
2015-09-28 02:07:18 +00:00
#content{
.feature{
&#deploy{
.feature-graphic{
margin-top: -60px;
width: 768px;
height: 486px;
background: image-url('../images/feature-deploy.png') 0 0 no-repeat;
@include img-retina("../images/feature-deploy.png", "../images/feature-deploy@2x.png", 768px, 486px);
}
2015-09-12 00:01:02 +00:00
2015-09-28 02:07:18 +00:00
.feature-footer{
margin-top: 0;
}
}
2015-09-28 04:55:13 +00:00
&#partners{
.partner-logos{
.docker-wrap{
//border: none;
.partner-logo{
@include scale(.8);
margin-left: -18px;
}
}
.cloud-wrap{
.partner-logo{
@include scale(.8);
}
}
}
}
2015-09-28 02:07:18 +00:00
}
}
2015-09-12 00:01:02 +00:00
}
@media (max-width: 768px) {
2015-09-28 00:47:21 +00:00
#hero{
#hero-graphic{
@include scale(.8);
}
}
2015-09-28 02:07:18 +00:00
#content{
.feature{
&#deploy{
.feature-graphic{
margin-top: 0px;
width: 480px;
height: 304px;
background: image-url('../images/feature-deploy.png') 0 0 no-repeat;
@include img-retina("../images/feature-deploy.png", "../images/feature-deploy@2x.png", 480px, 304px);
}
.feature-footer{
margin-top: $small-pad;
.docker-outline-logo{
width: 94px;
height: 63px;
background: image-url('../images/icon-docker-outline.png') 0 0 no-repeat;
@include img-retina("../images/icon-docker-outline.png", "../images/icon-docker-outline@2x.png", 94px, 63px);
}
}
}
2015-09-28 04:55:13 +00:00
&#partners{
.partner-logo{
display: block !important;
float: none !important;
width: 100% !important;
margin: 0 auto;
-webkit-transform: scale(1) !important;
-ms-transform: scale(1) !important;
transform: scale(1) !important;
margin-left: 0 !important;
height: 130px !important;
}
p{
padding: 0 20px;
}
}
2015-09-28 02:07:18 +00:00
}
.feature-header{
h3,p{
text-align: center !important;
max-width: none !important;
2015-09-28 04:55:13 +00:00
float: none !important;
2015-09-28 02:07:18 +00:00
}
}
}
2015-09-12 00:01:02 +00:00
#cta{
.intro{
text-align: center;
p{
text-align: center;
margin-bottom: 15px;
}
}
}
}
@media (max-width: 480px) {
#hero{
2015-09-28 00:47:21 +00:00
background: none;
&:before{
display: none;
2015-09-12 00:01:02 +00:00
}
2015-09-28 00:47:21 +00:00
#hero-graphic{
height: 60px;
margin-top: 0;
@include scale(.54);
2015-09-12 00:01:02 +00:00
}
2015-09-28 00:47:21 +00:00
#hero-text{
position: relative;
padding-top: 220px;
2015-09-12 00:01:02 +00:00
}
}
2015-09-28 02:07:18 +00:00
#content{
.feature{
&#deploy{
.feature-graphic{
width: 280px;
height: 177px;
background: image-url('../images/feature-deploy.png') 0 0 no-repeat;
@include img-retina("../images/feature-deploy.png", "../images/feature-deploy@2x.png", 280px, 177px);
}
.feature-footer{
.docker-outline-logo{
display: block;
}
}
}
}
}
2015-09-12 00:01:02 +00:00
}
@media (max-width: 320px) {
#hero{
#diagram{
width: 100%;
height: 132px;
background: image-url('../images/hero.png') center 0 no-repeat;
@include img-retina("../images/hero.png", "../images/hero@2x.png", 320px, 132px);
}
}
#cta a {
font-size: 14px;
font-weight: 400;
}
}