From 99d0db136cfaa88cf654c77e30fd1867136db9d5 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Wed, 16 Sep 2015 23:27:25 -0700 Subject: Fixing css --- web/react/components/post_body.jsx | 4 ++-- web/sass-files/sass/partials/_base.scss | 10 +++++----- web/static/css/emojify.min.css | 1 - web/templates/head.html | 1 - 4 files changed, 7 insertions(+), 9 deletions(-) delete mode 100755 web/static/css/emojify.min.css (limited to 'web') diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx index 5e460d686..3be615bb9 100644 --- a/web/react/components/post_body.jsx +++ b/web/react/components/post_body.jsx @@ -18,7 +18,7 @@ export default class PostBody extends React.Component { this.state = {links: linkData.links, message: linkData.text}; } - getTextNodesIn(nodeIn) { + getAllChildNodes(nodeIn) { var textNodes = []; function getTextNodes(node) { @@ -35,7 +35,7 @@ export default class PostBody extends React.Component { parseEmojis() { twemoji.parse(React.findDOMNode(this), {size: Constants.EMOJI_SIZE}); - this.getTextNodesIn(React.findDOMNode(this)).forEach((current) => { + this.getAllChildNodes(React.findDOMNode(this)).forEach((current) => { global.window.emojify.run(current); }); } diff --git a/web/sass-files/sass/partials/_base.scss b/web/sass-files/sass/partials/_base.scss index 85818e19b..cdc2152e9 100644 --- a/web/sass-files/sass/partials/_base.scss +++ b/web/sass-files/sass/partials/_base.scss @@ -130,9 +130,9 @@ div.theme { } .emoji { - width: 1.5em !important; - height: 1.5em !important; - display: inline-block !important; - margin-bottom: 0.25em !important; - background-size: contain !important; + width: 1.5em; + height: 1.5em; + display: inline-block; + margin-bottom: 0.25em; + background-size: contain; } diff --git a/web/static/css/emojify.min.css b/web/static/css/emojify.min.css deleted file mode 100755 index 94b45d066..000000000 --- a/web/static/css/emojify.min.css +++ /dev/null @@ -1 +0,0 @@ -.emoji{width:1.5em;height:1.5em;display:inline-block;margin-bottom:-.25em;background-size:contain} \ No newline at end of file diff --git a/web/templates/head.html b/web/templates/head.html index 7b873bdb8..af5c86bba 100644 --- a/web/templates/head.html +++ b/web/templates/head.html @@ -40,7 +40,6 @@ -