Invalid CSS in new front end stylesheets – styles not applied
-
The new design options have broken CSS in the front-end stylesheets so the styles don’t get applied. Looking at the inspector, I see the /css/frontend/variation_1.css file has non-valid CSS that is causing the issues. There are many nested styles as if it were Sass not CSS.
For example, right at the beginning we have this:
.pmpro {
color: var(--pmpro--color--contrast);
/**
* Sections
*/
.pmpro_section {
margin: calc( var(--pmpro--base--spacing--large) * 2 ) 0;
}Which the browser sees as missing the } on the third line and everything else after that is ignored.
For now I’ve made my own corrected copy (there are multiple instances of this nesting that breaks the display) and all looks normal. Hoping you will fix this in the next update. In the meantime I will have to turn off auto updates.
I didn’t include a link to the site in question because my temporary fix has resolved it.
Thanks in advance.
- The topic ‘Invalid CSS in new front end stylesheets – styles not applied’ is closed to new replies.