XF 2.1 extra.less styles without effect?

rhodes

Active member
In one of my sidebar widgets I show some thumbnail images with style class "wr_revimg". Within extra.less I've defined the following code.
Code:
.wr_revimg {
    height: 93px;
}
However, this code does not take any effect. I've inspected the source code just to ensure the style is not overridden. But it isn't. It seems as if extra.less is not loaded.

Any idea what can cause this issue?
 
Do you have anything else in extra.less? If not I would maybe try something obvious, like a notice class test a notice with that custom class.

e.g.

Code:
.custom-notice

{background:rgb(141, 9, 49);
color:#fff}
 
If you can post your URL so we can see the live HTML code, I'll be happy to take a look. :)

And if you still feel as though extra.less isn't loading, paste this code into it.

Less:
*{
    outline: 1px solid red;
}
 
If you can post your URL so we can see the live HTML code, I'll be happy to take a look.
Thank you @Ehren . Unfortunately my installation is on a local development environment.

What I found out is that when I switch to the default theme extra.less is loading. when I create a sub theme of default extra.less is not loaded.
 
What I found out is that when I switch to the default theme extra.less is loading. when I create a sub theme of default extra.less is not loaded.
If you've edited extra.less in the child style you added, then the changes to the default style (which is the parent) won't be applied to the child.
 
Assuming your styles are listed like this:

newchild.webp

If you edited extra.less in "New Child of Default", then any changes to extra.less in "Default XenForo" will not be applied in "New Child of Default".
 
Back
Top Bottom