forked from filipeamoreira/rstat.us
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jordan Byron
committed
Jan 12, 2012
1 parent
53ce976
commit f526776
Showing
5 changed files
with
34 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,6 @@ | |
|
||
@import "blueprint/reset"; | ||
@import "blueprint"; | ||
|
||
@import "lib/base"; | ||
@import "partials/flash"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
div#flash div.flash { | ||
padding: 0.5em 1em; | ||
@include rounded(4px); | ||
background-color: #FDFAF2; | ||
color: #555; | ||
|
||
&.notice { | ||
background-color: #8c8; | ||
color: #252; | ||
} | ||
|
||
&.error, &.alert, &.warning { | ||
background-color: #c88; | ||
color: #522; | ||
} | ||
|
||
ul { | ||
padding-left: 2em; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#error | ||
%p Warning: your username is currently empty or invalid. | ||
%p | ||
Please | ||
%a{:href=>"/reset-username", :id=>"reset_username"}click here to reset your username. | ||
#flash | ||
.flash.error | ||
%p Warning: your username is currently empty or invalid. | ||
%p | ||
Please | ||
%a{:href=>"/reset-username", :id=>"reset_username"} | ||
click here to reset your username. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
- if flash[:notice] | ||
#flash | ||
= flash[:notice] | ||
- if flash[:error] | ||
#error | ||
= flash[:error] | ||
#flash | ||
- flash.each do |flashtype, message| | ||
%div{:class => "flash #{flashtype}"} | ||
= message |