Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Commit

Permalink
1.0.4 - fixes to emoji sizing and text alignment.
Browse files Browse the repository at this point in the history
- Emojis should now align properly with text regardless of line-height.
- Increased emoji size to 1.3x parent element font-size (1.3em)
  • Loading branch information
emitxyz committed Sep 5, 2014
1 parent 69c7872 commit 41eeefb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ Include the Javascript library
```html
<head>
<!-- include via jsDelivr (or download and host locally if you prefer) -->
<script src="//cdn.jsdelivr.net/emojione/1.0.3/lib/js/emojione.min.js" type="text/javascript"></script>
<script src="//cdn.jsdelivr.net/emojione/1.0.4/lib/js/emojione.min.js" type="text/javascript"></script>

<!-- basic rules for styling the emoji images -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/emojione/1.0.3/assets/css/emojione.min.css" type="text/css" media="all" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/emojione/1.0.4/assets/css/emojione.min.css" type="text/css" media="all" />

<script type="text/javascript">
// #################################################
Expand Down
16 changes: 12 additions & 4 deletions assets/css/emojione.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
.emojione {
display: inline-block;
/* Emoji Sizing */
font-size: inherit;
width: 1em;
height: 1em;
display: inline-block;
width: 1.3em;
height: 1.3em;
top: -.15em; /* Oversize offset, (1.3em - 1em) / 2 */

/* Inline Text Alignment */
position: relative;
margin: 0 .15em;
vertical-align: top;
line-height: normal;
vertical-align: baseline;

/* Background Image settings */
background-repeat: no-repeat;
background-color: transparent;
background-position: center;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/emojione.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "emojione",
"version": "1.0.3",
"version": "1.0.4",
"description": "Emoji One is a complete set of emojis designed for the web. It includes libraries to easily convert unicode characters to shortnames (:smile:) and shortnames to our custom emoji images. PNG and SVG formats provided for the emoji images.",
"author": "Emoji One <[email protected]> (http://emojione.com)",
"main:": "lib/js/emojione.min.js",
Expand Down

0 comments on commit 41eeefb

Please sign in to comment.