github.com/huiliang/nomad@v0.2.1-0.20151124023127-7a8b664699ff/website/source/assets/stylesheets/_home.scss (about)

     1  //
     2  // Home
     3  // --------------------------------------------------
     4  
     5  #hero{
     6    position: relative;
     7    text-align: center;
     8    background: image-url('../images/nomad-giant.jpg') 0 0 no-repeat;
     9    @include img-retina("../images/nomad-giant.jpg", "../images/nomad-giant.jpg", 624px, 358px);
    10    background-size: cover !important;
    11    overflow: hidden;
    12  
    13    &:before{
    14      content: '';
    15      position: absolute;
    16      top: -20px;
    17      left: 50%;
    18      width: 1000px;
    19      height: 1000px;
    20      margin-left: -500px;
    21      border-radius: 500px;
    22      background-color: $white;
    23      z-index: 1;
    24    }
    25  
    26    #hero-graphic{
    27      position: absolute;
    28      display: inline-block;
    29      left: 50%;
    30      top: 0;
    31      width: 499px;
    32      height: 340px;
    33      margin-top: 38px;
    34      margin-left: -250px;
    35      z-index: 2;
    36  
    37      #hero-logotype{
    38        position: absolute;
    39        display: inline-block;
    40        top: 75px;
    41        left: 50%;
    42        width: 115px;
    43        height: 155px;
    44        margin-left: -60px;
    45        background: image-url('../images/hero-logotype.png') 0 0 no-repeat;
    46        @include img-retina("../images/hero-logotype.png", "../images/hero-logotype@2x.png", 115px, 155px);
    47      }
    48  
    49      #cubes{
    50        .cube{
    51          position: absolute;
    52          top: 300px;
    53          left: 248px;
    54          opacity: 0.01;
    55          @include transform( translate(0, 150px) );
    56          @include transition( all 1.5s $easeInOutBack );
    57  
    58          &.in{
    59            @include transform( translate(0, 0) );
    60            opacity: 1;
    61          }
    62  
    63          .face {
    64            @include transform-origin(0 0);
    65            position: absolute;
    66            height: 44px;
    67            width: 44px;
    68  
    69            &.top{
    70              background-color: $green;
    71              @include transform(rotate(210deg) skewX(-30deg) scaleY(0.864) );
    72            }
    73            &.left{
    74              background-color: $green-dark;
    75              @include transform(rotate(90deg) skewX(-30deg) scaleY(0.864) );
    76            }
    77            &.right{
    78              background-color: $green-light;
    79              @include transform(rotate(-30deg) skewX(-30deg) scaleY(0.864) );
    80            }
    81          }
    82        }
    83      }
    84    }
    85  
    86    #hero-text{
    87      position: relative;
    88      padding-top: 400px;
    89  
    90      #hero-text-content{
    91        position: relative;
    92        z-index: 2;
    93        padding-bottom: 40px;
    94      }
    95  
    96      h1{
    97        margin-top: 0;
    98        color: $blue-dark;
    99        font-size: $font-size-xl;
   100        font-family: $font-family-blanc;
   101      }
   102  
   103      h4{
   104        color: $blue-light;
   105        font-family: $font-family-blanc;
   106      }
   107  
   108      #hero-btns{
   109        margin-top: 26px;
   110        a{
   111  
   112        }
   113      }
   114    }
   115  
   116    #tag-line{
   117      margin: 15px 0 20px 0;
   118      font-size: 24px;
   119      font-weight: 300;
   120    }
   121  
   122    p{
   123      margin-top: 60px;
   124      text-align: left;
   125      font-size: 18px;
   126      font-weight: 300;
   127      line-height: 2em;
   128  
   129      .strong{
   130        font-size: 20px;
   131        font-weight: 500;
   132      }
   133    }
   134  }
   135  
   136  .banner{
   137    margin-top: 120px;
   138  
   139    .col{
   140      p{
   141        line-height: 24px;
   142      }
   143    }
   144  
   145    &.gray-banner{
   146      .col{
   147        border: 1px solid $blue-faint;
   148      }
   149  
   150      p{
   151        color: $blue-light;
   152      }
   153    }
   154  
   155    &.green-banner{
   156      .col{
   157        border: 1px solid $blue-faint;
   158      }
   159  
   160      p{
   161        color: $blue-dark;
   162      }
   163    }
   164  
   165    &#cta-banner{
   166      margin-top: 0;
   167      margin-bottom: 80px;
   168  
   169      .col{
   170        padding: 60px 20px;
   171      }
   172    }
   173  
   174    .col{
   175      padding: 20px;
   176      text-align: center;
   177      border-radius: 3px;
   178    }
   179  
   180    p{
   181      margin-bottom: 0px;
   182      margin-right: 30px;
   183      font-size: $font-size-reg;
   184      line-height: $font-size-reg;
   185      font-family: $font-family-blanc-reg;
   186    }
   187  
   188    p, a{
   189      display: inline-block;
   190    }
   191  }
   192  
   193  #content{
   194    overflow: hidden;
   195    margin-top: 120px;
   196  
   197    h2{
   198      margin-bottom: 120px;
   199      text-align: center;
   200      font-size: $font-size-m;
   201      font-family: $font-family-blanc;
   202      color: $green;
   203      text-transform: uppercase;
   204    }
   205  
   206    .feature{
   207      position: relative;
   208      margin-bottom: 60px;
   209      padding-bottom: 60px;
   210      border-bottom: 1px solid $blue-faint;
   211  
   212      &:last-child{
   213        border-bottom: none;
   214      }
   215  
   216      &#deploy{
   217        .feature-graphic{
   218          margin-top: -130px;
   219          width: 1161px;
   220          height: 735px;
   221          background: image-url('../images/feature-deploy.png') 0 0 no-repeat;
   222          @include img-retina("../images/feature-deploy.png", "../images/feature-deploy@2x.png", 1161px, 735px);
   223        }
   224      }
   225  
   226      &#maintain{
   227        .feature-graphic{
   228          margin-top: -50px;
   229          width: 1113px;
   230          height: 689px;
   231          background: image-url('../images/feature-manage.png') 0 0 no-repeat;
   232          @include img-retina("../images/feature-manage.png", "../images/feature-manage@2x.png", 1113px, 689px);
   233        }
   234      }
   235  
   236      &#healing{
   237        .feature-graphic{
   238          margin-top: 80px;
   239          width: 1009px;
   240          height: 309px;
   241          background: image-url('../images/feature-healing.png') 0 0 no-repeat;
   242          @include img-retina("../images/feature-healing.png", "../images/feature-healing@2x.png", 1009px, 309px);
   243        }
   244      }
   245  
   246      &#density{
   247        .feature-graphic{
   248          margin-top: 80px;
   249          width: 1040px;
   250          height: 409px;
   251          background: image-url('../images/feature-density.png') 0 0 no-repeat;
   252          @include img-retina("../images/feature-density.png", "../images/feature-density@2x.png", 1040px, 409px);
   253        }
   254      }
   255  
   256      &#partners{
   257        .partner-logos{
   258          .docker-wrap{
   259            border-right: 1px solid $blue-faint;
   260  
   261            .partner-logo{
   262              display: inline-block;
   263              width: 120px;
   264              height: 180px;
   265  
   266              &.docker-logo{
   267                background: image-url('../images/partner-docker.png') center center no-repeat;
   268                @include img-retina("../images/partner-docker.png", "../images/partner-docker@2x.png", 100px, 84px);
   269              }
   270            }
   271          }
   272  
   273          .cloud-wrap{
   274            .partner-logo{
   275              float: left;
   276              width: 25%;
   277              height: 180px;
   278  
   279              &.aws-logo{
   280                background: image-url('../images/partner-amazon.png') center center no-repeat;
   281                @include img-retina("../images/partner-amazon.png", "../images/partner-amazon@2x.png", 153px, 56px);
   282              }
   283              &.google-logo{
   284                background: image-url('../images/partner-google.png') center center no-repeat;
   285                @include img-retina("../images/partner-google.png", "../images/partner-google@2x.png", 135px, 87px);
   286              }
   287              &.microsoft-logo{
   288                background: image-url('../images/partner-microsoft.png') center center no-repeat;
   289                @include img-retina("../images/partner-microsoft.png", "../images/partner-microsoft@2x.png", 188px, 84px);
   290              }
   291              &.engineyard-logo{
   292                background: image-url('../images/partner-engineyard.png') center center no-repeat;
   293                @include img-retina("../images/partner-engineyard.png", "../images/partner-engineyard@2x.png", 178px, 37px);
   294              }
   295              &.digitalocean-logo{
   296                background: image-url('../images/partner-digitalocean.png') center center no-repeat;
   297                @include img-retina("../images/partner-digitalocean.png", "../images/partner-digitalocean@2x.png", 134px, 85px);
   298              }
   299            }
   300          }
   301        }
   302      }
   303  
   304      .feature-graphic{
   305        margin: 0 auto;
   306      }
   307  
   308      .feature-header{
   309  
   310        &.right{
   311          h3, p{
   312            text-align: right;
   313            display: block;
   314            float: right;
   315          }
   316        }
   317  
   318        h3{
   319          margin: 30px 0 20px 0;
   320          color: $blue-dark;
   321          letter-spacing: 1px;
   322          font-size: $font-size-l;
   323          font-family: $font-family-blanc;
   324          line-height: 1.25em;
   325          max-width: 640px;
   326        }
   327  
   328        p{
   329          margin-bottom: 30px;
   330          color: $blue-light;
   331          font-size: $font-size-reg+2;
   332          font-family: $font-family-blanc-reg;
   333          line-height: 1.75em;
   334          max-width: 480px;
   335        }
   336      }
   337  
   338      .feature-footer{
   339        margin-top: -50px;
   340  
   341        p{
   342          display: inline-block;
   343          color: $blue-dark;
   344          font-size: $font-size-reg;
   345          font-family: $font-family-blanc;
   346          line-height: 1.75em;
   347          max-width: 320px;
   348          padding-left: 20px;
   349          border-left: 1px solid $blue-faint;
   350        }
   351  
   352        .docker-outline-logo{
   353          display: inline-block;
   354          width: 80px;
   355          height: 67px;
   356          position: relative;
   357          top: 12px;
   358          margin-left: 8px;
   359          background: image-url('../images/partner-docker.png') 0 0 no-repeat;
   360          @include img-retina("../images/partner-docker.png", "../images/partner-docker@2x.png", 80px, 67px);
   361        }
   362  
   363        a{
   364          margin-bottom: 15px;
   365          margin-left: 15px;
   366  
   367          &:first-child{
   368            margin-left: 0;
   369          }
   370        }
   371      }
   372    }
   373  
   374    #cta {
   375      position: relative;
   376      padding: 160px 0;
   377      background: image-url('../images/bg-iconscrud.png') center center no-repeat;
   378      @include img-retina("../images/bg-icons.png", "../images/bg-icons@2x.png", 669px, 260px);
   379      background-position: center center;
   380      border-top: 1px solid $faint-gray;
   381      border-bottom: 1px solid $faint-gray;
   382  
   383      a{
   384        margin-bottom: 5px;
   385      }
   386  
   387      p{
   388        margin-top: 10px;
   389        color: $black;
   390        font-size: 14px;
   391        font-weight: 600;
   392        line-height: 1.5esm;
   393  
   394        &.cta-gray{
   395          color: $gray;
   396          font-weight: 300;
   397        }
   398      }
   399  
   400      .outline-btn {
   401        padding: 16px 40px;
   402        display: inline-block;
   403        &:focus {
   404          outline: 0;
   405        }
   406      }
   407    }
   408  }
   409  
   410  @media (min-width: 1200px) {
   411  
   412  }
   413  
   414  
   415  @media (max-width: 1200px) {
   416  
   417  }
   418  
   419  @media (min-width: 992px) and (max-width:1200px) {
   420    #cta a {
   421      margin-top: 15px;
   422      font-size: 18px;
   423    }
   424  }
   425  
   426  @media (min-width: 768px) and (max-width:992px) {
   427    #cta a {
   428      margin-top: 10px;
   429    }
   430  }
   431  
   432  @media (max-width: 992px) {
   433    #content{
   434      .feature{
   435        &#deploy{
   436          .feature-graphic{
   437            margin-top: -60px;
   438            width: 768px;
   439            height: 486px;
   440            background: image-url('../images/feature-deploy.png') 0 0 no-repeat;
   441            @include img-retina("../images/feature-deploy.png", "../images/feature-deploy@2x.png", 768px, 486px);
   442          }
   443  
   444          .feature-footer{
   445            margin-top: 0;
   446          }
   447        }
   448  
   449        &#maintain{
   450          .feature-graphic{
   451            margin-top: -50px;
   452            width: 768px;
   453            height: 475px;
   454            background: image-url('../images/feature-manage.png') 0 0 no-repeat;
   455            @include img-retina("../images/feature-manage.png", "../images/feature-manage@2x.png", 768px, 475px);
   456          }
   457        }
   458  
   459        &#density{
   460          .feature-graphic{
   461            width: 768px;
   462            height: 302px;
   463            background: image-url('../images/feature-density.png') 0 0 no-repeat;
   464            @include img-retina("../images/feature-density.png", "../images/feature-density@2x.png", 768px, 302px);
   465          }
   466        }
   467  
   468        &#partners{
   469          .partner-logos{
   470            .docker-wrap{
   471              //border: none;
   472              .partner-logo{
   473                @include scale(.8);
   474                margin-left: -18px;
   475              }
   476            }
   477            .cloud-wrap{
   478              .partner-logo{
   479                @include scale(.8);
   480              }
   481            }
   482          }
   483        }
   484      }
   485    }
   486  }
   487  
   488  @media (max-width: 768px) {
   489    #hero{
   490      #hero-graphic{
   491        @include scale(.8);
   492      }
   493    }
   494  
   495    #content{
   496      .feature{
   497        &#deploy{
   498          .feature-graphic{
   499            margin-top: 0px;
   500            width: 480px;
   501            height: 304px;
   502            background: image-url('../images/feature-deploy.png') 0 0 no-repeat;
   503            @include img-retina("../images/feature-deploy.png", "../images/feature-deploy@2x.png", 480px, 304px);
   504          }
   505  
   506          .feature-footer{
   507            margin-top: $small-pad;
   508  
   509            .docker-outline-logo{
   510              width: 94px;
   511              height: 63px;
   512              background: image-url('../images/icon-docker-outline.png') 0 0 no-repeat;
   513              @include img-retina("../images/icon-docker-outline.png", "../images/icon-docker-outline@2x.png", 94px, 63px);
   514            }
   515          }
   516        }
   517  
   518        &#maintain{
   519          .feature-graphic{
   520            margin-top: $small-pad;
   521            width: 480px;
   522            height: 297px;
   523            background: image-url('../images/feature-manage.png') 0 0 no-repeat;
   524            @include img-retina("../images/feature-manage.png", "../images/feature-manage@2x.png", 480px, 297px);
   525          }
   526        }
   527  
   528        &#healing{
   529          .feature-graphic{
   530            margin-top: $small-pad;
   531            width: 480px;
   532            height: 147px;
   533            background: image-url('../images/feature-healing.png') 0 0 no-repeat;
   534            @include img-retina("../images/feature-healing.png", "../images/feature-healing@2x.png", 480px, 147px);
   535          }
   536        }
   537  
   538        &#density{
   539          .feature-graphic{
   540            margin-top: $small-pad;
   541            width: 480px;
   542            height: 189px;
   543            background: image-url('../images/feature-density.png') 0 0 no-repeat;
   544            @include img-retina("../images/feature-density.png", "../images/feature-density@2x.png", 480px, 189px);
   545          }
   546        }
   547  
   548        &#partners{
   549          .partner-logo{
   550            display: block !important;
   551            float: none !important;
   552            width: 100% !important;
   553            margin: 0 auto;
   554            -webkit-transform: scale(1) !important;
   555            -ms-transform: scale(1) !important;
   556            transform: scale(1) !important;
   557            margin-left: 0 !important;
   558            height: 130px !important;
   559          }
   560  
   561          p{
   562            padding: 0 20px;
   563          }
   564        }
   565      }
   566  
   567      .feature-header{
   568        h3,p{
   569          text-align: center !important;
   570          max-width: none !important;
   571          float: none !important;
   572        }
   573      }
   574    }
   575  
   576    .banner{
   577      padding: 18px;
   578      margin: 0 20px;
   579  
   580      .col{
   581        text-align: center;
   582  
   583        p{
   584          display: block;
   585          margin-right: 0;
   586          margin-bottom: $small-pad;
   587        }
   588      }
   589    }
   590  
   591    #cta{
   592      .intro{
   593        text-align: center;
   594        p{
   595          text-align: center;
   596          margin-bottom: 15px;
   597        }
   598      }
   599    }
   600  }
   601  
   602  
   603  @media (max-width: 480px) {
   604    #hero{
   605      background: none;
   606  
   607      &:before{
   608        display: none;
   609      }
   610  
   611      #hero-graphic{
   612        height: 60px;
   613        margin-top: 0;
   614        @include scale(.54);
   615      }
   616  
   617      #hero-text{
   618        position: relative;
   619        padding-top: 220px;
   620      }
   621    }
   622  
   623    #content{
   624      .feature{
   625        &#deploy{
   626          .feature-graphic{
   627            width: 280px;
   628            height: 177px;
   629            background: image-url('../images/feature-deploy.png') 0 0 no-repeat;
   630            @include img-retina("../images/feature-deploy.png", "../images/feature-deploy@2x.png", 280px, 177px);
   631          }
   632          .feature-footer{
   633            .docker-outline-logo{
   634              display: block;
   635            }
   636          }
   637        }
   638  
   639        &#maintain{
   640          .feature-graphic{
   641            margin-top: $small-pad;
   642            width: 280px;
   643            height: 173px;
   644            background: image-url('../images/feature-manage.png') 0 0 no-repeat;
   645            @include img-retina("../images/feature-manage.png", "../images/feature-manage@2x.png", 280px, 173px);
   646          }
   647        }
   648  
   649        &#healing{
   650          .feature-graphic{
   651            width: 280px;
   652            height: 86px;
   653            background: image-url('../images/feature-healing.png') 0 0 no-repeat;
   654            @include img-retina("../images/feature-healing.png", "../images/feature-healing@2x.png", 280px, 86px);
   655          }
   656        }
   657  
   658        &#density{
   659          .feature-graphic{
   660            width: 280px;
   661            height: 110px;
   662            background: image-url('../images/feature-density.png') 0 0 no-repeat;
   663            @include img-retina("../images/feature-density.png", "../images/feature-density@2x.png", 280px, 110px);
   664          }
   665        }
   666      }
   667    }
   668  }
   669  
   670  
   671  @media (max-width: 320px) {
   672  
   673    #hero{
   674      #diagram{
   675        width: 100%;
   676        height: 132px;
   677        background: image-url('../images/hero.png') center 0 no-repeat;
   678        @include img-retina("../images/hero.png", "../images/hero@2x.png", 320px, 132px);
   679      }
   680    }
   681  
   682    #cta a {
   683      font-size: 14px;
   684      font-weight: 400;
   685    }
   686  }