diff --git a/index.js b/index.js index d9f4e12..c2baef3 100644 --- a/index.js +++ b/index.js @@ -32,14 +32,14 @@ import jss from 'jss'; import preset from 'jss-preset-default'; import normalize from 'normalize-jss'; jss.setup(preset()); +jss.createStyleSheet(normalize).attach(); jss.createStyleSheet({ - '@global body, html, #app': { - height: '100%' - }, - '@global body': { - overflow: 'hidden' - }, - ...normalize + '@global': { + '*': { margin: 0, padding: 0 }, + '#app, body, html': { height: '100%', fontFamily: 'sans-serif' }, + body: { overflow: 'auto' }, + html: { overflow: 'hidden' } + } }).attach(); // render dom