-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ee5e52
commit ebee201
Showing
24 changed files
with
145 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import EmojiPanel from 'emoji-panel'; | ||
|
||
new EmojiPanel(document.getElementById('panel-example-1'), { imageSet: EmojiPanel.IMAGE_SET.GOOGLE }); | ||
new EmojiPanel(document.getElementById('panel-example-1')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
@import '~emoji-panel.css'; | ||
|
||
#panel-example-1 { | ||
height: 600px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@font-face { | ||
font-family: 'apple-category'; | ||
src: url('../src/categories-icons/apple.ttf') format('truetype'); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
|
||
.cat { | ||
font-family: 'apple-category' !important; | ||
speak: none; | ||
font-style: normal; | ||
font-weight: normal; | ||
font-variant: normal; | ||
text-transform: none; | ||
line-height: 1; | ||
|
||
/* Better Font Rendering =========== */ | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
.cat-0:before { | ||
content: "\e900"; | ||
} | ||
.cat-1:before { | ||
content: "\e901"; | ||
} | ||
.cat-2:before { | ||
content: "\e902"; | ||
} | ||
.cat-4:before { | ||
content: "\e903"; | ||
} | ||
.cat-8:before { | ||
content: "\e904"; | ||
} | ||
.cat-16:before { | ||
content: "\e905"; | ||
} | ||
.cat-128:before { | ||
content: "\e906"; | ||
} | ||
.cat-64:before { | ||
content: "\e907"; | ||
} | ||
.cat-32:before { | ||
content: "\e908"; | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import getPanelTemplate from './get-panel-template'; | ||
import setEventsForTemplate from './set-events-for-template'; | ||
|
||
export default ({ imageSet, size } = {}) => { | ||
export default ({ imageSet, size, animationDuration } = {}) => { | ||
const panelEl = document.createElement('div'); | ||
panelEl.setAttribute('class', 'ep-container'); | ||
const panelTemplate = getPanelTemplate({ imageSet, size }); | ||
panelEl.innerHTML = panelTemplate; | ||
setEventsForTemplate(panelEl); | ||
setEventsForTemplate(panelEl, { animationDuration }); | ||
|
||
return panelEl; | ||
}; |
Oops, something went wrong.