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

less

  1. CMTV

    XF 2.0 How use user custom field in .less template?

    Hi! I have a custom user field called test_color. How can I use the value of this field in extra.less or other less templates? Is there a way to do so without involving xenForo development mode and writing addons?
  2. CMTV

    XF 2.0 LESS "when" is not working

    I have created my custom style variable questionthreads_isStylingBestAnswerUserBg. It has Boolean value type. It is set to true. Now in my LESS template I have this code: .container when (@xf-questionthreads_isStylingBestAnswerUserBg = true) { background: #000; } The problem is that this...
  3. katsulynx

    XF 2.0 Custom Style Properties

    Anyone can tell me how to bring the custom css style properties into a .less-template? I've scanned through various of the templates, but I'm still as clueless as from the beginning, tried @Name, @_name, but the less-compiler keeps throwing Unexpected input in anonymous-file [...].
  4. CyberAP

    Dynamic Avatar Styling 1.0.1

    This add-on lets you customize avatar markup up to your liking (i.e. how avatars should look like). By default it only adds a complimentary gradient, which can be changed in Style Properties → Avatars → Dynamic avatar gradient color function. If you want to further expand on customizations feel...
  5. CyberAP

    Lack of interest XF 2 → Invoke LESS functions inside regular templates

    In XF 1.x.x we have built-in functions to do some operations with properties you'd expect only to be in CSS templates. For example: {xen:helper rgba ''}. It converts a color to an RGBA format. You can invoke these functions in any template. With XF 2 we get LESS, which has a lot of similar...
Top