Fix sticky footer issue (#10681)

* Fix sticky footer issue

* Fix merge conflict

* Aesthetic changes to 404 page
This commit is contained in:
Luc Perkins
2019-02-27 20:07:42 -08:00
committed by Kubernetes Prow Robot
parent f0d8c8a79c
commit 0650b70742
7 changed files with 54 additions and 10 deletions
+26 -3
View File
@@ -1,5 +1,28 @@
{{ define "main" }} {{ define "main" }}
<section> <div class="container-404">
<p>Sorry, this page was not found. :(</p> <h4>
</section> Perhaps you were looking for:
</h4>
<br />
<br />
<ul>
<li>
<a href="/docs">
The Kubernetes documentation
</a>
</li>
<li>
<a href="/blog">
The Kubernetes blog
</a>
</li>
<li>
<a href="/community">
The Kubernetes community
</a>
</li>
</ul>
</div>
{{ end }} {{ end }}
+7 -3
View File
@@ -3,7 +3,7 @@
<head> <head>
{{ partial "head.html" . }} {{ partial "head.html" . }}
</head> </head>
<body> <body class="page">
{{ partial "header.html" . }} {{ partial "header.html" . }}
{{ block "hero" . }} {{ block "hero" . }}
<!-- HERO --> <!-- HERO -->
@@ -18,8 +18,12 @@
</section> </section>
{{ block "post-hero" . }}{{ end }} {{ block "post-hero" . }}{{ end }}
{{ end }} {{ end }}
{{ block "main" . }}{{ end }}
<article class="page-content">
{{ block "main" . }}{{ end }}
</article>
{{ partialCached "footer.html" . }} {{ partialCached "footer.html" . }}
{{ partialCached "footer-scripts.html" . }} {{ partialCached "footer-scripts.html" . }}
</body> </body>
</html> </html>
+17
View File
@@ -1846,6 +1846,23 @@ $feature-box-div-margin-bottom: 40px
color: #0000CC color: #0000CC
margin-right: 8px margin-right: 8px
// This Sass ensures a sticky footer at the bottom
.page
display: flex
flex-direction: column
min-height: 100vh
.page-content
flex: 1
// 404 page
.container-404
text-align: center
margin: 3.5rem 0
ul li a
font-size: 1.5rem
// GitHub info/edit buttons // GitHub info/edit buttons
#pre-footer #pre-footer
margin-top: 2rem margin-top: 2rem
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long