123

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
                  
.banner
  h1.heading Want Things!?

.offset-wrap
  .content-card
    h2 Something?
    p Lorem ipsum dolor sit amet, aeterno omittam inciderint et eum. Ei maluisset honestatis eum. Scripta minimum dignissim ne usu. Ne vel aperiam platonem hendrerit, usu ne lorem vivendum. No usu dictas aliquip probatus, ut enim forensibus eum, ei discere tibique repudiare his. Vim id ceteros voluptua.

    p Eu eos graece scripserit, prima vocibus voluptatum cu eum. Option constituto ne est. Fabulas democritum efficiantur pro ut. Natum offendit repudiandae te vix, et vero mediocrem omittantur per.

    p Patrioque adipiscing has ex, oratio meliore explicari vix at, malorum hendrerit reprehendunt nam an. Et mel modus nulla impedit, ne nam iudico conceptam. Usu an tempor dolores, nam elaboraret scripserit ut, has an quas ubique recteque. Odio aeque id sit, no sint labitur alterum vel. Et duo quando interpretaris, odio elitr mel an, eos ad prompta labitur.
    
  .pricing
    h1 Pricing Plans
    .pricing-items
      .price-item
        h3 Ordinary Thing
        .price-info
          ul
            li.price-info-item It's a bird!
              i.fa.fa-check-square-o
            li.price-info-item.unchecked It'a a train!
              i.fa.fa-square-o
            li.price-info-item.unchecked It'a a plane!
              i.fa.fa-square-o
            li.price-info-item.unchecked It'a a THING!
              i.fa.fa-square-o
        button.buy-now Get Started
        .price
          span.item-price FREE
      .price-item
        h3 Awesome Thing
        .best-seller
          span BEST SELLER
        .price-info
          ul
            li.price-info-item It's a bird!
              i.fa.fa-check-square-o
            li.price-info-item It'a a train!
              i.fa.fa-check-square-o
            li.price-info-item.unchecked It'a a plane!
              i.fa.fa-square-o
            li.price-info-item.unchecked It'a a THING!
              i.fa.fa-square-o
        button.buy-now Buy Now
        .price
          span.item-price $79pm
      .price-item
        h3 Uber Thing
        .pro
          span PRO
        .price-info
          ul
            li.price-info-item It's a bird!
              i.fa.fa-check-square-o
            li.price-info-item It'a a train!
              i.fa.fa-check-square-o
            li.price-info-item It'a a plane!
              i.fa.fa-check-square-o
            li.price-info-item It'a a THING!
              i.fa.fa-check-square-o
        button.buy-now Buy Now
        .price
          span.item-price $99pm
    
  .content-card
    h2 Lots of Somethings!
    p Lorem ipsum dolor sit amet, aeterno omittam inciderint et eum. Ei maluisset honestatis eum. Scripta minimum dignissim ne usu. Ne vel aperiam platonem hendrerit, usu ne lorem vivendum. No usu dictas aliquip probatus, ut enim forensibus eum, ei discere tibique repudiare his. Vim id ceteros voluptua.

    p Eu eos graece scripserit, prima vocibus voluptatum cu eum. Option constituto ne est. Fabulas democritum efficiantur pro ut. Natum offendit repudiandae te vix, et vero mediocrem omittantur per.

    p Patrioque adipiscing has ex, oratio meliore explicari vix at, malorum hendrerit reprehendunt nam an. Et mel modus nulla impedit, ne nam iudico conceptam. Usu an tempor dolores, nam elaboraret scripserit ut, has an quas ubique recteque. Odio aeque id sit, no sint labitur alterum vel. Et duo quando interpretaris, odio elitr mel an, eos ad prompta labitur.

    p Usu nobis consulatu no, in duo partiendo evertitur contentiones. Mutat singulis deserunt eu quo, te vocent euripidis eum. Per tollit scribentur in, molestiae maiestatis elaboraret mel an, ornatus detraxit principes ex sit. Docendi cotidieque ad mel, elitr noluisse tacimates cu mei. Ut detracto posidonium vix, sea quidam voluptua ponderum ea, sit an eros modus volumus.

    p Vis ut legere omnium probatus, dicit simul mediocrem cu ius, no vis nostrud suscipit argumentum. Eu pro vidisse discere, illum utamur convenire vix ea. Te ius meliore periculis. Cu est soluta iudicabit assueverit, est id accumsan volutpat gloriatur.

  

.slogan
  blockquote
    h1 
      em "Things are awesome!"  
    
footer.footer
  .foot-note Boom!
  //- .legal Lewis V Robinson &copy; 2015
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Lobster);

