Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question Custom.less not working after upgrade to 5.1.3

More
7 years 6 months ago #204926 by ruud
Hi,

I have encountered this 'issue' my self several times when upgrading the various kunena versions.

Some version requires the entries in custom.less to start with the kunena identifier #kunena.layout

e.g.
Code:
#kunena.layout .label-nobug { background-color: #32c032; }

this version automatically applies that identifier so you need to remove it again from the custom.less files
Code:
.label-nobug { background-color: #32c032; }

I have no clue as to why this is happening / why this is changed between versions?

sharing = caring
The following user(s) said Thank You: rich

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #204930 by rich
I've tested it again now, you're right. Thats was not always so. Therefore I gave in my earlier css proposals always codes such as .layout#kunena .topictitle {color: red; }, otherwise the changes were often only visible with "!important".
This seems the problem now. In principle the custom.less (only since K5.1.5) works now as it should.

Important! Always create a backup before you make any changes to your website!

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago - 7 years 5 months ago #204937 by unker
Hi rich,

I've just tested it with the 5.1.6-DEV and it is still the same. Nothing from custom.less is implemented. :(

Joomla 3.9, php 7.1.1

Additional:
I shifted the content from custom.less to custom.css and now everything looks as it should.

I guess this shouldn't be the way, right?

Best Regards
Hartmut
Last edit: 7 years 5 months ago by unker. Reason: Additional finding

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago - 7 years 5 months ago #204944 by rich
In principle it should work with the custom.less. The user ruud has posted the solution (2 messages before). www.kunena.org/forum/k5-1-support/154334...rade-to-5-1-3#204926
But in principle it's no matter if you use css or less.
The advantage from the custom.less, you need less of the codes. Less codes should bring a better performance for the page.

Example:
If you want change the user color in your custom.css you need
Code:
#kunena.layout .kwho-user { color: red; }
and in the custom.less (when it works correct) should be this enough
Code:
.kwho-user { color: red; }

Important! Always create a backup before you make any changes to your website!
Last edit: 7 years 5 months ago by rich.

Please Log in or Create an account to join the conversation.

Time to create page: 0.250 seconds