mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
Fix actions color
This commit is contained in:
parent
4b251afc2b
commit
dd22c1bf5e
5 changed files with 27 additions and 24 deletions
15
src/app/@theme/styles/material/_angular-material.scss
Normal file
15
src/app/@theme/styles/material/_angular-material.scss
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
@import '~@angular/material/theming';
|
||||||
|
|
||||||
|
@mixin angular-material() {
|
||||||
|
@include mat-core();
|
||||||
|
|
||||||
|
@include nb-for-theme(material-dark) {
|
||||||
|
$custom-dark-theme: mat-dark-theme(mat-palette($mat-pink), mat-palette($mat-blue-grey));
|
||||||
|
@include angular-material-theme($custom-dark-theme);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include nb-for-theme(material-light) {
|
||||||
|
$custom-light-theme: mat-light-theme(mat-palette($mat-indigo), mat-palette($mat-pink));
|
||||||
|
@include angular-material-theme($custom-light-theme);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -375,8 +375,6 @@ $theme: (
|
||||||
footer-text-color: text-basic-color,
|
footer-text-color: text-basic-color,
|
||||||
footer-text-highlight-color: footer-text-color,
|
footer-text-highlight-color: footer-text-color,
|
||||||
sidebar-background-color: background-basic-color-2,
|
sidebar-background-color: background-basic-color-2,
|
||||||
actions-icon-color: text-basic-color,
|
|
||||||
actions-text-color: text-basic-color,
|
|
||||||
|
|
||||||
material-regular-font-weight: 400,
|
material-regular-font-weight: 400,
|
||||||
menu-text-font-weight: material-regular-font-weight,
|
menu-text-font-weight: material-regular-font-weight,
|
||||||
|
|
|
||||||
|
|
@ -375,8 +375,6 @@ $theme: (
|
||||||
footer-text-color: text-alternate-color,
|
footer-text-color: text-alternate-color,
|
||||||
footer-text-highlight-color: footer-text-color,
|
footer-text-highlight-color: footer-text-color,
|
||||||
sidebar-background-color: background-basic-color-2,
|
sidebar-background-color: background-basic-color-2,
|
||||||
actions-icon-color: text-alternate-color,
|
|
||||||
actions-text-color: text-alternate-color,
|
|
||||||
|
|
||||||
menu-text-font-weight: 400,
|
menu-text-font-weight: 400,
|
||||||
menu-text-color: rgba(0, 0, 0, 0.87),
|
menu-text-color: rgba(0, 0, 0, 0.87),
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,16 @@
|
||||||
@import '~@angular/material/theming';
|
@mixin material-overrides() {
|
||||||
|
|
||||||
@include nb-install() {
|
|
||||||
@include nb-for-theme(material-dark) {
|
|
||||||
$custom-dark-theme: mat-dark-theme(mat-palette($mat-pink), mat-palette($mat-blue-grey));
|
|
||||||
@include angular-material-theme($custom-dark-theme);
|
|
||||||
}
|
|
||||||
|
|
||||||
@include nb-for-theme(material-light) {
|
|
||||||
$custom-light-theme: mat-light-theme(mat-palette($mat-indigo), mat-palette($mat-pink));
|
|
||||||
@include angular-material-theme($custom-light-theme);
|
|
||||||
}
|
|
||||||
|
|
||||||
@include nb-for-themes(material-dark, material-light) {
|
@include nb-for-themes(material-dark, material-light) {
|
||||||
@include mat-core();
|
|
||||||
|
|
||||||
nb-layout-header {
|
nb-layout-header {
|
||||||
.logo-container nb-icon {
|
nb-actions, .logo-container {
|
||||||
color: nb-theme(text-control-color);
|
nb-icon, .user-name {
|
||||||
|
color: nb-theme(color-basic-100) !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.select-button {
|
.select-button {
|
||||||
background-color: nb-theme(background-basic-color-3) !important;
|
background-color: nb-theme(background-basic-color-3) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
nb-sidebar {
|
nb-sidebar {
|
||||||
transition: width 0.3s;
|
transition: width 0.3s;
|
||||||
|
|
@ -13,12 +13,14 @@
|
||||||
@import '~bootstrap/scss/mixins';
|
@import '~bootstrap/scss/mixins';
|
||||||
@import '~bootstrap/scss/grid';
|
@import '~bootstrap/scss/grid';
|
||||||
|
|
||||||
|
@import './material/angular-material';
|
||||||
|
|
||||||
// loading progress bar theme
|
// loading progress bar theme
|
||||||
@import './pace.theme';
|
@import './pace.theme';
|
||||||
|
|
||||||
@import './layout';
|
@import './layout';
|
||||||
@import './overrides';
|
@import './overrides';
|
||||||
@import './material/material';
|
@import './material/material-overrides';
|
||||||
|
|
||||||
// install the framework and custom global styles
|
// install the framework and custom global styles
|
||||||
@include nb-install() {
|
@include nb-install() {
|
||||||
|
|
@ -31,5 +33,8 @@
|
||||||
// loading progress bar
|
// loading progress bar
|
||||||
@include ngx-pace-theme();
|
@include ngx-pace-theme();
|
||||||
|
|
||||||
|
@include angular-material();
|
||||||
|
|
||||||
@include nb-overrides();
|
@include nb-overrides();
|
||||||
|
@include material-overrides();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue