Skip to content

Media queries should be left intact #14

Description

@marcohamersma

Even though not all mail clients support it, it would be great if media queries would remain intact in the email (for emails that scale better to mobile, for instance). At the moment it just takes the styles and applies them to the elements involved.

...
<style>
  table .body {
    width: 600px;
  }

  @media only screen and (max-device-width: 480px) {
    table.body { width: 300px; }
  }

</style>

<body>
  <table class="body">

should be converted to:

... 
<style>
  @media only screen and (max-device-width: 480px) {
    table.body { width: 300px; }
  }

</style>

<body>
  <table class="body" style="width: 600px">

etc…

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions