cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-personicon-teamoctocatpop-outspinnerstartv

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.

Auto-Updating Preview

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

            
              body
  background-color: mediumturquoise
  position: relative
  height: 100vh
  
.entry
  position: absolute
  left: 50%
  top: 50%

  &:before,
  &:after
    display: block
    content: ''
    position: absolute
    
  &.panda-cub
    width: 210px
    height: 160px
    margin-left: -(@width/2 + 5px)
    margin-top: -(@height/2)
    background-color: white
    background-image: radial-gradient(ellipse at 50% 60%, #333 12px, transparent 12px),
                      radial-gradient(ellipse at 50% 80%, #555 6px, transparent 6px)
    border-top-left-radius: 110px
    border-top-right-radius: 110px
    border-bottom-left-radius: 110px 60px
    border-bottom-right-radius: 110px 60px
    
    border: 5px solid #333
    border-bottom-width: 10px
    box-shadow: inset 10px -10px 0 #eee
    
    &:before
      width: 70px
      height: 40px
      left: 29px
      top: 55px
      background-color: #333
      background-image: radial-gradient(circle at 51px 20px, white 3px, transparent 3px), radial-gradient(circle at 46px 20px, #333 7px, transparent 7px), radial-gradient(circle at 45px 20px, white 10px, transparent 10px)
      border-radius: 50% 50% 45% 42%
      transform: rotate(-45deg)
      box-shadow: 10px -72px 0 -4px #333
    
    &:after
      width: 70px
      height: 40px
      left: 111px
      top: 55px
      background-color: #333
      background-image: radial-gradient(circle at 24px 15px, white 3px, transparent 3px), radial-gradient(circle at 24px 20px, #333 7px, transparent 7px), radial-gradient(circle at 25px 20px, white 10px, transparent 10px)
      border-radius: 50% 50% 42% 45%
      transform: rotate(45deg)
      box-shadow: -10px -72px 0 -4px #333
            
          
!
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