Fix toolbar styling

This commit is contained in:
William Brawner 2020-08-17 02:32:25 +00:00
parent 89a7db94e4
commit 6c15da8b35
4 changed files with 19 additions and 21 deletions

View file

@ -0,0 +1,11 @@
mat-toolbar {
background-color: #303030;
box-shadow: none;
padding-left: 0.5em;
padding-right: 0.5em;
position: sticky;
top: 0;
z-index: 999999;
}

View file

@ -14,10 +14,10 @@
<mat-sidenav-content>
<mat-toolbar>
<span>
<a mat-button [hidden]="!backEnabled" (click)="goBack()">
<a mat-icon-button *ngIf="backEnabled" (click)="goBack()">
<mat-icon>arrow_back</mat-icon>
</a>
<a mat-button [hidden]="backEnabled" (click)="sidenav.open()">
<a mat-icon-button *ngIf="!backEnabled" (click)="sidenav.open()">
<mat-icon>menu</mat-icon>
</a>
</span>

View file

@ -47,6 +47,4 @@ export class BudgetsComponent implements OnInit {
}
)
}
}

View file

@ -13,10 +13,6 @@ p {
margin: 0;
}
a.mat-button[hidden] {
display: none;
}
a.mat-fab {
position: fixed;
right: 2em;
@ -28,37 +24,30 @@ a.mat-fab {
color: #BDBDBD
}
mat-toolbar {
box-shadow: 0px 3px 3px 1px #212121;
position: sticky;
top: 0;
z-index: 999999;
}
mat-toolbar.mat-toolbar-row,
mat-toolbar.mat-toolbar-single-row {
padding: 0;
}
mat-toolbar span {
mat-toolbar > span {
display: flex;
width: 33%;
;
}
mat-toolbar span:nth-child(1) {
mat-toolbar > span:nth-child(1) {
justify-content: flex-start;
}
mat-toolbar span:nth-child(2) {
mat-toolbar > span:nth-child(2) {
justify-content: center;
}
mat-toolbar span:nth-child(3) {
mat-toolbar > span:nth-child(3) {
justify-content: flex-end;
}
mat-toolbar a.mat-button {
/* mat-toolbar a.mat-button {
font-size: 1em;
}
@ -69,7 +58,7 @@ mat-toolbar a.mat-button .mat-icon {
mat-toolbar mat-icon {
vertical-align: middle;
cursor: pointer;
}
} */
mat-toolbar .action-item {
font-weight: normal;