문제

I cannot properly :extend a class in Gantry framework. I'm trying to do:

.mybox:extend(.box3) {
   /* Customization */
}

but it's not working.
I'm wondering whether it could be a version-related less compiler issue.

I tried defining mybox in template-custom.less and header-light-custom.less (because .box3 is in header-light.less and I'm using the "light" header), with no luck.

도움이 되었습니까?

해결책

Gantry's PHP compiler doesn't support extends. It's planned to include support for extends in lessphp 1.4, https://github.com/leafo/lessphp/issues/426, though whether Rockettheme will update their implementation at that time is another matter.

You could simply disable Gantry's compiler and use your own, which is my preference;

http://internet-inspired.com/wrote/tutorials/disabling-gantrys-less-compiler/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top