Skip to content

Commit ea6d571

Browse files
committed
improve emoji styling
1 parent b179fd0 commit ea6d571

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
.emoji {
22
/* Hide the original Emoji icon no matter what system it is. */
33
color: transparent;
4-
/* Make the size depedent on the wrapping text. */
5-
background-size: 1em 1em;
6-
width: 1em;
7-
height: 1em;
8-
display: inline-block;
9-
/* move it a bit further down to align it fine with text */
10-
position: relative;
11-
top: 3px;
4+
/* make sure the background the image is only shown once */
5+
background-repeat: no-repeat;
6+
/* move it a bit further down to align it nicer with the text */
7+
vertical-align: middle;
128
}

0 commit comments

Comments
 (0)