Skip to content

Commit

Permalink
styling the flash a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
mose committed Jan 4, 2016
1 parent 98e685d commit 04ba5a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/public/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,16 @@ input {

/* ------ flash messages ----- */
.flash {
position: absolute;
position: relative;
display: inline-block;
padding: 1em 2em;
margin: -1em;
margin-left: 1em;
right: 0;
float: right;
}
.flash.info {
background-color: #dda;
background-color: #4d4;
color: #000;
}
.flash.warning {
Expand All @@ -273,4 +275,5 @@ input {
.flash.fatal {
background-color: #a20;
color: #fff;
font-weight: bold;
}
2 changes: 2 additions & 0 deletions app/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def check_authorization


get '/' do
flash['fatal'] = "hmm"
flash['warning'] = "hmm"
flash['info'] = "hmm"
erb :home
end

Expand Down

0 comments on commit 04ba5a7

Please sign in to comment.