Skip to content

Commit

Permalink
refactor(core): move css in template to a separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Jul 12, 2019
1 parent 6ab4331 commit 7c963aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 6 additions & 0 deletions packages/api/core/tmpl/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
margin: auto;
max-width: 38rem;
padding: 2rem;
}
9 changes: 1 addition & 8 deletions packages/api/core/tmpl/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
max-width: 38rem;
padding: 2rem;
margin: auto;
}
</style>
<link rel="stylesheet" href="index.css">
</head>
<body>
<h1>💖 Hello World!</h1>
Expand Down

0 comments on commit 7c963aa

Please sign in to comment.