From 3fe3e5e0521a53139680375f11e50d5d4896e723 Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 5 May 2022 23:34:06 +0200 Subject: [PATCH] simplenews symfony template --- build/webpack.config.base.js | 3 ++- web/themes/custom/materiotheme/assets/dist/email.css | 2 ++ web/themes/custom/materiotheme/assets/dist/email.js | 0 web/themes/custom/materiotheme/assets/styles/email.scss | 3 +++ web/themes/custom/materiotheme/materiotheme.libraries.yml | 5 ++++- ...html.twig => email--simplenews-newsletter-body.html.twig} | 0 6 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 web/themes/custom/materiotheme/assets/dist/email.css create mode 100644 web/themes/custom/materiotheme/assets/dist/email.js create mode 100644 web/themes/custom/materiotheme/assets/styles/email.scss rename web/themes/custom/materiotheme/templates/{email--simplenews--newsletter.html.twig => email--simplenews-newsletter-body.html.twig} (100%) 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