Skip to content

Commit d885361

Browse files
author
NisanurBulut
committed
refreshed css
1 parent c951694 commit d885361

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<h3 *ngIf="profiles.length>0">Saved Profile</h3>
2-
<article #profile class="profile" *ngFor="let profile of profiles" (click)="onLoadProfile(profile)">
2+
<article #profile class="profile"
3+
*ngFor="let profile of profiles" (click)="onLoadProfile(profile)">
4+
<div class="profile-content">
35
<h4>{{profile.bookItem.title}}</h4>
46
<img src="{{profile.bookItem.imageLink}}"/>
57
<span (click)="onDeleteProfile($event, profile)" class="delete"></span>
8+
</div>
9+
610
</article>

Orhun/src/app/profile/profile.component.scss

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,27 @@
44
padding: 0;
55
font-size: 18px;
66
}
7-
8-
button {
9-
font-size: 14px;
10-
font-family: inherit;
11-
background-color: #3498db;
12-
box-shadow: 1px 1px 1px #95a5a6;
13-
border: none;
14-
padding: 4px 8px;
15-
cursor: pointer;
16-
color: white;
17-
}
18-
19-
7+
.profile-content{
8+
margin:0 20px 5px 10px;
9+
padding-right: 5px;
10+
}
2011
img {
12+
2113
width: 50px;
2214
height: 50px;
2315
}
2416
.profile {
2517
position: relative;
2618
width: 100%;
2719
background-color: #8cb4ce;
28-
margin:0 0 10px 0;
2920
cursor: pointer;
3021
border-radius: 5px;
3122

3223
h4 {
33-
margin: 0;
34-
padding: 5px 0 5px;
24+
margin-top: 5px;
25+
margin-left: 5px;
26+
margin-right: 5px;
27+
padding-top: 5px;
3528
font-style: italic;
3629
}
3730

0 commit comments

Comments
 (0)