Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `line-height` change fixes excess spacing between the color palette and the smileys. Resolves #41.
- Loading branch information
1 parent
fd1a2db
commit 263f344
Showing
8 changed files
with
81 additions
and
6 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
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
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
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,32 @@ | ||
export type Smiley = readonly [string, string] | ||
|
||
export const SMILEYS: ReadonlyArray<Smiley> = [ | ||
// Pairs of BBCode code and CSS class: | ||
[ ":)", "smiley-smile" ], | ||
[ ";)", "smiley-wink" ], | ||
[ ":D", "smiley-biggrin" ], | ||
[ ":P", "smiley-tongue" ], | ||
[ ":O", "smiley-surprised" ], | ||
[ ":(", "smiley-frown" ], | ||
[ ";(", "smiley-cry" ], | ||
[ ":|", "smiley-speechless" ], | ||
[ ":arrow:", "smiley-arrow" ], | ||
[ ":up:", "smiley-up" ], | ||
[ ":down:", "smiley-down" ], | ||
[ ":confused:", "smiley-confused" ], | ||
[ ":mad:", "smiley-mad" ], | ||
[ ":lol:", "smiley-lol" ], | ||
[ ":joyful:", "smiley-joyful" ], | ||
[ ":cool:", "smiley-cool" ], | ||
[ ":ninja:", "smiley-ninja" ], | ||
[ ":innocent:", "smiley-innocent" ], | ||
[ ":rolleyes:", "smiley-rolleyes" ], | ||
]; | ||
|
||
export function codeFor(smiley: Smiley): string { | ||
return smiley[0]; | ||
} | ||
|
||
export function classFor(smiley: Smiley): string { | ||
return smiley[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
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
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
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