Skip to content

Commit cc1b0c7

Browse files
author
Nick Flückiger
authored
Add left and right margin to center about container (#1275)
* Add left and right margin to center about container * Add spacing to bottom of page where needed
1 parent 5af8737 commit cc1b0c7

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

templates/core/about/badges.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
{%- block body -%}
66
<h1>Badges</h1>
77

8-
<div class="container about">
8+
<div>
9+
<div class="container pure-u-5-6 about">
910
<p>
1011
You can use badges to show state of your documentation to your users.
1112
The default badge will be pointed at the latest version of a crate.
@@ -18,7 +19,7 @@ <h1>Badges</h1>
1819
documentation, and red if building documentation failing.
1920
</p>
2021

21-
<p>Example badges for mio crate:</p>
22+
<p>Example badges for the mio crate:</p>
2223
<table class="pure-table pure-table-horizontal">
2324
<thead>
2425
<tr>
@@ -50,4 +51,5 @@ <h1>Badges</h1>
5051
</tbody>
5152
</table>
5253
</div>
54+
</div>
5355
{%- endblock body %}

templates/core/about/builds.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
{%- block body -%}
66
{%- set docsrs_repo = "https://github.com/rust-lang/docs.rs" -%}
77
<h1>Builds</h1>
8-
<div class="container about">
8+
<div>
9+
<div class="container pure-u-5-6 about">
910
<p>
1011
Docs.rs automatically builds documentation for crates released on <a href="https://crates.io/">crates.io</a>.
1112

@@ -111,6 +112,8 @@ <h4 id="failures-and-rebuilds"> <a href="#failures-and-rebuilds">Other failures
111112
</p>
112113

113114
</div>
115+
<br />
116+
</div>
114117
{%- endblock body %}
115118

116119
{% block css -%}

templates/core/about/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
{%- set docsrs_repo = "https://github.com/rust-lang/docs.rs" -%}
77

88
<h1 id="crate-title">About Docs.rs</h1>
9-
<div class="container about">
9+
<div>
10+
<div class="container pure-u-5-6 about">
1011
<p>
1112
Docs.rs is an
1213
<a href="{{ docsrs_repo | safe }}">open source</a>
@@ -44,4 +45,5 @@ <h3 id="contact"> <a href="#contact">Contact</a> </h3>
4445
</p>
4546

4647
</div>
48+
</div>
4749
{%- endblock body %}

templates/core/about/metadata.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
{%- block body -%}
66
<h1>Metadata for custom builds</h1>
77

8-
<div class="container about">
8+
<div>
9+
<div class="container pure-u-5-6 about">
910
<p>
1011
You can customize docs.rs builds by defining <code>[package.metadata.docs.rs]</code>
1112
table in your crates' <code>Cargo.toml</code>.
@@ -15,6 +16,7 @@ <h1>Metadata for custom builds</h1>
1516

1617
<pre><code>{%- include "core/Cargo.toml.example" -%}</code></pre>
1718
</div>
19+
</div>
1820
{%- endblock body %}
1921

2022
{% block css -%}

templates/core/about/redirections.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
{%- block body -%}
66
<h1>Shorthand URLs</h1>
7-
<div class="container about">
87

8+
<div>
9+
<div class="container pure-u-5-6 about">
910
<p>
1011
Docs.rs uses semver to parse URLs. You can use this feature to access
1112
crates' documentation easily. Example of URL redirections for
@@ -61,4 +62,6 @@ <h1>Shorthand URLs</h1>
6162
</tbody>
6263
</table>
6364
</div>
65+
<br />
66+
</div>
6467
{%- endblock body %}

0 commit comments

Comments
 (0)