less

How to compile .less files on save in Visual Studio 2015 (preview)

旧时模样 提交于 2019-12-03 03:30:52
问题 Ok, so I've created a new ASP.Net 5 / MVC 6 project in Visual Studio 2015 Preview. In keeping with our current method of doing things, for styling I want to use .less files. Creating the files is straightforward, but Web Essentials no longer compiles them. So my question is this: what precisely do I need to do to get my .css files generated when I save the .less files? Based on my adventures getting Typescript to work nicely, I will have to use Grunt to accomplish this task, but I am brand

How to automatically compile LESS into CSS on the server?

泪湿孤枕 提交于 2019-12-03 03:21:25
问题 This question was migrated from Webmasters Stack Exchange because it can be answered on Stack Overflow. Migrated 7 years ago . Friend designer of mine was compiling his LESS file manually and uploading it with Coda (Remote Site) spending lots of precious time. He asked me: Is it possible to automatically detect file change on the Linux server and compile without delay at all? 回答1: I have made a script and I publish the details: Easy to use for designers Executes LESS compiler immediately

Less Filewatcher compiler in PHPStorm

霸气de小男生 提交于 2019-12-03 03:19:45
问题 what I'am doing wrong when trying to compile the .less files into .css with PHPStorm File watcher ? Here is the screenshot, (pls open THIS LINK to see the full size of the image): I installed npm install -g less , after getting installed NodeJS . It works fine the compiler lessc when using cmd.exe - Command Line Tool in Windows OS with this command: lessc custom.less custom.css , but it wont do anything inside PHPStorm in Filewatcher. Any clue what I should correct, pls ? 回答1: For those who

LESScss converting rgba to hex? how to nest color variables into a mixin?

怎甘沉沦 提交于 2019-12-03 03:15:40
问题 Does LESScss convert all rgba colors to hex values? I am trying to create a mixin, say, .color, that allows you to pass in a color variable previously defined, and I want it to be in rgba. this doesn't work, but here's the idea: .bgcolor(@colorvariable,@alpha) { background-color: @colorvariable + rgba(0, 0, 0, @alpha); } Where @colorvariable would be, @blue: rgb(17,55,76); or @green: rgb(125,188,83); etc. I want to define a bunch of these variables, and then be able to pass them in to

Format cell if cell contains date less than today

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to get conditional formatting for a row for when a cell in that row contains a date less than or equal to today (yesterday, today, last week etc) I have tried =IF($W$4,TODAY()) which works for if the cell equals today's date, but I cannot figure out how to make it work for if cell is equal to today or less than today. Also, is it possible to now copy this conditional formatting to work for every cell in the column, but only affect the cell's row? Also with this the cell stays hightlighted if it is left blank, is this right? like

What consumes less memory an actual image or a drawn image?

匿名 (未验证) 提交于 2019-12-03 03:05:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am designing an app and I am creating some images with PaintCode . Using that program I get the actual code for each image that I create, thus allowing me to choose to insert code or use an actual image. I was wondering what would consume less memory, the image code or an actual PNG? I know an image memory consumption is width x height x 4 = bytes in memory but I have no idea whether an image that is generated by code is more memory efficient, less memory efficient or breaks even? This decision is particularly important given the different

c++ less operator overload, which way to use?

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: For example: in a C++ header file, if I defined a struct Record and I would like to use it for possible sorting so that I want to overload the less operator . Here are three ways I noticed in various code. I roughly noticed that: if I'm going to put Record into a std::set , map , priority_queue , … containers, the version 2 works (probably version 3 as well); if I'm going to save Record into a vector<Record> v and then call make_heap(v.begin(), v.end()) etc.. then only version 1 works. struct Record { char c; int num; //version 1 bool

How to use Less in a rails 3.1 application?

旧城冷巷雨未停 提交于 2019-12-03 03:01:54
What is the easiest (is there an easy way?) to use Less (in combination with Sass/Scss) in the rails 3.1 assets pipeline? I want to load a file like foo.css.less like i would do for bar.css.scss I found some wonky solution that does not work for me (haven't tried a lot) : https://github.com/thisduck/ruby-less-js/issues/2 The idea would be to use Twitter Bootstrap in a clean way. Thanks in advance If you only want to use bootstrap, you can do it by including the 'less-rails' and 'less-rails-bootstrap' gems in your GemFile. Then, you can @import bootstrap in your .css.less files: @import

Correct way to create rounded corners in Twitter Bootstrap

六眼飞鱼酱① 提交于 2019-12-03 03:00:58
问题 I've just started with Twitter Bootstrap and here is one question. I am creating custom <header> block, and I want it's bottom corners to be rounded. Is there any "correct" way to do this by using predefined classes, or I have to specify it manually like: border-radius: 10px; // and all that cross-browser trumpery For now, I'm using css styles. Maybe it will be better to use less for that issue? 回答1: I guess it is what you are looking for: http://blogsh.de/tag/bootstrap-less/ @import

LESS mix-in for nth-child?

 ̄綄美尐妖づ 提交于 2019-12-03 03:00:45
I'm trying to make a LESS mixin that will give me this output: .resource:nth-child(8n+1) { clear: left; } I've got this so far: .wrap-every(@n) { &:nth-child(@n + "n+1") { // parse error on this line clear: left; } } .resource { .wrap-every(8); } But it's giving a parse error on the indicated line ParseError: Unrecognised input Is there a way to do this? Less >= 1.4 you could do something like this: .wrap-every(@n) { &:nth-child(@{n}n + 1) { clear: left; } } this should have the desired output. Without any hacks needed. in older versins of Less you can try simple string interpolation : .wrap