Skip to content
This repository was archived by the owner on Feb 7, 2018. It is now read-only.

Commit cfb8cc4

Browse files
committed
Adds GitHub markdown CSS
1 parent b9b2bc2 commit cfb8cc4

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

bower.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"main": "github-readme.html",
55
"dependencies": {
66
"polymer": "Polymer/polymer#^1.4.0",
7-
"iron-ajax": "~1.2.0"
7+
"iron-ajax": "~1.2.0",
8+
"github-markdown-css": "~2.3.0"
89
},
910
"devDependencies": {
1011
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",

github-readme.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<link rel="import" href="../polymer/polymer.html">
22
<link rel="import" href="../iron-ajax/iron-ajax.html">
3+
<link rel="stylesheet" href="../github-markdown-css/github-markdown.css">
34

45
<dom-module id="github-readme">
56
<template>
@@ -15,9 +16,17 @@
1516
:host {
1617
display: block;
1718
}
19+
20+
.markdown-body {
21+
box-sizing: border-box;
22+
max-width: 980px;
23+
min-width: 200px;
24+
padding: 45px;
25+
margin: 0 auto;
26+
}
1827
</style>
1928

20-
<div id="readme"></div>
29+
<div id="readme" class="markdown-body"></div>
2130
</template>
2231

2332
<script>

0 commit comments

Comments
 (0)