More styling

This commit is contained in:
Zakary Timson 2018-11-06 19:40:42 -05:00
parent 5875f170a8
commit ecc26e96cb
4 changed files with 44 additions and 45 deletions

View File

@ -43,9 +43,9 @@
</mat-card-header>
<mat-card-content>
<p class="ml-3 lead text-white-50">Tired of using your browser? Download the standalone version of the Formula Manager.</p>
<button mat-raised-button class="button-fix ml-3"><i class="fab fa-windows mr-1 mb-1"></i> Windows</button>
<button mat-raised-button class="button-fix ml-2"><i class="fab fa-apple mr-1 mb-1"></i> MacOS</button>
<button mat-raised-button class="button-fix ml-2"><i class="fab fa-linux mr-1 mb-1"></i> Linux</button>
<button mat-button class="button-fix"><i class="fab fa-windows mr-1 mb-1"></i> Windows</button>
<button mat-button class="button-fix ml-2"><i class="fab fa-apple mr-1 mb-1"></i> MacOS</button>
<button mat-button class="button-fix ml-2"><i class="fab fa-linux mr-1 mb-1"></i> Linux</button>
</mat-card-content>
</mat-card>
<mat-card *ngIf="formula" class="my-4 mx-auto" style="max-width: 600px">
@ -101,15 +101,10 @@
</mat-card-content>
<mat-card-actions *ngIf="store.user" style="overflow: hidden">
<mat-divider></mat-divider>
<button *ngIf="!formula.approved" mat-raised-button class="m-1 mt-3" (click)="approve(formula)">
<mat-icon>check</mat-icon> Approve
</button>
<button *ngIf="!formula.approved" mat-button class="m-1 mt-3" (click)="approve(formula)">Approve</button>
<div class="float-right m-1 mt-3">
<button mat-raised-button (click)="edit(formula)">
<mat-icon>edit</mat-icon> Edit</button>
<button mat-raised-button class="ml-2" color="warn" (click)="delete(formula)">
<mat-icon>delete</mat-icon> Delete
</button>
<button mat-button (click)="edit(formula)">Edit</button>
<button mat-button class="ml-2" color="warn" (click)="delete(formula)">Delete</button>
</div>
</mat-card-actions>
</mat-card>

View File

@ -15,8 +15,9 @@
</mat-form-field>
</form>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-raised-button type="submit" form="createForm" color="primary" (click)="submit()">
<mat-divider></mat-divider>
<mat-dialog-actions class="justify-content-end">
<button mat-button type="submit" form="createForm" (click)="submit()" [disabled]="!name || !cost">
<span *ngIf="data">Update</span>
<span *ngIf="!data">Create</span>
</button>

View File

@ -20,7 +20,7 @@
</mat-select>
</mat-form-field>
<mat-form-field style="width: 75px">
<input matInput type="number" placeholder="Amount" [(ngModel)]="amount">
<input matInput type="number" placeholder="Amount" min="1" [(ngModel)]="amount">
</mat-form-field>
<mat-form-field style="width: 40px">
<mat-select placeholder="Unit" [(ngModel)]="unit">
@ -58,9 +58,7 @@
</mat-dialog-content>
<mat-divider></mat-divider>
<mat-dialog-actions class="justify-content-end">
<button mat-raised-button type="submit" form="createForm" (click)="submit()" [disabled]="components.length < 1 || !name">
<mat-icon *ngIf="data" class="mr-1">edit</mat-icon>
<mat-icon *ngIf="!data" class="mr-1">add</mat-icon>
<button mat-button type="submit" form="createForm" (click)="submit()" [disabled]="components.length < 1 || !name">
<span *ngIf="data">Update</span>
<span *ngIf="!data">Create</span>
</button>

View File

@ -1,5 +1,9 @@
<div class="bg-white text-right p-2" style="overflow: auto">
<button mat-raised-button class="float-right mb-3" (click)="createComponent()">
<mat-icon>add</mat-icon> Create</button>
<mat-icon>add</mat-icon> Create
</button>
</div>
<div class="px-2">
<table class="table">
<thead>
<tr>
@ -30,3 +34,4 @@
</tr>
</tbody>
</table>
</div>