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
7
votes
2 answers

Is dotless the same exact syntax as the less css language?

The .less library calls itself a port of ruby LESS library. Can I take away from that that they both are compilers for the same LESS file format or do they expect subtly different less code? Asked another way, am I locking myself in to the dotless…
Matthew Nichols
  • 4,866
  • 4
  • 41
  • 48
7
votes
3 answers

Can't get dotLESS @import working

I'm struggling with the dotLESS @import to have a separate variables file; I just constantly get "variable is undefined". If I browse to the variable config file it works; if I put the variables inline in the main stylesheet it works; but in an…
Whelkaholism
  • 1,551
  • 3
  • 18
  • 28
7
votes
1 answer

MVC and Less bundles - not working in Release deployed to Azure

I'm using Dotless and System.Web.Optimizations.LessBundle to include Less stylesheets in my MVC 5 app. Everything is working in Debug and Release on my local machine. I basically followed the same steps that this blog post did. My bundle code looks…
RationalGeek
  • 9,425
  • 11
  • 62
  • 90
7
votes
1 answer

How do I import .less files with string interpolation in the pathstring?

How do I import .less files with string interpolation in the pathstring. @folder: "LessFiles"; I tried this @import "@{folder}/file.less"; Error: File Not Found. HTTP GET Url is "%7Bfolder%7D/file.less" and this: @import…
smunar
  • 195
  • 3
  • 10
6
votes
1 answer

ASP.NET MVC3: Publishing is excluding my CSS (.less) file

Originally I had my css .less file named Site.less.css so that intelligent type is active. Which worked fine. I've recently needed to use the @import "Site.less"; ability. And unfortunately this doesn't work with .css on the end, because that would…
IAmGroot
  • 13,760
  • 18
  • 84
  • 154
6
votes
1 answer

Why does a LESS file have to be set as Build Action "Content" to deploy to Azure?

I have an Azure website. I also have dotless running in my MVC app to translate and bundle Less files. When I deploy a release build to Azure, the Less file returns 404 unless I set it to Build Action="Content" in it's properties. Once I change…
RationalGeek
  • 9,425
  • 11
  • 62
  • 90
5
votes
2 answers

Dotlesscss @import statement: can't find file. Using Combres

In an asp.net mvc 3 project, i'm using Combres to combine and minify my CSS files. I'm using the dotlesscss filter for fancy css extras such as variables. However, when i try to use the dotlesscss @import statement (see importing at bottom of page),…
Simon Epskamp
  • 8,813
  • 3
  • 53
  • 58
5
votes
2 answers

dotless on Azure Web Project doesn't understand &:extend

I'm using Azure SDK 2.2 and created a brand new MVC 5 web project. I added dotless, bootstrap-less (and subsequently updated to the latest LESS from getbootstrap.com), and font-awesome. I'm updated to the latest of everything and resolved the issue…
AP Fritts
  • 435
  • 2
  • 11
5
votes
1 answer

DotLess Custom Logger configured from the web.config

I have created a custom logger by implementing the dotless.Core.Loggers.ILogger interface. Now I try to use this logger by configuring it in out web.config like this:
stefan.s
  • 3,489
  • 2
  • 30
  • 44
5
votes
1 answer

Handler "dotless" has a bad module "ManagedPipelineHandler" in its module list

When I want to use dotless (http://www.dotlesscss.org/) I have a problem: When I try to request file http://localhost/static/css/StyleLess.less I am receiving a HTTP error: Handler "dotless" has a bad module "ManagedPipelineHandler" in its module…
5
votes
1 answer

Dotless HttpHandler with VS2013 Preview

I have just installed the Visual Studio 2013 preview and run up my site. I've noticed that the less files which are used in my site are not being correctly transformed to css and are coming down as blank CSS files. It appears something is going…
undefined
  • 33,537
  • 22
  • 129
  • 198
5
votes
2 answers

Media Query grouping instead of multiple scattered media queries that match

I'm experimenting with LESS (not a fan of the SASS syntax) and have been trying to find out what the best way to do media queries with it would be. I read through this blog post on how to "do" media queries with LESS, but it points out the fact that…
Jared
  • 5,840
  • 5
  • 49
  • 83
5
votes
2 answers

changing dotless parameters dynamically

I would like to store .less parameters in a DB, an example use case might be that colour changes for each user based on his or her preference. I figure the best way to do this would be to parse all the .less files to get the parameters, the user can…
John
  • 754
  • 1
  • 10
  • 26
4
votes
2 answers

dotlesscss does not show errors

There's something wrong with my css because no styles are being added to my website after compilation. How do I get dotlesscss to show errors? Regular .less shows you a nice message that's very handy.
Johan Alkstål
  • 5,225
  • 9
  • 36
  • 48
4
votes
4 answers

Unable to get dotLess to work

I am using dotLess. I followed all their instructions (which seems simple enough) it's only 4 steps :) my minimal web.config looks like this:
stoic
  • 4,700
  • 13
  • 58
  • 88
1
2
3
10 11