Skip to content

Commit 2120fb4

Browse files
committed
update to new GitHub readme width
1 parent ac2b917 commit 2120fb4

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
<link rel="stylesheet" href="github-markdown.css">
88
<style>
99
body {
10+
box-sizing: border-box;
1011
min-width: 200px;
11-
max-width: 790px;
12+
max-width: 980px;
1213
margin: 0 auto;
13-
padding: 30px;
14+
padding: 45px;
1415
}
1516
</style>
1617
</head>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"author": {
88
"name": "Sindre Sorhus",
99
"email": "sindresorhus@gmail.com",
10-
"url": "http://sindresorhus.com"
10+
"url": "sindresorhus.com"
1111
},
1212
"engines": {
1313
"node": ">=0.10.0"

readme.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,26 @@
99

1010
## Install
1111

12-
Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css) or with a package-manager.
12+
Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css) or with npm:
1313

14-
```sh
15-
$ npm install --save github-markdown-css
1614
```
17-
18-
```sh
19-
$ bower install --save github-markdown-css
15+
$ npm install --save github-markdown-css
2016
```
2117

2218

2319
## Usage
2420

25-
Import the `github-markdown.css` file and add a `markdown-body` class to the container of your rendered Markdown and set a width for it. GitHub uses `790px` width and `30px` padding.
21+
Import the `github-markdown.css` file and add a `markdown-body` class to the container of your rendered Markdown and set a width for it. GitHub uses `980px` width and `45px` padding.
2622

2723
```html
2824
<link rel="stylesheet" href="github-markdown.css">
2925
<style>
3026
.markdown-body {
27+
box-sizing: border-box;
3128
min-width: 200px;
32-
max-width: 790px;
29+
max-width: 980px;
3330
margin: 0 auto;
34-
padding: 30px;
31+
padding: 45px;
3532
}
3633
</style>
3734
<article class="markdown-body">

0 commit comments

Comments
 (0)