diff --git a/build/webpack.config.base.js b/build/webpack.config.base.js index 6d7d69cd..1fec8d75 100644 --- a/build/webpack.config.base.js +++ b/build/webpack.config.base.js @@ -32,7 +32,8 @@ module.exports = { entry: { 'main': utils.resolve(themePath + '/assets/scripts/main.js'), // 'lang-en': utils.resolve(langPath + '/en.json'), - 'print': utils.resolve(themePath + '/assets/styles/print.scss') + 'print': utils.resolve(themePath + '/assets/styles/print.scss'), + 'email': utils.resolve(themePath + '/assets/styles/email.scss'), // 'mdi': utils.resolve(themePath + '/assets/styles/mdi/scss/materialdesignicons.scss') }, output: { diff --git a/web/themes/custom/materiotheme/assets/dist/email.css b/web/themes/custom/materiotheme/assets/dist/email.css new file mode 100644 index 00000000..55ab3030 --- /dev/null +++ b/web/themes/custom/materiotheme/assets/dist/email.css @@ -0,0 +1,2 @@ +body{position:inherit} + diff --git a/web/themes/custom/materiotheme/assets/dist/email.js b/web/themes/custom/materiotheme/assets/dist/email.js new file mode 100644 index 00000000..e69de29b diff --git a/web/themes/custom/materiotheme/assets/styles/email.scss b/web/themes/custom/materiotheme/assets/styles/email.scss new file mode 100644 index 00000000..fcb2f063 --- /dev/null +++ b/web/themes/custom/materiotheme/assets/styles/email.scss @@ -0,0 +1,3 @@ +body{ + position: inherit; +} \ No newline at end of file diff --git a/web/themes/custom/materiotheme/materiotheme.libraries.yml b/web/themes/custom/materiotheme/materiotheme.libraries.yml index 3f306c55..e4f1eb2f 100644 --- a/web/themes/custom/materiotheme/materiotheme.libraries.yml +++ b/web/themes/custom/materiotheme/materiotheme.libraries.yml @@ -5,7 +5,10 @@ global-css: # assets/fonts/ubuntu/ubuntu.css: {} # assets/styles/mdi/css/materialdesignicons.min.css: {} assets/dist/main.css: {} - +email: + css: + theme: + assets/dist/email.css: {} global-js: version: VERSION js: diff --git a/web/themes/custom/materiotheme/templates/email--simplenews--newsletter.html.twig b/web/themes/custom/materiotheme/templates/email--simplenews-newsletter-body.html.twig similarity index 100% rename from web/themes/custom/materiotheme/templates/email--simplenews--newsletter.html.twig rename to web/themes/custom/materiotheme/templates/email--simplenews-newsletter-body.html.twig