github.com/diptanu/nomad@v0.5.7-0.20170516172507-d72e86cbe3d9/website/source/assets/stylesheets/_home.scss (about)

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