roverdotcom / django-inlinecss

A Django app useful for inlining CSS (primarily for e-mails)
Other
160 stars 94 forks source link

Do not support nth-child() #33

Open JosephDev opened 7 years ago

JosephDev commented 7 years ago

I face "No match was found. We're done or something is broken" error when I try to use nth-child()

bryan-brancotte commented 7 years ago

Hi, Similarly :nth-of-type(odd) does not work either and crashes with the same error Best regards

bryan-brancotte commented 7 years ago

Hi again, Found a quick fixe : wrap your css into a dummy @media : it forces to not render the css but to put it css in a <style></style>

@media (min-width: 1px) {
    .my-table>tbody>tr:nth-of-type(odd) {
        background-color: #f9f9f9;
    }
}