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

HTML

              
                <body>
  <div class="container">
    <div class="topBun all"> </div>
    
        <div class="seed s1"> </div>
        <div class="seed s2"> </div>
        <div class="seed s3"> </div>
        <div class="seed s4"> </div>
        <div class="seed s5"> </div>
        <div class="seed s6"> </div>
        <div class="seed s7"> </div>
        <div class="seed s8"> </div>


    <div class="lettuce l1"> </div>
        <div class="lettuce l2"> </div>
    <div class="lettuce l3"> </div>
    
    <div class="mayo all"> </div>
    <div class="tomato all"></div>
    <div class="cheese all" id="ch1"> </div>
        <div class="cheeseDrip"> </div>

    <div class="patty all" id="patty1"> </div>        
    <div class="cheese all" id="ch2"> </div>    
    <div class="patty all" id="patty2"> </div>
    <div class="bottomBun all"> </div>
  </div>
</body>


              
            
!

CSS

              
                $background: #DB7ABE;
$seeds: #FFF0DE;
$mayo: #FFF0DE;
$bun: linear-gradient(to bottom, #FFC786, #D49568);
$lettuce: #5ACD35;
$tomato: #FE0023;
$cheese: orange;
$patty: linear-gradient(to bottom, #763F00, #502B00);

body {
  text-align: center;
  background-color: $background;

}

.container {
  position: relative;
  display: inline-block;
  height: 600px;
  width: 600px;
}

.all{
  position: absolute;
  width: 80%;
  left: 10%;
}

.topBun{
  top: 22%;
  height: 23%;
    background: $bun;
  border-radius: 50% 50% 0 0;  
  z-index: 5;
}

.mayo{
  height: 1%;
  top: 44%;
  background-color: $mayo;
  border-radius: 20%;
  z-index: 6;
}

.seed{
  background-color: $seeds;
  border-radius: 50% 50% 50% 20%;
  position: absolute;
  height: 2%;
  width: 2%;
  z-index: 10;
  transform: rotate(145deg);
}

.s1{  top: 31%; left: 20%;}
.s2{  top: 27%; left: 36%;}
.s3{  top: 26%; left: 47%;}
.s4{  top: 36%; left: 52%;}
.s5{  top: 24%; left: 62%;}
.s6{  top: 29%; left: 79%;}
.s7{  top: 39%; left: 25%;}
.s8{  top: 34%; left: 67%;}

.lettuce{
  position: absolute;
  background-color: $lettuce;
  height: 55%;
  width: 40%;
    border-radius: 70%;
  -ms-transform:rotatex(97deg);
  -webkit-transform:rotatex(97deg);
  transform:rotatex(97deg);

  
  top: 20%;
  z-index: 2;
}

.l1{  left: 5%; }
.l2{  left: 35%; }
.l3{  left: 55%;}


.tomato{
  height: 5%;
  top: 47%;
  background-color: $tomato;
  border-radius: 20%;
}

.cheese{
  height: 2%;
  background-color: $cheese;
  border-radius: 20%;
}

#ch1{top: 63%;}


#ch2{top: 52%;}
.patty{
  height: 10%;
  background: $patty;
  border-radius: 20%;
}
#patty1{top: 65%;}
#patty2{top: 53%;}

.bottomBun{
  height: 10%;
  top: 75%;
    background: $bun;
  border-radius: 5% 5% 20% 20%;
}


              
            
!

JS

              
                
              
            
!
999px

Console