Improve icon on table (heart+stars)
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
/* Vertical align for all tables */
|
||||
.table > tbody > tr > td {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* Rating star */
|
||||
.star {
|
||||
color:rgb(38, 135, 251);
|
||||
}
|
||||
|
||||
.table tbody > tr > td.star {
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -16,3 +21,10 @@
|
||||
50% { transform: scale(1.3); }
|
||||
100% { transform: scale(1); }
|
||||
}
|
||||
|
||||
/* A class to just have an icon on the right of the table for heart */
|
||||
.table tbody > tr > td.loved {
|
||||
border: 0px;
|
||||
background-color: white;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
<span *ngIf="song.Rating >= 80" class="glyphicon glyphicon-star-empty"></span>
|
||||
<span *ngIf="song.Rating >= 100" class="glyphicon glyphicon-star-empty"></span>
|
||||
</td>
|
||||
<td *ngIf="song.Loved"><span class="glyphicon glyphicon-heart heart"></span></td>
|
||||
<td *ngIf="song.Loved" class="loved" ><span class="glyphicon glyphicon-heart heart"></span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user