Skip to content

Commit

Permalink
Overwrite background color of login box
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasnatter committed Oct 21, 2020
1 parent 5abdbf9 commit 8b8d1a7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/admin/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* reuse the postcss configuration included in sulu */
module.exports = require('../../vendor/sulu/sulu/postcss.config.js');
7 changes: 7 additions & 0 deletions assets/admin/style-overwrites/login.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* import original stylesheet to keep original styling */
@import 'sulu-admin-bundle/containers/Login/login.scss';

/* overwrite style for specific elements */
.login-container {
background-color: lightpink;
}
6 changes: 6 additions & 0 deletions assets/admin/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@ module.exports = (env, argv) => {
const config = webpackConfig(env, argv);
config.entry = path.resolve(__dirname, 'index.js');

const suluPath = path.resolve(__dirname, '../../vendor/sulu/sulu/');
const loginScssPath = path.resolve(suluPath, 'src/Sulu/Bundle/AdminBundle/Resources/js/containers/Login/login.scss');

/* overwrite stylesheet of sulu login component with custom stylesheet of project */
config.resolve.alias[loginScssPath] = path.resolve(__dirname, 'style-overwrites/login.scss');

return config;
};

0 comments on commit 8b8d1a7

Please sign in to comment.