diff --git a/public/javascripts/view.js b/public/javascripts/view.js index fce769331cf8025e0a0277a2a987d4d2575d3a7c..474548fe344f58fbdb766a990925cb13d5ec8870 100644 --- a/public/javascripts/view.js +++ b/public/javascripts/view.js @@ -12,7 +12,9 @@ $(document).ready(function(){ $("label").inFieldLabels(); - $('#flash_notice, #flash_error, #flash_alert').delay(4000).animate({ + $('#flash_notice, #flash_error, #flash_alert').animate({ + top: 0 + }).delay(4000).animate({ top: -100 }, $(this).remove()); diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 0a5f022b4ec46b8afdb2e12f88ca88e1a37ade6a..15419a4889f5ff6e13140386532f32a905e9ffb3 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -34,7 +34,7 @@ h3 { z-index: 100; position: fixed; color: white; - top: 0; + top: -100px; left: 0; width: 100%; padding: 1em; diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index 389adacf4e66b2b56d9a3c66822509b37f9b130c..d47f0d16fd9547577296323d30553ecf8034b47b 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -42,7 +42,7 @@ h3 :position fixed :color #fff - :top 0 + :top -100px :left 0 :width 100%