From 0b7b580365d8d7c47a3e5ea76fba0d9996d14778 Mon Sep 17 00:00:00 2001 From: yomguy Date: Thu, 20 Dec 2012 18:16:08 +0100 Subject: [PATCH] fix style, make footer stick to bottom and desk_center dynamic --- teleforma/static/teleforma/css/teleforma.css | 18 +++++++++++- teleforma/static/teleforma/js/application.js | 6 ++++ .../teleforma/inc/question_list.html | 2 +- .../templates/teleforma/seminar_detail.html | 4 ++- teleforma/templates/telemeta/base.html | 8 ++++-- teleforma/templates/telemeta/users.html | 28 +------------------ 6 files changed, 34 insertions(+), 32 deletions(-) diff --git a/teleforma/static/teleforma/css/teleforma.css b/teleforma/static/teleforma/css/teleforma.css index c7a57aaf..d6a5d58c 100644 --- a/teleforma/static/teleforma/css/teleforma.css +++ b/teleforma/static/teleforma/css/teleforma.css @@ -1425,7 +1425,7 @@ input,textarea{ float: left; width: 50%; padding: 0em 3em 0em 2em; - max-height: 550px; + max-height: 575px; overflow-y: auto; } @@ -1826,4 +1826,20 @@ form .exceed{ #index p, ul { margin: 0.5em; +} + +* { +margin: 0; +} +html, body { +height: 100%; +} +#layout { +min-height: 100%; +height: auto !important; +height: 100%; +margin: 0 auto -58px; +} +#footer { +height: 30px; } \ No newline at end of file diff --git a/teleforma/static/teleforma/js/application.js b/teleforma/static/teleforma/js/application.js index 6d1a9478..99f355e8 100644 --- a/teleforma/static/teleforma/js/application.js +++ b/teleforma/static/teleforma/js/application.js @@ -29,3 +29,9 @@ var rainbow = new Rainbow(); rainbow.setSpectrum('#bb0000', '#e65911', '#f3ad17', 'green'); + +$(window).ready(function() { + var pageHeight = $(window).height(); + var navHeight = pageHeight - 140; + $('#desk_center').css({"max-height": navHeight + 'px'}); +}); diff --git a/teleforma/templates/teleforma/inc/question_list.html b/teleforma/templates/teleforma/inc/question_list.html index bb505eed..bd0ef59b 100644 --- a/teleforma/templates/teleforma/inc/question_list.html +++ b/teleforma/templates/teleforma/inc/question_list.html @@ -11,7 +11,7 @@ {% for question in questions.all %} - {{ question.title }} n°{{ question.rank }} + {{ question.title }}{% if question.rank %} n°{{ question.rank }}{% endif %} {% if question|submitted:user %}{% trans "submitted on" %} {{ question|submitted:user }}{% elif question|saved:user %}{% trans "saved on" %} {{ question|saved:user }}{% endif %} {% if question|submitted:user and not question|validated:user %}{% elif question|submitted:user and question|validated:user %}{% elif question|saved:user and not question|submitted:user %}{% endif %} diff --git a/teleforma/templates/teleforma/seminar_detail.html b/teleforma/templates/teleforma/seminar_detail.html index d759ab3b..bde78eb8 100644 --- a/teleforma/templates/teleforma/seminar_detail.html +++ b/teleforma/templates/teleforma/seminar_detail.html @@ -28,7 +28,7 @@ $(function() { {% block course %} -
+
@@ -154,6 +154,7 @@ $(function() {
+ {% endblock course %} @@ -184,3 +185,4 @@ $(function() {
{% endif %} {% endblock index %} + diff --git a/teleforma/templates/telemeta/base.html b/teleforma/templates/telemeta/base.html index 80363321..881e9d63 100644 --- a/teleforma/templates/telemeta/base.html +++ b/teleforma/templates/telemeta/base.html @@ -160,6 +160,12 @@ alt="logo" /> + + +
+ +{% endblock layout %} + {% block footer %} {% endblock %} - -{% endblock layout %} {% block analytics %} {% analytics_code %} diff --git a/teleforma/templates/telemeta/users.html b/teleforma/templates/telemeta/users.html index 033510f2..b129519c 100644 --- a/teleforma/templates/telemeta/users.html +++ b/teleforma/templates/telemeta/users.html @@ -12,33 +12,7 @@
-

Trainings{% trans "Trainings" %}

-
- -
-
- -
-

IEJ {% trans "IEJ" %}

-
- -
-
- -
-

Courses{% trans "Courses" %}

+

Courses{% trans "Seminars" %}

    {% block courses %} -- 2.39.5