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.

            
              <div class="parliment">
  <div class="roof-top"></div>
  <div class="roof-bottom">
    <div class="roof-detail"></div>
  </div>
  <div class="building-top"></div>
  <div class="building-middle">
    <ul class="columns">
      <li></li><li></li><li></li><li></li><li></li><li></li>
      <li class="mid-col"></li>
      <li class="mid-col"></li>
      <li class="mid-col"></li>
      <li></li><li></li><li></li><li></li><li></li><li></li>
    </ul>
  </div>
  <div class="building-bottom"></div>
  <ul class="steps">
    <li></li>
    <li></li><li></li><li></li>
    <li></li>
  </ul>
</div>

<a href="http://dribbble.com/shots/1294639-Parliament2" class="dribbble">Inspired by George Bokhua's Dribbble shot</a>
            
          
!
            
              @import "compass/css3";

/**
 * twitter @matty_h
 * inspired by http://dribbble.com/shots/1294639-Parliament2
 */
$black: #312e35;
$cream: #fcedaa;
* {
  box-sizing: border-box;
}
body {
  background: $black;
  padding: 4em 1em;
}
.parliment {
  position: relative;
  width: 424px;
  height: 160px;
  margin: 0 auto;
  &:before, &:after {
    content: '';
    position: absolute;
    left: 50%;    
  }
  &:before {
    width: 24px;
    height: 12px;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    border: 2px solid $black;
    background: $cream;
    position: absolute;
    top: 7px; 
    margin-left: -13px;
  }
  &:after {
    width: 18px;
    height: 2px;
    top: 16px;
    background: $black;
    margin-left: -28px;
  }
}
.roof-top {
  width: 0;
  height: 0;
  border-right: 48px solid transparent;
  border-bottom: 16px solid $cream;
  border-left: 48px solid transparent;
  margin: 0 auto;
  &:before, &:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 16px;
  }
  &:before {
    width: 80px;
    height: 4px;
    margin-left: -40px;
    background: $cream;
  }
  &:after {
    width: 18px;
    height: 2px;
    background: $black;
    margin-left: 12px;
  }
}
.roof-bottom {
  width: 124px;
  height: 12px;
  background: $cream;
  position: absolute;
  top: 20px; left: 50%;
  margin-left: -62px;
    &:before, &:after {
        content: '';
        width: 0;
        height: 0;
        border-top: 5px solid $cream;
        position: absolute;    
      }
    &:before {
      border-left: 5px solid transparent;      
      left: -5px;
    }
    &:after {
      border-right: 5px solid transparent; 
      right: -5px;
    }
}
.roof-detail {
  width: 28px;
  height: 3px;
  background: $black;
  position: absolute;
  top: 5px; left: 13px;
  &:before, &:after {
    content: '';
    position: absolute;    
  }
  &:before {
    width: 28px;
    height: 3px;
    background: $black;
    top: 0; right: -71px;
  }
  &:after {
    box-shadow: 0 0 0 2px $cream,
                12px 0 0 2px $cream,
                24px 0 0 2px $cream,
                36px 0 0 2px $cream,
                48px 0 0 2px $cream,
                60px 0 0 2px $cream;
    top: 8px; left: 20px;
  }
}
.building-top {
  width: 388px;
  height: 8px;
  background: $cream;
  position: absolute;
  top: 34px; left: 50%;
  margin-left: -194px;
    &:before, &:after {
        content: '';
        width: 0;
        height: 0;
        border-top: 8px solid $cream;
        position: absolute;
        top: 0; 
      }
    &:before {
      border-left: 8px solid transparent;      
      left: -8px;
    }
    &:after {
      border-right: 8px solid transparent; 
      right: -8px;
    }
}
.building-middle {
  width: 388px;
  height: 80px;
  background: $cream;
  position: absolute;
  top: 44px; left: 50%;
  margin-left: -194px;
    &:before, &:after {
        content: '';
        width: 0;
        height: 0;
        border-top: 8px solid $cream;
        position: absolute;
        top: 0; 
      }
    &:before {
      border-left: 8px solid transparent;      
      left: -8px;
    }
    &:after {
      border-right: 8px solid transparent; 
      right: -8px;
    }
}
.building-bottom {
  background: #b2a582;
  width: 424px;
  height: 6px;
  top: 148px;
  position: absolute;
  &:before, &:after {
    content: '';
    width: 388px;
    height: 10px;
    background: #b2a582;
    border-top: 2px solid #312e35;
    position: absolute;
    left: 50%;
    margin-left: -194px;
    box-shadow: 0 1px 0 1px #716a5a inset;
  }
  &:before {
    top: -12px;
  }
  &:after {
    top: -24px;
  }
}
.columns {
  margin: 12px 0 0 18px;
  li {
    width: 16px;
    height: 68px;
    background: $cream;
    float: left;
    margin-right: 8px;
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
    box-shadow: 5px 5px 0 4px $black inset;
    position: relative;
    &:before {
      content: '';
      width: 8px;
      height: 6px;
      background: $black;
      position: absolute;
      top: 9px; left: -8px;
    }
    &:after {
      content: '';
      position: absolute;
      top: 18px; left: 10px;
      box-shadow: 0 0 0 1px $black,
                  1px 0 0 1px $black,
                  1px 1px 0 1px $black,
                  1px 2px 0 1px $black,
                  1px 3px 0 1px $black,
  
                  0 13px 0 1px $black,
                  1px 13px 0 1px $black,
                  1px 14px 0 1px $black,
                  1px 15px 0 1px $black,
                  1px 16px 0 1px $black,
  
                  0 26px 0 1px $black,
                  1px 26px 0 1px $black,
                  1px 27px 0 1px $black,
                  1px 28px 0 1px $black,
                  1px 29px 0 1px $black,
  
                  0 39px 0 1px $black,
                  1px 39px 0 1px $black,
                  1px 40px 0 1px $black,
                  1px 41px 0 1px $black,
                  1px 42px 0 1px $black;
    }
  }
  li:first-child, li:last-child {
    &:after {
      box-shadow: none;
    }
  }
  .mid-col {
    background: $black;  
    box-shadow: none;
  }
}
.steps {
  width: 120px;
  height: 18px;
  background: $cream;
  position: absolute;
  bottom: 12px; left: 152px;
    li {
      float: left;
    }
    li:first-child,
    li:last-child {
      width: 20px;
      height: 18px;
    }
    li:nth-child(2),
    li:nth-child(3),
    li:nth-child(4){
      width: 80px;
      height: 6px;
      border-top: 1px solid #636051;
      border-bottom: 1px solid #1e1d2b;
    }
    li:nth-child(2) {
      border-top: 0;
    }
    li:nth-child(4) {
      border-bottom: 0;
    }
    li:last-child {
      margin-top: -12px;
      &:before, &:after {
        content: '';
        width: 0;
        height: 0;
        border-right: 14px solid transparent;    
        border-bottom: 18px solid #343237;
        position: absolute;    
      }
      &:before {
        right: -14px;
      }
      &:after {
        left: 20px;
      }
    }
}
.dribbble {
  font: 0.75em/1.5em verdana,sans-serif;
  color: $cream;
  position: absolute;
  bottom: 1.5em; right: 1.5em;
}

            
          
!
            
              /**
 * twitter @matty_h
 * inspired by http://dribbble.com/shots/1294639-Parliament2
 */
            
          
!
999px
Loading ..................

Console