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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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

              
                <div class="container">
  <div class="app">

    <div class="head clearfix">
      <span class="messages-notification">
            <i class="fa fa-comments-o"></i>
            <span class="count">2</span>
      </span>
      <span class="title">Messenger</span>
      <span class="create-new">
            <i class="fa fa-pencil-square-o"></i>
          </span>
    </div>

    <div class="search-bar">
      <i class="fa fa-search"></i>
      <input type="text" class="ip-search" placeholder="Search" />
    </div>

    <div class="body">
      <div class="friend-list clearfix">
        <ul>
          <li>
            <span class="messages">
                  <span class="count">1</span>
            </span>
            <img src="https://s5.postimg.cc/3wnxyjz8n/image.png" alt="" />
            <span class="name">
                  Sophia
                  <span class="status">
                    Active 2h ago
                  </span>
            </span>
          </li>
          <li>
            <span class="messages hide">
                  <span class="count"></span>
            </span>
            <img src="https://s5.postimg.cc/q9vold06b/image.png" alt="" />
            <span class="name">
                  John
                  <span class="status">
                    Online
                  </span>
            </span>
          </li>
          <li class="active">
            <span class="messages hide">
                  <span class="count"></span>
            </span>
            <img src="https://s5.postimg.cc/nttv7ii3n/image.png" alt="" />
            <span class="name">
                  Emma
                  <span class="status">
                    Active 2 mins ago
                  </span>
            </span>
          </li>
          <li>
            <span class="messages">
                  <span class="count">7</span>
            </span>
            <img src="https://s5.postimg.cc/pzo620lk3/image.png" alt="" />
            <span class="name">
                  Steve
                  <span class="status">
                    Active 1h ago
                  </span>
            </span>
          </li>
          <li>
            <span class="messages hide">
                  <span class="count"></span>
            </span>
            <img src="https://s5.postimg.cc/dz2q1ae5f/image.png" alt="" />
            <span class="name">
                  Mark
                  <span class="status">
                    Online
                  </span>
            </span>
          </li>
        </ul>
      </div>

      <div class="chat-messages">
        <div class="chat">
          <div class="chat-content clearfix">
            <span class="friend last">
                  Hi, How are You?
                  <span class="time">
                    7:30 PM
                  </span>
            </span>
            <span class="you first">
                  Hi, I am fine.
                  How about you?
                  <span class="time">
                    7:31 PM
                  </span>
            </span>
            <span class="you last">
                  lets meet,
                  this sunday!
                  <span class="time">
                    7:31 PM
                  </span>
            </span>
          </div>

          <div class="msg-box">
            <input type="text" class="ip-msg" placeholder="type something.." />
            <span class="btn-group">
                  <i class="fa fa-paper-plane"></i>
                  <i class="fa fa-paperclip"></i>
                </span>
          </div>

        </div>
      </div>

    </div>

    <div class="footer">
      <ul>
        <li class="active">
          <i class="fa fa-comments-o"></i>
        </li>
        <li>
          <i class="fa fa-tags"></i>
        </li>
        <li>
          <i class="fa fa-heart"></i>
        </li>
        <li>
          <i class="fa fa-clock-o"></i>
        </li>
        <li>
          <i class="fa fa-cog"></i>
        </li>
      </ul>
    </div>

  </div>
</div>










<div class="yt">
  <a href="https://youtu.be/rEmd9c3wtVE" target="_blank">
    <img width="151" src="https://s5.postimg.cc/vzwuxmw87/template.png" alt="" />
  </a>
</div>
              
            
!

CSS

              
                *
{
  margin: 0;
  padding: 0;
  outline: none;
}

body
{
  font-family: 'Roboto', sans-serif;
  background: #c1b4ff;
}

.container
{
  position: relative;
  width: 430px;
  height: 900px;
  left: 50%;
  margin: 0px auto;
  margin-left: -205px;
  display: inline-block;
}

div.app
{
  position: relative;
  width: 380px;
  height: 670px;
  background: #5850c0;
  margin-top: 30px;
}

div.app:before
{
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
  display: inline-block;
  box-shadow: inset 0 80px 85px -35px #3c33b0;
  z-index: 0;
}

