From 35a42c9fd361d6837fc0737b476881fc5508b81b Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 20 Nov 2018 22:41:32 -0800 Subject: [PATCH] fix(emoji): fix textarea emoji on linux (#670) --- scss/global.scss | 32 ++++++++++++++++++++++++++++++-- templates/2xx.html | 2 +- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/scss/global.scss b/scss/global.scss index 42d54c2..5c1c878 100644 --- a/scss/global.scss +++ b/scss/global.scss @@ -1,6 +1,30 @@ +@font-face { + font-family: PinaforeRegular; + src: local("BlinkMacSystemFont"), + local("Segoe UI"), + local("Roboto"), + local("Oxygen-Sans"), + local("Ubuntu"), + local("Cantarell"), + local("Fira Sans"), + local("Droid Sans"), + local("Helvetica Neue"); +} + +@font-face { + font-family: PinaforeEmoji; + src: local("Apple Color Emoji"), + local("Segoe UI Emoji"), + local("Segoe UI Symbol"), + local("Twemoji Mozilla"), + local("Noto Color Emoji"), + local("EmojiOne Color"), + local("Android Emoji"); +} + body { margin: 0; - font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; + font-family: system-ui, -apple-system, PinaforeRegular, sans-serif; font-size: 14px; line-height: 1.4; color: var(--body-text-color); @@ -87,6 +111,10 @@ input, textarea { color: inherit; } +textarea { + font-family: system-ui, -apple-system, PinaforeRegular, sans-serif, PinaforeEmoji; +} + button, .button { font-size: 1.2em; background: var(--button-bg); @@ -213,5 +241,5 @@ textarea { } .inline-emoji { - font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Twemoji Mozilla", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", sans-serif; + font-family: PinaforeEmoji, sans-serif; } \ No newline at end of file diff --git a/templates/2xx.html b/templates/2xx.html index 3027a2a..9e63b66 100644 --- a/templates/2xx.html +++ b/templates/2xx.html @@ -17,7 +17,7 @@