mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#263 fix css upload drag & drop area
This commit is contained in:
@@ -61,13 +61,14 @@ import { ALFRESCO_ULPOAD_COMPONENTS, UploadService } from 'ng2-alfresco-upload';
|
|||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
<alfresco-upload-drag-area (onSuccess)="customMethod($event)" >
|
<alfresco-upload-drag-area (onSuccess)="customMethod($event)" class="upload-border">
|
||||||
<div style="width: 200px; height: 100px; border: 1px solid #888888">
|
<div class="drag-area">
|
||||||
DRAG HERE
|
DRAG HERE
|
||||||
</div>
|
</div>
|
||||||
</alfresco-upload-drag-area>
|
</alfresco-upload-drag-area>
|
||||||
<file-uploading-dialog></file-uploading-dialog>
|
<file-uploading-dialog></file-uploading-dialog>
|
||||||
`,
|
`,
|
||||||
|
styles: [`.upload-border { position: absolute; padding: 5px 5px }`, `.drag-area { width: 200px; height: 100px; border: 1px solid #888888;}`],
|
||||||
directives: [ALFRESCO_ULPOAD_COMPONENTS]
|
directives: [ALFRESCO_ULPOAD_COMPONENTS]
|
||||||
})
|
})
|
||||||
export class MyDemoApp implements OnInit {
|
export class MyDemoApp implements OnInit {
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-upload",
|
"name": "ng2-alfresco-upload",
|
||||||
"description": "Alfresco Angular2 Upload Component",
|
"description": "Alfresco Angular2 Upload Component",
|
||||||
"version": "0.1.46",
|
"version": "0.1.47",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
.upload-border {
|
.upload-border {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
color: #555;
|
color: #555;
|
||||||
padding: 20px;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-focus {
|
.input-focus {
|
||||||
color: #2196F3;
|
color: #2196F3;
|
||||||
|
margin-left: 3px;
|
||||||
border: 3px dashed #2196F3;
|
border: 3px dashed #2196F3;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user