Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using img tag so that the icons can be selected and copied #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/build_css.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
$fact = 100 / $max;

$sheet_size = $max + 1;
echo "span.emoji-inner { background-size: {$sheet_size}00%; }\n";
echo ".emoji-inner { background-size: {$sheet_size}00%; }\n";

foreach ($catalog as $item){

Expand Down
2 changes: 1 addition & 1 deletion build/build_map.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function make_html_map($map){
$hex = unicode_hex_chars($row['unified']);
$bytes = unicode_bytes($row['unified']);

$out[$bytes] = "<span class=\"emoji-outer emoji-sizer\"><span class=\"emoji-inner emoji$hex\"></span></span>";
$out[$bytes] = "<span class=\"emoji-outer emoji-sizer\"><img alt=\"$bytes\" draggable=\"false\" src=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" class=\"emoji-inner emoji$hex\"/></span>";
}

return $out;
Expand Down
6 changes: 3 additions & 3 deletions build/inc.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
span.emoji-sizer {
.emoji-sizer {
line-height: 1.013em;
font-size: 1.375em;
margin: -0.05em 0;
}

span.emoji-outer {
.emoji-outer {
display: -moz-inline-box;
display: inline-block;
*display: inline;
height: 1em;
width: 1em;
}

span.emoji-inner {
.emoji-inner {
background: url(emoji.png);
display: -moz-inline-box;
display: inline-block;
Expand Down
8 changes: 4 additions & 4 deletions lib/emoji.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
span.emoji-sizer {
.emoji-sizer {
line-height: 1.013em;
font-size: 1.375em;
margin: -0.05em 0;
}

span.emoji-outer {
.emoji-outer {
display: -moz-inline-box;
display: inline-block;
*display: inline;
height: 1em;
width: 1em;
}

span.emoji-inner {
.emoji-inner {
background: url(emoji.png);
display: -moz-inline-box;
display: inline-block;
Expand All @@ -23,7 +23,7 @@ span.emoji-inner {
*vertical-align: auto;
*zoom: 1;
}
span.emoji-inner { background-size: 4100%; }
.emoji-inner { background-size: 4100%; }
.emojia9 { background-position: 0% 0% !important; }
.emojiae { background-position: 0% 2.5% !important; }
.emoji203c { background-position: 0% 5% !important; }
Expand Down
Loading