diff --git a/plinth/templates/base.html b/plinth/templates/base.html index cfb4234d9..9e71743e1 100644 --- a/plinth/templates/base.html +++ b/plinth/templates/base.html @@ -69,7 +69,7 @@ - + {% block app_head %}{% endblock %} {% block page_head %}{% endblock %} @@ -212,20 +212,22 @@ {# this center-info should contain help texts but no menus #} {% endblock %} - -
- - - + + diff --git a/plinth/templates/index.html b/plinth/templates/index.html index 77672dcdf..f9c0f0d41 100644 --- a/plinth/templates/index.html +++ b/plinth/templates/index.html @@ -158,9 +158,11 @@ -

- - {% trans "JavaScript license information" %} -

+
+

+ + {% trans "JavaScript license information" %} +

+
{% endblock %} diff --git a/static/themes/default/css/plinth.css b/static/themes/default/css/plinth.css index 68b740730..2b1439b23 100644 --- a/static/themes/default/css/plinth.css +++ b/static/themes/default/css/plinth.css @@ -74,10 +74,8 @@ body { width: 60px; } -footer { - text-align: center; -} - +/* Sticky footer styles +-------------------------------------------------- */ footer .license-info { opacity: 0.75; } @@ -85,3 +83,22 @@ footer .license-info { .footer-logo { width: 140px; } + +html { + position: relative; + min-height: 100%; +} +body { + /* Margin bottom by footer height */ + margin-bottom: 60px; +} +footer { + text-align: center; + position: absolute; + bottom: 0; + width: 100%; +} + +footer license-info p{ + margin: 20px 0; +} \ No newline at end of file diff --git a/static/themes/default/css/responsive.css b/static/themes/default/css/responsive.css new file mode 100644 index 000000000..ebcede839 --- /dev/null +++ b/static/themes/default/css/responsive.css @@ -0,0 +1,9 @@ + +/* Responsive queries */ +/* Smartphone */ + +@media screen and (max-width: 660px) { + footer{ + position: relative; + } +} \ No newline at end of file