Message didn't animate in Firefox

This commit is contained in:
Ruud committed 2012-06-30 22:32:19 +02:00
1 parent c87a84e668
commit 6c8b6a749f
1 file changed
+15 -8
+15 -8
View File
@@ -581,12 +581,15 @@ body > .spinner, .mask{
} }
.messages { .messages {
position: fixed; position: absolute;
right: 0; right: 0;
bottom: 0; bottom: 0;
padding: 2px; padding: 2px;
width: 240px; width: 240px;
z-index: 2; z-index: 2;
overflow: hidden;
font-size: 14px;
font-weight: bold;
} }
.messages .message { .messages .message {
@@ -595,23 +598,27 @@ body > .spinner, .mask{
margin: 2px 0 0 0; margin: 2px 0 0 0;
height: 0; height: 0;
overflow: hidden; overflow: hidden;
position: relative; transition: all .6s cubic-bezier(0.9,0,0.1,1);
transition: all .4s cubic-bezier(0.9,0,0.1,1);
font-size: 12px;
box-shadow: 0 1px 1px rgba(0,0,0,0.35), inset 0 1px 0px rgba(255,255,255,0.20); box-shadow: 0 1px 1px rgba(0,0,0,0.35), inset 0 1px 0px rgba(255,255,255,0.20);
background-image: linear-gradient( background-image: linear-gradient(
270deg, 270deg,
#5b9bd1 0%, #5b9bd1 0%,
#406db8 100% #406db8 100%
); );
width: 100%;
padding: 0 5px;
visibility: hidden;
max-height: 0;
} }
.messages .message.show { .messages .message.show {
visibility: visible;
height: auto; height: auto;
padding: 3px 5px; padding-top: 3px;
min-height: 10px; padding-bottom: 3px;
max-height: 400px; min-height: 1px;
max-height: 400px;
} }
.messages .message.hide { .messages .message.hide {
right: -240px; margin-left: 240px;
opacity: 0; opacity: 0;
} }