Skip to content

Commit

Permalink
fixed sticky footer
Browse files Browse the repository at this point in the history
  • Loading branch information
yimingzhaomath committed May 20, 2018
1 parent f6c7666 commit f24d794
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions _sass/_footer.scss
Expand Up @@ -3,11 +3,15 @@
========================================================================== */

.page__footer {
@include full();
@include clearfix;
float: left;
margin-left: 0;
margin-right: 0;
width: 100%;
clear: both;
/* sticky footer fix start */
position: absolute;
bottom: 0;
bottom: 0em;
height: auto;
/* sticky footer fix end */
margin-top: 3em;
Expand All @@ -20,9 +24,11 @@
border-top: 1px solid $light-gray;

footer {
@include container;
@include clearfix;
margin-left: auto;
margin-right: auto;
margin-top: 2em;
max-width: 100%;
padding: 0 1em 2em;

@include breakpoint($x-large) {
Expand All @@ -39,7 +45,10 @@
}
}

.fa {
.fas,
.fab,
.far,
.fal {
color: mix(#fff, $gray, 25%);
}
}
Expand All @@ -50,7 +59,6 @@
}

.page__footer-follow {

ul {
margin: 0;
padding: 0;
Expand All @@ -75,4 +83,10 @@
padding-right: 10px;
font-weight: bold;
}

.social-icons {
a {
white-space: nowrap;
}
}
}

0 comments on commit f24d794

Please sign in to comment.