Icon colors on navigations

This commit is contained in:
Sercan Yemen 2018-06-11 18:18:01 +03:00
parent a174c00072
commit 8520ca77be
7 changed files with 15 additions and 19 deletions

View File

@ -41,7 +41,7 @@
</a>
<ng-template #itemContent>
<mat-icon class="nav-link-icon secondary-text" *ngIf="item.icon">{{item.icon}}</mat-icon>
<mat-icon class="nav-link-icon" *ngIf="item.icon">{{item.icon}}</mat-icon>
<span class="nav-link-title" [translate]="item.translate">{{item.title}}</span>
<span class="nav-link-badge" *ngIf="item.badge" [translate]="item.badge.translate"
[ngStyle]="{'background-color': item.badge.bg,'color': item.badge.fg}">

View File

@ -35,7 +35,7 @@
</a>
<ng-template #itemContent>
<mat-icon class="nav-link-icon secondary-text" *ngIf="item.icon">{{item.icon}}</mat-icon>
<mat-icon class="nav-link-icon" *ngIf="item.icon">{{item.icon}}</mat-icon>
<span class="nav-link-title" [translate]="item.translate">{{item.title}}</span>
<span class="nav-link-badge" *ngIf="item.badge" [translate]="item.badge.translate"
[ngStyle]="{'background-color': item.badge.bg,'color': item.badge.fg}">

View File

@ -72,14 +72,9 @@
}
&.active {
//background-color: mat-color($accent);
.mat-ripple-element {
//background-color: mat-color($accent, default-contrast, 0.1);
}
&, .nav-link-icon {
//color: mat-color($accent, default-contrast);
.nav-link-icon {
opacity: 1;
}
.nav-link-badge {
@ -90,6 +85,7 @@
.nav-link-icon {
margin-right: 16px;
opacity: 0.7;
}
.nav-link-icon,

View File

@ -2,7 +2,7 @@
<div class="header p-24" fxLayout="column" fxLayoutAlign="space-between">
<div class="logo" fxLayout="row" fxLayoutAlign="start center">
<mat-icon class="logo-icon secondary-text mr-16">folder</mat-icon>
<mat-icon class="logo-icon secondary-text s-36 mr-16">folder</mat-icon>
<span class="logo-text h1">File Manager</span>
</div>
@ -16,35 +16,35 @@
<div class="nav-item" aria-label="inbox">
<a class="nav-link" matRipple>
<mat-icon class="nav-link-icon secondary-text">folder</mat-icon>
<mat-icon class="nav-link-icon">folder</mat-icon>
<span class="title">My Files</span>
</a>
</div>
<div class="nav-item" aria-label="starred">
<a class="nav-link" matRipple>
<mat-icon class="nav-link-icon secondary-text">star</mat-icon>
<mat-icon class="nav-link-icon">star</mat-icon>
<div class="title">Starred</div>
</a>
</div>
<div class="nav-item" aria-label="starred">
<a class="nav-link" matRipple>
<mat-icon class="nav-link-icon secondary-text">folder_shared</mat-icon>
<mat-icon class="nav-link-icon">folder_shared</mat-icon>
<div class="title">Sharred with me</div>
</a>
</div>
<div class="nav-item" aria-label="starred">
<a class="nav-link" matRipple>
<mat-icon class="nav-link-icon secondary-text">access_time</mat-icon>
<mat-icon class="nav-link-icon">access_time</mat-icon>
<div class="title">Recent</div>
</a>
</div>
<div class="nav-item" aria-label="starred">
<a class="nav-link" matRipple>
<mat-icon class="nav-link-icon secondary-text">not_interested</mat-icon>
<mat-icon class="nav-link-icon">not_interested</mat-icon>
<div class="title">Offline</div>
</a>
</div>

View File

@ -41,7 +41,7 @@
<div class="nav-item" *ngFor="let folder of (folders$ | async)">
<a class="nav-link" matRipple [routerLink]="'/apps/mail-ngrx/' + folder.handle"
[routerLinkActive]="['active', 'mat-accent-bg']">
<mat-icon class="nav-link-icon secondary-text" *ngIf="folder.icon">{{folder.icon}}</mat-icon>
<mat-icon class="nav-link-icon" *ngIf="folder.icon">{{folder.icon}}</mat-icon>
<span>{{folder.title}}</span>
</a>
</div>

View File

@ -42,7 +42,7 @@
<div class="nav-item" *ngFor="let folder of folders">
<a class="nav-link" matRipple [routerLink]="'/apps/mail/' + folder.handle"
[routerLinkActive]="['active', 'mat-accent-bg']">
<mat-icon class="nav-link-icon secondary-text" *ngIf="folder.icon">{{folder.icon}}</mat-icon>
<mat-icon class="nav-link-icon" *ngIf="folder.icon">{{folder.icon}}</mat-icon>
<span>{{folder.title}}</span>
</a>
</div>

View File

@ -40,7 +40,7 @@
<div class="nav-item">
<a class="nav-link" matRipple [routerLink]="'/apps/todo/all'"
[routerLinkActive]="['active', 'mat-accent-bg']">
<mat-icon class="nav-link-icon secondary-text">view_headline</mat-icon>
<mat-icon class="nav-link-icon">view_headline</mat-icon>
<span>All</span>
</a>
</div>
@ -50,7 +50,7 @@
<div class="nav-item" *ngFor="let filter of filters">
<a class="nav-link" matRipple [routerLink]="'/apps/todo/filter/' + filter.handle"
[routerLinkActive]="['active', 'mat-accent-bg']">
<mat-icon class="nav-link-icon secondary-text" *ngIf="filter.icon">{{filter.icon}}</mat-icon>
<mat-icon class="nav-link-icon" *ngIf="filter.icon">{{filter.icon}}</mat-icon>
<span>{{filter.title}}</span>
</a>
</div>