From: Olga Brani Date: Thu, 24 May 2012 13:01:33 +0000 (+0300) Subject: Style minor fixes X-Git-Tag: astakos/v0.7.0~4^2~15 X-Git-Url: https://code.grnet.gr/git/astakos/commitdiff_plain/052948281d8bdf9e9293bcd0444a187ac8826b64 Style minor fixes --- diff --git a/snf-astakos-app/astakos/im/static/im/images/arrow-white-reverse.png b/snf-astakos-app/astakos/im/static/im/images/arrow-white-reverse.png new file mode 100644 index 0000000..e2692a7 Binary files /dev/null and b/snf-astakos-app/astakos/im/static/im/images/arrow-white-reverse.png differ diff --git a/snf-astakos-app/astakos/im/static/im/js/common.js b/snf-astakos-app/astakos/im/static/im/js/common.js index 927f21c..e336d01 100644 --- a/snf-astakos-app/astakos/im/static/im/js/common.js +++ b/snf-astakos-app/astakos/im/static/im/js/common.js @@ -36,8 +36,16 @@ $(document).ready(function() { $(this).parents('.box-more').toggleClass('border'); }); - var topMargin=parseInt($('.mainlogo').height())+parseInt($('.top-msg').css('marginBottom')); - $('.mainlogo').css('marginTop','-'+topMargin+'px') + var fixTopMessageHeight = function() { + var topMargin = parseInt($('.mainlogo img').height())+parseInt($('.top-msg').css('marginBottom')); + $('.mainlogo').css('marginTop','-'+topMargin+'px'); + } + + if ($('.mainlogo img').length > 0) { + $('.mainlogo img').bind('load', fixTopMessageHeight) + } else { + fixTopMessageHeight(); + } $('.top-msg a.close').click(function(e) { $('.top-msg').animate({ @@ -53,21 +61,20 @@ $(document).ready(function() { //todo }); }); - //$('select').dropkick(); $('.top-msg .success').parents('.top-msg').css( { - backgroundColor: '#f3c', + backgroundColor: '#00A2B1', color: '#fff' } ) $('.top-msg .error').parents('.top-msg').css( { - backgroundColor: 'red', + backgroundColor: '#C43F73', color: '#fff' } ) @@ -75,7 +82,14 @@ $(document).ready(function() { $('.top-msg .warning').parents('.top-msg').css( { - backgroundColor: '#90f', + backgroundColor: '#F0A216', + color: '#fff' + } + ) + + $('.top-msg .info').parents('.top-msg').css( + { + backgroundColor: '#75A23A', color: '#fff' } ) diff --git a/snf-astakos-app/astakos/im/templates/im/base.html b/snf-astakos-app/astakos/im/templates/im/base.html index 5e831b0..7a93b51 100644 --- a/snf-astakos-app/astakos/im/templates/im/base.html +++ b/snf-astakos-app/astakos/im/templates/im/base.html @@ -74,7 +74,7 @@ {% block extra_messages %}{% endblock %} {% for message in messages %} + class="msg {{ message.tags }}"{% endif %}> {{ message|safe }} {% endfor %} X