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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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="bracket">
  <div class="wrapper">
    <div class="wrapper" id="innerShadow"></div>
    <div class="face">
      <div class="eye" id="left"><div class="pupil"></div></div>
      <div class="eye" id="right"><div class="pupil"></div></div>
      <div class="mouth"><span class="tooth" id="leftTooth"></span><span class="tooth" id="rightTooth"></span></div>
    </div>
    <div class="grill">
      <p class="grilldots" id="row1">...........</p>
      <p class="grilldots" id="row2">...........</p>
      <p class="grilldots" id="row3">...........</p>
      <p class="grilldots" id="row4">...........</p>
      <p class="grilldots" id="row5">...........</p>
      <p class="grilldots" id="row6">...........</p>
    </div>
  </div><!--END wrapper-->
</div><!--END bracket-->

              
            
!

CSS

              
                *, *:before, *:after{
  -moz-box-sizing:border-box;
  -webkit-box-sizing:border-box;
  box-sizing:border-box;
  margin:0px; border:0px; padding:0px;
}
html{height:100%;}
body{
  background: #858d98; /* Old browsers */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#858d98', endColorstr='#4a525d',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */

  background: -moz-radial-gradient(top, ellipse cover,  #858d98 1%, #4a525d 99%); /* FF3.6+ */
  background: -webkit-gradient(radial, top top, 0px, top top, 100%, color-stop(1%,#858d98), color-stop(99%,#4a525d)); /* Chrome,Safari4+ */
  background: -webkit-radial-gradient(top, ellipse cover,  #858d98 1%,#4a525d 99%); /* Chrome10+,Safari5.1+ */
  background: -o-radial-gradient(top, ellipse cover,  #858d98 1%,#4a525d 99%); /* Opera 12+ */
  background: -ms-radial-gradient(top, ellipse cover,  #858d98 1%,#4a525d 99%); /* IE10+ */
  background: radial-gradient(ellipse at top,  #858d98 1%,#4a525d 99%); /* W3C */
}
div{position:relative; display:block;}

.bracket{
  top:20px;
  margin-left:auto;
  margin-right:auto;

  width:302px;
  height:302px;
  border-radius:36px;

  padding:1px;
  box-shadow:0px 3px 5px #23282f;

  overflow:none;

  background: #ffa76c; /* Fallback */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffa76c', endColorstr='#782a1f',GradientType=0 ); /* Old IE */

  background: -moz-linear-gradient(top,  #ffa76c 1%, #782a1f 99%); /* Firefox */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#ffa76c), color-stop(99%,#782a1f)); /* Old Chrome + Safari */
  background: -webkit-linear-gradient(top,  #ffa76c 1%,#782a1f 99%); /* new Chrome + Safari */
  background: -o-linear-gradient(top,  #ffa76c 1%,#782a1f 99%); /* Opera */
  background: -ms-linear-gradient(top,  #ffa76c 1%,#782a1f 99%); /* New IE */
  background: linear-gradient(to bottom,  #ffa76c 1%,#782a1f 99%); /* W3C Standard */
}

.wrapper{
  width:300px;
  height:300px;
  border-radius:36px;

  background: #f46346; /* Fallback */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f46346', endColorstr='#ef3920',GradientType=0 ); /* Old IE */

  background: -moz-linear-gradient(top,  #f46346 1%, #ef3920 99%); /* Firefox */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#f46346), color-stop(99%,#ef3920)); /* Old Chrome + Safari */
  background: -webkit-linear-gradient(top,  #f46346 1%,#ef3920 99%); /* new Chrome + Safari */
  background: -o-linear-gradient(top,  #f46346 1%,#ef3920 99%); /* Opera */
  background: -ms-linear-gradient(top,  #f46346 1%,#ef3920 99%); /* New IE */
  background: linear-gradient(to bottom,  #f46346 1%,#ef3920 99%); /* W3C Standard */
}

#innerShadow{
  position:absolute;
  background-color:none;
  box-shadow:inset 0px -10px 14px #ac2311;
}

.face{
  margin-left:auto;
  margin-right:auto;
  width:260px;
  height:110px;
}

.grill{
  top:-10px;
  margin-left:auto;
  margin-right:auto;
  width:260px;
  height:160px;
}

.grilldots{
  line-height:0%;
  height:26px;
  width:260px;
  letter-spacing: -0.075em;
  color:#be2f08;
  font-size:8em;
  text-shadow: 0px 2px 2px #fd6e4d;
}

#row1, #row2, #row3, #row4, #row5, #row6{margin-left:-3px;}

.pupil{
  top:10%;
  margin-left:auto;
  margin-right:auto;
  width:56px;
  height:56px;
  -moz-border-radius: 28px;
  -webkit-border-radius: 28px;
  border-radius: 28px;

  background: white; /* Fallback */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f8f0e9',GradientType=0 ); /* Old IE */

  background: -moz-linear-gradient(top,  #ffffff 40%, #f8f0e9 99%); /* Firefox */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(40%,#ffffff), color-stop(99%,#f8f0e9)); /* Old Chrome + Safari */
  background: -webkit-linear-gradient(top,  #ffffff 40%,#f8f0e9 99%); /* new Chrome + Safari */
  background: -o-linear-gradient(top,  #ffffff 40%,#f8f0e9 99%); /* Opera */
  background: -ms-linear-gradient(top,  #ffffff 40%,#f8f0e9 99%); /* New IE */
  background: linear-gradient(to bottom,  #ffffff 40%,#f8f0e9 99%); /* W3C Standard */

}
.eye{
  width:70px;
  height:70px;
  -moz-border-radius: 35px;
  -webkit-border-radius: 35px;
  border-radius: 35px;
  background-color:#eee7db;
  box-shadow:0px 7px 8px #8c2010;
}

.mouth{
  top:60px;
  left:25px;
  overflow:hidden;
  position: relative;
  width: 70px;
  height: 40px;
  background-color: #cd3a0b;
  border-radius: 40% / 45%;
  box-shadow: 0px 2px 1px fa7044;
}

.tooth{
  top:-10px;
  position:absolute;
  width:15px;
  height:30px;
  border-radius:10px;

  background: white; /* Fallback */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ebe0d7', endColorstr='#ffffff',GradientType=0 ); /* Old IE */

  background: -moz-linear-gradient(top,  #ebe0d7 1%, #ffffff 99%); /* Firefox */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#ebe0d7), color-stop(99%,#ffffff)); /* Old Chrome + Safari */
  background: -webkit-linear-gradient(top,  #ebe0d7 1%,#ffffff 99%); /* new Chrome + Safari */
  background: -o-linear-gradient(top,  #ebe0d7 1%,#ffffff 99%); /* Opera */
  background: -ms-linear-gradient(top,  #ebe0d7 1%,#ffffff 99%); /* New IE */
  background: linear-gradient(to bottom,  #ebe0d7 1%,#ffffff 99%); /* W3C Standard */
}

#leftTooth{left:18px;}
#rightTooth{left:36px;}

/* Eyes */
#left{float:left;top:25%;left:5%;}
#right{float:right;top:25%; right:5%;}
              
            
!

JS

              
                /* Inspired by the dribbble shot designed by Leon Wu (http://dribbble.com/shots/1445627-Map-Radio) */

/* Personal exercise for learning. 
Issues unresolved:
- Mouth polygon shape
- center positioning 
- Unsure how well this will hold up in other browsers.
*/
              
            
!
999px

Console