cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

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
Loading ..................

Console