123

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              
<div class="outsidetoptext">
  <p>Mobile screen all in CSS, inspired from the free UI kit by Invisionapp called "Chat" (resources links at the bottom)</p>
  <p>coded by <a href="http://federicoespinosa.com/" target="_blank">Federico Espinosa</a></p>
  <p>screen 1-6 chat message</p>
</div>


<div class="mainbox">
  
  <div class="toppreheader">
    
    <div class="topleftmenu">
          
    </div>
    Catherina, Federico
    
    <div class="moreoptions"></div>
    
  </div>
  
  
  <div class="insidebox">
    
     <div class="newnotification">
       <div class="clock"></div>
      Today at 4:55pm</div>
    
    
<div class="leftimgmessage">
   <img src="http://i.imgsafe.org/e49ddc6.png">
    <div class="newmessagebox">
      
        <div class="newmessage">
        Hola! Como estas? Are we good for Wednesday?
        </div>
        <div class="newmessagetimer">
          6 minutes ago
        </div>
     </div>
</div>
    

    
<div class="rightimgmessage">
   <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/472983/profile/profile-80_1.jpg" alt="Federico Espinosa">
    <div class="messagebox">
      
        <div class="message">
        For sure I will be there! Count on me :)
        </div>
        <div class="messagetimer">
          5 minutes ago
        </div>
     </div>
</div>
    
    
    
<div class="leftimgmessage">
   <img src="http://i.imgsafe.org/e49ddc6.png">
    <div class="writingamessage">
      <span></span>
     </div>
</div>    
    
    
    
      <div class="followbutton">
        <a class="btn-floating btn-large waves-effect waves-light invipink right">
          <i class="sendmsg material-icons black-text"><span></span></i>
        </a>
      </div>
    
    
          <div class="bottomheader">

          <div class="cameraupload">
          <span></span>
          </div>
          Type message...
          </div>
    
    
  </div> <!-- Close .insidebox -->
 

  
</div> <!-- Close .mainbox -->


<div class="outsidebottomtext">
  <p>Resources links:</p>
  <p><a href="http://www.invisionapp.com/chat" target="_blank">Free UI kit "Chat" by Invisionapp</a></p>
  <p><a href="https://www.google.com/fonts/specimen/Karla" target="_blank">Google web font "Karla"</a></p>
  <p><a href="http://materializecss.com/" target="_blank">Materialize framework</a></p>
  <p>Coded by <a href="http://federicoespinosa.com/" target="_blank">Federico Espinosa</a></p>
</div>

            
          
!
            
              
/* Improve Typography with CSS

*, *:before, *:after {
	text-rendering: optimizeLegibility;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-smoothing: antialiased;
	font-feature-settings: "kern";
	font-kerning: normal;
	box-sizing: border-box;
}
html.touch *,html.touch *:before,html.touch *:after {
	text-rendering: optimizeSpeed;
}
html {
	font-size: 62.5%;
}
body {
	font-size: 1.5rem;
	user-select: text;
}

*/

body {
  background: rgba(0, 0, 0, 0.03);
  font-family: 'Karla', sans-serif;
}

.mainbox {
  width: 375px;
  height: 667px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
  background-color: #000;
  -webkit-box-shadow: 0px 0px 71px -10px rgba(0,0,0,0.3);
  -moz-box-shadow: 0px 0px 71px -10px rgba(0,0,0,0.3);
  box-shadow: 0px 0px 71px -10px rgba(0,0,0,0.3);
  position: relative;
}


.toppreheader {
  width: 100%;
  height: 64px;
  position: relative;
  text-align: center;
  color:#FFF;
  font-size: 17px;
  padding-top: 30px;
}

.topleftmenu {
  width: 0; 
  height: 0; 
  border-top: 5px solid transparent; 
  border-right: 7px solid #FFF; 
  border-bottom: 5px solid transparent;
  position: absolute;
  left: 20px;
  top: 37px;
}


.moreoptions {
  width: 6px;
  height: 6px;
  background-color: #FFF;
     -moz-border-radius: 50px;
  -webkit-border-radius: 50px;
          border-radius: 50px;
  position: absolute;
  display: block;
  content: '';
  right: 21px;
  bottom: 15px;
}

.moreoptions:after {
  width: 6px;
  height: 6px;
  background-color: #FFF;
     -moz-border-radius: 50px;
  -webkit-border-radius: 50px;
          border-radius: 50px;
  position: absolute;
  display: block;
  content: '';
  right: 0;
  bottom: 11px;
}

.insidebox {
  background: rgba(0,145,229,1);
  background: -moz-linear-gradient(45deg, rgba(0,145,229,1) 0%, rgba(0,145,229,1) 66%, rgba(0,162,255,1) 66%, rgba(0,162,255,1) 100%);
  background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(0,145,229,1)), color-stop(66%, rgba(0,145,229,1)), color-stop(66%, rgba(0,162,255,1)), color-stop(100%, rgba(0,162,255,1)));
  background: -webkit-linear-gradient(45deg, rgba(0,145,229,1) 0%, rgba(0,145,229,1) 66%, rgba(0,162,255,1) 66%, rgba(0,162,255,1) 100%);
  background: -o-linear-gradient(45deg, rgba(0,145,229,1) 0%, rgba(0,145,229,1) 66%, rgba(0,162,255,1) 66%, rgba(0,162,255,1) 100%);
  background: -ms-linear-gradient(45deg, rgba(0,145,229,1) 0%, rgba(0,145,229,1) 66%, rgba(0,162,255,1) 66%, rgba(0,162,255,1) 100%);
  background: linear-gradient(45deg, rgba(0,145,229,1) 0%, rgba(0,145,229,1) 66%, rgba(0,162,255,1) 66%, rgba(0,162,255,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0091e5', endColorstr='#00a2ff', GradientType=1 );
  width: 100%;
  height: 603px;
}


.newnotification {
  width: 50%;
  height: 70px;
  margin-left: auto;
  margin-right: auto;
  background-color: transparent;
  text-align:center;
  color: #FFF;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.clock {
  margin-right: 10px;
  margin-top: 17px; 
  width: 23px;
  height: 23px;
  background-color: #FFF;
  position: relative;
  display: inline-block;
  content: '';
  left: 0%;
  top: 8%;
  -webkit-border-radius: 50px;
     -moz-border-radius: 50px;
          border-radius: 50px;
} 

.clock:before { 
  content: "";
  width: 8px;
  height: 3px; 
  background-color: #118BFF;
  position: absolute;
  top: 11px;
  left: 9px; 
}

.clock:after { 
  content: "";
  width: 3px;
  height: 8px; 
  background-color: #118BFF;
  position: absolute;
  top: 6px;
  left: 9px; 
}


.leftimgmessage {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 25px;
  height: 18%;
}



.leftimgmessage img {
  width: 15%;
  float:left;
}

.newmessagebox {
  float:left;
  width: 75%;
  height: 102px;
  background-color: #FFF;
  position: relative;
  -webkit-box-shadow: 0px 15px 35px 10px rgba(0,0,0,0.25);
  -moz-box-shadow: 0px 15px 35px 10px rgba(0,0,0,0.25);
  box-shadow: 0px 15px 35px 10px rgba(0,0,0,0.25);
}

.newmessage {
  width: 100%;
  height: 75px;
  background-color: #FFF;
  float: left;
  padding: 24px;
}

.newmessagetimer {
  width: 75%;
  height: 27px;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 0 31px 24px;
  font-weight: 700;
  color: #9C6C6A;
  font-size: 10px;
  letter-spacing: 0.02em
}



.rightimgmessage {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 25px;
  height: 18%;
}

.rightimgmessage img {
  width: 15%;
  float:right;
}

.messagebox {
  float:right;
  width: 85%;
  height: 102px;
  background-color: #FFF;
  position: relative;
  -webkit-box-shadow: 0px 15px 35px 10px rgba(0,0,0,0.25);
  -moz-box-shadow: 0px 15px 35px 10px rgba(0,0,0,0.25);
  box-shadow: 0px 15px 35px 10px rgba(0,0,0,0.25);
}

.message {
  width: 100%;
  height: 75px;
  background-color: #FFF;
  float: left;
  padding: 24px;
}

.messagetimer {
  width: 75%;
  height: 27px;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 0 31px 24px;
  font-weight: 700;
  color: #9C6C6A;
  font-size: 10px;
  letter-spacing: 0.02em
}



.leftimgmessage:nth-child(4) {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 25px;
  height: 8%;
  position: relative;
}

.writingamessage span,
.writingamessage span:before,
.writingamessage span:after { 
  width: 8px; 
  height: 8px; 
  background: #99ACCC; 
  -moz-border-radius: 50px; 
  -webkit-border-radius: 50px; 
  border-radius: 50px;
  float: right;
  position: absolute;
  left: 80px;
  top: 19px;
  content: ''; 
}

.writingamessage span:before {
  background: #FDAEAA;
  left: -13px;
  top: 0px;
}
.writingamessage span:after {
  background: #64A2D3;
  left: 13px;
  top: 0;
}



.bottomheader {
  width: 100%;
  height: 54px;
  position: absolute;
  color:#FFF;
  font-size: 16px;
  padding-top: 17px;
  padding-left: 62px;
  background-color: #000;
  bottom: 0px;
  text-rendering: optimizeLegibility;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-smoothing: antialiased;
}

.cameraupload {
  height: 3px;
  width: 35px;
  position: absolute;
  display: block;
  content: '';
  z-index: 900;
  left: 22px;
  top: 23px;
}

.cameraupload span, 
.cameraupload span:before {
  width: 20px;
  height: 15px;
  background-color: #FFF;
  position: absolute;
  display: block;
  content: '';
}

.cameraupload span:before {
  top: -2px;
  left: 7px;
  width: 6px;
}

.cameraupload span:after {
  width: 6px;
  height: 6px;
  background-color: #000;
     -moz-border-radius: 50px;
  -webkit-border-radius: 50px;
          border-radius: 50px;
  position: absolute;
  display: block;
  content: '';
  left: 37%;
  top: 28%;
}

.followbutton {
  position:absolute;
  bottom:26px; 
  right: 25px
}


.sendmsg {
   border-top: 10px solid transparent; 
   border-left: 25px solid #000; 
   border-bottom: 10px solid transparent;
   position: absolute;
   left: 18px;
   top: 18px;
   width: 0; 
   height: 0;
   z-index: 100;
}

.sendmsg span {
   position: absolute;
   right: 50px;
   top: -1px;
   width: 6px; 
   height: 3px;
   background-color: #FFBDB8;
   z-index: 200;
}






.outsidetoptext {
  font-family: Courier New,Courier,Lucida Sans Typewriter,Lucida Typewriter,monospace; 
  text-align: center;
  margin: 4% 20% 2% 20%;
}

.outsidetoptext p:last-child {
  font-weight: bold;
}

.outsidebottomtext {
  font-family: Courier New,Courier,Lucida Sans Typewriter,Lucida Typewriter,monospace; 
  text-align: center;
  margin: 0 0 4% 0;
}



/* overwrite of some css style from materialize.css */

.invipink {
    background-color: #ffbdb8;
}

.invipink:hover {
    background-color: #dba29d;
}




            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console