@url: "@{root}@{file}";
Full code:
@root: "../img/";
@file: "test.css";
@url: "@{root}@{file}";
.px{ background-image: url(@url); }
More Related Contents:
- Why I can see Less instead of CSS in a browser [closed]
- How to prevent Less from trying to compile CSS calc() properties?
- Disable LESS-CSS Overwriting calc() [duplicate]
- Is there a SASS.js? Something like LESS.js?
- Using variables in property names in LESS (dynamic properties / property name interpolation)
- How to thematize in lesscss
- less.js not working in chrome
- Double border with different color [duplicate]
- import .css file into .less file
- What does an “&” before a pseudo element in CSS mean?
- Defining Variable Variables using LESS CSS
- Twitter’s Bootstrap 3 grid, changing breakpoint and removing padding
- Build list of selectors with LESS
- Less lists as a mixin argument(s)
- LESS CSS: abusing the & Operator when nesting?
- How to add different CSS style to every nth element, depending on n using LESS
- How do I extend a class/mixin which has dynamically formed selector
- Is a relative path in a CSS file relative to the CSS file?
- LESS: Unrecognized input error when using Bootstrap
- LESS mixin a variable class name
- LESS CSS nesting classes
- Does LESS have an “extend” feature?
- Less CSS: Mixins with Variable Number of Arguments
- Media Query grouping instead of multiple scattered media queries that match
- Less and Bootstrap: how to use a span3 (or spanX [any number]) class as a mixin?
- What does the “~” (tilde/squiggle/twiddle) CSS selector mean?
- Is there a CSS hack to affect Safari only NOT Chrome?
- Setting height: 100% on my label element doesn’t work
- Bootstrap 3 Slide in Menu / Navbar on Mobile [closed]
- How to use CSS position sticky to keep a sidebar visible with Bootstrap 4