From 543fec82ce2223c8224f84aea11aa7194efd8751 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 27 Aug 2017 13:26:48 +0300 Subject: [PATCH] Use our font style for 'dysfunctional' message --- msgbox/dysfunctional.css | 3 +++ msgbox/dysfunctional.html | 1 + msgbox/dysfunctional.js | 2 ++ 3 files changed, 6 insertions(+) diff --git a/msgbox/dysfunctional.css b/msgbox/dysfunctional.css index bad05b62..05e51e71 100644 --- a/msgbox/dysfunctional.css +++ b/msgbox/dysfunctional.css @@ -8,6 +8,9 @@ html { background-color: #555; box-sizing: border-box; border: 2vw solid black; + font-size: 15px; + font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; + hyphens: auto; } body { diff --git a/msgbox/dysfunctional.html b/msgbox/dysfunctional.html index 7944f05d..34bd0c37 100644 --- a/msgbox/dysfunctional.html +++ b/msgbox/dysfunctional.html @@ -2,6 +2,7 @@ + Stylus diff --git a/msgbox/dysfunctional.js b/msgbox/dysfunctional.js index 1a06bf5e..c1659a89 100644 --- a/msgbox/dysfunctional.js +++ b/msgbox/dysfunctional.js @@ -4,3 +4,5 @@ document.body.textContent = chrome.i18n.getMessage('dysfunctional'); document.body.appendChild(document.createElement('div')).textContent = chrome.runtime.getURL('manifest.json'); +// set hyphenation language +document.documentElement.setAttribute('lang', chrome.i18n.getUILanguage());