From 7bbdc4385deecba3b71156db523deca865fdb8c3 Mon Sep 17 00:00:00 2001 From: Nicolas Joyard <joyard.nicolas@gmail.com> Date: Fri, 10 Jun 2016 23:11:10 +0200 Subject: [PATCH] Fix footer links --- static/scss/footer.scss | 32 ++++++++++++++++++++------- templates/_footer.haml | 49 ++++++++++++++++++++++++----------------- 2 files changed, 53 insertions(+), 28 deletions(-) diff --git a/static/scss/footer.scss b/static/scss/footer.scss index 4bcce6aa..b1989f30 100644 --- a/static/scss/footer.scss +++ b/static/scss/footer.scss @@ -1,10 +1,26 @@ #footer { - background: #5B8EDC; - color: white; - text-align: center; - padding: 20px; - a { - color: white; - text-decoration: underline; - } + background: #5B8EDC; + color: white; + text-align: center; + padding: 20px; + + a { + color: white; + text-decoration: underline; + } + + .license-links, + .footer-link { + display: inline; + + & + .footer-link:before { + content: '•'; + padding: 0 .5em; + } + } + + .footer-separator { + height: 1em; + } } + diff --git a/templates/_footer.haml b/templates/_footer.haml index dbe35f78..54a2ce0e 100644 --- a/templates/_footer.haml +++ b/templates/_footer.haml @@ -1,24 +1,33 @@ - load i18n #footer.container-fluid - - blocktrans - Memopol is free software - <a href="https://github.com/political-memory/political_memory">released</a> - under the terms of the - <a href="http://www.gnu.org/licenses/agpl.html">GNU aGPLV3+</a> - - %a{href: "https://github.com/political-memory/political_memory/issues/new"} - - trans "Report a bug" - %br - {% trans "Provided by" %} <a href="http://www.laquadrature.net/">La Quadrature du Net</a> - %br - %hr - %a{href: "http://parltrack.euwiki.org/"} - - trans "EP data provided by Parltrack" - - %a{href: "http://www.memopol.org/"} - - trans "Blog" - - %a{href: "http://memopol.readthedocs.io/en/master/"} - - trans "Documentation" + .license-links + - blocktrans + Memopol is + %a{href: "https://github.com/political-memory/political_memory"}< + free software + released under the terms of the + %a{href: "http://www.gnu.org/licenses/agpl.html"}< + GNU aGPLV3+ + + .footer-link + %a{href: "https://github.com/political-memory/political_memory/issues/new"}< + - trans "Report a bug" + .footer-link + %a{href: "http://www.memopol.org/"}< + - trans "Blog" + .footer-link + %a{href: "http://memopol.readthedocs.io/en/master/"}< + - trans "Documentation" + + .footer-separator + + .footer-link + - trans "Developed by" + %a{href: "http://www.laquadrature.net/"}< + La Quadrature du Net + .footer-link + - trans "EP data provided by" + %a{href: "http://parltrack.euwiki.org/"}< + - trans "Parltrack" -- GitLab