flash messages look nicer

This commit is contained in:
danielvincent 2010-10-09 22:32:39 -07:00
parent 1ac410b590
commit b313272ff3
3 changed files with 47 additions and 29 deletions

View file

@ -12,7 +12,9 @@ $(document).ready(function(){
$("label").inFieldLabels();
$('#flash_notice, #flash_error, #flash_alert').delay(2500).slideUp(130);
$('#flash_notice, #flash_error, #flash_alert').delay(4000).animate({
top: -100
}, $(this).remove());
$("div.image_cycle").cycle({
fx: 'fade',

View file

@ -32,24 +32,27 @@ h3 {
#flash_error,
#flash_alert {
z-index: 100;
top: 32px;
position: absolute;
color: black;
width: 400px;
margin: 0 0 0 -200px;
left: 50%;
text-align: center;
font-size: 14px;
padding: 3px 0; }
position: fixed;
color: white;
top: 0;
left: 0;
width: 100%;
padding: 1em;
box-shadow: 0 1px 2px #333333;
-moz-box-shadow: 0 1px 2px #333333;
-webkit-box-shadow: 0 1px 2px #333333;
font-weight: bold; }
#flash_notice {
background-color: #ccffcc;
border: solid 1px #66cc66; }
background-color: rgba(127, 255, 36, 0.85);
border-bottom: solid 1px #66cc66;
text-shadow: 0 1px #66cc66; }
#flash_error,
#flash_alert {
background-color: #ffcccc;
border: solid 1px #cc6666; }
background-color: rgba(208, 49, 43, 0.85);
border-bottom: solid 1px #cc6666;
text-shadow: 0 1px #cc6666; }
.fieldWithErrors {
display: inline; }

View file

@ -39,26 +39,39 @@ h3
#flash_error,
#flash_alert
:z-index 100
:top 32px
:position absolute
:color #000
:width 400px
:margin 0 0 0 -200px
:left 50%
:text
:align center
:font
:size 14px
:padding 3px 0
:position fixed
:color #fff
:top 0
:left 0
:width 100%
:padding 1em
:box-shadow 0 1px 2px #333
:-moz-box-shadow 0 1px 2px #333
:-webkit-box-shadow 0 1px 2px #333
:font
:weight bold
#flash_notice
:background-color #CFC
:border solid 1px #6C6
:background
:color rgba(127,255,36,0.85)
:border
:bottom solid 1px #6C6
:text
:shadow 0 1px #6C6
#flash_error,
#flash_alert
:background-color #FCC
:border solid 1px #C66
:background
:color rgba(208,49,43,0.85)
:border
:bottom solid 1px #C66
:text
:shadow 0 1px #C66
.fieldWithErrors
:display inline