Browse Source

simplenews symfony template

bach 2 years ago
parent
commit
3fe3e5e052

+ 2 - 1
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: {

+ 2 - 0
web/themes/custom/materiotheme/assets/dist/email.css

@@ -0,0 +1,2 @@
+body{position:inherit}
+

+ 0 - 0
web/themes/custom/materiotheme/assets/dist/email.js


+ 3 - 0
web/themes/custom/materiotheme/assets/styles/email.scss

@@ -0,0 +1,3 @@
+body{
+  position: inherit;
+}

+ 4 - 1
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:

+ 0 - 0
web/themes/custom/materiotheme/templates/email--simplenews--newsletter.html.twig → web/themes/custom/materiotheme/templates/email--simplenews-newsletter-body.html.twig