Skip to content
This repository has been archived by the owner on Dec 8, 2017. It is now read-only.

Commit

Permalink
sticky footer flexbox
Browse files Browse the repository at this point in the history
  • Loading branch information
gemfarmer committed Mar 21, 2016
1 parent a40a64b commit 30850a1
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 13 deletions.
2 changes: 1 addition & 1 deletion forecast-admin/forecast/opportunities/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block content %}
<section class="error-page usa-grid-full">
<h1 class="error-page-header">404</h1>
<h1 class="error-page-hero">404</h1>
<h2 class="error-page-header">:/</h2>
<p>The page you are looking for appears to be moved, deleted, or does not exist.</p>
<a href="/">Return to all contract opportunities <icon class="fa fa-angle-right"></icon></a>
Expand Down
2 changes: 1 addition & 1 deletion forecast-admin/forecast/opportunities/templates/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block content %}
<section class="error-page usa-grid-full">
<h1 class="error-page-header">500</h1>
<h1 class="error-page-hero">500</h1>
<h2 class="error-page-header">This is a bit awkward</h2>
<p>Something went wrong on our end. Try refreshing the page or you can view <a href="/">all contract opportunities <icon class="fa fa-angle-right"></icon></a></p>
</section>
Expand Down
11 changes: 7 additions & 4 deletions forecast-admin/forecast/static/admin/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ body {
height: 100%;
}

#content {
-webkit-box-flex: 1;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
}

footer {
-webkit-box-flex: 0;
-webkit-flex: none;
Expand Down Expand Up @@ -1229,10 +1236,6 @@ table#change-history tbody th {
}

#content {
-webkit-box-flex: 1;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
padding: 20px 40px;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
text-align: center;
}

.error-page .error-page-header {
.error-page .error-page-header,
.error-page .error-page-hero {
margin: 0;
}

.error-page .error-page-hero {
font-size: rem(70px);
font-weight: $font-normal;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
footer {
-webkit-box-flex: 0;
-webkit-flex: none;
-ms-flex: none;
flex: none;
}

.usa-footer {
.usa-unstyled-list {
display: block;
Expand Down
10 changes: 10 additions & 0 deletions forecast-admin/forecast/static/assets/_scss/core/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ html {

body {
background-color: #ffffff;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
height: 100%;
}

.lt-ie9 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ footer .usa-grid {

.content-wrapper {
padding-top: ($base-padding * 2);
min-height: rem(500px);
-webkit-box-flex: 1;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
}


31 changes: 27 additions & 4 deletions forecast-admin/forecast/static/assets/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion forecast-admin/forecast/static/assets/css/main.css.map

Large diffs are not rendered by default.

0 comments on commit 30850a1

Please sign in to comment.