more fancy fading

This commit is contained in:
Robin Appelman 2011-08-12 22:10:43 +02:00
parent c2a5b49834
commit 42c5a24dc3
2 changed files with 14 additions and 9 deletions

View File

@ -26,19 +26,19 @@
/* FILE TABLE */
span#emptyfolder { position:absolute; margin:10em 0 0 10em; font-size:1.5em; font-weight:bold; color:#888; text-shadow:#fff 0 1px 0; }
table { position:relative; top:37px; width:100%; }
table tr { -webkit-transition:background-color 100ms ease-in 100ms;
-moz-transition:background-color 100ms ease-in 100ms;
-o-transition:background-color 100ms ease-in 100ms;
transition:background-color 100ms ease-in 100ms; }
table tr { -webkit-transition:background-color ease-in 200ms;
-moz-transition:background-color ease-in 200ms;
-o-transition:background-color ease-in 200ms;
transition:background-color ease-in 200ms; }
tbody tr:hover, tbody tr:active, tbody tr.selected { background-color:#f8f8f8; height:1em; }
tbody tr.selected { background-color:#eee; }
tbody a { color:#000; }
span.extention, td.date { color:#999; }
span.extention { opacity:0;
-webkit-transition:opacity 100ms ease-in 100ms;
-moz-transition:opacity 100ms ease-in 100ms;
-o-transition:opacity 100ms ease-in 100ms;
transition:opacity 100ms ease-in 100ms; }
-webkit-transition:opacity ease-in 200ms;
-moz-transition:opacity ease-in 200ms;
-o-transition:opacity ease-in 200ms;
transition:opacity ease-in 200ms; }
tr:hover span.extention { opacity:1; }
div.crumb { float:left; display:block; background:no-repeat right 0; padding:.75em 1.5em 0 1em; height:2.9em; }
div.crumb:first-child { padding-left:1.5em; }

View File

@ -53,6 +53,7 @@ FileActions={
},
display:function(parent){
FileActions.currentFile=parent;
$('.file_action').remove();
var actions=FileActions.get(FileActions.getCurrentMimeType(),FileActions.getCurrentType());
var file=FileActions.getCurrentFile();
if($('tr[data-file="'+file+'"]').data('renaming')){
@ -100,10 +101,14 @@ FileActions={
});
parent.parent().children().last().append(element);
}
$('.file_action').hide();
$('.file_action').fadeIn(200);
return false;
},
hide:function(){
$('.file_action').remove();
$('.file_action').fadeOut(200,function(){
$(this).remove();
});
},
getCurrentFile:function(){
return FileActions.currentFile.parent().attr('data-file');