Skip to content

Commit

Permalink
Fix actions color
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-sinitsyn committed Mar 10, 2020
1 parent bff9d52 commit acd65e6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 24 deletions.
15 changes: 15 additions & 0 deletions src/app/@theme/styles/material/_angular-material.scss
Original file line number Diff line number Diff line change
@@ -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);
}
}
2 changes: 0 additions & 2 deletions src/app/@theme/styles/material/_material-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,6 @@ $theme: (
footer-text-color: text-basic-color,
footer-text-highlight-color: footer-text-color,
sidebar-background-color: background-basic-color-2,
actions-icon-color: text-basic-color,
actions-text-color: text-basic-color,

material-regular-font-weight: 400,
menu-text-font-weight: material-regular-font-weight,
Expand Down
2 changes: 0 additions & 2 deletions src/app/@theme/styles/material/_material-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,6 @@ $theme: (
footer-text-color: text-alternate-color,
footer-text-highlight-color: footer-text-color,
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-color: rgba(0, 0, 0, 0.87),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,16 @@
@import '~@angular/material/theming';

@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);
}

@mixin material-overrides() {
@include nb-for-themes(material-dark, material-light) {
@include mat-core();

nb-layout-header {
.logo-container nb-icon {
color: nb-theme(text-control-color);
nb-actions, .logo-container {
nb-icon, .user-name {
color: nb-theme(color-basic-100) !important;
}
}

.select-button {
background-color: nb-theme(background-basic-color-3) !important;
}
}


nb-sidebar {
transition: width 0.3s;
Expand Down
7 changes: 6 additions & 1 deletion src/app/@theme/styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
@import '~bootstrap/scss/mixins';
@import '~bootstrap/scss/grid';

@import './material/angular-material';

// loading progress bar theme
@import './pace.theme';

@import './layout';
@import './overrides';
@import './material/material';
@import './material/material-overrides';

// install the framework and custom global styles
@include nb-install() {
Expand All @@ -31,5 +33,8 @@
// loading progress bar
@include ngx-pace-theme();

@include angular-material();

@include nb-overrides();
@include material-overrides();
};

0 comments on commit acd65e6

Please sign in to comment.