Formatting improvements

This commit is contained in:
2019-11-07 13:48:03 -05:00
parent 4d64980323
commit f0c4810810
3 changed files with 11 additions and 2 deletions
+2
View File
@@ -1,3 +1,5 @@
<button class="btn btn-light" (click)="change()" >
<span [ngClass]="{'extraLarge' : isExtraLarge() } ">
<span *ngIf="isPositive()">+</span> {{amount}}
</span>
</button>
+3 -1
View File
@@ -3,4 +3,6 @@
margin: 4%
font-family: Garamond
font-weight: bold
font-size: 1.5em
font-size: 1.3em
.extraLarge
font-size: 1.7em
+5
View File
@@ -18,4 +18,9 @@ export class PointsComponent {
isPositive() {
return this.amount > 0;
}
isExtraLarge() {
return this.amount == 10;
}
}