octocatstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

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

Want a Run Button?

If active, the preview will update automatically when you change code.

            
              @import compass

$stripe-color: rgb(210,230,240)
$stripe-dark: darken($stripe-color, 5%)

*
  +box-sizing(border-box)

p
  width: 30em
  height: 14em
  background: gray
  margin: -3em auto
  position: relative
  line-height: 2em
  font-family: monospace
  padding: 8em 1em 0
  +background(linear-gradient($stripe-dark 1%, white 1%, white 50%, $stripe-dark 50%, $stripe-color 52%))
  color: rgb(20,20,50)
  background-size: 100% 4em
  +filter(drop-shadow(2px 2px 5px rgba(black, .25)))
  z-index: 10
  -webkit-animation: print 3s linear
  &::before, &::after
    content: ''
    position: absolute
    top: 0
    width: 2em
    height: inherit
    background: salmon
    +background(radial-gradient(transparent 24%, white 24%) 0 0)
    background-size: 2em 2em
  &::before
    left: -2em
    border-right: 1px dashed rgba($stripe-color, .7)
    border-top-left-radius: 2px
    border-bottom-left-radius: 2px
  &::after
    right: -2em
    border-left: 1px dashed rgba($stripe-color, .7)
    border-top-right-radius: 2px
    border-bottom-right-radius: 2px

body
  height: 100%
  width: 100%
  +background(linear-gradient(rgb(200,50,50), rgb(190,40,40)))
  background-repeat: no-repeat
  background-attachment: fixed
  font-size: 18px

@-webkit-keyframes print
  0%
    +translateY(-75%)
  10%
    +translateY(-65%)
  20%
    +translateY(-65%)
  30%
    +translateY(-55%)
  40%
    +translateY(-55%)
  70%
    +translateY(-45%)
  80%
    +translateY(-45%)
  100%
    +translateY(0%)

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console