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
CSS files of the content elements accordion, content slider and code are loaded after the external stylesheets #7124
Comments
That is because in Contao 4.13, the dynamic style sheets in |
The problem is IMHO, that things inside @mdollde No matter the fix, here is a workaround you could use: Overwrite the |
Most straightforward would probably to use some |
Why can we not simply use |
Sure, we can also add more targets. The idea was to keep it super simple at first, because the |
There is a simple fix that does not require to add more targets: #7151 |
Affected version(s)
5
Description
If you use one of the content elements Accordion, Content Slider and Code the CSS files of the CE are loaded after the external stylesheets in the head of the fe_page.
Files of the legacy elements and files of the CSS framework are loaded before the external stylesheets. This should also be the case with the new content elements, so you can overwrite them by using the cascade without need of an !important declaration.
For example, this is what it looks like in the source code of the official demo, if you add the new handorgel accordion:
The handorgel.css is the last line, but should come before the files_contaodemo_theme_src_scss_app.scss.css
Greetings
Mathias
The text was updated successfully, but these errors were encountered: