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.

            
              <div class="shubox--container">
  <div class="avatar-container">
    <div id="avatar" class="avatar"></div>
  </div>
</div>
            
          
!
            
              $avatar-size: 9rem

.dz
  &-progress
    position: absolute
    top: 0
    left: 0
    right: 0
    display: block
    width: 100%
    bottom: 0
    border-radius: 50%
    overflow: hidden
    
  &-upload
    opacity: .6
    position: absolute
    top: 0
    left: 0
    height: 100%
    background: #bf9de0

  &-error-message
  &-filename,
  &-size,
  &-success-mark,
  &-error-mark
    display: none

// When complete: show success/error state & √ or x mark
.dz-complete.dz-success .dz-success-mark,
.dz-complete.dz-error .dz-error-mark
  display: block
  position: absolute
  top: 0
  font-size: $avatar-size / 2
  text-align: center
  width: 100%
  line-height: $avatar-size
.dz-error .dz-error-mark
  color: white
.dz-success .dz-success-mark
  color: white

  
// Avatar-specific
.avatar-container
  background-color: #bf9de0
  margin-left: -1 * $avatar-size / 2
  margin-top: -1 * $avatar-size / 2
  width: $avatar-size
  height: $avatar-size
  border-radius: 50%
  border: $avatar-size/15 solid #7c5cd1
  position: absolute
  top: 50%
  left: 50%
.avatar
  cursor: pointer
  color: red
  width: $avatar-size
  height: $avatar-size
  border-radius: 50%
  background: url(https://i.imgur.com/kOTbAwq.png) center center no-repeat
  background-size: $avatar-size / 2
  overflow: hidden
  
  img
    width: 100%
    height: 100%
            
          
!
            
              // easy peasy. Most of the work
// is done by styling the default
// elements in the generated
// `previewsContainer`
new Shubox("#avatar", {
  transformName: "avatar-demo"
})
            
          
!
999px
Loading ..................

Console