Skip to content

Commit 4d51487

Browse files
committed
styling issue fixed
1 parent 8b50af5 commit 4d51487

File tree

2 files changed

+70
-70
lines changed

2 files changed

+70
-70
lines changed
Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
11
.constraints-info {
2-
margin-top: 10px;
3-
font-style: italic;
4-
}
5-
.padMarg {
6-
padding: 0px;
7-
margin-bottom: 0px;
8-
}
9-
.caption {
10-
margin-right: 5px;
11-
}
12-
.textOverflow {
13-
white-space: nowrap;
14-
padding-right: 0;
15-
overflow: hidden;
16-
text-overflow: ellipsis;
17-
}
18-
.up_btn {
19-
color: black;
20-
background-color: transparent;
21-
border: 2px solid rgb(92, 91, 91);
22-
border-radius: 22px;
23-
}
24-
.delFileIcon {
25-
text-decoration: none;
26-
color: #ce0909;
27-
}
28-
/*--------------------- DRAG N DROP ----------------------*/
29-
.dragNDrop .div1 {
30-
display: border-box;
31-
border: 2px dashed rgb(92, 91, 91);
32-
height: 6rem;
33-
width: 20rem;
34-
}
35-
.dragNDrop .div1 > p {
36-
text-align: center;
37-
font-weight: bold;
38-
color: rgb(92, 91, 91);
39-
margin-top: 1.4em;
40-
}
2+
margin-top: 10px;
3+
font-style: italic;
4+
}
5+
.padMarg {
6+
padding: 0px;
7+
margin-bottom: 0px;
8+
}
9+
.caption {
10+
margin-right: 5px;
11+
}
12+
.textOverflow {
13+
white-space: nowrap;
14+
padding-right: 0;
15+
overflow: hidden;
16+
text-overflow: ellipsis;
17+
}
18+
.up_btn {
19+
color: black;
20+
background-color: transparent;
21+
border: 2px solid rgb(92, 91, 91);
22+
border-radius: 22px;
23+
}
24+
.delFileIcon {
25+
text-decoration: none;
26+
color: #ce0909;
27+
}
28+
/*--------------------- DRAG N DROP ----------------------*/
29+
.dragNDrop .div1 {
30+
display: border-box;
31+
border: 2px dashed rgb(92, 91, 91);
32+
height: 6rem;
33+
width: 20rem;
34+
}
35+
.dragNDrop .div1 > p {
36+
text-align: center;
37+
font-weight: bold;
38+
color: rgb(92, 91, 91);
39+
margin-top: 1.4em;
40+
}
4141

42-
.dragNDropBtmPad {
43-
padding-bottom: 2rem;
44-
}
45-
.afu-upload-status {
46-
padding: 0;
47-
margin: 0;
48-
}
49-
/*--------------------- X-X-X-X ----------------------*/
50-
@media screen and (max-width: 620px) {
51-
.caption {
52-
padding: 0;
53-
}
54-
}
55-
@media screen and (max-width: 510px) {
56-
.sizeC {
57-
width: 25%;
58-
}
59-
}
60-
@media screen and (max-width: 260px) {
61-
.sizeC {
62-
font-size: 10px;
63-
}
64-
.caption {
65-
font-size: 10px;
66-
}
42+
.dragNDropBtmPad {
43+
padding-bottom: 2rem;
44+
}
45+
/* .afu-upload-status {
46+
padding: 0;
47+
margin: 0;
48+
} */
49+
/*--------------------- X-X-X-X ----------------------*/
50+
@media screen and (max-width: 620px) {
51+
.caption {
52+
padding: 0;
6753
}
68-
.resetBtn {
69-
margin-left: 3px;
70-
}
54+
}
55+
@media screen and (max-width: 510px) {
56+
.sizeC {
57+
width: 25%;
58+
}
59+
}
60+
@media screen and (max-width: 260px) {
61+
.sizeC {
62+
font-size: 10px;
63+
}
64+
.caption {
65+
font-size: 10px;
66+
}
67+
}
68+
.resetBtn {
69+
margin-left: 3px;
70+
}

projects/angular-file-uploader/src/lib/angular-file-uploader.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<br *ngIf="!hideSelectBtn">
1919
<p class="constraints-info afu-constraints-info">({{formatsAllowed}}) Size limit- {{(convertSize(maxSize *1024000))}}</p>
2020
<!--Selected file list-->
21-
<div class="row" *ngFor="let sf of selectedFiles;let i=index" class="afu-valid-file">
21+
<div class="row afu-valid-file" *ngFor="let sf of selectedFiles;let i=index" >
2222
<p class="col-xs-3 textOverflow"><span class="text-primary">{{sf.name}}</span></p>
2323
<p class="col-xs-3 padMarg sizeC"><strong>({{convertSize(sf.size)}})</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
2424
<!-- <input class="col-xs-3 progress caption" type="text" placeholder="Caption.." [(ngModel)]="Caption[i]" *ngIf="uploadClick"/> -->
@@ -28,14 +28,14 @@
2828
<a class="col-xs-1" role="button" (click)="removeFile(i,'sf')" *ngIf="uploadClick"><i class="fa fa-times"></i></a>
2929
</div>
3030
<!--Invalid file list-->
31-
<div class="row text-danger" *ngFor="let na of notAllowedList;let j=index" class="afu-invalid-file">
31+
<div class="row text-danger afu-invalid-file" *ngFor="let na of notAllowedList;let j=index">
3232
<p class="col-xs-3 textOverflow"><span>{{na['fileName']}}</span></p>
3333
<p class="col-xs-3 padMarg sizeC"><strong>({{na['fileSize']}})</strong></p>
3434
<p class="col-xs-3 ">{{na['errorMsg']}}</p>
3535
<a class="col-xs-1 delFileIcon" role="button" (click)="removeFile(j,'na')" *ngIf="uploadClick">&nbsp;<i class="fa fa-times"></i></a>
3636
</div>
3737

38-
<div class="afu-upload-status"><p *ngIf="uploadMsg" class="{{uploadMsgClass}}">{{uploadMsgText}}<p></div>
38+
<p *ngIf="uploadMsg" class="{{uploadMsgClass}} + afu-upload-status">{{uploadMsgText}}<p>
3939
<div *ngIf="!singleFile && progressBarShow && !hideProgressBar">
4040
<div class="progress col-xs-4 padMarg afu-progress-bar">
4141
<span class="progress-bar progress-bar-success" role="progressbar" [ngStyle]="{'width':percentComplete+'%'}">{{percentComplete}}%</span>

0 commit comments

Comments
 (0)