Skip to content

Commit ac4f87a

Browse files
Update DOM for about pages to add bottom padding to avoid having footer going hover content
1 parent 82ff59c commit ac4f87a

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

templates/core/about/badges.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{%- block body -%}
66
<h1>Badges</h1>
77

8-
<div>
8+
<div class="about-page">
99
<div class="container pure-u-5-6 about">
1010
<p>
1111
You can use badges to show state of your documentation to your users.

templates/core/about/builds.html

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

templates/core/about/index.html

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

88
<h1 id="crate-title">About Docs.rs</h1>
9-
<div>
9+
<div class="about-page">
1010
<div class="container pure-u-5-6 about">
1111
<p>
1212
Docs.rs is an

templates/core/about/metadata.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{%- block body -%}
66
<h1>Metadata for custom builds</h1>
77

8-
<div>
8+
<div class="about-page">
99
<div class="container pure-u-5-6 about">
1010
<p>
1111
You can customize docs.rs builds by defining <code>[package.metadata.docs.rs]</code>

templates/core/about/redirections.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{%- block body -%}
66
<h1>Shorthand URLs</h1>
77

8-
<div>
8+
<div class="about-page">
99
<div class="container pure-u-5-6 about">
1010
<p>
1111
Docs.rs uses semver to parse URLs. You can use this feature to access

templates/style/base.scss

+4
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ body {
170170
g.highcharts-grid > path {
171171
stroke: var(--chart-grid) !important;
172172
}
173+
174+
> .about-page {
175+
padding-bottom: calc(#{$footer-height} + 2px);
176+
}
173177
}
174178

175179
pre {

0 commit comments

Comments
 (0)