Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="pedobear">
  <div class="ear left-ear">
    <i></i>
  </div>
  <div class="ear right-ear">
    <i></i>
  </div>
  <div class="face"></div>
  <div class="eye left-eye"></div>
  <div class="eye right-eye"></div>
  <div class="snout">
    <i class="left"></i>
    <i class="right"></i>
  </div>
  <div class="nose"></div>
  <div class="mouth">
    <i></i>
  </div>
  <div class="beard">
    <i class="facial beard1"><span></span></i>
    <i class="facial beard2"><span></span></i>
    <i class="facial beard3"><span></span></i>
    <i class="facial beard4"><span></span></i>
    <i class="facial beard5"><span></span></i>
    <i class="facial beard6"><span></span></i>
</div>
              
            
!

CSS

              
                @import "compass/css3";

$bear: #8a542e;
$highlight: #d4ac69;
$black: #111;
$mouth: #f8b9b9;

*, *:before, *:after { 
  @include box-sizing(border-box);
}
.pedobear {
  position: relative;
  height: 1px;
  width: 1px;
  margin: 3em 0 0 5em;
}
.ear {
  z-index: -3;
  position: absolute;
  background: $bear;
  border: 10px solid $black;
  i {
    position: relative;
  }
}
.left-ear {
  top: -30px;
  left: -30px;
  height: 140px;
  width: 220px;
  border-radius: 270px 250px 0 0;
  @include rotate(-40deg);
  i:before {
    display: block;  
    position: absolute;  
    content: "";
    top: 30px;
    left: 45px;  
    height: 90px;
    width: 140px;
    background: $highlight;
    border: 10px solid $black;
    border-radius: 75px 75px 0 0;
  }
}
.right-ear {
  top: -35px;
  left: 400px;
  height: 110px;
  width: 180px;
  border-radius: 250px 200px 0 0;
  @include rotate(30deg);
  i:before {
    display: block;  
    position: absolute;  
    content: "";
    top: 28px;
    left: 33px;  
    height: 80px;
    width: 120px;
    background: $highlight;
    border: 10px solid $black;
    border-radius: 60px 60px 0 0;
  }
}
.face {
  position: relative;
  height: 500px;
  width: 600px;
  background: $bear;
  border-radius: 300px 300px 0 0;
  &:before {
    z-index: -2;
    display: block;
    position: absolute;
    content: "";  
    top: -10px;
    left: -10px;
    height: 510px;
    width: 620px;
    background: $black;
    border-radius: 310px 310px 0 0;    
  }
}
.eye {
  position: absolute;
  height: 100px;
  width: 100px;
  background: $black;
  border-radius: 50%
}
.right-eye {
  top: 175px;
  left: 420px;
}
.left-eye {
  top: 160px;
  left: 150px;
}
.snout { 
  z-index: 2;
  position: absolute;
  top: 300px;
  left: 175px;
  height: 110px;
  width: 300px;
  background: $highlight;
  border-radius: 50%;
  @include rotate(3deg);
  i {
    display: block;
    position: relative;
    float: left;
    height: 120px;
    width: 150px;
    border-bottom: 10px solid $black;
    background: $highlight;
  }
  .left {
    border-left: 10px solid $black;
    border-radius: 40% 40% 0 40%;
  }
  .right {
    border-right: 10px solid $black;
    border-radius: 40% 40% 40% 0;
  }
}
.nose {
  z-index: 3;
  position: absolute;
  top: 310px;
  left: 285px;
  height: 70px;
  width: 90px;
  background: $black;
  border-radius: 50px 50px 80px 80px;
}
.mouth {
  position: absolute; 
  top: 400px;
  left: 230px;
  height: 160px;
  width: 180px;
  background: $bear;
  border: 10px solid $black;
  border-radius: 0 0 90px 90px;
  i { 
    position: relative;  
    &:before {
      content: "";
      position: absolute;
      top: 0px;
      left: 30px;
      display: block;  
      height: 130px;
      width: 120px;
      background: $mouth;
      border: 10px solid $black;
      border-radius: 0 0 60px 60px;
    }
    &:after {
      z-index: 3;
      display: block;  
      position: absolute;  
      content: "";
      top: -5px;
      left: 30px;
      height: 40px;
      width: 120px;
      background: $mouth;
      border: 10px solid $black;
      border-top: none;
      border-radius: 0 0 80px 80px;
      @include rotate(180deg);
    }
  }
}
.beard {
  .facial {
    display: block;
    position: absolute;
  }
  .beard1 {
    top: 472px;
    left: -35px;
    width: 0;
	  height: 0;
	  border-top: 100px solid $black;
	  border-right: 100px solid transparent;
    @include rotate(25deg);
    span {
      &:before {
        display: block;
        position: absolute;
        content: "";
        top: -101px;
        left: 10px;
        height: 0;  
        width: 0;
	      border-top: 80px solid $bear;
	      border-right: 80px solid transparent; 
      }
    }
  }
  .beard2 {
    top: 498px;
    left: 73px;
    width: 0;
	  height: 0;
	  border-top: 60px solid $black;
	  border-right: 60px solid transparent;
    @include rotate(5deg);
    span {
      &:before {
        display: block;
        position: absolute;
        content: "";
        top: -61px;
        left: 7px;
        height: 0;  
        width: 0;
	      border-top: 40px solid $bear;
	      border-right: 40px solid transparent; 
      }
    }
  }
  .beard3 {
    top: 498px;
    left: 125px;
    width: 0;
	  height: 0;
	  border-top: 60px solid $black;
	  border-right: 60px solid transparent;
    span {
      &:before {
        display: block;
        position: absolute;
        content: "";
        top: -60px;
        left: 7px;
        height: 0;  
        width: 0;
	      border-top: 40px solid $bear;
	      border-right: 40px solid transparent; 
      }
    }
  }
  .beard4 {
    top: 498px;
    left: 415px;
    width: 0;
	  height: 0;
	  border-top: 60px solid $black;
	  border-left: 60px solid transparent;
    span {
      &:before {
        display: block;
        position: absolute;
        content: "";
        top: -60px;
        left: -48px;
        height: 0;  
        width: 0;
	      border-top: 40px solid $bear;
	      border-left: 40px solid transparent; 
      }
    }
  } 
  .beard5 {
    top: 498px;
    left: 473px;
    width: 0;
	  height: 0;
	  border-top: 60px solid $black;
	  border-left: 60px solid transparent;
    @include rotate(-5deg);
    span {
      &:before {
        display: block;
        position: absolute;
        content: "";
        top: -61px;
        left: -50px;
        height: 0;  
        width: 0;
	      border-top: 40px solid $bear;
	      border-left: 40px solid transparent; 
      }
    }
  }
  .beard6 {
    top: 472px;
    left: 535px;
    width: 0;
	  height: 0;
	  border-top: 100px solid $black;
	  border-left: 100px solid transparent;
    @include rotate(-25deg);
    span {
      &:before {
        display: block;
        position: absolute;
        content: "";
        top: -101px;
        left: -90px;
        height: 0;  
        width: 0;
	      border-top: 80px solid $bear;
	      border-left: 80px solid transparent; 
      }
    }
  }
}

              
            
!

JS

              
                // Pedobear

// I could totally cut the CSS down more, but I was over it after hour 6, good practice for making CSS shapes.
              
            
!
999px

Console