blob: 6be6da90de8af74e9cfcb8e40e04b92d8c201184 [file] [log] [blame]
<style>
body {
font-family: Helvetica, sans-serif;
font-size: 12px;
}
div {
// outline: 1px solid red;
}
.message {
position: relative;
vertical-align: bottom;
min-height: 32px;
}
.message.left {
margin-right: 44px;
text-align: left;
}
.message.left .bubble {
margin-left: 36px;
}
.message.right {
margin-left: 44px;
text-align: right;
}
.message.right .bubble {
margin-right: 36px;
text-align: right;
}
.message.left .icon {
left: 0;
}
.message.right .icon {
right: 0;
}
.message + .message {
margin-top: 4px;
}
.icon {
-webkit-user-select: none;
position: absolute;
bottom: 0;
}
.icon.default {
content: url(resources/largePerson.png);
}
.bubble {
display: inline-block;
border-color: transparent;
border-style: solid;
-webkit-box-sizing: border-box;
-webkit-border-fit: lines;
}
.message.left .bubble {
border-width: 10px 10px 10px 18px;
-webkit-border-image: url(resources/Balloon_12641896.tiff) 10 10 10 18;
}
.message.right .bubble {
border-width: 10px 18px 10px 10px;
-webkit-border-image: url(resources/Balloon_8107502.tiff) 10 18 10 10;
}
.bubble .content {
margin: -5px 0 -4px 0;
}
</style>
<div class="message left">
<img class="icon default">
<div class="bubble"><div class="content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec ac odio. Fusce facilisis. Praesent eleifend dapibus mi. Proin nulla nulla, hendrerit vitae, condimentum non, iaculis sed, sem. Aliquam a turpis nec ante elementum dignissim. Suspendisse potenti. Suspendisse potenti.</div></div>
</div>
<div class="message right">
<img class="icon default">
<div class="bubble"><div class="content">Aliquam a turpis nec ante elementum dignissim. Suspendisse potenti.</div></div>
</div>
<div class="message left">
<img class="icon default">
<div class="bubble"><div class="content">Lorem ipsum dolor sit amet.</div></div>
</div>
<div class="message right">
<img class="icon default">
<div class="bubble"><div class="content"><div style="display:inline-block; width:100%; height:100px;background-color:#eeeeee">Look at me, I'm an attachment!</div> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec ac odio. Fusce facilisis. Praesent eleifend dapibus mi. Proin nulla nulla, hendrerit vitae, condimentum non, iaculis sed, sem. Aliquam a turpis nec ante elementum dignissim. Suspendisse potenti. Suspendisse potenti.</div></div>
</div>