Skip to content

Commit

Permalink
Add minimal styles
Browse files Browse the repository at this point in the history
- System font
- Line length
- Constrained images and code blocks
  • Loading branch information
kylegach committed May 6, 2020
1 parent 09999f9 commit cae108d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = function(config) {
});

config.addPassthroughCopy('./src/img');
config.addPassthroughCopy('./src/styles');

return {
dir: {
Expand Down
1 change: 1 addition & 0 deletions src/_includes/layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ pageTitle }}</title>
<link href="/styles/site.css" rel="stylesheet">
</head>
<body>
{{content | safe}}
Expand Down
19 changes: 19 additions & 0 deletions src/styles/site.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
html {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
margin: 0 auto;
max-width: 60ch;
padding: 1rem;
}

img {
height: auto;
max-width: 100%;
}

pre {
max-width: 100%;
overflow: auto;
}

0 comments on commit cae108d

Please sign in to comment.