Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                #slack-container
  #sidebar
    #team-picker
      ul.teams
        li.team
        li.team
    #team-name 
      h1 Team Awesome
    #username
      .status 
      h2 brandonfujii
    ul#channels
      h4 channels
      li.channel.selected
        p 
          i # 
          | general
      li.channel.unread
        p 
          i # 
          | marketing
      li.channel
        p 
          i # 
          | tech
      li.channel
        p 
          i # 
          | branding
      li.channel
        p 
          i # 
          | exec
    ul#direct-messages
      h4 Direct Messages
      li.direct-message
        .status 
        p slackbot
      li.direct-message
        .status 
        p navin
      li.direct-message
        .status 
        p edys
      li.direct-message
        .status 
        p kimberlygo
      li.direct-message
        .status.inactive
        p alexandra
  
  #chat
    .header-bar
      h1 #general
      .details
        h3.members 5 members
        h3.purpose Sometimes we do cool stuff
    #chatbox
      ul.messages
        li.message
          .user-icon
            img(src="http://socialmediaweek.org/wp-content/blogs.dir/1/files/slack-pattern-940x492.jpg")
          .body
            .username kimberlygo
            .text @channel hey guys, update the slides pls
        li.message
          .user-icon
            img(src="http://socialmediaweek.org/wp-content/blogs.dir/1/files/slack-pattern-940x492.jpg")
          .body
            .username navin
            .text @kimberlygo: okay, i'll do it! 
    .input-bar
      form
        input(type='text' placeholder='')
  
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Lato:400,300,300italic,400italic,700,700italic,900,900italic);
$SlackTeal: #4C9689;
$SlackPurple: #4E394C;

ul {
  margin: 0;
  padding: 0;
}

#slack-container {
  font-family: 'Lato', Helvetica, sans-serif;
  box-shadow: 0 0 50px 0 rgba(0,0,0,0.2);
  height: 600px;
  width: 1000px;
  margin: 0 auto;
  border-radius: 5px;
  overflow: hidden;
  
  #sidebar {
    float: left;
    color: #fff;
    display: inline-block;
    height: 100%;
    float: left;
    width: 30%;
    background: $SlackPurple;
    
    #team-picker {
      margin-right: 15px;
      float: left;
      display: inline-block;
      height: 100%;
      width: 80px;
      background: darken($SlackPurple, 5%);
      .teams {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        padding-top: 25px;
        
        .team {
          list-style: none;
          width: 45px;
          height: 45px;
          background: #fff;
          margin: 0 auto;
          margin-bottom: 25px;
          border-radius: 5px;
          overflow: hidden;
          
        }
      }
    }
    
    #team-name {
      display: inline-block;
      
      h1 {
               
        font-size: 16px;
        margin: 0;
        margin-top: 10px;
        
      }
    }
    
    #username {
      display: block;
      .status {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 10px;
        background-color: $SlackTeal;
      }
      
      h2 {
        display: inline-block;
        opacity: 0.5;
        font-size: 14px;
        font-weight: 300;
        margin: 0;
      }
    }
    
    #channels {
      display: block;
      padding-top: 25px; 
      
      h4 {
        margin: 0;
        margin-bottom: 10px;
        padding: 0;
        text-transform: uppercase;
        font-weight: 400;
        font-size: 12px;
        opacity: 0.5;
      }
      .channel {
        padding-left: 10px;
        display: block;
        font-weight: 300;
        
        
        p {
          
          font-size: 13px;
          margin: 0;
          padding-top: 2.5px;
          padding-bottom: 2.5px;
          opacity: 0.5;
          
          i {
            font-style: normal;
            opacity: 0.45;
          }
        }
      }
      
      .channel.unread {
        font-weight: 700;
        p {
          opacity: 1;
          
          i {
            font-weight: 300;
          }
        }
      }
      
      .channel.selected {
        width: 92%;
        border-radius: 3px;
        background: $SlackTeal;
        padding-bottom: 3px;
        
        p {
          opacity: 1;
        }
      }
    }
    
    #direct-messages {
      display: block;
      padding-top: 40px;
      
      h4 {
        margin: 0;
        margin-bottom: 10px;
        padding: 0;
        text-transform: uppercase;
        font-weight: 400;
        font-size: 12px;
        opacity: 0.5;
      }
      
      .direct-message {
        padding-left: 10px;
        display: block;
        font-weight: 300;
        .status {
          display: inline-block;
          width: 8px;
          height: 8px;
          border-radius: 10px;
          background-color: $SlackTeal;
        }
        .status.inactive {
          background: transparent;
          width: 6px;
          height: 6px;
          border: 1px solid #fff;
          opacity: 0.5;
        }
        p {
          display: inline-block;
          font-size: 13px;
          margin: 0;
          padding-top: 2.5px;
          padding-bottom: 2.5px;
          opacity: 0.5;
        }
      }
    }
  }
  
  #chat {
    position: relative;
    width: 70%;
    height: 100%;
    float: left;
    display: inline-block;
    .header-bar {
      width: 100%;
      padding-left: 10px;
      border-bottom: 1px solid #ddd;
      h1 {
        font-size: 16px;
        margin-bottom: 0;
      }
      h3 {
        font-weight: 400;
        display: inline-block;
        font-size: 12px;
        opacity: 0.3;
        padding-right: 7px;
        margin-top: 0;
      }
      .purpose {
        border-left: 1px solid #ccc;
        padding-left: 7px;
      }
    }
    
    #chatbox {
      width: 100%;
      
      .messages {
        width: 100%;
        .message {
          padding: 10px 10px 10px 20px;
          display: block;
          font-size: 14px;
          
          .user-icon {
            position: relative;
            top: 4px;
            margin-right: 7px;
            width: 35px;
            height: 35px;
            border-radius: 4px;
            overflow: hidden;
            background: $SlackPurple;
            display: inline-block;
            
            img {
              width: 550%;
              height: auto;
            }
          }
          
          .body {
            display: inline-block; 
          
            .username {
              font-weight: 700;
              padding-bottom: 3px;
            }
            
            .text {
              color: #252525;
            }
            
          }
        }
      }
    }
    
    .input-bar {
      
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      padding: 3%;
      
      form {
        input {
          outline: none;
          border-radius: 5px;
          border: 2px solid #dedede;
          height: 25px;
          width: 92%;
          padding: 5px;
          font-size: 13px;
        }
      }
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console