Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
Footer structure modified + styling changed
Browse files Browse the repository at this point in the history
  • Loading branch information
m712 committed Feb 26, 2016
1 parent b353e12 commit 502cdd5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
23 changes: 15 additions & 8 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -328,19 +328,23 @@ a.hchild:hover,a.hchild:active {
.footer {
background: var(--jumbotron-bg);
color: var(--footer-text-color);
width: 100%;
margin-top: 2vh;
box-shadow: 0 -3px 5px rgba(150,150,150,.36);
min-height: 9.5rem;
}

.footer-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-start;
box-shadow: 0 -3px 5px rgba(150,150,150,.36);
min-height: 9.5rem;
margin: 0 auto;
}

.footerchild {
margin: 0 2em;
margin-top: .5em;
flex: 1 1 1px;
min-width: 12rem;
}

.footerchild:last-child {
Expand All @@ -354,12 +358,11 @@ a.hchild:hover,a.hchild:active {
}
}

.footer-link,
.footer a {
footer a {
color: var(--footer-link-color);
}

.footer a:hover {
footer a:hover {
color: #fff;
}

Expand Down Expand Up @@ -441,7 +444,7 @@ a.hchild:hover,a.hchild:active {
}
}

.footer h2,.footer h3 {
.footer h2, .footer h3 {
margin-left: 10px;
margin-right: 10px;
}
Expand Down Expand Up @@ -472,6 +475,10 @@ footer.copyright div {
line-height: 1.5rem;
}

.copyright .fa {
height: 100%;
}

.copyright .footer-link {
height: 28px;
margin-right: .5em;
Expand Down
4 changes: 3 additions & 1 deletion templates/footer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<footer class="footer">
<div class="footer-container">
<div class="footerchild">
<h2>About freenode</h2>
<ul>
Expand Down Expand Up @@ -80,11 +81,12 @@ <h2>Social Media</h2>
</ul>
</div>
</div>
</div>
</footer>
<footer class="copyright">
<div>
{%- if config.GITHUB_URL is defined %}
<a class="footer-link" href="{{ config.GITHUB_URL }}"><i class="fa fa-github fa-lg"></i></a>&nbsp;
<a href="{{ config.GITHUB_URL }}"><i class="fa fa-github fa-lg"></i></a>&nbsp;
{% endif -%}
<a class="copyright" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target= "_blank">
<img alt="CC by-nc-sa" src="{{ url_for("static/img/by-nc-sa.svg") }}">
Expand Down

0 comments on commit 502cdd5

Please sign in to comment.