diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-09-21 12:45:11 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-09-21 12:45:11 +0000 |
commit | bcd3d1116c65de257329a13862ffbad59008325d (patch) | |
tree | 0be3686d257a3e4f1674b586b1cb74b3f56ffab5 /apps | |
parent | b6dc6c5bb9903a85b634a0b4d57f5cf6657ea49b (diff) | |
download | nextcloud-server-bcd3d1116c65de257329a13862ffbad59008325d.tar.gz nextcloud-server-bcd3d1116c65de257329a13862ffbad59008325d.zip |
Change background colour of upload button to be consistant with new button
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/css/files.css | 2 | ||||
-rw-r--r-- | apps/files/templates/index.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/css/files.css b/apps/files/css/files.css index 717951c70e9..566ae39f92c 100644 --- a/apps/files/css/files.css +++ b/apps/files/css/files.css @@ -13,7 +13,7 @@ .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 { background-color:#5bb75b; 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:hover { background-color:#4b964b; } +#new:hover, a.file_upload_button_wrapper:hover + button.file_upload_filename { background-color:#4b964b; } #new.active { border-bottom-left-radius:0; border-bottom:none; } #new>a { padding:.5em 1.2em .3em; color:#fff; text-shadow:0 1px 0 #51a351; } #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; } diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index dfd681c2a7c..aff484f0a7a 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -16,9 +16,9 @@ <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload"> <input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)"> <input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir"> - <button class="file_upload_filename"></button> <input class="file_upload_start" type="file" name='files[]'/> - <a href="#" class="file_upload_button_wrapper" onclick="return false;" title="<?php echo $l->t('Upload'); echo ' max. '.$_['uploadMaxHumanFilesize'] ?>"></a> + <a href="#" class="file_upload_button_wrapper" onclick="return false;" title="<?php echo $l->t('Upload'); echo ' max. '.$_['uploadMaxHumanFilesize'] ?>"></a> + <button class="file_upload_filename"></button> <iframe name="file_upload_target_1" class='file_upload_target' src=""></iframe> </form> </div> |