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

Quick-add: + add another resource

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.

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="page">
  <div class="header">
    <div class="header__titlebar"></div>
  </div>

  <div class="wrapper">
    <div class="sidebar"></div>

    <div class="main">
      <div class="main__stream">
        <div class="main__stream__content">I have removed many components on this page, such as the buttons on the header, the title, the menus of the sidebar, the other two streams, and all of the items within the remaining stream (except this one). This is to illustrate a simple base scenario.</div>
      </div>
  </div>
</div>
            
          
!
            
              $menu-color: #333;
$title-color: #8DC63F;
$border-radius: 10px;
$default-spacing: 10px;

.page {
  // notable properties
  display: flex;
  flex-direction: column;
  
  // other styling properties
  width: 100%;
}

.header {
  // notable properties
  height: 50px;
  flex-shrink: 0;
  
  // other styling properties
  width: 100%;
  background-color: white;
  display: flex;
  
  &__titlebar {
    // other styling properties
    width: 100%;
    height: 100%;
    border-radius: $border-radius;
    background-color: $title-color;
  }
}

.wrapper {
  // notable properties
  display: flex;
  flex-direction: row;
  height: 100%;
  
  // other styling properties
  background-color: #FFF;
  padding-top: $default-spacing;
}

.sidebar {
  // notable properties
  width: 20%;
  flex-shrink: 0;
  
  // other styling properties
  background-color: $menu-color;
  border-radius: $border-radius;
}

.main {
  // notable properties
  width: 100%;
  
  // other styling properties
  height: 100%;
  display: flex;
  flex-direction: row;
  
  &__stream {
    // other styling properties
    width: 100%;
    height: 100%;
    border: 1px solid white;
    padding-left: $default-spacing;

    &__content {
      // other styling properties
      color: #333;
      font-family: sans-serif;
      font-size: 14px;
      line-height: 1.25;
      padding: $default-spacing;
      background-color: #EEE;
      border-radius: $border-radius;
      margin-bottom: $default-spacing;
    }
  }
}
            
          
!
999px
Loading ..................

Console