You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
3.7 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. =============================================
  5. Responsive Layout Snippets for Writing Emails
  6. =============================================
  7. This module extends the functionality of the website mail designer to support a
  8. responsive layout and allow you to read those mails comfortably in a mobile
  9. mail client.
  10. Well... actually this is not really responsive. It is pseudo-responsive.
  11. Responsiveness in current mail clients is years behind browsers', so these
  12. templates are very verbose to ensure compatibility in most scenarios. Ideas are
  13. taken from https://css-tricks.com/ideas-behind-responsive-emails/.
  14. Installation
  15. ============
  16. This module is prepared to be compatible with module ``website_mail_bg_color``.
  17. If you install it, you will be able to change snippets' background colors, but
  18. it is not required.
  19. Usage
  20. =====
  21. To use this module, you need to:
  22. #. Install any module that makes use of the website mail designer, such as
  23. ``mass_mailing``.
  24. #. Edit an email with the website mail designer.
  25. #. You have a new collection of snippets under *Email Design* section. Use them
  26. as usual.
  27. If you choose the *Horizontal Separator* snippet, you will be able to set its
  28. height too. For that, you will have to aim carefully to click inside the green
  29. line, and then use the option that will float above it.
  30. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  31. :alt: Try me on Runbot
  32. :target: https://runbot.odoo-community.org/runbot/205/8.0
  33. Known issues / Roadmap
  34. ======================
  35. * Snippet is ugly, but that's because mail client HTML engines usually lack
  36. many of the modern CSS and HTML features. I hope we will be able to improve
  37. this as mail clients keep improving.
  38. * To set the *Horizontal Separator* height, you have to click inside it, which
  39. will insert a ``<br type="_moz"/>`` in Firefox, that will make it seem like
  40. its height is at least like a caret, even if you set a lower value. Do not
  41. worry, it goes away when you press *Save*.
  42. * Some elements do not render with the proper width in MS Outlook. This should
  43. be added inside each snippet to make them work::
  44. <!--[if gte mso]>
  45. <style type="text/css">
  46. .fluid { width: 600px !important; }
  47. </style>
  48. <![endif]-->
  49. But right now the view parser eats comments, and if you avoid that then
  50. CKEditor will eat them, so there's not an easy solution for now.
  51. Bug Tracker
  52. ===========
  53. Bugs are tracked on `GitHub Issues
  54. <https://github.com/OCA/social/issues>`_. In case of trouble, please
  55. check there if your issue has already been reported. If you spotted it first,
  56. help us smashing it by providing a detailed and welcomed `feedback
  57. <https://github.com/OCA/
  58. social/issues/new?body=module:%20
  59. website_mail_snippet_responsive%0Aversion:%20
  60. 8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  61. Credits
  62. =======
  63. Images
  64. ------
  65. * Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
  66. Contributors
  67. ------------
  68. * Daniel Gómez-Zurita <danielgz@antiun.com>
  69. * Rafael Blasco <rafabn@antiun.com>
  70. * Jairo Llopis <yajo.sk8@gmail.com>
  71. Maintainer
  72. ----------
  73. .. image:: https://odoo-community.org/logo.png
  74. :alt: Odoo Community Association
  75. :target: https://odoo-community.org
  76. This module is maintained by the OCA.
  77. OCA, or the Odoo Community Association, is a nonprofit organization whose
  78. mission is to support the collaborative development of Odoo features and
  79. promote its widespread use.
  80. To contribute to this module, please visit https://odoo-community.org.