div.app:after
{
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
  display: inline-block;
  bottom: 0;
  box-shadow: inset 0 -80px 85px -35px #3c33b0;
  z-index: 0;
}

div.app div.head
{
  z-index: 1;
  position: relative;
  display: block;
  width: 100%;
  height: 50px;
  line-height: 48px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);

  background: #271c5d;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  box-shadow: inset 0 -15px 35px -5px rgba(0,0,0,0.3);
}

div.head span.title
{
  position: absolute;
  width: 100%;
  display: inline-block;
  left: 0;
  font-size: 16px;
  font-weight: 500;
  margin-top: 2px;
  color: #fff;
}

div.head span.messages-notification
{
  position: relative;
  float: left;
  font-size: 18px;
  font-weight: normal;
  margin-left: 15px;
  color: #fff;
  margin-top: 2px;
}

div.head span.messages-notification span.count
{
  position: absolute;
  font-size: 10px;
  width: 17px;
  height: 17px;
  display: inline-block;
  background: #f42052;
  line-height: 17px;
  border-radius: 100%;
  margin-top: 6px;
  margin-left: -10px;
}

div.head span.create-new
{
  float: right;
  font-size: 17px;
  font-weight: normal;
  margin-right: 15px;
  color: #fff;
  margin-top: 2px;
}

.clearfix::after
{
  content: '';
  clear: both;
  display: table;
}

div.search-bar
{
  position: relative;
  margin-top: 15px;
  text-align: center;
  z-index: 1;
}

div.search-bar .ip-search
{
  width: 85%;
  border: none;
  font-size: 16px;
  padding: 10px 15px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.25);
  border-radius: 50px;
  border: 1px solid rgba(60,51,176,0.7);
  box-shadow: inset 0 25px 25px -15px rgba(60,51,176,0.15);
}

div.search-bar .ip-search::placeholder
{
  color: rgba(255,255,255,0.8);
  letter-spacing: 1px;
  font-size: 14px;
}

div.search-bar i.fa
{
  position: absolute;
  right: 0;
  margin-right: 25px;
  margin-top: 14px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
}

.friend-list
{
  margin-top: 35px;
}

.friend-list ul li
{
  position: relative;
  list-style: none;
  float: left;
  width: 20%;
  text-align: center;
}

.friend-list ul li img
{
  border-radius: 100%;
  border: 3px solid rgba(255,255,255,1);
}

.friend-list ul li:nth-child(2n+1) img
{
  width: 40px;
  height: 40px;
}

.friend-list ul li:nth-child(2n+2) img
{
  width: 50px;
  height: 50px;
  transform: translateY(-10%);
}

.friend-list ul li:nth-child(3) img
{
  width: 70px;
  height: 70px;
  transform: translateY(-20%);
}

.friend-list ul li:nth-child(2n+1) img,
.friend-list ul li:nth-child(2n+1) span.name
{
  opacity: 0.4;
}

.friend-list ul li:nth-child(2n+2) img,
.friend-list ul li:nth-child(2n+2) span.name
{
  opacity: 0.7;
}

.friend-list ul li.active img,
.friend-list ul li.active span.name
{
  opacity: 1;
}

.friend-list ul li.active img
{
  box-shadow: 1px 1px 0 rgba(39,28,93,0.5),
              -1px -1px 0 rgba(39,28,93,0.5),
              0 0 35px rgba(255,255,255,0.3);
}

.friend-list ul li span.name
{
  position: relative;
  width: 100%;
  left: 0;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.9);
}

.friend-list ul li.active span.name
{
  top: -7px;
}

.friend-list ul li span.name span.status
{
  display: block;
  text-transform: none;
  font-weight: 300;
  font-size: 8px;
  color: rgba(255,255,255,0.5);
}

.friend-list ul li.active span.name span.status
{
  font-size: 9px;
}

.friend-list ul li:nth-child(2n+1) span.messages span.count
{
  position: absolute;
  font-size: 10px;
  width: 17px;
  height: 17px;
  display: inline-block;
  background: #f42052;
  z-index: 10;
  line-height: 17px;
  border-radius: 100%;
  margin-top: -2px;
  right: 0;
  margin-right: 10px;
  color: #fff;
}

