small styling fix for New button

This commit is contained in:
Robin Appelman 2011-11-04 03:02:51 +01:00
parent 2c68aab198
commit bf18568e17
2 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@
See the COPYING-README file. */ See the COPYING-README file. */
/* FILE MENU */ /* FILE MENU */
.actions { padding:.3em; float:left; } .actions { padding:.3em; float:left; height:2em; }
.actions input, .actions button { margin:0; } .actions input, .actions button { margin:0; }
#file_menu { right:0; position:absolute; top:0; } #file_menu { right:0; position:absolute; top:0; }
#file_menu a { display:block; float:left; background-image:none; text-decoration:none; } #file_menu a { display:block; float:left; background-image:none; text-decoration:none; }
@ -16,8 +16,9 @@
#new.active { border-bottom-left-radius:0; border-bottom:none; } #new.active { border-bottom-left-radius:0; border-bottom:none; }
#new>a{ padding-left:1em; padding-right:1em; } #new>a{ padding-left:1em; padding-right:1em; }
#new>ul { display:none; position:fixed; text-align:left; padding:.5em; background:#f8f8f8; margin-top:.4em; border:1px solid #ddd; min-width:7em; margin-left:-.5em; z-index:-1; } #new>ul { display:none; position:fixed; text-align:left; padding:.5em; background:#f8f8f8; margin-top:.4em; border:1px solid #ddd; min-width:7em; margin-left:-.5em; z-index:-1; }
#new>ul>li { margin:.3em; padding-left:2em; background-repeat:no-repeat; cursor:pointer; } #new>ul>li { margin:.3em; padding-left:2em; background-repeat:no-repeat; cursor:pointer; padding-bottom:0.1em }
#new>ul>li>p { cursor:pointer; } #new>ul>li>p { cursor:pointer; }
#new>ul>li>input { padding:0.3em; margin:-0.3em; }
#file_newfolder_name { background-image:url('../../core/img/places/folder.svg'); font-weight:normal; width:7em; } #file_newfolder_name { background-image:url('../../core/img/places/folder.svg'); font-weight:normal; width:7em; }
.file_upload_start, .file_upload_filename { font-size:1em; } .file_upload_start, .file_upload_filename { font-size:1em; }

View File

@ -265,7 +265,7 @@ $(document).ready(function() {
$(window).click(function(){ $(window).click(function(){
$('#new>ul').hide(); $('#new>ul').hide();
$('#new').removeClass('active'); $('#new').removeClass('active');
$('input.file_upload_filename').removeClass('active'); $('button.file_upload_filename').removeClass('active');
$('#new li').each(function(i,element){ $('#new li').each(function(i,element){
if($(element).children('p').length==0){ if($(element).children('p').length==0){
$(element).children('input').remove(); $(element).children('input').remove();
@ -279,7 +279,7 @@ $(document).ready(function() {
$('#new>a').click(function(){ $('#new>a').click(function(){
$('#new>ul').toggle(); $('#new>ul').toggle();
$('#new').toggleClass('active'); $('#new').toggleClass('active');
$('input.file_upload_filename').toggleClass('active'); $('button.file_upload_filename').toggleClass('active');
}); });
$('#new li').click(function(){ $('#new li').click(function(){
if($(this).children('p').length==0){ if($(this).children('p').length==0){