Skip to content

Commit

Permalink
Moved css property to js
Browse files Browse the repository at this point in the history
  • Loading branch information
unimonkiez committed Apr 25, 2016
1 parent ec613ca commit 9cf2fad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/emoji-panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $size-slide: 3px;

.ep {
height: 100%;

user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
Expand Down Expand Up @@ -34,7 +34,6 @@ $size-slide: 3px;
.ep-slide {
position: absolute;
height: $size-slide;
width: 12.5%;
will-change: margin-left;
transition: margin-left ease-in-out;
background-color: #93D3CC;
Expand Down
3 changes: 3 additions & 0 deletions src/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ module.exports = (api, imageSet, size) => {
width: sizeNumber + 'px',
height: sizeNumber + 'px',
'background-image': `url('${backgroundImageFileLocation}')`
},
'.ep-slide': {
width: `${100 / categoryOrder.length}%`
}
}, categoryOrder.reduce((catObj, category) => Object.assign(catObj,
emojiData[category].reduce((emojiObj, emoji) => Object.assign(emojiObj, {
Expand Down

0 comments on commit 9cf2fad

Please sign in to comment.