Skip to content

Commit

Permalink
(tsoding#6) add reset.css
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Jun 22, 2018
1 parent 468f261 commit 4ef333b
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
48 changes: 48 additions & 0 deletions css/reset.css
Original file line number Diff line number Diff line change
@@ -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;
}
1 change: 1 addition & 0 deletions html/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Schedule</title>
<link rel="stylesheet" href="reset.css" type="text/css" media="screen" />
</head>
<body>
<div id="root"></div>
Expand Down

0 comments on commit 4ef333b

Please sign in to comment.