Skip to content

Commit cae108d

Browse files
committed
Add minimal styles
- System font - Line length - Constrained images and code blocks
1 parent 09999f9 commit cae108d

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.eleventy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = function(config) {
66
});
77

88
config.addPassthroughCopy('./src/img');
9+
config.addPassthroughCopy('./src/styles');
910

1011
return {
1112
dir: {

src/_includes/layouts/base.njk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<meta name="viewport" content="width=device-width, initial-scale=1.0">
99
<meta http-equiv="X-UA-Compatible" content="ie=edge">
1010
<title>{{ pageTitle }}</title>
11+
<link href="/styles/site.css" rel="stylesheet">
1112
</head>
1213
<body>
1314
{{content | safe}}

src/styles/site.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
html {
2+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
3+
}
4+
5+
body {
6+
margin: 0 auto;
7+
max-width: 60ch;
8+
padding: 1rem;
9+
}
10+
11+
img {
12+
height: auto;
13+
max-width: 100%;
14+
}
15+
16+
pre {
17+
max-width: 100%;
18+
overflow: auto;
19+
}

0 commit comments

Comments
 (0)