Use Variable for Import Parameter in less

If you need to parameterize urls that will be used in the @import directive and imported into your .css files use the following.

@googlefonturl: "//fonts.googleapis.com/css?family=Roboto";
@import (css) url("@{googlefonturl}");

Which will generate the following at the top of your css output

@import url("//fonts.googleapis.com/css?family=Roboto");

The double quotes aren’t necessary but less adds them. If you wanted to pull in the remote css to your less use `(inline)` instead of css do this

@import (inline) url("@{googlefonturl}");

It is not recommended to do this with google fonts because the api uses browser sniffing so that it can the correct files for the device requesting fonts

Pass Multiple Variables to lessc Command Line Arguments

In order to pass more than one argument to the lessc compiler you need to use the option argument for each variable, for example

lessc --modify-var="bgColor=purple" --modify-var="bodyColor=aqua" custom.less test.css

Notice the “–modify-var” option being passed twice, this is because there is no separator

https://github.com/less/less.js/issues/731#issuecomment-28477515

 

Youtube Channels for Programmers, Hackers, and Techies

Google

https://www.youtube.com/user/GoogleWebmasterHelp

https://www.youtube.com/user/GoogleDevelopers

https://www.youtube.com/user/GoogleTalksArchive

https://www.youtube.com/user/AtGoogleTalks

https://www.youtube.com/user/GoogleVentures

Tech

https://www.youtube.com/user/NextDayVideo

https://www.youtube.com/user/MarakanaTechTV

https://www.youtube.com/user/MIT

https://www.youtube.com/tekbreakfast

Gadgets

https://www.youtube.com/user/kurtjmac

https://www.youtube.com/user/engineerguyvideo

Business / StartUps

https://www.youtube.com/user/EntrepreneurOnline

https://www.youtube.com/user/EverySteveJobsVideo

https://www.youtube.com/user/PandoDaily

https://www.youtube.com/user/princetonstartuptv

https://www.youtube.com/user/StartupBootcamp

https://www.youtube.com/user/confreaks

 

Programming

https://www.youtube.com/user/OreillyMedia

https://www.youtube.com/user/Froblyx– Game design and development

https://www.youtube.com/user/FacebookDevelopers

https://www.youtube.com/user/khanacademy

 

Random

https://www.youtube.com/user/Vsauce — IMHO the best youtube channel in existence. Every video is a rabbit hole of interesting questions and tangents with fantastic presentation and weirdly uplifting closing points.

https://www.youtube.com/user/pbsideachannel — Smart thought provoking videos that use internet memes, gaming, anime, and such as the launch off points.

https://www.youtube.com/user/1veritasium — Well presented science videos with a focus on the joy of learning.

https://www.youtube.com/user/destinws2

 

https://www.youtube.com/user/gluse –Man riding up elevators in different building

https://www.youtube.com/user/SMOKERSOFCIGARSPIPES — 6300+ man smoking cigars/tobacco pipes and grumbling

 

 

SOURCE HackerNews