I have followed the steps described in Inheriting from Barceloneta to create a theme that inherits from Barceloneta. Now I want to change some colors.
Currently, my LESS file looks like this:
@import "++theme++barceloneta/less/barceloneta.plone.less";
@plone-sitenav-bg: green;
As a result, my website looks like a Barceloneta-styled website, except that the navigation bar is green.
The variable @plone-sitenav-bg
is defined to be @plone-link-color
in variables.plone.less
. So if I changed @plone-link-color
, it should also affect @plone-sitenav-bg
. Let’s try with the following LESS file:
@import "++theme++barceloneta/less/barceloneta.plone.less";
@plone-link-color: green;
Unfortunately, the navigation bar does not show up in green this way, but in blue, like in the Barceloneta theme.
There is something else that is strange. When setting @plone-link-color
as described above and also when not making any custom definitions at all, the generated CSS contains the setting background-color: #007bb3
for .plone-navbar
, although the original value of @plone-link-color
is #007bb1
, not #007bb3
.
When generating the CSS outside Plone using lessc
, everything works as expected: When setting @plone-link-color
to green
, the background-color
value for .plone-navbar
becomes #008000
, and when not making any custom definitions, it becomes #007bb1
, not #007bb3
.
Can anyone please explain what is going on here? Is this because of bugs in Plone’s LESS compiler? What LESS compiler is Plone using actually?