Skip to content

Commit

Permalink
Make all markdown content render at 700px
Browse files Browse the repository at this point in the history
Fixes #1522

Also add test content to validate 80-char code blocks
  • Loading branch information
kevmoo committed Oct 18, 2017
1 parent 41ca816 commit 7ce76ae
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lib/resources/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ main {
padding: 20px 15px 0 30px;
}

.main-content p {
max-width: 700px;
}

.sidebar,
.main-content {
margin: 20px 0;
Expand Down Expand Up @@ -416,6 +412,10 @@ footer a, footer a:hover {
color: #fff;
}

.markdown.desc {
max-width: 700px;
}

.markdown h1 {
font-size: 24px;
margin-bottom: 8px;
Expand Down
5 changes: 5 additions & 0 deletions testing/test_package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ It also has some awesome code
void main() {
// in Dart!
}
/*
80-characters: to ensure default styles accommodate Dart line length convention.
01234567890123456789012345678901234567890123456789012345678901234567890123456789
*/
```

```yaml
Expand Down
5 changes: 5 additions & 0 deletions testing/test_package_docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ <h1>Best Package</h1>
<pre class="language-dart"><code class="language-dart">void main() {
// in Dart!
}

/*
80-characters: to ensure default styles accommodate Dart line length convention.
01234567890123456789012345678901234567890123456789012345678901234567890123456789
*/
</code></pre>
<pre class="language-yaml"><code class="language-yaml">and_yaml:
- value
Expand Down
8 changes: 4 additions & 4 deletions testing/test_package_docs/static-assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ main {
padding: 20px 15px 0 30px;
}

.main-content p {
max-width: 700px;
}

.sidebar,
.main-content {
margin: 20px 0;
Expand Down Expand Up @@ -416,6 +412,10 @@ footer a, footer a:hover {
color: #fff;
}

.markdown.desc {
max-width: 700px;
}

.markdown h1 {
font-size: 24px;
margin-bottom: 8px;
Expand Down

0 comments on commit 7ce76ae

Please sign in to comment.