aboutsummaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-11-04 03:02:51 +0100
committerRobin Appelman <icewind1991@gmail.com>2011-11-04 03:08:00 +0100
commitbf18568e176481f416b28be0e3ee663777031219 (patch)
tree51139281b903728a02810ff4dc3fd847c30991e9 /files
parent2c68aab1983c912e52af6c0f62bc04850178894b (diff)
downloadnextcloud-server-bf18568e176481f416b28be0e3ee663777031219.tar.gz
nextcloud-server-bf18568e176481f416b28be0e3ee663777031219.zip
small styling fix for New button
Diffstat (limited to 'files')
-rw-r--r--files/css/files.css5
-rw-r--r--files/js/files.js4
2 files changed, 5 insertions, 4 deletions
diff --git a/files/css/files.css b/files/css/files.css
index 0f0a3a6c585..ecd9d9a7906 100644
--- a/files/css/files.css
+++ b/files/css/files.css
@@ -3,7 +3,7 @@
See the COPYING-README file. */
/* FILE MENU */
-.actions { padding:.3em; float:left; }
+.actions { padding:.3em; float:left; height:2em; }
.actions input, .actions button { margin:0; }
#file_menu { right:0; position:absolute; top:0; }
#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>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>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>input { padding:0.3em; margin:-0.3em; }
#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; }
diff --git a/files/js/files.js b/files/js/files.js
index 4f9cde49aa9..4ff1e931c0b 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -265,7 +265,7 @@ $(document).ready(function() {
$(window).click(function(){
$('#new>ul').hide();
$('#new').removeClass('active');
- $('input.file_upload_filename').removeClass('active');
+ $('button.file_upload_filename').removeClass('active');
$('#new li').each(function(i,element){
if($(element).children('p').length==0){
$(element).children('input').remove();
@@ -279,7 +279,7 @@ $(document).ready(function() {
$('#new>a').click(function(){
$('#new>ul').toggle();
$('#new').toggleClass('active');
- $('input.file_upload_filename').toggleClass('active');
+ $('button.file_upload_filename').toggleClass('active');
});
$('#new li').click(function(){
if($(this).children('p').length==0){