Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

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

              
                .w-table
  .w-table-cell
    .w-container
      .w-card.color-violet
        .card-header
          .w-title Basic
          .w-price $9.99
          .container-button
            a.w-button href="https://codepen.io/Anna_Batura/" target="_blank"
              ' Sign up
        .card-content
          .w-item 
            span
              ' 1GB
            ' Disk Space
          .w-item
            span
              ' 10GB
            ' Monthly Bandwidth
          .w-item
            span
              ' 1
            ' Email Accounts
      .w-card.color-green
        .card-header
          .w-title Standard
          .w-price $19.99
          .container-button
            .w-button Sign up
        .card-content
          .w-item 
            span
              ' 2GB
            ' Disk Space
          .w-item
            span
              ' 25GB
            ' Monthly Bandwidth
          .w-item
            span
              ' 2
            ' Email Accounts
      .w-card.color-blue
        .card-header
          .w-title Professional
          .w-price $29.99
          .container-button
            .w-button Sign up
        .card-content
          .w-item 
            span
              ' 5GB
            ' Disk Space
          .w-item
            span
              ' 50GB
            ' Monthly Bandwidth
          .w-item
            span
              ' 10
            ' Email Accounts
              
            
!

CSS

              
                @import "compass/css3"
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500)
$color-violet: #98f
$color-green: #1bbc9d
$color-blue: #3498db
$color-red: #DB343A
$color-pink: #E91E63

.color-violet
  .container-button
    background-color: $color-violet
    &:before
      background-color: $color-violet
  .w-item
    span
      color: $color-violet
.color-green
  .container-button
    background-color: $color-green
    &:before
      background-color: $color-green
  .w-item
    span
      color: $color-green
.color-red
  .container-button
    background-color: $color-red
    &:before
      background-color: $color-red
  .w-item
    span
      color: $color-red
.color-pink
  .container-button
    background-color: $color-pink
    &:before
      background-color: $color-pink
  .w-item
    span
      color: $color-pink

.color-blue
  .container-button
    background-color: $color-blue
    &:before
      background-color: $color-blue
  .w-item
    span
      color: $color-blue
body
  height: 100vh
  overflow: hidden
  background-color: #D4D9ED
  font-family: 'Roboto', sans-serif
.w-table
  display: table
  width: 100%
  height: 100%
.w-table-cell
  display: table-cell
  vertical-align: middle
.w-container
  position: relative
  max-width: 100%
  margin: 30px auto 0
  font-size: 0
  text-align: center
  .w-card
    cursor: pointer
    background-color: #fff
    display: inline-block
    vertical-align: top
    width: 300px
    color: #333
    font-size: 30px
    font-weight: 300
    margin: 0 0 30px
    @include transition(all 0.3s)
    .card-header
      overflow: hidden
      padding: 20px 0 0
      .w-title, .w-price
        position: relative
        z-index: 2
      .w-price
        font-size: 42px
        font-weight: 500
        padding: 1px 20px 20px
    .card-content
      padding: 20px
      .w-item
        font-size: 20px
        padding: 10px
        border-bottom: 1px solid #ddd
        &:last-child
          border-bottom: none
        span
          font-weight: 500
    .container-button
      position: relative
      .w-button
        position: relative
        display: block
        padding: 20px
        color: #fff
        font-weight: 400
        z-index: 2
        text-decoration: none
        @include transition(all 0.3s)
      &:before, &:after
        content: ""
        position: absolute
        top: 0px
        left: 50%
        width: 0%
        height: 0%
        border-radius: 50%
        @include transition(all 0.3s)
      &:after
        z-index: 1
        background-color: rgba(255, 255, 255, 0.1)
        @include transition(all 0.5s)
      &:hover
        .w-button
          padding: 0px 20px 40px
        &:before
          top: -200px
          left: -50px
          width: 400px
          height: 400px
        &:after
          top: -200px
          left: -50px
          width: 400px
          height: 400px
    &:hover
      z-index: 2
      margin: -20px 0 50px
      .w-button
        opacity: 1
      
              
            
!

JS

              
                
              
            
!
999px

Console