cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmloctocatspinnerstartv

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="container app">
  <aside class="sidebar">
    <h1 class="logo">
      <a href="#">Simpl<strong>est</strong></a>
    </h1>
    <nav class="main-nav">
      <ul>
        <li><a href="#">Profile</a></li>
        <li class="active">
          <a href="#">Email</a><br />
          <a href="#" class="btn btn-primary">Compose new</a>
          <ul>
            <li class="active"><a href="#">Inbox <span class="btn btn-primary">25</span></a></li>
            <li><a href="#">Drafts</a></li>
            <li><a href="#">Sent</a></li>
            <li><a href="#">Trash</a></li>
            <li><a href="#">Junk Mail</a></li>
          </ul>
          <ul class="labels">
            <li><a href="#">Clients <span class="btn btn-primary label"></span></a></li>
            <li><a href="#">Friends <span class="btn btn-primary label"></span></a></li>
            <li><a href="#">Family <span class="btn btn-primary label"></span></a></li>
            <li><a href="#">Dribbble <span class="btn btn-primary label"></span></a></li>
          </ul>
        </li>
        <li><a href="#">Docs</a></li>
        <li><a href="#">Stats</a></li>
      </ul>
    </nav>
  </aside>
  <div class="main">
    <header class="header">
      <form action="">
        <input type="search" name="s" placeholder="Search on simplest" />
      </form>
      <nav class="nav-settings">
        <ul>
          <li><a href="#">Gregoire Vella</a></li>
          <li><a href="#" class="icon icon-gear"></a></li>
        </ul>
      </nav>
      <div class="clr"></div>
    </header>
    <div class="container">
      <div class="messages">
        <h1>Inbox <span class="icon icon-arrow-down"></span></h1>
        <form action="">
          <input type="search" class="search" placeholder="Search Inbox" />
        </form>
        <ul class="message-list">
          <li class="new">
            <input type="checkbox" />
            <div class="preview">
              <h3>Sarach Connor <small>Jul 15</small></h3>
              <p><strong>I've been hunted - </strong>A crazing robot ...</p>
            </div>
          </li>
          <li class="active">
            <input type="checkbox" />
            <div class="preview">
              <h3>Jeremy Clarkson <small>Jul 15</small></h3>
              <p>The brand new season of Top Gear</p>
            </div>
          </li>
          <li class="">
            <input type="checkbox" />
            <div class="preview">
              <h3>Eureka.com <small>Jul 14</small></h3>
              <p><strong>Interface design - </strong>Hi Greg ...</p>
            </div>
          </li>
          <li class="">
            <input type="checkbox" />
            <div class="preview">
              <h3>Jeremy Legrand <small>Jul 13</small></h3>
              <p><strong>CSS Responsive - </strong>Here is my hack to ...</p>
            </div>
          </li>
          <li class="">
            <input type="checkbox" />
            <div class="preview">
              <h3>Noe Vella <small>Jul 13</small></h3>
              <p><strong>Personal resume - </strong>Hi Greg, as expected ...</p>
            </div>
          </li>
          <li class="">
            <input type="checkbox" />
            <div class="preview">
              <h3>Dribbble <small>Jul 12</small></h3>
              <p><strong>Thank you for purchaseing a pro account</strong></p>
            </div>
          </li>
          <li class="">
            <input type="checkbox" />
            <div class="preview">
              <h3>Dribbble <small>Jul 12</small></h3>
              <p><strong>Work inquiry from Andy Blast - </strong>the foll...</p>
            </div>
          </li>
          <li class="">
            <input type="checkbox" />
            <div class="preview">
              <h3>Behance <small>Jul 12</small></h3>
              <p><strong>Raj sent you a direct message - </strong></p>
            </div>
          </li>
          <li class="new">
            <input type="checkbox" />
            <div class="preview">
              <h3>Behance <small>Jul 12</small></h3>
              <p><strong>Raj sent you a direct message - </strong></p>
            </div>
          </li>
          <li class="">
            <input type="checkbox" />
            <div class="preview">
              <h3>Dribbble <small>Jul 11</small></h3>
              <p><strong>Peter Avey is now following you - </strong>Hi ...</p>
            </div>
          </li>
        </ul>
      </div>
      <section class="message">
        <h2><span class="icon icon-star-large"></span> The brand new season of Top Gear <span class="icon icon-reply-large"></span><span class="icon icon-delete-large"></span></h2>
        <div class="meta-data">
          <p>
            <img src="http://placehold.it/40x40" class="avatar" alt="" />
            Jeremy Clarkson to <span class="user">me</span>
            <span class="date">July 15, 2013</span>
          </p>
        </div>
        <div class="body">
          <p>Hi Greg,</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magnam modi possimus dignissimos maxime ipsa unde voluptatum consectetur harum debitis dolorum quas quibusdam vero iusto ducimus blanditiis. Enim autem illo praesentium est quis ab voluptate sequi quia magnam deleniti vero dicta iste. Harum velit asperiores expedita inventore error nulla eius nostrum voluptas aspernatur at quia eaque ipsa deserunt quas doloribus totam incidunt mollitia iure! Libero laudantium nobis necessitatibus veniam autem molestias distinctio voluptas quos aliquam vitae. Consequuntur adipisci natus hic sed rerum dolore cumque numquam illum rem at quaerat reprehenderit iste quis maiores fuga voluptates delectus suscipit dicta nulla itaque placeat.</p>
          <p>Cheers</p>
        </div>
        <div class="action">
          <ul class="options">
            <li><a href="#" class="active">Answering</a></li>
            <li><a href="#">Forward</a></li>
            <div class="clr"></div>
          </ul>
          <div class="textarea">
            <textarea name="r">Hello Jeremy,
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit qui impedit magni fuga velit nobis quas fugit odio voluptas voluptates odit animi quos nam dolorem harum molestiae culpa sint rem ad esse laboriosam vero quod molestias porro ea dolores eligendi!
            </textarea>
            <div class="fileupload container">
              <span class="fileinfo">My file enclosed.pdf</span>
              <div class="progress">
                <div class="bar">65%</div>
              </div>
            </div>
          </div>
        </div>
      </section>
    </div>
  </div>
