From 6f0578de1714b1e437d3d2cf8db988a8a7e43b26 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Mon, 30 Apr 2018 07:55:45 +0300 Subject: [PATCH] fix html,body styles --- web/app/components/document/document.scss | 6 ------ web/app/components/document/index.js | 1 - web/app/remark.js | 2 -- web/iframe.html | 8 ++++++++ web/webpack.config.js | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) delete mode 100644 web/app/components/document/document.scss delete mode 100644 web/app/components/document/index.js diff --git a/web/app/components/document/document.scss b/web/app/components/document/document.scss deleted file mode 100644 index eda82510..00000000 --- a/web/app/components/document/document.scss +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index 66e5bfd2..00000000 --- a/web/app/components/document/index.js +++ /dev/null @@ -1 +0,0 @@ -require('./document.scss'); diff --git a/web/app/remark.js b/web/app/remark.js index 5e504410..e93616c4 100644 --- a/web/app/remark.js +++ b/web/app/remark.js @@ -7,8 +7,6 @@ import ListComments from './components/list-comments'; // TODO: temp solution fo import { NODE_ID } from './common/constants'; -require('./components/document'); - if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', init); } else { diff --git a/web/iframe.html b/web/iframe.html index 0367a1f5..dce17ec8 100644 --- a/web/iframe.html +++ b/web/iframe.html @@ -6,6 +6,14 @@ remark42 +
diff --git a/web/webpack.config.js b/web/webpack.config.js index ad6c0c14..4469c61b 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -23,7 +23,7 @@ const commonStyleLoaders = [ plugins: [ require('autoprefixer')({ browsers: ['> 1%'] }), require('postcss-url')({ url: 'inline', maxSize: 5 }), - require('postcss-wrap')({ selector: `#${NODE_ID}` , skip: /^html|body$/}), + require('postcss-wrap')({ selector: `#${NODE_ID}` }), require('postcss-csso'), ] }