I created a backend module. Everything works but I could not figure out how to include CSS. I tried to add below code to Packages/Site/Vendor.Site/Resources/Private/Layouts/Default.html. <link rel="stylesheet" href="{f:uri.resource(path: 'Styles/Backend.css', package: 'Vendor.Site)}" media ="all" />
But It the CSS file is not included. Any help please?
if i read the source-code right you can add the keys additionalResources.styleSheets and additionalResources.javaScripts to the Settings for your module.
Yes the neos default styles are quite agressive inside the neos-div. Usually this can be solved with a style that has a higher specifity in the css-selector.
When i tied to use css-modules(JS) inside a neos-backend-module the same topic hit me hard. In that case adding some specifity is not simle and i ended up putting my js code into a seperate iframe.