-
-
Notifications
You must be signed in to change notification settings - Fork 212
Add external stylesheets position to tl_layout
#6937
Add external stylesheets position to tl_layout
#6937
Conversation
Wouldn't it make sense to always load the external style sheets before the internal ones? The current hierarchy seems wrong to me:
IMHO, the last two should be permanently switched. |
I think both orders make sense, depends on the use case. The best solution would be to sort external and internal stylesheets combined. |
I can think of two use cases: a) Only external style sheets In case a), you can sort the style sheets already -> everything is fine. In case b), you are most likely using a theme, which stores CSS files in the files directory. To adjust the theme, you want to use the internal editor, however, the internal style sheets are add after the default theme files instead of before. Can you think of any other use case? |
It could also be that the theme uses internal stylesheets and you want to customize that theme with an external stylesheet. |
Yeah, but that's an edge case IMHO. Normally people are using the internal editor to customize themes, because it is easier to use for end clients. I'm only trying to keep the number of form fields as small as it can be. There are already a lot of fields in |
To me the other way round it's an edge case. I think in an enterprise CMS end clients are mostly developers and developers mostly work with CSS files in /files/css/. In my case sometimes there are situations where some Contao internal CSS files exists which I don't like to touch and want to overwrite with my CSS (themes, Contao framework CSS). Mostly I have no internal files. Also imagine the situation your customer asks you to modify/corrrect his stylesheet, which I have very often. Then it's easy for me to add my custom external file to adjust his CSS. I prefere that externals overwrite internals. |
What about handling external and internal style sheets the same way, both in |
@ausi |
We have already tried to implement it this way and for some reason (which I don't remember) we have decided against it. |
This could be very useful, e.g. if you load a large external stylesheet and want to overwrite small parts of it with the internal stylesheet editor.