roverdotcom/django-inlinecss

Do not support nth-child()

Opened this issue · 2 comments

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

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

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;
    }
}