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

682 lines
15 KiB
SCSS
Raw Normal View History

2015-09-12 00:01:02 +00:00
//
// Home
// --------------------------------------------------
2017-03-15 01:56:38 +00:00
$font-size-xl: 44px;
$font-size-l: 36px;
$font-size-m: 28px;
$font-size-reg: 16px;
2017-03-28 03:37:59 +00:00
#page-home {
// Override the main header
#header {
background: $home-header-background-color;
.navbar-toggle {
.icon-bar {
border: 1px solid $home-header-link-color;
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
.navbar-brand {
a {
svg.logo {
@extend svg.logo.color;
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
}
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
ul.nav {
li {
a {
color: $home-header-link-color;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
&:hover, &:focus, &:active {
background-color: transparent;
color: $home-header-link-color-hover;
svg {
fill: $home-header-link-color-hover;
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
svg {
fill: $home-header-link-color;
2015-11-10 21:58:56 +00:00
}
}
}
}
}
2017-03-28 03:37:59 +00:00
#hero{
2015-11-10 21:58:56 +00:00
position: relative;
2017-03-28 03:37:59 +00:00
text-align: center;
background: image-url('nomad-giant.jpg') 0 0 no-repeat;
@include img-retina("nomad-giant.jpg", "nomad-giant.jpg", 624px, 358px);
background-size: cover !important;
overflow: hidden;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +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-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
p {
color: $gray;
text-align: center;
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
#hero-graphic{
position: absolute;
display: inline-block;
left: 50%;
top: 0;
width: 499px;
height: 340px;
margin-top: 38px;
margin-left: -250px;
z-index: 2;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
#hero-logotype{
position: absolute;
display: inline-block;
top: 75px;
left: 50%;
width: 115px;
height: 155px;
margin-left: -60px;
background: image-url('hero-logotype.png') 0 0 no-repeat;
@include img-retina("hero-logotype.png", "hero-logotype@2x.png", 115px, 155px);
}
#cubes{
.cube{
position: absolute;
top: 300px;
left: 248px;
opacity: 0.01;
transform: translate(0, 150px);
@include transition( all 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) );
&.in{
transform: translate(0, 0);
opacity: 1;
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
.face {
@include transform-origin(0 0);
position: absolute;
height: 44px;
width: 44px;
&.top{
background-color: $nomad-green;
transform: rotate(210deg) skewX(-30deg) scaleY(0.864);
}
&.left{
background-color: $nomad-green-dark;
transform: rotate(90deg) skewX(-30deg) scaleY(0.864);
}
&.right{
background-color: $nomad-green-light;
transform: rotate(-30deg) skewX(-30deg) scaleY(0.864);
}
}
}
2015-11-10 21:58:56 +00:00
}
}
2017-03-28 03:37:59 +00:00
#hero-text{
position: relative;
padding-top: 400px;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
#hero-text-content{
position: relative;
z-index: 2;
padding-bottom: 40px;
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
h1{
margin-top: 0;
color: $body-font-color;
font-size: $font-size-xl;
}
2015-09-12 00:01:02 +00:00
2017-03-28 03:37:59 +00:00
h4{
font-family: $font-family-open-sans;
font-weight: 500;
2017-03-28 14:52:36 +00:00
color: $gray;
2017-03-28 03:37:59 +00:00
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
#hero-btns{
margin-top: 26px;
.button {
margin: 10px;
}
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
#tag-line{
margin: 15px 0 20px 0;
font-size: 24px;
font-weight: 300;
2015-11-10 21:58:56 +00:00
}
p{
2017-03-28 03:37:59 +00:00
margin-top: 60px;
text-align: left;
font-size: 18px;
font-weight: 300;
line-height: 2em;
.strong{
font-size: 20px;
font-weight: 500;
}
2015-11-10 21:58:56 +00:00
}
}
2017-03-28 03:37:59 +00:00
.banner{
margin-top: 120px;
2015-11-10 21:58:56 +00:00
.col{
2017-03-28 03:37:59 +00:00
p{
line-height: 24px;
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&.gray-banner{
.col{
2017-03-28 14:52:36 +00:00
border: 1px solid $gray-light;
2017-03-28 03:37:59 +00:00
}
p{
2017-03-28 14:52:36 +00:00
color: $gray;
2017-03-28 03:37:59 +00:00
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&.green-banner{
.col{
2017-03-28 14:52:36 +00:00
border: 1px solid $gray-light;
2017-03-28 03:37:59 +00:00
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
p{
color: $body-font-color;
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&#cta-banner{
margin-top: 0;
margin-bottom: 80px;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
.col{
padding: 60px 20px;
}
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
.col{
padding: 20px;
text-align: center;
border-radius: 3px;
}
2015-09-12 00:01:02 +00:00
2017-03-28 03:37:59 +00:00
p{
margin-bottom: 0px;
margin-right: 30px;
font-size: $font-size-reg;
line-height: $font-size-reg;
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
p, a{
display: inline-block;
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
#content{
overflow: hidden;
margin-top: 120px;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
h2{
margin-bottom: 120px;
text-align: center;
font-size: $font-size-m;
2017-03-28 14:52:36 +00:00
color: $nomad-green;
2017-03-28 03:37:59 +00:00
text-transform: uppercase;
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
.feature{
position: relative;
margin-bottom: 60px;
padding-bottom: 60px;
2017-03-28 14:52:36 +00:00
border-bottom: 1px solid $gray-light;
2017-03-28 03:37:59 +00:00
&:last-child{
border-bottom: none;
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&#deploy{
.feature-graphic{
margin-top: -130px;
width: 1161px;
height: 735px;
background: image-url('feature-deploy.png') 0 0 no-repeat;
@include img-retina("feature-deploy.png", "feature-deploy@2x.png", 1161px, 735px);
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&#maintain{
.feature-graphic{
margin-top: -50px;
width: 1113px;
height: 689px;
background: image-url('feature-manage.png') 0 0 no-repeat;
@include img-retina("feature-manage.png", "feature-manage@2x.png", 1113px, 689px);
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&#healing{
.feature-graphic{
margin-top: 80px;
width: 1009px;
height: 309px;
background: image-url('feature-healing.png') 0 0 no-repeat;
@include img-retina("feature-healing.png", "feature-healing@2x.png", 1009px, 309px);
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&#density{
.feature-graphic{
margin-top: 80px;
width: 1040px;
height: 409px;
background: image-url('feature-density.png') 0 0 no-repeat;
@include img-retina("feature-density.png", "feature-density@2x.png", 1040px, 409px);
}
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
&#partners{
.partner-logos{
.docker-wrap{
2017-03-28 14:52:36 +00:00
border-right: 1px solid $gray-light;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
.partner-logo{
display: inline-block;
width: 120px;
height: 180px;
&.docker-logo{
background: image-url('partner-docker.png') center center no-repeat;
@include img-retina("partner-docker.png", "partner-docker@2x.png", 100px, 84px);
}
2015-11-10 21:58:56 +00:00
}
}
2017-03-28 03:37:59 +00:00
.cloud-wrap{
.partner-logo{
float: left;
width: 25%;
height: 180px;
&.aws-logo{
background: image-url('partner-amazon.png') center center no-repeat;
@include img-retina("partner-amazon.png", "partner-amazon@2x.png", 153px, 56px);
}
&.google-logo{
background: image-url('partner-google.png') center center no-repeat;
@include img-retina("partner-google.png", "partner-google@2x.png", 135px, 87px);
}
&.microsoft-logo{
background: image-url('partner-microsoft.png') center center no-repeat;
@include img-retina("partner-microsoft.png", "partner-microsoft@2x.png", 188px, 84px);
}
&.engineyard-logo{
background: image-url('partner-engineyard.png') center center no-repeat;
@include img-retina("partner-engineyard.png", "partner-engineyard@2x.png", 178px, 37px);
}
&.digitalocean-logo{
background: image-url('partner-digitalocean.png') center center no-repeat;
@include img-retina("partner-digitalocean.png", "partner-digitalocean@2x.png", 134px, 85px);
}
2015-11-10 21:58:56 +00:00
}
}
}
}
2017-03-28 03:37:59 +00:00
.feature-graphic{
margin: 0 auto;
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
.feature-header{
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
&.right{
h3, p{
text-align: right;
display: block;
float: right;
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
h3{
margin: 30px 0 20px 0;
color: $body-font-color;
letter-spacing: 1px;
font-size: $font-size-l;
line-height: 1.25em;
max-width: 640px;
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
p{
margin-bottom: 30px;
2017-03-28 14:52:36 +00:00
color: $gray;
2017-03-28 03:37:59 +00:00
font-size: $font-size-reg+2;
line-height: 1.75em;
max-width: 480px;
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
.feature-footer{
margin-top: -50px;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
p{
display: inline-block;
color: $body-font-color;
font-size: $font-size-reg;
line-height: 1.75em;
max-width: 320px;
padding-left: 20px;
2017-03-28 14:52:36 +00:00
border-left: 1px solid $gray-light;
2017-03-28 03:37:59 +00:00
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
.docker-outline-logo{
display: inline-block;
width: 80px;
height: 67px;
position: relative;
top: 12px;
margin-left: 8px;
background: image-url('partner-docker.png') 0 0 no-repeat;
@include img-retina("partner-docker.png", "partner-docker@2x.png", 80px, 67px);
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
a{
margin-bottom: 15px;
margin-left: 15px;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
&:first-child{
margin-left: 0;
}
2015-11-10 21:58:56 +00:00
}
}
}
}
2015-09-12 00:01:02 +00:00
2017-03-28 03:37:59 +00:00
@media (min-width: 1200px) {
2015-09-12 00:01:02 +00:00
2017-03-28 03:37:59 +00:00
}
2015-09-12 00:01:02 +00:00
2017-03-28 03:37:59 +00:00
@media (max-width: 1200px) {
2015-09-12 00:01:02 +00:00
2017-03-28 03:37:59 +00:00
}
2015-09-12 00:01:02 +00:00
2017-03-28 03:37:59 +00:00
@media (min-width: 992px) and (max-width:1200px) {
#cta a {
margin-top: 15px;
font-size: 18px;
}
2015-11-10 21:58:56 +00:00
}
2015-09-12 00:01:02 +00:00
2017-03-28 03:37:59 +00:00
@media (min-width: 768px) and (max-width:992px) {
#cta a {
margin-top: 10px;
}
2015-11-10 21:58:56 +00:00
}
2015-09-12 00:01:02 +00:00
2017-03-28 03:37:59 +00:00
@media (max-width: 992px) {
#content{
.feature{
&#deploy{
.feature-graphic{
margin-top: -60px;
width: 768px;
height: 486px;
background: image-url('feature-deploy.png') 0 0 no-repeat;
@include img-retina("feature-deploy.png", "feature-deploy@2x.png", 768px, 486px);
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
.feature-footer{
margin-top: 0;
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&#maintain{
.feature-graphic{
margin-top: -50px;
width: 768px;
height: 475px;
background: image-url('feature-manage.png') 0 0 no-repeat;
@include img-retina("feature-manage.png", "feature-manage@2x.png", 768px, 475px);
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&#density{
.feature-graphic{
width: 768px;
height: 302px;
background: image-url('feature-density.png') 0 0 no-repeat;
@include img-retina("feature-density.png", "feature-density@2x.png", 768px, 302px);
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&#partners{
.partner-logos{
.docker-wrap{
//border: none;
.partner-logo{
@include scale(.8);
margin-left: -18px;
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
.cloud-wrap{
.partner-logo{
@include scale(.8);
}
2015-11-10 21:58:56 +00:00
}
}
}
}
}
}
2015-09-12 00:01:02 +00:00
2017-03-28 03:37:59 +00:00
@media (max-width: 768px) {
#hero{
#hero-graphic{
@include scale(.8);
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
#content{
.feature{
&#deploy{
.feature-graphic{
margin-top: 0px;
width: 480px;
height: 304px;
background: image-url('feature-deploy.png') 0 0 no-repeat;
@include img-retina("feature-deploy.png", "feature-deploy@2x.png", 480px, 304px);
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
.feature-footer{
margin-top: 30px;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
.docker-outline-logo{
width: 94px;
height: 63px;
background: image-url('partner-docker.png') 0 0 no-repeat;
@include img-retina("partner-docker.png", "partner-docker@2x.png", 94px, 63px);
}
2015-11-10 21:58:56 +00:00
}
}
2017-03-28 03:37:59 +00:00
&#maintain{
.feature-graphic{
margin-top: 30px;
width: 480px;
height: 297px;
background: image-url('feature-manage.png') 0 0 no-repeat;
@include img-retina("feature-manage.png", "feature-manage@2x.png", 480px, 297px);
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&#healing{
.feature-graphic{
margin-top: 30px;
width: 480px;
height: 147px;
background: image-url('feature-healing.png') 0 0 no-repeat;
@include img-retina("feature-healing.png", "feature-healing@2x.png", 480px, 147px);
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&#density{
.feature-graphic{
margin-top: 30px;
width: 480px;
height: 189px;
background: image-url('feature-density.png') 0 0 no-repeat;
@include img-retina("feature-density.png", "feature-density@2x.png", 480px, 189px);
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +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;
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
p{
padding: 0 20px;
}
2015-11-10 21:58:56 +00:00
}
}
2017-03-28 03:37:59 +00:00
.feature-header{
h3,p{
text-align: center !important;
max-width: none !important;
float: none !important;
}
2015-11-10 21:58:56 +00:00
}
}
2017-03-28 03:37:59 +00:00
.banner{
padding: 18px;
margin: 0 20px;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
.col{
text-align: center;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
p{
display: block;
margin-right: 0;
margin-bottom: 30px;
}
2015-11-10 21:58:56 +00:00
}
}
2017-03-28 03:37:59 +00:00
#cta{
.intro{
2015-11-10 21:58:56 +00:00
text-align: center;
2017-03-28 03:37:59 +00:00
p{
text-align: center;
margin-bottom: 15px;
}
2015-11-10 21:58:56 +00:00
}
}
}
2015-09-12 00:01:02 +00:00
2017-03-28 03:37:59 +00:00
@media (max-width: 480px) {
#hero{
background: none;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
&:before{
display: none;
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
#hero-graphic{
height: 60px;
margin-top: 0;
@include scale(.54);
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
#hero-text{
position: relative;
padding-top: 220px;
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
#content{
.feature{
&#deploy{
.feature-graphic{
width: 280px;
height: 177px;
background: image-url('feature-deploy.png') 0 0 no-repeat;
@include img-retina("feature-deploy.png", "feature-deploy@2x.png", 280px, 177px);
}
.feature-footer{
.docker-outline-logo{
display: block;
}
2015-11-10 21:58:56 +00:00
}
}
2017-03-28 03:37:59 +00:00
&#maintain{
.feature-graphic{
margin-top: 30px;
width: 280px;
height: 173px;
background: image-url('feature-manage.png') 0 0 no-repeat;
@include img-retina("feature-manage.png", "feature-manage@2x.png", 280px, 173px);
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&#healing{
.feature-graphic{
width: 280px;
height: 86px;
background: image-url('feature-healing.png') 0 0 no-repeat;
@include img-retina("feature-healing.png", "feature-healing@2x.png", 280px, 86px);
}
2015-11-10 21:58:56 +00:00
}
2017-03-28 03:37:59 +00:00
&#density{
.feature-graphic{
width: 280px;
height: 110px;
background: image-url('feature-density.png') 0 0 no-repeat;
@include img-retina("feature-density.png", "feature-density@2x.png", 280px, 110px);
}
2015-11-10 21:58:56 +00:00
}
}
}
}
2015-09-12 00:01:02 +00:00
}