diff --git a/Makefile b/Makefile index 92c0f26..6daef13 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,9 @@ TSS=$(wildcard ts/*.ts) BROWSERIFY=./node_modules/.bin/browserify WATCHIFY=./node_modules/.bin/watchify -all: dist/app.js dist/index.html +all: dist/app.js dist/index.html dist/reset.css -watch: dist/index.html $(TSS) $(WATCHIFY) +watch: dist/index.html dist/reset.css $(TSS) $(WATCHIFY) $(WATCHIFY) -v ./ts/app.ts -p tsify --outfile dist/app.js $(BROWSERIFY): package.json @@ -19,6 +19,9 @@ dist/app.js: dist $(BROWSERIFY) $(TSS) dist/index.html: dist html/index.html cp html/index.html dist/ +dist/reset.css: dist css/reset.css + cp css/reset.css dist/reset.css + dist: mkdir -p dist diff --git a/css/reset.css b/css/reset.css new file mode 100644 index 0000000..e29c0f5 --- /dev/null +++ b/css/reset.css @@ -0,0 +1,48 @@ +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} diff --git a/html/index.html b/html/index.html index 7cd3b4d..f31cc3f 100644 --- a/html/index.html +++ b/html/index.html @@ -1,6 +1,7 @@