From 9be22ed05e310e5d3c1f5f7166d8528d10687409 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Sun, 18 Feb 2018 01:30:54 +0200 Subject: [PATCH] add reset styles for html and body tags --- web/app/components/document/document.scss | 6 ++++++ web/app/components/document/index.js | 1 + web/app/remark.js | 2 ++ web/index.ejs | 1 + 4 files changed, 10 insertions(+) create mode 100644 web/app/components/document/document.scss create mode 100644 web/app/components/document/index.js diff --git a/web/app/components/document/document.scss b/web/app/components/document/document.scss new file mode 100644 index 00000000..eda82510 --- /dev/null +++ b/web/app/components/document/document.scss @@ -0,0 +1,6 @@ +html, body { + margin: 0; + padding: 0; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} diff --git a/web/app/components/document/index.js b/web/app/components/document/index.js new file mode 100644 index 00000000..66e5bfd2 --- /dev/null +++ b/web/app/components/document/index.js @@ -0,0 +1 @@ +require('./document.scss'); diff --git a/web/app/remark.js b/web/app/remark.js index 7a3321ff..97009fae 100644 --- a/web/app/remark.js +++ b/web/app/remark.js @@ -6,6 +6,8 @@ import Root from './components/root'; import { NODE_ID } from './common/constants'; +require('./components/document'); + init(); function init() { diff --git a/web/index.ejs b/web/index.ejs index 75c1594a..7fdf45ef 100644 --- a/web/index.ejs +++ b/web/index.ejs @@ -31,6 +31,7 @@ (function() { var d = document, s = d.createElement('script'); s.src = 'https://demo.remark42.com/web/embed.js'; + s.type = 'text/javascript'; (d.head || d.body).appendChild(s); })();