f042378a37
Use emojijs for replacing unicode with image tags for display. We were already using it to replace colons with unicode. Additionally it has a companion data repo that is kept up to date with images from all the common image sets. // FREEBIE
46 lines
765 B
CSS
46 lines
765 B
CSS
span.emoji {
|
|
display: -moz-inline-box;
|
|
-moz-box-orient: vertical;
|
|
display: inline-block;
|
|
vertical-align: baseline;
|
|
*vertical-align: auto;
|
|
*zoom: 1;
|
|
*display: inline;
|
|
width: 1em;
|
|
height: 1em;
|
|
background-size: 1em;
|
|
background-repeat: no-repeat;
|
|
text-indent: -9999px;
|
|
background-position: 50%, 50%;
|
|
background-size: contain;
|
|
}
|
|
|
|
span.emoji-sizer {
|
|
line-height: 0.81em;
|
|
font-size: 1em;
|
|
margin: -2px 0;
|
|
}
|
|
|
|
span.emoji-outer {
|
|
display: -moz-inline-box;
|
|
display: inline-block;
|
|
*display: inline;
|
|
height: 1em;
|
|
width: 1em;
|
|
}
|
|
|
|
span.emoji-inner {
|
|
display: -moz-inline-box;
|
|
display: inline-block;
|
|
text-indent: -9999px;
|
|
width: 100%;
|
|
height: 100%;
|
|
vertical-align: baseline;
|
|
*vertical-align: auto;
|
|
*zoom: 1;
|
|
}
|
|
|
|
img.emoji {
|
|
width: 1em;
|
|
height: 1em;
|
|
}
|