Skip to content

Commit

Permalink
Merge pull request #9243 from RocketChat/move-emojipicker-css-to-them…
Browse files Browse the repository at this point in the history
…e-package

[FIX] Move emojipicker css to theme package
  • Loading branch information
rodrigok authored Dec 26, 2017
2 parents d8886d4 + 95ec4a6 commit 5de3446
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 30 deletions.
27 changes: 0 additions & 27 deletions packages/rocketchat-emoji/client/emoji.css

This file was deleted.

3 changes: 0 additions & 3 deletions packages/rocketchat-emoji/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ Package.onUse(function(api) {

api.addFiles('client/emojiPicker.html', 'client');
api.addFiles('client/emojiPicker.js', 'client');
api.addFiles('client/emojiPicker.css', 'client');

api.addFiles('client/emoji.css', 'client');

api.addFiles('client/lib/emojiRenderer.js', 'client');
api.addFiles('client/lib/EmojiPicker.js', 'client');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,31 @@
}
}
}

.emoji {
position: relative;

display: inline-block;
overflow: hidden;

width: 22px;
height: 22px;
margin: 0 0.15em;

vertical-align: middle;
white-space: nowrap;
text-indent: 100%;

background-repeat: no-repeat;
background-position: center;
background-size: cover;

font-size: inherit;
line-height: normal;
image-rendering: auto;
}

.emoji.big {
width: 44px !important;
height: 44px !important;
}
1 change: 1 addition & 0 deletions packages/rocketchat-theme/client/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
@import 'imports/components/slider.css';
@import 'imports/components/chip.css';
@import 'imports/components/messages.css';
@import 'imports/components/emojiPicker.css';

/* Modal */
@import 'imports/components/modal/full-modal.css';
Expand Down

0 comments on commit 5de3446

Please sign in to comment.