mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-22 05:50:48 +02:00
feat(header): add toggle sidebar icon
This commit is contained in:
parent
6660118ba3
commit
6b1ee20516
3 changed files with 15 additions and 1 deletions
|
@ -41,5 +41,15 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.toggle-layout /deep/ a {
|
||||
text-decoration: none;
|
||||
line-height: 1;
|
||||
|
||||
i {
|
||||
color: nb-theme(toggle-layout-color);
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import { UserService } from '../../../@core/data/users.service';
|
|||
class="header-container"
|
||||
[class.right]="position === 'normal'"
|
||||
[class.left]="position === 'inverse'">
|
||||
<nb-action icon="ion-ios-gear-outline" (click)="toggleSettings()"></nb-action>
|
||||
<nb-action icon="nb-grid-b" class="toggle-layout" (click)="toggleSettings()"></nb-action>
|
||||
<nb-action>
|
||||
<nb-user [menu]="userMenu" [name]="user?.name" [picture]="user?.picture"></nb-user>
|
||||
</nb-action>
|
||||
|
|
|
@ -11,6 +11,8 @@ $nb-themes: nb-register-theme((
|
|||
sidebar-header-gap: 2rem,
|
||||
sidebar-header-height: initial,
|
||||
layout-content-width: 1400px,
|
||||
|
||||
toggle-layout-color: color-success,
|
||||
), default, default);
|
||||
|
||||
$nb-themes: nb-register-theme((
|
||||
|
@ -18,6 +20,8 @@ $nb-themes: nb-register-theme((
|
|||
sidebar-header-gap: 2rem,
|
||||
sidebar-header-height: initial,
|
||||
layout-content-width: 1400px,
|
||||
|
||||
toggle-layout-color: link-color-active,
|
||||
), cosmic, cosmic);
|
||||
|
||||
$nb-themes: nb-register-theme((
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue