Commit 533ef87b134738e9d5c24067e531ee3fe4e9bf55

Authored by GitLab
1 parent 0e387919

Make flash messages fixed and sticked to bottom

app/assets/javascripts/main.js.coffee
... ... @@ -89,7 +89,7 @@ $ ->
89 89 if (flash = $(".flash-container")).length > 0
90 90 flash.click -> $(@).fadeOut()
91 91 flash.show()
92   - setTimeout (-> flash.fadeOut()), 9000
  92 + setTimeout (-> flash.fadeOut()), 3000
93 93  
94 94 # Disable form buttons while a form is submitting
95 95 $('body').on 'ajax:complete, ajax:beforeSend, submit', 'form', (e) ->
... ...
app/assets/stylesheets/common.scss
... ... @@ -51,6 +51,10 @@ table a code {
51 51 text-align: center;
52 52 color: #fff;
53 53 font-size: 14px;
  54 + position: fixed;
  55 + bottom: 0;
  56 + width: 100%;
  57 + opacity: 0.8;
54 58  
55 59 .flash-notice {
56 60 background: #49C;
... ...