diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-11-04 16:16:54 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-11-04 16:16:54 +0100 |
commit | e55c5c590eb47ff10f8166c943470e30584d5b0f (patch) | |
tree | f8ae378435fd573da06fb2517e39b4d83f8b10d5 /files | |
parent | 9a049de85fa7858efaee8f8f2649dc99340233d4 (diff) | |
download | nextcloud-server-e55c5c590eb47ff10f8166c943470e30584d5b0f.tar.gz nextcloud-server-e55c5c590eb47ff10f8166c943470e30584d5b0f.zip |
make 'New' button work with firefox
Diffstat (limited to 'files')
-rw-r--r-- | files/css/files.css | 8 | ||||
-rw-r--r-- | files/templates/index.php | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/files/css/files.css b/files/css/files.css index ecd9d9a7906..22f4810d0a6 100644 --- a/files/css/files.css +++ b/files/css/files.css @@ -4,7 +4,7 @@ /* FILE MENU */ .actions { padding:.3em; float:left; height:2em; } -.actions input, .actions button { margin:0; } +.actions input, .actions button, .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; } .file_upload_form, #file_newfolder_form { display:inline; float: left; margin-left:0; } @@ -12,10 +12,10 @@ .file_upload_wrapper, #file_newfolder_name { background-repeat:no-repeat; background-position:.5em .5em; padding-left:2em; } .file_upload_wrapper { font-weight:bold; display:-moz-inline-box; /* fallback for older firefox versions*/ display:inline-block; padding-left:0; overflow:hidden; position:relative; margin:0;} .file_upload_wrapper .file_upload_button_wrapper { position:absolute; top:0; left:0; width:100%; height:100%; cursor:pointer; z-index:1000; } -#new { float:left; border-top-right-radius:0; border-bottom-right-radius:0; margin:-.075em 0 0 1em; border-right:none; z-index:1010; } -#new.active { border-bottom-left-radius:0; border-bottom:none; } +#new { float:left; border-top-right-radius:0; border-bottom-right-radius:0; margin:0 0 0 1em; border-right:none; z-index:1010; height:1.3em; } +#new.active { border-bottom-left-radius:0; border-bottom:none; background:#f8f8f8 } #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:0.075em; 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; padding-bottom:0.1em } #new>ul>li>p { cursor:pointer; } #new>ul>li>input { padding:0.3em; margin:-0.3em; } diff --git a/files/templates/index.php b/files/templates/index.php index cb1ab688084..722c38e4776 100644 --- a/files/templates/index.php +++ b/files/templates/index.php @@ -2,7 +2,7 @@ <?php echo($_['breadcrumb']); ?> <?php if (!isset($_['readonly']) || !$_['readonly']) {?> <div class="actions"> - <button id='new'> + <div id='new' class='button'> <a> <?php echo $l->t('New');?> </a> @@ -11,7 +11,7 @@ <li style="background-image:url('<?php echo mimetype_icon('dir') ?>')" data-type='folder'><p><?php echo $l->t('Folder');?></p></li> <!-- <li style="background-image:url('<?php echo mimetype_icon('dir') ?>')" data-type='web'><p><?php echo $l->t('From the web');?></p></li> --> </ul> - </button> + </div> <div class="file_upload_wrapper svg"> <form data-upload-id='1' class="file_upload_form" action="ajax/upload.php" method="post" enctype="multipart/form-data" target="file_upload_target_1"> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload"> |