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

Fixed @property.border-style doesn't work

Discussion in 'Resolved Bug Reports' started by CyberAP, Dec 22, 2011.

  1. CyberAP

    CyberAP Well-Known Member

    While border-width and border-color are working the border-style doesn't seem to work. That's strange because we can't set a full dependence on borders due to the border style rigid set.
     
  2. Mike

    Mike XenForo Developer Staff Member

    We don't keep any border style properties or some individual background/font properties around to keep the cache smaller, as you can access the border property itself. I don't plan on changing this currently, as there are usually ways around it using the "complex" properties. What are you trying to do?
     
  3. CyberAP

    CyberAP Well-Known Member

    I try to do this:
    border: @message.border-top-color @message.border-top-style @message.border-top-width;

    Because somehow @message.border-top doesn't work for me.
     
  4. CyberAP

    CyberAP Well-Known Member

    I figured out that I can use it just as @property.border but it also prints border: and border-radius: that I don't really need.
    For example I want to set a custom padding like: padding-left: @property.padding and I won't be able to do it because it prints the complete rule, which differs from .padding-left for example, that outputs only the value itself.
     
  5. Mike

    Mike XenForo Developer Staff Member

    Note that this is mostly intentional - with the border/padding/font/etc rules outputting full CSS rules, as they represent the whole "group".

    I have changed to expose border-style in 1.1.2 though. My main reservation is increasing the style property cache size, which will hopefully be shrunk in a future version anyway.
     
    CyberAP likes this.
  6. CyberAP

    CyberAP Well-Known Member

    Thanks!
     

Share This Page