Skip to content

Add left and right margin to center about container #1275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from Feb 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions templates/core/about/badges.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
{%- block body -%}
<h1>Badges</h1>

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

<p>Example badges for mio crate:</p>
<p>Example badges for the mio crate:</p>
<table class="pure-table pure-table-horizontal">
<thead>
<tr>
Expand Down Expand Up @@ -50,4 +51,5 @@ <h1>Badges</h1>
</tbody>
</table>
</div>
</div>
{%- endblock body %}
5 changes: 4 additions & 1 deletion templates/core/about/builds.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
{%- block body -%}
{%- set docsrs_repo = "https://github.com/rust-lang/docs.rs" -%}
<h1>Builds</h1>
<div class="container about">
<div>
<div class="container pure-u-5-6 about">
<p>
Docs.rs automatically builds documentation for crates released on <a href="https://crates.io/">crates.io</a>.

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

</div>
<br />
</div>
{%- endblock body %}

{% block css -%}
Expand Down
4 changes: 3 additions & 1 deletion templates/core/about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
{%- set docsrs_repo = "https://github.com/rust-lang/docs.rs" -%}

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

</div>
</div>
{%- endblock body %}
4 changes: 3 additions & 1 deletion templates/core/about/metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
{%- block body -%}
<h1>Metadata for custom builds</h1>

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

<pre><code>{%- include "core/Cargo.toml.example" -%}</code></pre>
</div>
</div>
{%- endblock body %}

{% block css -%}
Expand Down
5 changes: 4 additions & 1 deletion templates/core/about/redirections.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

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

<div>
<div class="container pure-u-5-6 about">
<p>
Docs.rs uses semver to parse URLs. You can use this feature to access
crates' documentation easily. Example of URL redirections for
Expand Down Expand Up @@ -61,4 +62,6 @@ <h1>Shorthand URLs</h1>
</tbody>
</table>
</div>
<br />
</div>
{%- endblock body %}