Questions tagged [dotless]

.less (pronounced dot-less) is a .NET port of the funky Less JavaScript library Lovingly ported by Christopher Owen, Erik van Brakel, Daniel Hoelbling, James Foster and Luke Page

.less (pronounced dot-less) is a .NET port of the funky Less JavaScript library lovingly ported by Christopher Owen, Erik van Brakel, Daniel Hoelbling, James Foster and Luke Page. You can read more about .less at: http://www.dotlesscss.org/

Installation

.less can most easily be installed through its NuGet package:

Install-Package dotless

Links

Differences between Less.js and .less

Though .less is a .NET port of the Less JS library, they do have some differences in terms of the functionalities offered. These differences are described in the official .less GitHub page.

155 questions
0
votes
1 answer

Dynamic css using dotless

I want to use Less to compile my CSS server-side using dotless. My issue is that I want to change the variable from the server side which is coming from the database, for example I have a header; it's color property is changed by the variable name…
malik rizwan
  • 102
  • 9
0
votes
1 answer

Upgraded dotLess error: IImporter does not contain definition for 'Paths'

I have the following code in a project I try to upgrade the "dotless" NuGet package from the "1.2.2.0" to the latest (at moment "1.4.0.0"): private void GetStylesheetContent(HttpContext context, string name) { var conf =…
serhio
  • 28,010
  • 62
  • 221
  • 374
0
votes
2 answers

Using a variable in @import statement - DotLess

I'm am using DotLess v1.4 and I would like to do the following: // Variables @Utilities-path: "../../Utilities"; @import "@{Utilities-path}/bacon.less"; When I do this I get a file not found error. File Not Found while parsing: You are importing…
Colin Bacon
  • 15,436
  • 7
  • 52
  • 72
0
votes
1 answer

migrate bootstrap 2.3 to 3.0 with .less file

We are currently running bootstrap 2.3 in our application of over 400 html files. We decided the best way to upgrade to twitter bootstrap 3.0 without having to change all of our html files would be to include a .less file that references all the…
0
votes
1 answer

.less files with .css subfiles

I was wondering on how this file structure was done. I know how to use dotless, but I don't know how make compiled files under .less file. Any Idea? Edit I have found this question And I had an idea that, if I would be able to make every .css…
fiberOptics
  • 6,955
  • 25
  • 70
  • 105
0
votes
1 answer

Using LESS only to generate CSS as part of builds, not generating per-request?

I just started looking into dotless for my VS2012 solution and it seems that the less is compiled down to css every time a request hits the less file. This seems like a waste of cycles - I'm not going to be changing my CSS that much, and if I do,…
SB2055
  • 12,272
  • 32
  • 97
  • 202
0
votes
1 answer

.less files returns 404

I have dotless installed on my website and it's running perfectly on my local machine and on the companys testserver but when deploying on production server it always returns 404 and I can't figure out why. This is what I've done so far to get it to…
0
votes
1 answer

Dotless fails silently when parsing Bootstrap 2.3.1 to CSS

Here's my LessTransform class I use to parse .less files into .css files: public class LessTransform : IBundleTransform { public void Process(BundleContext context, BundleResponse response) { response.Content =…
sergserg
  • 21,716
  • 41
  • 129
  • 182
0
votes
1 answer

dotless not working with external less files?

I've been working with dotless to compile my less files and everything went smoothly until the client asked to move our less files on a separate server. Now the less is somehow only partial compiled. For example, if I have something like ul li…
Anv
  • 13
  • 3
0
votes
1 answer

Programmatic LESS imports

Is there any way to tell less to import different external files based on something pragmatically? I process my LESS with dotless, but can't find anything that hints towards this being possible. EDIT: Also just so this info is available. I'm aware…
Jared
  • 5,840
  • 5
  • 49
  • 83
0
votes
1 answer

using System.Web.Optimization can I mix css and .less files in the same bundle?

It does not look like this is possible because LessTransform will be applied only once all the files have been merged and minified. public class LessTransform : IBundleTransform { public void Process(BundleContext context, BundleResponse…
smnbss
  • 1,031
  • 1
  • 10
  • 21
0
votes
1 answer

Dotless compiler exited with code -1 - MSBuild

I'm trying to use a build script to run the dotless.compiler.exe to compile my .less files into .min.css on build: