1. 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

Discussion in 'Resolved Bug Reports' started by CyberAP, Jun 24, 2011.

  1. CyberAP

    CyberAP Well-Known Member

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

    ragtek Guest

    Have you tried {xen:calc "{xen:property
  3. CyberAP

    CyberAP Well-Known Member

    @headerLogoHeight is working as it should but @navTabLink.line-height doesn't.
  4. ragtek

    ragtek Guest

    And you have a property navTabLink.line-height ?
  5. CyberAP

    CyberAP Well-Known Member

    Yes, I can use it without xen:calc. It is not set just like property, it is inside a property group: @navTabLink.
  6. Kier

    Kier XenForo Developer Staff Member

    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 likes this.
  7. CyberAP

    CyberAP Well-Known Member

    At least I can use height. :)

Share This Page