Feature No Code Attached Yet
avatar brianteeman
brianteeman
5 May 2023

Is your feature request related to a problem? Please describe.

If you create a user.css (and presumably a user.js) in your main template eg cassiopeia then it is used
If you create a child template eg child_cassiopeia then the parent user.css is used
If you create a user.css in your child template then only that child user.css is used

This means that you have to copy everything in the parent user.css to the child user.css

Describe the solution you'd like

a child template should load the parent user.css AND then any child user.css
REMEMBER you may have multiple child templates being used on a site

Additional context - Use Case

add a user.css to cassiopeia to change the size of the h1 tp 50px
add a child green_cassiopeia to change all the color of the h1 to green
add a child red_cassiopeoa to change all the color of the h1 to red

My expected/desired behaviour

Menu item with default cassiopeia tempalte h1=50px
Menu item with green_cassiopeia H1=50px and GREEN
Menu item with red_cassiopeia H1=50px and RED

Currently the only way to achieve that is to copy everything in the main user.css to both the children user.css

This really limits the power of child templates - unless I have missed an undocumented feature

avatar brianteeman brianteeman - open - 5 May 2023
avatar joomla-cms-bot joomla-cms-bot - change - 5 May 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 May 2023
avatar brianteeman brianteeman - change - 5 May 2023
The description was changed
avatar brianteeman brianteeman - edited - 5 May 2023
avatar brianteeman
brianteeman - comment - 5 May 2023

Another reason to have this is that child templates use the overrides in a parent template (if not being overridden again in the child. But if you used any user.css then it will be lost in the child

avatar dgrammatiko
dgrammatiko - comment - 5 May 2023

For the time you can add it manually at the top of the child user.css, ie

@import("../../cassiopeia/css/user.css");

/* rest of the child user.css... */
avatar brianteeman
brianteeman - comment - 5 May 2023

thanks for the tip

avatar richard67 richard67 - change - 5 May 2023
Labels Added: Feature
avatar richard67 richard67 - labeled - 5 May 2023
avatar brianteeman brianteeman - close - 21 Nov 2023
avatar brianteeman
brianteeman - comment - 21 Nov 2023

closed due to lack of interest. I solved it for myself as described above

avatar brianteeman brianteeman - change - 21 Nov 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-11-21 18:30:26
Closed_By brianteeman

Add a Comment

Login with GitHub to post a comment