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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              %main
  .pen
    .middle
    .clip
    .point
            
          
!
            
              body
  background: RGB(0, 128, 128)
    
main
  width: 500px
  margin: 150px auto

.pen
  height: 45px
  position: relative
  border-top-right-radius: 60px 60px
  border-bottom-right-radius: 60px 60px
  border-bottom-left-radius: 695px 120px
  border-top-left-radius: 920px 120px
  background: linear-gradient(RGB(35, 35, 37), RGB(109, 105, 106), RGB(197, 192, 186) 15%, RGB(197, 192, 186) 30%, RGB(3, 2, 8) 30%, RGB(3, 2, 8) 65%, RGB(120, 115, 111) 65%, RGB(115, 111, 112) 80%, RGB(115, 110, 106) 80%, RGB(35, 35, 37) 90%, RGB(35, 35, 37) 90%)
  &:before, &:after
    position: absolute
    content: ""
    display: block     
  &:before
    top: 7px
    right: -25px
    height: 68%
    width: 25px
    border-right: 1px solid RGB(71, 70, 68)
    border-top-right-radius: 10px 20px
    border-bottom-right-radius: 10px 20px
    background: linear-gradient(RGB(35, 35, 37), RGB(109, 105, 106), RGB(197, 192, 186) 15%, RGB(197, 192, 186) 30%, RGB(3, 2, 8) 30%, RGB(3, 2, 8) 65%, RGB(120, 115, 111) 65%, RGB(115, 111, 112) 80%, RGB(115, 110, 106) 80%, RGB(35, 35, 37) 90%, RGB(35, 35, 37) 90%)
  &:after
    left: 30%    
    height: 100%
    width: 45%
    border-top-right-radius: 10px 20px
    border-bottom-right-radius: 10px 20px
    box-shadow: -60px -2px -3px -10px #fff
    background: rgba(0, 0, 0, .5)
  .middle
    position: absolute
    top: 0
    left: 145px
    height: 100%  
    width: 30px     
    border-top-right-radius: 10px 20px
    border-bottom-right-radius: 10px 20px
    z-index: 2
    background: linear-gradient(RGB(35, 35, 37), RGB(109, 105, 106), RGB(197, 192, 186) 15%, RGB(197, 192, 186) 30%, RGB(3, 2, 8) 30%, RGB(3, 2, 8) 65%, RGB(120, 115, 111) 65%, RGB(115, 111, 112) 80%, RGB(115, 110, 106) 80%, RGB(35, 35, 37) 90%, RGB(35, 35, 37) 90%)
    &:before, &:after
      position: absolute
      top: 4px
      content: ""
      display: block     
      width: 50px 
      border-right: 1px solid #000
      border-top-right-radius: 10px 20px
      border-bottom-right-radius: 10px 20px
      box-shadow: 1px 0 0 0 RGB(166, 162, 159)
    &:before
      left: -110px
      height: 87%
    &:after
      left: -125px
      height: 86%
  .clip
    position: absolute
    top: -13px
    right: 25px
    height: 5px
    width: 130px
    border-top-right-radius: 5px 5px
    border-top-left-radius: 20px 5px
    background: linear-gradient(RGB(0, 0, 9), RGB(141, 138, 133), RGB(141, 138, 133) 15%, RGB(130, 126, 123) 15%, RGB(19, 19, 19) 25%, RGB(0, 0, 9) 25%)
    &:before, &:after
      position: absolute
      top: 0
      content: ""
      display: block      
    &:before
      right: 115px
      height: 13px
      width: 15px
      border-top-right-radius: 5px 10px
      border-bottom-right-radius: 25px 25px
      border-bottom-left-radius: 25px 25px
      border-top-left-radius: 25px 10px
      background: linear-gradient(RGB(141, 138, 133) 10%, RGB(130, 126, 123) 10%, RGB(19, 19, 19) 15%, RGB(0, 0, 9) 15%)
    &:after
      right: -10px
      height: 13px
      width: 20px
      border-top-right-radius: 50px 40px
      background: linear-gradient(RGB(141, 138, 133) 10%, RGB(130, 126, 123) 10%, RGB(19, 19, 19) 15%, RGB(0, 0, 9) 15%)
  .point
    position: absolute
    height: 100%
    width: 9px
    background: RGB(0, 128, 128)
    &:before, &:after
      position: absolute
      content: ""
      display: block
      left: 8px      
      height: 5px
      width: 50px
    &:before    
      top: 10px
      background: RGB(197, 192, 186)
      transform: rotate(-5deg)
      clip: rect(auto, 240px, 80px, 1px)
      border-top-left-radius: 15px 5px
    &:after
      top: 29px
      background: RGB(119, 114, 111)
      transform: rotate(5deg)
      clip: rect(auto, 240px, 80px, 1px)
      border-bottom-left-radius: 15px 5px
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console