mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 13:37:58 +01:00
update css
This commit is contained in:
parent
6b84572931
commit
6c02343da3
18
index.js
18
index.js
@ -6,14 +6,22 @@ import { render } from 'react-dom';
|
|||||||
import fileSaver from 'file-saver';
|
import fileSaver from 'file-saver';
|
||||||
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
|
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
|
||||||
import injectTapEventPlugin from 'react-tap-event-plugin';
|
import injectTapEventPlugin from 'react-tap-event-plugin';
|
||||||
|
import jss from 'jss';
|
||||||
|
import preset from 'jss-preset-default';
|
||||||
|
import normalize from 'normalize-jss';
|
||||||
|
|
||||||
injectTapEventPlugin();
|
injectTapEventPlugin();
|
||||||
|
|
||||||
document.body.style.margin = 0;
|
jss.setup(preset());
|
||||||
document.body.style.padding = 0;
|
jss.createStyleSheet(normalize).attach();
|
||||||
document.body.style.height = '100%';
|
jss.createStyleSheet({
|
||||||
document.documentElement.style.height = '100%'
|
'@global': {
|
||||||
document.getElementById('app').style.height = '100%';
|
'*': { margin: 0, padding: 0 },
|
||||||
|
'#app, body, html': { height: '100%', fontFamily: 'sans-serif' },
|
||||||
|
body: { overflow: 'auto' },
|
||||||
|
html: { overflow: 'hidden' }
|
||||||
|
}
|
||||||
|
}).attach();
|
||||||
|
|
||||||
const downloadGCode = ({ gcode: { gcode } }) => {
|
const downloadGCode = ({ gcode: { gcode } }) => {
|
||||||
const file = new File([gcode], 'gcode.gcode', { type: 'text/plain' });
|
const file = new File([gcode], 'gcode.gcode', { type: 'text/plain' });
|
||||||
|
5
package-lock.json
generated
5
package-lock.json
generated
@ -5113,6 +5113,11 @@
|
|||||||
"vm-browserify": "0.0.4"
|
"vm-browserify": "0.0.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"normalize-jss": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/normalize-jss/-/normalize-jss-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-zsn6yP0fOoDpzktjHCWKGVDMssYso0h6wxjW3+ABUp5CeEPpYc9YUy6cy7/SLO2yrPvtEzx0vu79Y9iEF2qSnA=="
|
||||||
|
},
|
||||||
"normalize-package-data": {
|
"normalize-package-data": {
|
||||||
"version": "2.4.0",
|
"version": "2.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
"file-saver": "^1.3.3",
|
"file-saver": "^1.3.3",
|
||||||
"html-webpack-template": "^6.0.2",
|
"html-webpack-template": "^6.0.2",
|
||||||
"imports-loader": "^0.7.1",
|
"imports-loader": "^0.7.1",
|
||||||
|
"normalize-jss": "^4.0.0",
|
||||||
"material-ui": "^0.19.4",
|
"material-ui": "^0.19.4",
|
||||||
"react-tap-event-plugin": "^3.0.2",
|
"react-tap-event-plugin": "^3.0.2",
|
||||||
"url-loader": "^0.5.9",
|
"url-loader": "^0.5.9",
|
||||||
|
Loading…
Reference in New Issue
Block a user