// CHANGE THE HIGHLIGHT COLOR TO CHANGE THE THEME //
// $highlight-color: #4ecebf;
$highlight-color: #DD2E44;
$cube-color: #aaa;
$font-color: rgba(#000, .67);
$slant: -6deg;

* {
  box-sizing: border-box;
}

.nav {
  // position: fixed;
  z-index: 99;
  text-align: center;
  background: $highlight-color;
  
  ul {
    margin: 0;
  }
  
  li {
    display: inline-block;
    margin: 0 5%;
    padding: 20px 10px;
    color: #fff;
    a {
      text-decoration: none;
      color: inherit;
    }
    @media(max-width: 500px) {
      margin: 0 1%;
      padding: 5px 5px;
    }
  }
  .logo {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    font-family: 'Lobster';
    font-size: 2em;
    color: #fff;
  }
}

.banner {
  height: 25em;
  overflow: hidden;
  background: rgba($highlight-color, .5) url("http://cdn.history.com/sites/2/2015/02/golden-gate-bridge-iStock_000019197672Large-H.jpeg") no-repeat;
  background-position: 50% 0%;
  background-size: cover;
  background-blend-mode: multiply;
  &:before {
    content: '';
    display: block;
    position: relative;
    top: -50%;
    left: -25%;
    height: 70%;
    width: 200%;
    background: $highlight-color;
    // background: linear-gradient(to bottom, $highlight-color 80%,
    //                             darken($highlight-color, 10%));
    box-shadow: 0px 8px 0px rgba(0,0,0,.1);
    transform: rotateZ($slant) skew($slant);
    @media(500px) {
    transform: rotateZ(0deg) skew(0deg);
    }
  }
  .heading {
    position: absolute;
    top: 5vmax;
    left: 2vmax;
    padding: 0;
    margin: 0;
    color: lighten($highlight-color, 50%);
    font-size: 6em;
    font-family: 'Lobster', cursive;
    transform: rotateZ($slant);
    text-shadow: 2px 2px 0px darken($highlight-color, 30%),
                 4px 4px 0px darken($highlight-color, 25%),
                 6px 6px 0px darken($highlight-color, 20%),
                 8px 8px 0px darken($highlight-color, 15%),
                 10px 10px 0px darken($highlight-color, 10%);
    @media(max-width: 600px) {
      font-size: 15vmin;
    }
  }
}

.offset-wrap {
  margin: -10em auto 0 auto;
}

.content-card {
  background: #fff;
  width: 70vw;
  max-width: 700px;
  margin: 4em auto;
  padding: 2em;
  border-radius: 5px;
  font-size: 1.1em;
  color: $font-color;
  line-height: 1.6;
  box-shadow: 0px 0px 15px rgba(0,0,0,.2);
  @media(max-width: 450px) {
    width: 100%;
    border-radius: 0px;
    box-shadow: none;
  }
  h2 {
    margin: 0;
    display: inline-block;
    &:after {
      content: '';
      display: block;
      height: 3px;
      width: 40%;
      background: $highlight-color;
      position: relative;
      bottom: -0.2em;
    }
  }
}

.slogan {
  text-align: center;
  color: $highlight-color;
  font-size: 2em;
  padding: 10vh 5vw;
  background-color: lighten($cube-color, 50%);
  background-image: linear-gradient(30deg, lighten($cube-color, 40%) 12%,
                      transparent 12.5%,
                      transparent 87%, 
                      lighten($cube-color, 40%) 87.5%,
                      lighten($cube-color, 40%)),
                      linear-gradient(150deg, lighten($cube-color, 40%) 12%,
                      transparent 12.5%,
                      transparent 87%,
                      lighten($cube-color, 40%) 87.5%,
                      lighten($cube-color, 40%)),
                    linear-gradient(30deg, lighten($cube-color, 40%) 12%,
                      transparent 12.5%,
                      transparent 87%,
                      lighten($cube-color, 40%) 87.5%,
                      lighten($cube-color, 40%)),
                    linear-gradient(150deg, lighten($cube-color, 40%) 12%,
                      transparent 12.5%,
                      transparent 87%,
                      lighten($cube-color, 40%) 87.5%,
                      lighten($cube-color, 40%)),
                    linear-gradient(60deg, lighten($cube-color, 30%) 25%,
                      transparent 25.5%, transparent 75%,
                      lighten($cube-color, 30%) 75%,
                      lighten($cube-color, 30%)),
                    linear-gradient(60deg, lighten($cube-color, 30%) 25%,
                      transparent 25.5%, transparent 75%,
                      lighten($cube-color, 30%) 75%,
                      lighten($cube-color, 30%));
  background-size:40px 70px;
  background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
  blockquote {
    margin: 0 auto;
  }
}

.pricing {
  background: $highlight-color;
  text-align: center;
  padding: 4em 1em;
  h1 {
    color: #fff;
    padding: 0.5em;
    margin: 0 auto;
    display: inline-block;
    text-shadow: 2px 2px 1px darken($highlight-color, 10%);
    // &:after {
    //   content: '';
    //   display: block;
    //   height: 3px;
    //   width: 40%;
    //   background: #fff;
    //   position: relative;
    //   bottom: -0.1em;
    //   box-shadow: 2px 2px 1px darken($highlight-color, 10%);;
    // }
  }
  h3 {
    padding: 5px 10px;
    color: darken($highlight-color, 10%);
  }
  .pricing-items {
    display: flex;
    align-items: center;
    justify-content: center;
    color: $font-color;
    @media(max-width: 800px) {
      flex-flow: column;
    }
    .price-item {
      width: 30%;
      height: 450px;
      max-width: 350px;
      position: relative;
      background: #fff;
      margin: 2vh 3%;
      border-radius: 5px;
      background: linear-gradient(to top left, #f8f8f8 50%, #fff 50%);
      // background-color: lighten($highlight-color, 50%);
      // background-image: linear-gradient(30deg, lighten($highlight-color, 40%) 12%,
      //                                   transparent 12.5%,
      //                                   transparent 87%, 
      //                                   lighten($highlight-color, 40%) 87.5%,
      //                                   lighten($highlight-color, 40%)),
      //                   linear-gradient(150deg, lighten($highlight-color, 40%) 12%,
      //                                   transparent 12.5%,
      //                                   transparent 87%,
      //                                   lighten($highlight-color, 40%) 87.5%,
      //                                   lighten($highlight-color, 40%)),
      //                   linear-gradient(30deg, lighten($highlight-color, 40%) 12%,
      //                                   transparent 12.5%,
      //                                   transparent 87%,
      //                                   lighten($highlight-color, 40%) 87.5%,
      //                                   lighten($highlight-color, 40%)),
      //                   linear-gradient(150deg, lighten($highlight-color, 40%) 12%,
      //                                   transparent 12.5%,
      //                                   transparent 87%,
      //                                   lighten($highlight-color, 40%) 87.5%,
      //                                   lighten($highlight-color, 40%)),
      //                   linear-gradient(60deg, lighten($highlight-color, 30%) 25%,
      //                                   transparent 25.5%, transparent 75%,
      //                                   lighten($highlight-color, 30%) 75%,
      //                                   lighten($highlight-color, 30%)),
      //                   linear-gradient(60deg, lighten($highlight-color, 30%) 25%,
      //                                   transparent 25.5%, transparent 75%,
      //                                   lighten($highlight-color, 30%) 75%,
      //                                   lighten($highlight-color, 30%));
      // background-size:40px 70px;
      // background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
      box-shadow: 0px 0px 15px rgba(0,0,0,.3);
      transition: all 200ms ease-in-out;
      &:hover {
        box-shadow: 0px 0px 0px rgba(0,0,0,0.0);
      }
      .price-info-item {
        margin: 0 auto;
        padding: 15px;
        width: 100%;
        border-bottom: 1px solid #ddd;
      }
      @media(max-width: 800px) {
        width: 70vw;
      }
      ul {
        list-style-type: none;
        padding: 0;
      h3 {
        text-align: left;
        margin: 2vh;
        padding: 10px;
        &:after {
          content: '';
          display: block;
          height: 3px;
          width: 40%;
          background: $highlight-color;
          position: relative;
          bottom: -0.1em;
        }
      }
    }
  }
  }
  .price-info {
    text-align: left;
    .price-info-item {
      padding: 10px 5px;
      font-size: 1.1em;
      font-weight: 600;
      .fa {
        float: right;
      }
    }
    .unchecked {
      color: lighten($font-color, 70%);
      // &:after {
      //   content: '';
      //   display: block;
      //   height: 1px;
      //   width: 90%;
      //   background: rgba($font-color, .5);
      //   position: relative;
      //   bottom: 0.65em;
      // }
    }
  }
  button.buy-now {
    background: transparent;
    padding: 5px 10px;
    border: 3px solid $highlight-color;
    border-radius: 5px;
    font-size: 1.5em;
    color: $highlight-color;
    margin: 25px auto;
    transition: all 300ms ease-in;
    &:hover {
      cursor: pointer;
      color: #fff;
      border-color: $highlight-color;
      background: $highlight-color;
      transition: all 100ms ease-out;
    }
  }
  
  .price {
    background: #333;
    width: 100%;
    padding: 10px 0;
    position: absolute;
    bottom: 0;
    border-radius: 0 0 5px 5px;
    .item-price {
      font-size: 2em;
      font-weight: 300;
      color: #888;
    }
  }
  
  .best-seller {
    position: absolute;
    height: 70px;
    width: 70px;
    padding: 10px;
    border-radius: 50%;
    background: #47CF73;
    top: -1.5em;
    right: -1.5em;
    border: 8px solid #fff;
    font-size: 0.75em;
    span {
      display: block;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-weight: 600;
      color: #fff;
    }
  }
  
  .pro {
    position: absolute;
    height: 70px;
    width: 70px;
    padding: 10px;
    border-radius: 50%;
    background: #FEDD31;
    top: -1.5em;
    right: -1.5em;
    border: 8px solid #fff;
    font-size: 1em;
    span {
      display: block;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-weight: 600;
      color: #fff;
    }
  }
}

.footer {
  background: #333;
  .foot-note {
    margin: 0 auto;
    text-align: center;
    padding: 2vh;
    font-family: 'Lobster';
    font-size: 2em;
    color: $highlight-color;
    
  }
  .legal {
    background: #222;
    padding: 1vh;
    color: #666;
    text-align: center;
    font-size: 0.8em;
  }
}


            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console