XF 2.2 Confusing extra.less Inheritance from Master Style to Child Style

philmckrackon

Active member
I'm cleaning up my styles so all can inherit common CSS from a parent master style copy extra.less
The parent extra.less merges wrong. I put all the common CSS in a custom TMS I created and it is OK.

Style Tree:
Parent
-->> Child 1
-->> Child 2
stytree.webp

Parent extra.less code:
Code:
// Notices Color Burgandy
.custom-notice-burgandy
{
 background:rgb(141, 9, 49); 
color:#fff;
}

// Notices Color Red
.custom-notice-red
{
 background:rgb(255, 0, 0); 
color:#fff;
}

// Remove Forums List Phrase 
[data-template = "forum_list"]
{
    .p-title-value
    {
        visibility: hidden;
    }
}
stymasel.webp

Child extra.less code not using TMS:
stychel.webp

XF 2.2.15

Thoughts?
 
Solution
If you have modified the template in the child style, it will not inherit from any changes made to the same parent style template after that time.

You would need to revert the child style template and reapply any specific changes to it.
If you have modified the template in the child style, it will not inherit from any changes made to the same parent style template after that time.

You would need to revert the child style template and reapply any specific changes to it.
 
Solution
Ahh, my bad. I thought it was concurrent. I'll stick with TMS so I don't have to revert each extra.less template every time I make a global change.

Thanks
 
Last edited:
Top Bottom