Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit f46a415

Browse files
author
Bernhard Grünewaldt
committed
better css so that the icons fit with the text baseline.
1 parent fe2c3ce commit f46a415

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

assets/emojify.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
/* adjusted for gitbook styling. original css from emojify.js */
12
.emoji {
2-
width: 1.5em;
3-
height: 1.5em;
3+
width: 1.3em;
4+
height: 1.3em;
45
display: inline-block;
5-
margin-bottom: -0.25em;
6+
margin-bottom: 0.2em;
67
background-size: contain;
7-
}
8+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gitbook-plugin-advanced-emoji",
33
"description": "Shows the common emojis used on GitHub",
44
"main": "index.js",
5-
"version": "0.1.1",
5+
"version": "0.1.2",
66
"engines": {
77
"gitbook": ">=2.5.0"
88
},

pre-publish.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,4 @@ fse.copy('./node_modules/emojify.js/dist/images/basic', './assets/emojis', funct
55
return console.error(err);
66
}
77
console.log("success!");
8-
});
9-
10-
fse.copy('./node_modules/emojify.js/dist/css/basic/emojify.css', './assets/emojify.css', function (err) {
11-
if (err) {
12-
return console.error(err);
13-
}
14-
console.log("success!");
158
});

0 commit comments

Comments
 (0)