Skip to content

Commit

Permalink
Fix sticky footer issue (#10681)
Browse files Browse the repository at this point in the history
* Fix sticky footer issue

* Fix merge conflict

* Aesthetic changes to 404 page
  • Loading branch information
lucperkins authored and k8s-ci-robot committed Feb 28, 2019
1 parent f0d8c8a commit 0650b70
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 10 deletions.
29 changes: 26 additions & 3 deletions layouts/404.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
{{ define "main" }}
<section>
<p>Sorry, this page was not found. :(</p>
</section>
<div class="container-404">
<h4>
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 }}
10 changes: 7 additions & 3 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
{{ partial "head.html" . }}
</head>
<body>
<body class="page">
{{ partial "header.html" . }}
{{ block "hero" . }}
<!-- HERO -->
Expand All @@ -18,8 +18,12 @@ <h5>{{ .Params.abstract }}</h5>
</section>
{{ block "post-hero" . }}{{ end }}
{{ end }}
{{ block "main" . }}{{ end }}

<article class="page-content">
{{ block "main" . }}{{ end }}
</article>

{{ partialCached "footer.html" . }}
{{ partialCached "footer-scripts.html" . }}
</body>
</html>
</html>
17 changes: 17 additions & 0 deletions sass/_base.sass
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,23 @@ $feature-box-div-margin-bottom: 40px
color: #0000CC
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
#pre-footer
margin-top: 2rem
Expand Down
2 changes: 1 addition & 1 deletion static/css/case-study-styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/css/case-study-styles.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/css/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/css/styles.css.map

Large diffs are not rendered by default.

0 comments on commit 0650b70

Please sign in to comment.