.friend-list ul li:nth-child(2n+2) span.messages span.count
{
  position: absolute;
  z-index: 10;
  font-size: 10px;
  width: 20px;
  height: 20px;
  display: inline-block;
  background: #f42052;
  line-height: 20px;
  border-radius: 100%;
  margin-top: -10px;
  right: 0;
  margin-right: 7px;
  color: #fff;
}

.friend-list ul li.active span.messages,
.friend-list ul li span.messages.hide
{
  display: none;
}

div.chat-messages
{
  position: relative;
  margin-top: 15px;
  z-index: 10;
}

div.chat-messages div.chat
{
  position: relative;
  width: 260px;
  height: 270px;
  background: #fcfcfe;
  left: 50%;
  margin-left: -150px;
  padding: 20px;
  border-radius: 5px;
  font-size: 15px;

  box-shadow: 30px 0 0 -15px #a7a4dd,
              60px 0 0 -30px #7570c8,
              -30px 0 0 -15px #a7a4dd,
              -60px 0 0 -30px #7570c8,
              0 0 25px rgba(255,255,255,0.5);
}

div.chat div.chat-content > span
{
  margin-bottom: 12px;
}

div.chat div.chat-content span.friend
{
  position: relative;
  width: 70%;
  height: auto;
  display: inline-block;
  background: #fff;
  padding: 10px;
  padding-bottom: 25px;
  box-shadow: 2px 2px 20px -2px rgba(60,51,176,0.2);
  color: rgba(60,51,176,1);
}

div.chat div.chat-content span.friend.first
{
  border-radius: 15px 15px 15px 2px;
}

div.chat div.chat-content span.friend.last
{
  border-radius: 2px 15px 15px 15px;
}

div.chat div.chat-content span.friend span.time
{
  position: absolute;
  display: block;
  right: 0;
  margin-top: 5px;
  margin-right: 10px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(60,51,176,0.5);
}

div.chat div.chat-content span.you
{
  position: relative;
  float: right;
  width: 70%;
  height: auto;
  background: #5850c0;
  display: inline-block;
  padding: 10px;
  padding-bottom: 25px;
  color: #fff;

  box-shadow: 2px 2px 20px rgba(60,51,176,0.2),
              inset -10px -10px 55px rgba(255,255,255,0.1);
}

div.chat div.chat-content span.you span.time
{
  position: absolute;
  display: block;
  right: 0;
  margin-top: 5px;
  margin-right: 10px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}

div.chat div.chat-content span.you.first
{
  border-radius: 15px 15px 2px 15px;
}

div.chat div.chat-content span.you.last
{
  border-radius: 15px 2px 15px 15px;
}

div.msg-box
{
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(60,51,176,0.1);
  overflow: hidden;
}

div.msg-box .ip-msg
{
  width: 70%;
  font-size: 14px;
  padding: 15px;
  padding-right: 30%;
  color: rgba(60,51,176,0.9);
  border: none;
  background: rgba(0,0,0,0.03);
}

div.msg-box .ip-msg::placeholder
{
  color: rgba(60,51,176,0.4);
}

div.msg-box span.btn-group
{
  position: absolute;
  right: 0;
  top: 0;
  margin-top: 14px;
  display: inline-block;
  margin-right: 10px;
}

div.msg-box span.btn-group i
{
  color: rgba(60,51,176,1);
  font-size: 18px;
  padding: 0 7px;
}

div.footer
{
  position: absolute;
  width: 100%;
  bottom: 0;
  z-index: 10;
  background: #271c5d;
  border-top: 1px solid rgba(255,255,255,0.35);
  box-shadow: inset 0 15px 25px -5px rgba(0,0,0,0.3);
}

div.footer ul li
{
  list-style: none;
  float: left;
  width: 20%;
  display: inline-block;
  padding: 18px 0;
  font-size: 18px;
  text-align: center;
  color: #8b86ed;
}

div.footer ul li.active
{
  color: #fff;
  box-shadow: inset 0 -6px 0 rgba(139,134,237,0.8),
              inset 0 -25px 25px -10px rgba(139,134,237,0.2);
}








.yt {
  position: fixed;
  padding: 7px 10px 3px 10px;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 7px;
}

.yt:hover {
  background: rgba(0, 0, 0, 0.4);
}
              
            
!

JS

              
                
              
            
!
999px

Console