mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00
Import emojis from scss and work around emoji bug on macos
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
1a9a5e815a
commit
4de82b774b
8 changed files with 27 additions and 15 deletions
|
@ -15,7 +15,10 @@
|
|||
@import './hints';
|
||||
|
||||
.CodeMirror {
|
||||
font-family: "Fira Code", "Twemoji", Consolas, monaco, monospace;
|
||||
& {
|
||||
@import '../../../../../global-styles/variables.module';
|
||||
font-family: "Fira Code", $font-family-emojis, Consolas, monaco, monospace;
|
||||
}
|
||||
letter-spacing: 0.025em;
|
||||
line-height: 1.25;
|
||||
font-size: 18px;
|
||||
|
|
|
@ -12,6 +12,7 @@ import { useIsDarkModeActivated } from '../../../../../hooks/common/use-is-dark-
|
|||
import styles from './emoji-picker.module.scss'
|
||||
import forkawesomeIcon from './forkawesome.png'
|
||||
import { ForkAwesomeIcons } from '../../../../common/fork-awesome/fork-awesome-icons'
|
||||
import fontStyles from '../../../../../../global-styles/variables.module.scss'
|
||||
|
||||
export interface EmojiPickerProps {
|
||||
show: boolean
|
||||
|
@ -35,7 +36,7 @@ export const emojiPickerConfig = {
|
|||
|
||||
const twemojiStyle = (): HTMLStyleElement => {
|
||||
const style = document.createElement('style')
|
||||
style.textContent = 'section.picker { --font-family: "Twemoji" !important; }'
|
||||
style.textContent = `section.picker { --font-family: ${fontStyles['font-family-emojis']} !important; }`
|
||||
return style
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue