Align footer to bottom (#1150)

This commit is contained in:
James Prado 2018-02-24 12:57:54 -05:00 committed by Daniel Ternyak
parent 94061e0c3e
commit 48536f79be
3 changed files with 23 additions and 10 deletions

View File

@ -1,9 +1,9 @@
@import "common/sass/variables";
@import 'common/sass/variables';
.pre-footer {
padding: 1rem;
box-shadow: 16px 16px 47px 0 rgba(0, 0, 0, .07);
margin-top: 5rem;
box-shadow: 16px 16px 47px 0 rgba(0, 0, 0, 0.07);
margin-top: 2rem;
background-color: white;
text-align: center;

View File

@ -24,13 +24,12 @@ class TabSection extends Component<Props, {}> {
return (
<div className="page-layout">
<main>
<Header />
<div className="Tab container">
{isUnavailableOffline && isOffline ? <OfflineTab /> : children}
</div>
<Footer latestBlock={latestBlock} />
</main>
<Header />
<div className="Tab container">
{isUnavailableOffline && isOffline ? <OfflineTab /> : children}
</div>
<div className="flex-spacer" />
<Footer latestBlock={latestBlock} />
<Notifications />
<AlphaAgreement />
</div>

View File

@ -34,6 +34,20 @@ body {
height: 100%;
}
#app {
height: 100%;
}
.page-layout {
height: 100%;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
> .flex-spacer {
flex-grow: 2;
}
}
input,
button,
select,