Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

responsive behavior lost #108

Open
stephangrass opened this issue Oct 27, 2021 · 5 comments
Open

responsive behavior lost #108

stephangrass opened this issue Oct 27, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@stephangrass
Copy link

The feature "Load CSS files now inline in HTML-tags" leads to the fact that not the complete Zurb CSS is loaded anymore. So the responsive behavior has been lost. No media queries included in the newsletter-mail.

@einpraegsam
Copy link
Collaborator

Hi,

hmm, that is possible. Can you name the parts the break functionality?

Alex

@einpraegsam einpraegsam added the bug Something isn't working label Nov 9, 2021
@stephangrass
Copy link
Author

This affects the entire media query part. Especially the definitions with the table / cell widths.

@media only screen and (max-width: 596px) {
    table.body img {
        width: auto;
        height: auto; }
    table.body center {
        min-width: 0 !important; }
    table.body .container {
        width: 95% !important; }
    table.body .columns,
    table.body .column {
        height: auto !important;
        -moz-box-sizing: border-box;
...

    td.small-1,
    th.small-1 {
        display: inline-block !important;
        width: 8.33333% !important; }
    td.small-2,
    th.small-2 {
        display: inline-block !important;
        width: 16.66667% !important; }
    td.small-3,
    th.small-3 {
        display: inline-block !important;
        width: 25% !important; }

...

}

Media queries don't work as inline CSS ...

@einpraegsam
Copy link
Collaborator

Hmm, I think it is not possible to use inline css (for webmailer) and to use media queries at the moment. For you: You could remove the css from inline integration and do a classic integration again? But you will lose css for webmailers.

@stephangrass
Copy link
Author

I did both. Inline CSS and the media queries, which I put into the body as a style block. That should make many email clients happy.

@einpraegsam
Copy link
Collaborator

If you have a good solution, PR are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants