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

Inlined CSS and responsiveness #17

Open
franklin-at-binarytree opened this issue May 24, 2013 · 3 comments
Open

Inlined CSS and responsiveness #17

franklin-at-binarytree opened this issue May 24, 2013 · 3 comments

Comments

@franklin-at-binarytree
Copy link

Howdy,

Is it me, or none of the responsive templates (bar base_boxed_basic_query.html) stay responsive upon being fed in Beaker?

Thanks

@fcarneiro
Copy link
Contributor

Make sure you're not inlining the media query CSS. It should remain in the of the email. Thanks for bringing this up - I'll make a note of it in the README.

@franklin-at-binarytree
Copy link
Author

Thanks!

Just a follow up question then: won't email clients start to behave erratically if we break the "Inline your CSS or expect to be very sorry" rule?

@fcarneiro
Copy link
Contributor

Media queries are an exception to that rule; most email clients don't support them, so that CSS is ignored. On mobile devices, where media queries are (mostly) supported, those styles get rendered when the query is triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants