1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Improve import dialog styling

This commit is contained in:
Jan ten Bokkel 2014-08-28 16:49:53 +02:00
parent be5ae33234
commit 8654fe0aba
3 changed files with 7 additions and 14 deletions

View File

@ -435,13 +435,8 @@ dt[data-element="org"] { margin-top: 4px; }
/* Single elements */
#file_upload_form { display:none; }
#contacts-import-upload-start, .import-upload-button {
width: 30px !important; height: 30px !important;
display:block;
position: absolute;
right: 0; bottom: 0;
margin: 5px !important;
cursor: pointer;
#import-dialog {
width: auto !important;
}
#contacts-import-upload-start {
cursor: pointer;
@ -861,8 +856,8 @@ tbody tr.contact.active, tbody tr.contact:hover {
}
#contacts-import-div > p > label {
vertical-align:top;
width:200px;
vertical-align: baseline;
width:100px;
display: inline-block;
}

View File

@ -395,9 +395,9 @@ OC.Contacts = OC.Contacts || {};
width: 'auto',
buttons: [
{
text: t('contacts', 'Close'),
text: t('contacts', 'Upload file...'),
click: function() {
$('#import-dialog').ocdialog('close').ocdialog('destroy').remove();
$('#contacts-import-upload-start').click();
}
}
],

View File

@ -518,9 +518,7 @@ use OCA\Contacts\ImportManager;
?>
</select>
</p>
<p id="contacts-import-upload">
<!--<label for="contacts-import-upload"><?php p($l->t('Select file')); ?></label>-->
<button class="icon-upload svg tooltipped import-upload-button" title="<?php p($l->t('Select file...')); ?>"></button>
<p id="contacts-import-upload" class="hidden">
<input id="contacts-import-upload-start" class="tooltipped" title="<?php p($l->t('Select file...')); ?>" type="file" name="file" disabled />
</p>
<p id="contacts-import-status">