From 533ef87b134738e9d5c24067e531ee3fe4e9bf55 Mon Sep 17 00:00:00 2001 From: GitLab Date: Sat, 17 Aug 2013 06:32:59 -0400 Subject: [PATCH] Make flash messages fixed and sticked to bottom --- app/assets/javascripts/main.js.coffee | 2 +- app/assets/stylesheets/common.scss | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/main.js.coffee b/app/assets/javascripts/main.js.coffee index f22c7a2..7f172d5 100644 --- a/app/assets/javascripts/main.js.coffee +++ b/app/assets/javascripts/main.js.coffee @@ -89,7 +89,7 @@ $ -> if (flash = $(".flash-container")).length > 0 flash.click -> $(@).fadeOut() flash.show() - setTimeout (-> flash.fadeOut()), 9000 + setTimeout (-> flash.fadeOut()), 3000 # Disable form buttons while a form is submitting $('body').on 'ajax:complete, ajax:beforeSend, submit', 'form', (e) -> diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 6426ca6..d9669b5 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -51,6 +51,10 @@ table a code { text-align: center; color: #fff; font-size: 14px; + position: fixed; + bottom: 0; + width: 100%; + opacity: 0.8; .flash-notice { background: #49C; -- libgit2 0.21.2