• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug  Xen:calc doesn't understand selective css variables

CyberAP

Well-known member
#1
Just tried to use @navTabLink.line-height in xen:calc function and figured out that it doesn't work.
The whole function:
Code:
top: {xen:calc '@headerLogoHeight - @navTabLink.line-height'}px;

 

Kier

XenForo Developer
Staff member
#6
Line height is not exposed to xen:calc I'm afraid - only CSS rules with specific input fields provided in the style property form are available for use, those specified in the 'additional' box are just strings.

Those rules that have their own input fields are usable within xen:calc, for example:

{xen:calc '0 + @content.padding-right'} // 20
 

CyberAP

Well-known member
#7
Line height is not exposed to xen:calc I'm afraid - only CSS rules with specific input fields provided in the style property form are available for use, those specified in the 'additional' box are just strings.

Those rules that have their own input fields are usable within xen:calc, for example:

{xen:calc '0 + @content.padding-right'} // 20
At least I can use height. :)