</div>
            
          
!
            
              @import "compass/css3";

@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);
$accent: #44c4e7;
$sidebarColor: #34393d;
$hightlight: #fd9162;

* { box-sizing: border-box; }

body { font-family: 'Open Sans', sans-serif; }

.clr { clear: both; }
a {
  text-decoration: none; 
}

.btn {
  border-radius: 4px;
  padding: 6px 10px;
  text-align: center;
  text-shadow: none;
  color: #fff;
  background: #fff;
  &.btn-primary {
    background: $accent; 
  }
}

.container {
  display: flex; 
  width: 100%;
  height: 100%;
}

.sidebar {
  width: 250px;
  background: $sidebarColor;
  order: 1;
  flex-flow: column;
  color: #fff;
  a {
    color: #fff;
  }
  h1 {
    font-weight: 400;
    background: darken($accent, 15%);
    line-height: 80px;
    margin: 0;
    padding: 0 30px;
  }
  
  .main-nav {
    margin: 30px 0;
    > ul {
      list-style: none;
      margin: 0;
      padding: 0;
      > li {
        transition: background-color .3s ease;
        &.active, &:hover {
          background: lighten($sidebarColor,5%);
        }
        > a {
          padding: 20px 30px;
          display: block;
          color: #999;
          font-weight: 700;
          text-shadow: 1px 1px 2px rgba(0,0,0,.3);
        }
        > .btn {
          display: block;
          color: #fff;
          text-shadow: none;
          margin: 10px 30px;
          padding: 10px;
          font-weight: 400;
        }
        > ul {
          list-style: none;
          margin: 0;
          padding: 10px 0;
          &.labels {
            border-top: 1px solid #555;
            margin-top: 20px;
          }
          > li {
            transition: background-color .3s ease;
            padding: 10px 30px;
            &.active, &:hover {
              background: lighten($sidebarColor,10%);  
            }
            .btn {
              font-size: .875rem;
              padding: 5px;
              float: right;
              position: relative;
              top: -4px;
            }
            .label {
              width: 20px; height: 20px; display: inline-block; 
              top: 0;
            }
            a {
              color: #999; 
              
            }
          }
        }
      }
    }
  }
  
}
.main {
  -webkit-flex: 1;
  order: 2;
  background: #f5f5f5;
  .header {
    background: $accent; 
    min-height: 80px;
    form {
      padding: 20px;
      display: inline-block;
      input[type="search"]{
        background: darken($accent,15%);
        border:none;
        border-radius: 3px;
        line-height: 40px;
        width: 500px;
        padding: 0 10px;
        outline: none;
      }
      input[type="search"]::-webkit-input-placeholder { color: #fff; }
    }
    ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .nav-settings {
      float: right; 
      line-height: 80px;
      border-left: 1px solid darken($accent,10%);
      li {
        display: inline-block;
        &:hover {
          background: darken($accent,5%);    
        }
        a {
          padding: 0 20px;
          color: #fff; 
          display: inline-block;
        } 
      }
    }
  }
}

.messages {
  order: 1;
  width: 400px;
  background: #fff;
  border-right: 1px solid #DDD;
  h1 {
    margin: 0;
    padding: 20px;
    font-weight: 400;
    color: #777;
    border-bottom: 1px solid #DDD;
  }
  form {
    padding: 20px;
    background: #FCFCFC;
    input[type="search"] {
      width: 100%;
      border-radius: 4px;
      border: 1px solid #ddd;
      padding: 10px;
      box-sizing: border-box;
        outline: none;
    }
  }
  .message-list {
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #ddd; 
    li { 
      background: #F8F6F4;
      transition: background-color .3s ease;
      border-top: 1px solid rgba(0,0,0,0.1); 
      border-right: 3px solid darken($accent,10%);
      padding: 10px 20px;
      display: flex;
      cursor: pointer;
      input[type="checkbox"] {
        appearance: none;
        cursor: pointer;
        margin: 5px 10px 0 0;
        order: 1;
        width: 15px;
        height: 15px;
        background: #fff; 
        border: 1px solid #ddd;
        border-radius: 3px;
        &:checked {
         background: #EFEFEF;    
        }
      }
      .preview {
        flex: 1;
        order: 2;
        h3 {
          margin: 0; 
          font-weight: 400;
          color: #333;
          small {
            float: right;
            color: #AAA;
            font-size: .8125rem;
          }
        }
        p {
          color: #888;
          margin: 5px 0;
        }
      }
      &:hover {
        background: #fff;    
      }
      &.active {
        background: $hightlight;
        border-right: 3px solid rgba(0,0,0,0.1);
        .preview {
           h3, h3 small, p { color: #fff; }
        }
      }
      &.new {
        background: #fff;
        border-right: 3px solid $accent;    
      }
    }
  }
}

.message {
  -webkit-flex: 1;
  order: 2;
  background: #fff;
  h2 {
    margin: 0;
    padding: 20px 30px;
    font-weight: 400;
  }
  .meta-data {
    margin: 10px 30px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    line-height: 50px;
    color: #888;
    .user {
       color: $hightlight;
    }
    img {
      display: inline;
      vertical-align: middle;
      margin-right: 20px;
      border-radius: 3px;
    }
    .date {
      float: right;
      color: #aaa;
    }
  }
  .body {
    padding: 20px 30px; 
  }
  .action {
    background: #fcfcfc;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 20px 30px;
    .options {
      list-style: none;
      margin: 0;
      padding: 0;
      li {
        float: left;
        &:first-child {
          border-right: 1px solid #ddd; 
          a {
             padding-left: 0; 
            }
        }
        a {
          color: #888;
          padding: 0 10px;
          &.active {
            color: #333; 
          }
        }
      }
    }
    .textarea {
      background: #fff;
      padding: 10px;
      border: 1px solid #ddd;
      position: relative;
      margin: 20px 0;
      &:before {
        content: '';
        display: block;
        border: 10px solid transparent;
        border-bottom: 10px solid #FFF;
        position: absolute;
        top: -19px;
        left: 25px;
        -webkit-filter: drop-shadow(0 -1px 0 #ddd);
      }
      textarea {
        width: 100%;
        min-height: 300px;
        appearance: none;
        border: none;
        resize: none;
        outline: none;
        margin-bottom: 50px;
      }
      .fileupload {
        background: #FCFCFC;
        border: 1px solid #ddd;
        padding: 10px;
        color: #888;
        justify-content: space-between;
          .fileinfo {
            flex: 1;  
          }
          .progress {
            width: 80%; 
            border: 1px solid #ddd;
            background: #fff;
            padding: 2px;
            .bar {
              background: $accent;
              width: 65%;
              text-align: right;
              color: #fff;
              padding: 3px;
              font-size: .75rem;
            }
          }
      }
    }
  }
}

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console