Skip to content

Commit

Permalink
Move suse specific login theme out of default login theme (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox authored Sep 28, 2020
1 parent 0705979 commit cf6f655
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@mixin login-page-theme($theme, $app-theme) {
$primary: map-get($theme, primary);
$warn: map-get($theme, warn);

.login {
background-color: map-get($app-theme, app-background-color);
Expand All @@ -12,9 +11,4 @@
}
}

.suse-login-sso {
.suse-login__message {
color: mat-color($warn);
}
}
}
2 changes: 2 additions & 0 deletions src/frontend/packages/suse-extensions/sass/_all-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@import '../src/custom/kubernetes/workloads/release/tabs/helm-release-summary-tab/helm-release-summary-tab.component.theme';
@import '../src/custom/kubernetes/list-types/kubernetes-nodes/kubernetes-node-link/kubernetes-node-link.component.theme';
@import '../src/custom/kubernetes/workloads/chart-values-editor/chart-values-editor.component.theme';
@import '../src/custom/suse-login/suse-login.component.theme';

@mixin apply-theme-suse-extensions($stratos-theme) {

Expand All @@ -20,4 +21,5 @@
@include helm-release-summary-tab-theme($theme, $app-theme);
@include kube-node-link-theme($theme, $app-theme);
@include app-chart-values-editor-theme($theme, $app-theme);
@include suse-login-page-theme($theme, $app-theme);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

@mixin suse-login-page-theme($theme, $app-theme) {
$warn: map-get($theme, warn);

.suse-login-sso {
.suse-login__message {
color: mat-color($warn);
}
}
}

0 comments on commit cf6f655

Please sign in to comment.