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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              #dailyCSSImage.page
  .page__head
    h1 Hamburger
    h4 Daily CSS Images :: Day 12
  .page__body
    .hamburger
      .bread-top
        .dots
          span
          span
          span
          span
        .dots
          span
          span
          span
          span
          span
      .tomato
      .cheese
      .meat
      .bread-bottom
      .ground
      
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Lobster+Two:700,700i|Space+Mono')

$bread: #ac6f36
$tomato: #ed5c41
$meat: #7a4a26
$cheese: #fea621
$border: #2d2528

*
  box-sizing: border-box

body
  font-family: 'Space Mono', monospace
  background-image: linear-gradient(to top, #efb54a, darken(#efb54a, 10%))

  
.bread-top
  position: relative
  width: 230px
  height: 70px
  border-radius: 50px 50px 0 0
  background-color: $bread
  border: 4px solid $border
  box-shadow: inset 60px 0 0 rgba(#fff, .2),inset 10px 0 0 rgba(#fff, .2),inset -10px 0 0 rgba(#000,.1)
  
.dots 
  position: absolute
  top: 0
  left: 0
  width: 100%
  display: flex
  justify-content: space-between
  padding: 10px 40px
  &:last-of-type
    top: 30px
    padding: 10px 20px
  span
    display: block
    width: 12px
    height: 12px
    background-color: #fff
    border-radius: 10px
    box-shadow: 0 3px 0 rgba(#000,.1)
  
.tomato
  height: 22px
  margin: 0 2px
  border-top: 7px solid #fff
  background-color: $tomato
  box-shadow: inset 60px 0 0 rgba(#fff, .2),inset 10px 0 0 rgba(#fff, .2),inset -10px 0 0 rgba(#000,.1)
  
.cheese
  height: 22px
  margin: 0 2px
  border-top: 7px solid #fff
  background-color: $cheese
  box-shadow: inset 60px 0 0 rgba(#fff, .2),inset 10px 0 0 rgba(#fff, .2),inset -10px 0 0 rgba(#000,.1)
  
.meat
  height: 34px
  margin: 0 2px
  border-top: 7px solid #fff
  border-bottom: 7px solid #fff
  background-color: $meat
  box-shadow: inset 60px 0 0 rgba(#fff, .2),inset 10px 0 0 rgba(#fff, .2),inset -10px 0 0 rgba(#000,.1)
  
  
.bread-bottom
  width: 230px
  height: 40px
  border-radius: 0 0 35px 35px
  background-color: $bread
  border: 4px solid $border
  box-shadow: inset 60px 0 0 rgba(#fff, .2),inset 10px 0 0 rgba(#fff, .2),inset -10px 0 0 rgba(#000,.1)
  
  
.ground
  width: 270px
  height: 4px
  border-radius: 4px
  background-color: $border
  margin: 1px -20px

/** Simple Page Style */
.page
  height: 100vh
  display: flex
  flex-direction: column
  justify-content: center
  align-items: center
  &__head
    flex: 0 1 auto
    text-align: center
    padding: 1rem 0
    h1
      font-family: 'Lobster Two', cursive
      font-size: 4rem
      font-style: italic
      margin: 0
      color: #333
    h4
      font-size: 16px
      font-weight: 400
      margin: 0.5rem 0 0
      color: #fff
  &__body
    flex: 1
    display: flex
    justify-content: center
    align-items: center
            
          
!
999px
Loading ..................

Console