Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                #main-container
  .container
    h1 Choose your license
    section.intro
      .box-text
        p Choose your desired plan to get access to our contents easily, we like to offer special <br> promotions to our users. Read the details.
      .box-button
        a(href="javascript:void(0)") More details
    section.boxes
      .box.blue
        .number-bg 2
        .box-content
          h2 Individual
          p Office 20 gb
          span.first-bar
          p Home 10 gb
          span.second-bar
          a.button(href="javascript:void(0)")
            div.expanded
            span Continue 
            i.material-icons arrow_forward
      .box.pink
        .number-bg 6
        .box-content
          h2 Shared
          h4 Family
          h3 100 gb
          a.button(href="javascript:void(0)") 
            span Continue 
            i.material-icons arrow_forward
      .box.yellow
        .number-bg 9
        .box-content
          h2 Unlimited
          h4 Infinite Share
          h3 1 Year
          a.button(href="javascript:void(0)")
            span Continue 
            i.material-icons arrow_forward
     
        

  
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,500');
@import url('https://fonts.googleapis.com/css?family=Khula:800');

$purple: #4f4c79;
$blue: #5967c3;
$gradient-body: 45deg, #353649 0%, #f7a0d9 100%;
$gradient-content: 45deg, #252634 0%, #7578a8 100%;
$gradient-blue: -45deg, $blue 0%, #70b9c1 100%;
$gradient-pink: -45deg, #fd8ba6 0%, #bd88ec 100%;
$gradient-yellow: -45deg, #e26f4c 0%, #dcc185 100%;
$font-text: 'Open Sans', sans-serif;

@mixin bg-gradient($gradient) {
  background: -moz-linear-gradient($gradient); 
  background: -webkit-linear-gradient($gradient);
  background: linear-gradient($gradient);
}

* {
  margin: 0;
  padding: 0;
}

#main-container {
  background: #353649; 
  @include bg-gradient($gradient-body);
  color: white;
  font-family: $font-text;
  overflow: hidden;
  padding: 50px 0;
  width: 100%; 
  
  @media (max-width: 767.98px) {
    padding: 14px 0;
  }
  
  .container {
    background: #252634;
    @include bg-gradient($gradient-content);
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 0px auto;
    max-width: 80vw;
    padding: 25px 40px 25px;
    position: relative;
    
    @media (max-width: 767.98px) {
      max-width: 92vw;
      padding: 0px 10px 0px;
    }
    
    h1 {
      font-size: 27px;
      font-weight: 400;
      margin: 30px 0 20px;
      padding: 0 20px;
    }
  }
}

// heading of the content-box
.intro {
  display: flex;
  flex-wrap: wrap;

  .box-text {
    box-sizing: border-box;
    flex-grow: 2;
    padding: 0 20px;

    p {
      font-size: 15px;
      font-weight: 300;
      line-height: 28px;
      
      @media (max-width: 991.98px) {
        margin-bottom: 20px;
      }
    }
  }

  .box-button {
    align-self: center;
    flex-grow: 1;
    margin: 0 20px;
    text-align: right;
    text-transform: uppercase;

    a {
      background-color: $purple;
      border-radius: 20px;
      color: white;
      font-size: 14px;
      letter-spacing: 0.4px;
      white-space: nowrap;
      padding: 10px 30px;
      text-decoration: none;
    }
  }
}

// gradient boxes
.boxes {
  display: flex;
  flex-wrap: wrap;
  margin: 60px 0 40px;

  .box {
    border-radius: 10px;
    box-shadow: 0px 0px 30px 10px rgba(0,0,0,0.2);
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex: 1;
    flex-basis: 260px;
    height: auto;
    margin: 0 15px;
    min-height: 350px;
    padding: 0px 45px 20px;
    position: relative;
    text-align: center;
    transition: transform .2s;
    
    &:hover {
      -ms-transform: scale(1.22); /* IE 9 */
      -webkit-transform: scale(1.22); /*Safari 3-8*/
      transform: scale(1.22);
      z-index: 999;
    }
    
    @media (max-width: 991.98px) {
      margin-bottom: 20px;
      padding: 0px 20px 20px;
    }

    &-content {
      display: flex;
      flex-direction: column;
      flex-grow: 1;
      z-index: 2;
    }

    .button {
      background: white;
      border-radius: 50px;
      border: none;
      box-shadow: 0px 12px 20px 3px rgba(0,0,0,0.2);
      color: #c6c6c6;
      display: table;
      font-family: $font-text;
      font-weight: bold;
      margin-bottom: 20px;
      margin-top: auto;
      padding: 20px 0 20px 0;
      position: relative;
      text-decoration: none;
      transition: all .25s linear;
      width: 100%;

      &:hover {
        box-shadow: none;
        color: $purple;
      }

      span {
        background: none;
        display: table-cell;
        font-size: 14px !important;
        text-align: right;
        vertical-align: middle;
        width: 59%;
        z-index: 6;
      }

      .material-icons {
        display: table-cell;
        font-size: 14px;
        padding-left: 8px;
        padding-top: 2px;
        vertical-align: middle;
        text-align: left;
        width: 50%;
      }
    }
  }

  .blue, 
  .pink, 
  .yellow {
    position: relative;

    h2 {
      font-family: $font-text;
      font-weight: 400;
      margin: 30px 0;
      padding-bottom: 10px;
      position: relative;

      &:after {
        background: white;
        border-radius: 25%;
        bottom: 0;
        content: '';
        height: 3px;
        left: calc(50% - 7.5px);
        position: absolute;
        width: 15px;
      }
    }
    .number-bg {
      bottom: 0;
      color: white;
      font-size: 295px;
      font-family: 'Khula', sans-serif;
      font-weight: 800;
      left: 0;
      opacity: 0.1;
      position: absolute;
      right: 0;
      top: 0;
      z-index: 1;

      &:before {
        content: '$';
        font-size: 32px;
        left: calc(50% - 22%);
        position: absolute;
        top: 65px;
      }
    }
  }

  /*BLUE BOX*/
  .blue {
    background: $blue;
    @include bg-gradient($gradient-blue);

    p {
      color: white;
      margin: 0 10px;
      text-align: left;
    }
    .first-bar, 
    .second-bar {
      background: rgba(0,0,0,0.1);
      border-radius: 20px;
      display: block;
      height: 20px;
      margin: 15px 10px 35px 10px;
      position: relative;
      width: auto;

      &:after {
        border-radius: 20px;
        content: '';
        height: 20px;
        left: 0;
        position: absolute;
        z-index: 2;
      }
    }
    .first-bar:after{
      background: #f56cd1; 
      @include bg-gradient($gradient-pink);
      width: 80%;
    }
    .second-bar:after {
      background: #ffd98a; 
      @include bg-gradient($gradient-yellow);
      width: 50%;
    }
  }

  /*PINK BOX*/
  .pink {
    background: #fd8ba6;
    @include bg-gradient($gradient-pink);
  }

  /*YELLOW BOX*/
  .yellow{
    background: #e26f4c; 
    @include bg-gradient($gradient-yellow);
    
    @media (max-width: 1199.98px) {
      margin-top: 20px;
    }
    
    &:hover {
      @media (max-width: 1199.98px) {
        -ms-transform: scale(1.12); /* IE 9 */
        -webkit-transform: scale(1.12); /*Safari 3-8*/
        transform: scale(1.12);
      }
    }
  }

  .pink, 
  .yellow {

    h4 {
      font-size: 16px;
      font-weight: 400;
      margin-top: auto;
    }
    
    h3 {
      font-family: $font-text;
      font-size: 40px;
      font-weight: bold;
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console