input-bubbles
Version:
Adding text bubbles into HTML elements with typesetting
67 lines (63 loc) • 1.94 kB
CSS
#bubbleWrapper{
overflow-x: hidden;
margin: 0;
font: -webkit-small-control;
letter-spacing: normal;
word-spacing: normal;
text-transform: none;
text-indent: 0;
text-shadow: none;
display: inline-block;
text-align: start;
background-color: white;
border: 1px solid #c5c5c5;
cursor: auto;
padding: 5px;
}
.ui-bubble{
display: inline-block;
margin: 0 8px 5px 0;
padding: 4px 6px;
border: 1px solid #8e8e8e;
border-radius: 3px;
color: #333333;
background: #e8e8e8; /* Old browsers */
background: -moz-linear-gradient(top, #e8e8e8 0%, #a8a8a8 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e8e8e8), color-stop(100%,#a8a8a8)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #e8e8e8 0%,#a8a8a8 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #e8e8e8 0%,#a8a8a8 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #e8e8e8 0%,#a8a8a8 100%); /* IE10+ */
background: linear-gradient(to bottom, #e8e8e8 0%,#a8a8a8 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e8e8e8', endColorstr='#a8a8a8',GradientType=0 ); /* IE6-9 */
}
.ui-bubble .ui-bubble-content{
overflow-x: hidden;
text-overflow: ellipsis;
word-wrap: normal;
white-space: nowrap;
cursor: pointer;
display: inline-block;
vertical-align: middle;
line-height: normal;
}
.ui-bubble .ui-bubble-remove{
display: inline-block;
margin-left: 5px;
padding-left: 5px;
border-left: 1px solid #333;
cursor: pointer;
}
.ui-bubble .ui-bubble-remove:hover{
color: #ba5d64;
}
.ui-inner-editable{
display: inline-block;
outline: 0 solid transparent;
margin-left: -2px;
padding-left: 3px;
min-height: 14px;
}
.input-bubbles-placeholder{
position: absolute;
color: #656565;
}