Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use CSS nested rules without installing anything on the server?

LESS and SASS allow us to use CSS nested rules; however, they require us to install their components on the web servers.

Is it possible to use similar feature without installing anything on the server? Maybe by using JavaScript, jQuery, etc. I could achieve this.

Thank you,

like image 214
Fawadafr Avatar asked Oct 05 '11 22:10

Fawadafr


2 Answers

Just like people who minimize javascript files as part of deployment (without installing anything on the server), you can process LESS files into regular CSS files as part of your deployment or packaging step. The tools can run on a developer's computer and be used once at deployment time and not have to ever install any executables on the server.

I'm sure there are many LESS compiler options, but here are a couple:

  • LESS CSS on Windows
  • dotless
like image 196
jfriend00 Avatar answered Nov 04 '22 21:11

jfriend00


Less can run in a strictly client-side mode using JavaScript. Just include less.js in your page.

enter image description here

http://lesscss.org/#guide

like image 27
Matt Ball Avatar answered Nov 04 '22 21:11

Matt Ball