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
3
votes
1 answer

Styles from dotless files not used

We have a website that makes use of .less files (the pre-compiler dotless has been installed using nuget), however the .less files are not handled as css files. When trying to view the website in firefox, the console gives use the following error:…
Lex
  • 879
  • 3
  • 16
  • 27
3
votes
1 answer

DOTLESS - user specific variables

I am writing an ASP.NET MVC application and I plan to use LESS for stylesheets using the Dotless compiler. I want to make my application skinnable and found that I can use LESS variables to customize the styles. How do I best implement this? I want…
ulvesked
  • 429
  • 3
  • 11
3
votes
1 answer

Resolving dynamic variables in LESS

I am trying to generate a number of classes in a loop based on a number of pre-defined variable snippets. I have a variables.less document that I am importing at the top of this less file containing my color variables. I then want to generate…
Micke Alm
  • 85
  • 6
3
votes
1 answer

Dotless Parse doesn't minify carriage returns

I got the old Would you like to normalize line endings on my .less file and without thinking did so. I realized later that my css wasnt completely minified. Here's the process method for the transform public void Process(BundleContext context,…
jamesSampica
  • 12,230
  • 3
  • 63
  • 85
3
votes
1 answer

Custom property names in LessCSS

I'm trying to implement a custom CSS property in my TinyMCE editor stylesheet for an EPiServer CMS project. According to the EPiServer SDK, in order for me to add a custom style to the TinyMCE Styles dropdown, I need to use the EditMenuName property…
Dzulqarnain Nasir
  • 2,150
  • 1
  • 19
  • 16
3
votes
1 answer

Can't get sourcemap to work

I am trying to get my implementation of sourcemaps to work with dotless. I have pulled dotless and added sourcemap(1)(2) generation to it. The problem is that even though I deliver my css-file with the corresponding SourceMap : Main.less.map…
Tobias Boschek
  • 2,158
  • 3
  • 18
  • 22
3
votes
2 answers

Log .less errors to console

Each time I have a .less syntax error I have to open the exact less file in browser in order to view the error message. I was wondering if it is possible to somehow output .less errors to console so I can view all errors directly in the Console log…
easwee
  • 15,757
  • 24
  • 60
  • 83
3
votes
1 answer

Import LESS from server

In my ASP.NET MVC application I have an action that returns LESS variables. I would like to import these variables into my main LESS file. What is the recommended approach for doing this since DotLess will only import files with .less or .css…
Ben Foster
  • 34,340
  • 40
  • 176
  • 285
2
votes
3 answers

Automatically generate main CSS when imported LESS is saved

I'm using Dotless on my ASP.NET MVC project, I have a main less file that just imports some other files. e.g. main.less contains: @import "lib/utils" @import "lib/account" @import "lib/settings" The idea is to have a single css file in the entire…
willvv
  • 8,439
  • 16
  • 66
  • 101
2
votes
2 answers

How to disable .less (dotLess CSS) syntax analysis in ReSharper 6?

ReSharper 6 considers .less files as .CSS, although they aren't. So instead of proper syntax highlighting, it underlines nearly everything with red (syntax error). How can I disable this "feature"?
Alex Yakunin
  • 6,330
  • 3
  • 33
  • 52
2
votes
1 answer

Why dotless compilation in visual studio asp.net project is not working?

I have installed nuget dotless package to my ASP.Net Visual Studio project. After the installation, I can see it added handlers to the web.config file, but there is no less compilation taking place. There is no error nothing, but .less file is not…
MACMAN
  • 1,883
  • 1
  • 21
  • 35
2
votes
1 answer

dotless API call

Is there a way to call dotless API programmatically and get final CSS? Something like this: string lessCSS = File.ReadAllText(lessCSSfile); string finalCSS = dotless.Core.Less.Parse(lessCSS);
Sha Le
  • 1,261
  • 2
  • 11
  • 10
2
votes
0 answers

Less not compile viewport units (vmax)

I use ASP.NET MVC 5 with LESS (bundle & dotless and LessTransform package). But less incorrectly compiles css viewport unit "vmax". width: 20vmax; and get output (vmax with space) width: 20vm ax; others viewport units (vh, vw, vmin) compiles…
2
votes
1 answer

LESS files intermittently not being included in Bundle

In my ASP.NET MVC5 project I'm using Bundling/Minification and dotless together. var commonCss = new StyleBundle("~/bundles/main.css").Include( "~/CSS/global.css", "~/CSS/header.less", …
2
votes
0 answers

Passing parameters to less file in command line

I am using dotless.compiler.exe in my solution and passing below command in post build event of solution properties. $(SolutionDir)\packages\dotless.1.1.0\Tools\dotless.Compiler.exe -m "$(ProjectDir)\content*.less"…
nari447
  • 834
  • 2
  • 11
  • 25