JavaScript preprocessors can help make authoring JavaScript easier and more convenient. For instance, CoffeeScript can help prevent easy-to-make mistakes and offer a cleaner syntax and Babel can bring ECMAScript 6 features to browsers that only support ECMAScript 5.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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="comments">
<div class="comment-wrap">
<div class="photo">
<div class="avatar" style="background-image: url('https://s3.amazonaws.com/uifaces/faces/twitter/dancounsell/128.jpg')"></div>
</div>
<div class="comment-block">
<form action="">
<textarea name="" id="" cols="30" rows="3" placeholder="Add comment..."></textarea>
</form>
</div>
</div>
<div class="comment-wrap">
<div class="photo">
<div class="avatar" style="background-image: url('https://s3.amazonaws.com/uifaces/faces/twitter/jsa/128.jpg')"></div>
</div>
<div class="comment-block">
<p class="comment-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto temporibus iste nostrum dolorem natus recusandae incidunt voluptatum. Eligendi voluptatum ducimus architecto tempore, quaerat explicabo veniam fuga corporis totam reprehenderit quasi
sapiente modi tempora at perspiciatis mollitia, dolores voluptate. Cumque, corrupti?</p>
<div class="bottom-comment">
<div class="comment-date">Aug 24, 2014 @ 2:35 PM</div>
<ul class="comment-actions">
<li class="complain">Complain</li>
<li class="reply">Reply</li>
</ul>
</div>
</div>
</div>
<div class="comment-wrap">
<div class="photo">
<div class="avatar" style="background-image: url('https://s3.amazonaws.com/uifaces/faces/twitter/felipenogs/128.jpg')"></div>
</div>
<div class="comment-block">
<p class="comment-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto temporibus iste nostrum dolorem natus recusandae incidunt voluptatum. Eligendi voluptatum ducimus architecto tempore, quaerat explicabo veniam fuga corporis totam.</p>
<div class="bottom-comment">
<div class="comment-date">Aug 23, 2014 @ 10:32 AM</div>
<ul class="comment-actions">
<li class="complain">Complain</li>
<li class="reply">Reply</li>
</ul>
</div>
</div>
</div>
</div>
</div>
@import "bourbon";
$ptsans: "PT Sans", "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
$placeholder: #ced2db;
$text-color: #555f77;
$links: #0095ff;
html, body {
background-color: #f0f2fa;
font-family: $ptsans;
color: $text-color;
-webkit-font-smoothing: antialiased;
}
input, textarea {
outline: none;
border: none;
display: block;
margin: 0;
padding: 0;
-webkit-font-smoothing: antialiased;
font-family: $ptsans;
font-size: rem(16);
color: $text-color;
@include placeholder {
color: $placeholder;
}
}
p {
line-height: rem(21);
}
.comments {
margin: rem(40) auto 0;
max-width: rem(972);
padding: 0 rem(20);
}
.comment-wrap {
margin-bottom: rem(20);
display: table;
width: 100%;
min-height: rem(85);
}
.photo {
//background-color: #ff6666;
padding-top: rem(10);
display: table-cell;
width: rem(56);
.avatar {
@include size(rem(36));
//background-color: #0094ff;
border-radius: 50%;
background-size: contain;
}
}
.comment-block {
padding: rem(16);
background-color: #fff;
display: table-cell;
vertical-align: top;
border-radius: rem(3);
box-shadow: 0 1px 3px 0 rgba(0,0,0,0.08);
textarea {
width: 100%;
resize: none;
}
}
.comment-text {
margin-bottom: rem(20);
}
.bottom-comment {
color: #acb4c2;
font-size: rem(14);
}
.comment-date {
float: left;
}
.comment-actions {
float: right;
li {
display: inline;
margin: -2px;
cursor: pointer;
&.complain {
padding-right: rem(12);
border-right: 1px solid #e1e5eb;
}
&.reply {
padding-left: rem(12);
padding-right: rem(2);
}
&:hover {
color: $links;
//text-decoration: underline;
}
}
}
Also see: Tab Triggers