Skip to content
Snippets Groups Projects
Commit 42c5a24d authored by Robin Appelman's avatar Robin Appelman
Browse files

more fancy fading

parent c2a5b498
No related branches found
No related tags found
No related merge requests found
...@@ -26,19 +26,19 @@ ...@@ -26,19 +26,19 @@
/* FILE TABLE */ /* 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; } 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 { position:relative; top:37px; width:100%; }
table tr { -webkit-transition:background-color 100ms ease-in 100ms; table tr { -webkit-transition:background-color ease-in 200ms;
-moz-transition:background-color 100ms ease-in 100ms; -moz-transition:background-color ease-in 200ms;
-o-transition:background-color 100ms ease-in 100ms; -o-transition:background-color ease-in 200ms;
transition:background-color 100ms ease-in 100ms; } transition:background-color ease-in 200ms; }
tbody tr:hover, tbody tr:active, tbody tr.selected { background-color:#f8f8f8; height:1em; } tbody tr:hover, tbody tr:active, tbody tr.selected { background-color:#f8f8f8; height:1em; }
tbody tr.selected { background-color:#eee; } tbody tr.selected { background-color:#eee; }
tbody a { color:#000; } tbody a { color:#000; }
span.extention, td.date { color:#999; } span.extention, td.date { color:#999; }
span.extention { opacity:0; span.extention { opacity:0;
-webkit-transition:opacity 100ms ease-in 100ms; -webkit-transition:opacity ease-in 200ms;
-moz-transition:opacity 100ms ease-in 100ms; -moz-transition:opacity ease-in 200ms;
-o-transition:opacity 100ms ease-in 100ms; -o-transition:opacity ease-in 200ms;
transition:opacity 100ms ease-in 100ms; } transition:opacity ease-in 200ms; }
tr:hover span.extention { opacity:1; } 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 { 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; } div.crumb:first-child { padding-left:1.5em; }
......
...@@ -53,6 +53,7 @@ FileActions={ ...@@ -53,6 +53,7 @@ FileActions={
}, },
display:function(parent){ display:function(parent){
FileActions.currentFile=parent; FileActions.currentFile=parent;
$('.file_action').remove();
var actions=FileActions.get(FileActions.getCurrentMimeType(),FileActions.getCurrentType()); var actions=FileActions.get(FileActions.getCurrentMimeType(),FileActions.getCurrentType());
var file=FileActions.getCurrentFile(); var file=FileActions.getCurrentFile();
if($('tr[data-file="'+file+'"]').data('renaming')){ if($('tr[data-file="'+file+'"]').data('renaming')){
...@@ -100,10 +101,14 @@ FileActions={ ...@@ -100,10 +101,14 @@ FileActions={
}); });
parent.parent().children().last().append(element); parent.parent().children().last().append(element);
} }
$('.file_action').hide();
$('.file_action').fadeIn(200);
return false; return false;
}, },
hide:function(){ hide:function(){
$('.file_action').remove(); $('.file_action').fadeOut(200,function(){
$(this).remove();
});
}, },
getCurrentFile:function(){ getCurrentFile:function(){
return FileActions.currentFile.parent().attr('data-file'); return FileActions.currentFile.parent().attr('data-file');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment