mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01: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="header-container"
|
||||||
[class.right]="position === 'normal'"
|
[class.right]="position === 'normal'"
|
||||||
[class.left]="position === 'inverse'">
|
[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-action>
|
||||||
<nb-user [menu]="userMenu" [name]="user?.name" [picture]="user?.picture"></nb-user>
|
<nb-user [menu]="userMenu" [name]="user?.name" [picture]="user?.picture"></nb-user>
|
||||||
</nb-action>
|
</nb-action>
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@ $nb-themes: nb-register-theme((
|
||||||
sidebar-header-gap: 2rem,
|
sidebar-header-gap: 2rem,
|
||||||
sidebar-header-height: initial,
|
sidebar-header-height: initial,
|
||||||
layout-content-width: 1400px,
|
layout-content-width: 1400px,
|
||||||
|
|
||||||
|
toggle-layout-color: color-success,
|
||||||
), default, default);
|
), default, default);
|
||||||
|
|
||||||
$nb-themes: nb-register-theme((
|
$nb-themes: nb-register-theme((
|
||||||
|
|
@ -18,6 +20,8 @@ $nb-themes: nb-register-theme((
|
||||||
sidebar-header-gap: 2rem,
|
sidebar-header-gap: 2rem,
|
||||||
sidebar-header-height: initial,
|
sidebar-header-height: initial,
|
||||||
layout-content-width: 1400px,
|
layout-content-width: 1400px,
|
||||||
|
|
||||||
|
toggle-layout-color: link-color-active,
|
||||||
), cosmic, cosmic);
|
), cosmic, cosmic);
|
||||||
|
|
||||||
$nb-themes: nb-register-theme((
|
$nb-themes: nb-register-theme((
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue