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

              
                  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">

<div class="row">
  <div class="col col-8">
  <br> <div class="micro"> <i class="fas fa-microphone"></i> </div>
 
    <br>
  <div class="wrapper">
  <div class="ct-chart ct-golden-section "></div> 
</div> 
  
  </div>
  <div class="col col-4"> <span class="live-chat">Live chat</span>
<br><br>
    <div class="input-button">
    <input type="text" class="color-code" id="color" value="" >
    
    	<button type="submit" class="btn btn_animated">
       
	<span class="circle">
	     <span class="ink animate" style="height: 123px; width: 123px; top: -33.9375px; left: 61.0625px;"></span>Send
	  </span>
	</button>
     </div>
      <br>
    <div class="chat-ballons">
    <div class="box sb3">Hi! I am the lovely bot!
      <span class="time-right">11:01</span>
      </div>
    
<div class="box sb4">Hi Bot! I am a mere human being. <span class="time-right">12:01</span>
      </div>

    <div class="box sb3">Please, don't be obnoxious!<span class="time-right">12:01</span></div>

    <div class="box sb4">My bad. I am sorry.
       <span class="time-right">12:01</span>
      </div>
</div><!--//div chat-ballons///-->
    
  </div>
</div>
              
            
!

CSS

              
                * {
    box-sizing: border-box;
}

body {
  font-family: sans-serif;
   background-color:#F3F3F3;
}

.row {
  display: flex;
  margin:1em 1em;
}

.col {
  height: 100vh;
  color: #777;
  display: flex;
  padding:1em 1em;
  flex-direction: column;
  text-align: center;
}

input{
  width:100%;
}

.col-4 {
  flex: 4;
   background-color:#F3F3F3;
 }

.col-8 {
  flex: 8;
  background: #fff;
  box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
}

/* Style time text */
.time-right {
    float: right;
    color: #777;
  padding-top:0.8em;
}

.box {
  width: 18em;
  margin: 15px auto;
  padding: 0.8em;
  text-align: center;
  font-weight: 900;
  color: #333;
  font-family: arial;
  position: relative;
  font-size:1.4vw;
  border-radius:1em;
   box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}


.sb3{
    background: #58D8E0;
    float:left;
  cursor:pointer;
}

.sb4{
    background: #A9E554;
   float:right;
  cursor:pointer;

}

  .sb3:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    border-left: 10px solid #58D8E0;
    border-right: 10px solid transparent;
    border-top: 10px solid #58D8E0;
    border-bottom: 10px solid transparent;
    left: 19px;
    bottom: -19px;
  }

.sb4:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid transparent;
  border-right: 10px solid #A9E554;
  border-top: 10px solid #A9E554;
  border-bottom: 10px solid transparent;
  right: 19px;
  bottom: -19px;
}
.input-button{
  margin-right:-1em;
}

a.btn, .btn {
  width:16vw;
  margin-top:0.7em;
  position: relative;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    height: 42px;
    line-height: 42px;
    padding: 0;
    font-weight: 400;
    text-align: center;
    color: #fefefe;
    font-size: 0.8em;
    background: #304fff;
    cursor: pointer;
    transition: all 0.2s ease 0s;
    -moz-transition: all 0.2s ease 0s;
    -webkit-transition: all 0.2s ease 0s;
    -o-transition: all 0.2s ease 0s;
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    -khtml-border-radius: 2px;
     float:right;
}

a.btn .circle, .btn .circle {
    padding: 0 30px;
}
.btn_animated .circle {
    width: 100%;
    height: 100%;
    display: block;
}
.animate {
    -webkit-animation: ripple 0.6s linear;
    animation: ripple 0.6s linear;
}

.ink {
    display: block;
    position: absolute;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 100%;
    transform: scale(0);
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -o-transform: scale(0);
}

@keyframes ripple {
	100% {
	opacity: 0;
	transform: scale(4);
	-webkit-transform: scale(4);
	}

}

.fa-microphone{font-size:3vw;margin-top:-0.4em;}


.wrapper {
  width: 100%;
  max-width: 800px;
  margin: 10px auto;
}

.ct-chart .ct-label.ct-horizontal {
  text-align: center;
}
.ct-chart .ct-bar {
  stroke-width: 5px;
}
@media screen and (min-width: 400px) {
  .ct-chart .ct-bar {
    stroke-width: 10px;
  }
}
@media screen and (min-width: 600px) {
  .ct-chart .ct-bar {
    stroke-width: 10px;
  }
}

.micro {
  text-align: center;
  display: flex;
  text-align:center; 
}

.micro:before, 
.micro:after {
  flex-grow: 1;
  height: 2px;
  content: '\a0';
  background-color: #ddd;
  position: relative;
}

.micro:before {
  margin-right:10px;
}

.micro:after {
  margin-left:10px;
}

live-chat{
  font-size:2em;
}
@media (max-width: 1000px) {
 
  .row {
    flex-direction: column;
  }
  
  .col-8,
  .col-4 {
    flex: 12;
    max-width: 100vw;
  }  
  
  .col-4 {
    margin-bottom: 30px;
    margin-right: 0;
    order:1;
  }
  
  .col-8 {
    order:2; 
  }
  
  .box {
    font-size:3vw;
  }
  
  a.btn, .btn {
    width:25vw;
    margin-top:0.7em;
    margin-right:5.5em;
  }
  
 input {
    width: 80%;
   margin:0 auto;
   } 
}

              
            
!

JS

              
                $("input[type='text'].color-code").focusout(function(){
    
    $(this).css("background-color",$(this).val());

});

new Chartist.Line('.ct-chart', {
  labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
  series: [
    [12, 8, 2, 4, 5, 8, 14, 30],
        [5, 8, 2, 4, 5, 8, 14, 30],
        [7, 8, 2, 4, 5, 8, 14, 30],
    
        [2, 8, 2, 4, 5, 8, 14, 30],
        [0, 8, 2, 54, 5, 8, 14, 30],
        [3, 8, 2, 4, 5, 8, 14, 30],
        [22, 8, 2, 4, 5, 8, 14, 30],
        [18, 8, 2, 4, 5, 8, 14, 30],
    [10, 8, 2, 94, 5, 8, 14, 30],
    [11, 3, 4, 5, 6, 8, 13, 15],
  ]
}, {
  seriesBarDistance: 6,
  axisX: {
    showGrid: false,
    // Only return first letter of weekday names
    labelInterpolationFnc: function(value) {
      return value[0];
    }
  }
}, [
  // Over 300px, we change the bar distance and show the first three letters of the weekdays
  ['screen and (min-width: 300px)', {
    seriesBarDistance: 15,
    axisX: {
      labelInterpolationFnc: function(value) {
        return value.slice(0, 3);
      }
    }
  }],
  // Over 600px, we increase the bar distance one more time and show the full weekdays
  ['screen and (min-width: 600px)', {
    seriesBarDistance: 30,
    axisX: {
      labelInterpolationFnc: function(value) { return value; }
    }
  }]
]);


              
            
!
999px

Console