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
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
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
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
Labels |
Added:
No Code Attached Yet
|
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... */
thanks for the tip
Labels |
Added:
Feature
|
closed due to lack of interest. I solved it for myself as described above
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-11-21 18:30:26 |
Closed_By | ⇒ | brianteeman |
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