Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

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

              
                .conversation
  .status-bar
    .fontawesome-bell
    .entypo-chat
    .entypo-battery
    .entypo-signal
    .fontawesome-signal
    .time 12:02
    .entypo-clock
  .heading
    .convn-info Me and Lucas
  .krm Kaushalya:
    .content Hey, How are you?
    .message-time 11:57 
  .luky Lucas:
    .content Yo! I'm fine... What 'bout u?
    .message-time 11:58
  .krm Kaushalya:
    .content I'm great... sup?
    .message-time 11:58
  .luky Lucas:
    .content Not much.
    .message-time 11:59
  .krm Kaushalya:
    .content Btw coming to my home at evening or not?
    .message-time 12:00
  .luky Lucas:
    .content I've to work a lot...I'll call you later bye...
    .message-time 12:00
  .krm Kaushalya:
    .content Ok bye.
    .message-time 12:01
    
    
    
.kaushalya 
  a(href="http://seebeetee.com") By Kaushalya Mandaliya
              
            
!

CSS

              
                @import "compass/css3";

@import url(http://weloveiconfonts.com/api/?family=entypo|fontawesome);

/* entypo */
[class*="entypo-"]:before {
  font-family: 'entypo', sans-serif;
}

/* fontawesome */
[class*="fontawesome-"]:before {
  font-family: 'fontawesome', sans-serif;
}


$c-1: #3498db;
$c-2: #34495e;
$c-3: #ecf0f1;
$c-4: #95a5a6;
$c-5: #9b59b6;


$message-margin: -2.5em -4.1em;
$message-font-size: 0.7em;


body {
  background: $c-4;
  font-family: 'Nunito', sans-serif;
}

div.conversation {
  background: $c-2;
  // border: 0.2em solid $c-2;
  color: $c-3;
  font-size: 1.3em;
  margin: 2em auto;
  max-width: 21em;
  overflow: hidden;
  
  @include border-radius(0.4em);
  
  .status-bar{
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    
    div {
      display: inline-block;
    }
    
    .time {
      font-size: 0.8em;
    }
  }
  
  .heading {
    .convn-info {
      text-align: center;
      font-size: 2em;
    }
  }
  
  .krm {
    background: $c-1;
    float: left;
    padding: 1em;
    text-align: left;    
    
    @include border-radius(0 1em 1em 0);
  }
  
  .luky {
    background: $c-3;
    color: $c-1;
    float: right;
    padding: 1em; 
       
    @include border-radius(1em 0 0 1em);
  }
  
  .krm,
  .luky {
    clear: both;
    margin: 0.2em 0;
    max-width: 80%;
    min-width: 50%;
    
    &:hover {
      .message-time {
        opacity: 1;
      }
    }
  }
  
  .krm .message-time {
    color: rgba($c-3, 0.5);
    float: right;
    font-size: $message-font-size;
    opacity: 0;
    position: relative;
    margin: $message-margin;
    
    @include transform(rotate(90deg));
    @include transition(0.3s all ease-in-out);
  }
  
  .luky .message-time {
    color: rgba($c-3, 0.5);
    float: left;
    font-size: $message-font-size;
    opacity: 0;
    position: relative;
    margin: $message-margin;
    
    @include transform(rotate(-90deg));
    @include transition(0.3s all ease-in-out);
  }
  
  .krm .message-time:before,
  .luky .message-time:before {
    content: ' ' '\1f554' ' ';
    
    font-family: 'entypo', sans-serif;
  }
  
  div:last-child {
    margin-bottom: 0;
  }
  
  ::selection {
    background: $c-2;
  }
  
  ::moz-selection {
    background: $c-2;
  }
}



.kaushalya {
  bottom: 0.4em;
  color: $c-3;
  position: fixed;
  right: 0.4em;
  
  a {
    border-bottom: 0.1em solid;
    color: inherit;
    text-decoration: none;
  }
}
              
            
!

JS

              
                /*
 * Simple Chat UI
 *
 *
 * 2014 By Kaushalya Mandaliya
 * @kmandalwala | http://seebeetee.com
 *
 */
              
            
!
999px

Console