These are chat archives for less/less.js

29th
Jun 2018
Matthew Dean
@matthew-dean
Jun 29 2018 00:44
Neat
dimtabu
@taburetkin
Jun 29 2018 06:38
amasing why bootstrap turns to the dark side :-/
dimtabu
@taburetkin
Jun 29 2018 06:45

the biggest advantage of less in my opinion is that

div {
  color:@color;
}
@color:red;

and this behavior allow do something like this

gulp.src(paths)
  .pipe(concat(bundleName))
  .pipe(less())

never change this :)

Matthew Dean
@matthew-dean
Jun 29 2018 06:46
Scoping of vars is unlikely to ever change
dimtabu
@taburetkin
Jun 29 2018 06:48
i've tried sass when bootstrap turns to sass
but its a some pain in one place to make myself write everywhere import directives and remember in which order i should it use :-/
dimtabu
@taburetkin
Jun 29 2018 06:54
i wish less became default browser css processor
Matthew Dean
@matthew-dean
Jun 29 2018 06:54
Ha, why do you say that?
dimtabu
@taburetkin
Jun 29 2018 06:56
))
Matthew Dean
@matthew-dean
Jun 29 2018 06:57
Re: Bootstrap - there's still lots of Less libraries, and always space for someone to write another one ^_^
dimtabu
@taburetkin
Jun 29 2018 07:00
oh no
i think that they just go in a wrong way
previous version (its a less versin) is good enough for fast deploying small projects
but in my big projects i am not using bootstrap at all at this moment
dimtabu
@taburetkin
Jun 29 2018 07:05
maybe i just do not know something, cause css is not my specialty
current browser less.js processor is not fast enough, maybe later when pc became more faster but not now
and sometimes its very needed to do some calculation/changes to css on the fly for reflecting user wishes
and if a browser itself turns to the less :)) its just will be great and easy
say, user switches css theme and all you need to do - just set theme variable )
Matthew Dean
@matthew-dean
Jun 29 2018 07:06
What's your reason for compiling in browser vs. in Node?
Because you want to modify vars on the fly?
dimtabu
@taburetkin
Jun 29 2018 07:06
no, i am using precompile
Matthew Dean
@matthew-dean
Jun 29 2018 07:06
ah ok
dimtabu
@taburetkin
Jun 29 2018 07:06
but in cases when vars should be overriden on the fly i have to invent some strange things i don't like
Matthew Dean
@matthew-dean
Jun 29 2018 07:35
invent what strange things?
dimtabu
@taburetkin
Jun 29 2018 07:55
well
for example
application has default css theme which usually prebuilded and shiped to production as solid css file
application is multi-user by nature and some parts of css theme may be overridden by user and this overrided css stored at the server side in database
application by itself uses bundle engine so all css files ships to the end user in one bundle for better caching
when server receive request for a page i have to determine is it authenticated user and should i mix some user specific css from the datebase or not
but precompiled default hteme is already pure css because of precompile so there is a some limitation
Matthew Dean
@matthew-dean
Jun 29 2018 07:56
ah interesting
Matthew Dean
@matthew-dean
Jun 29 2018 19:44
I will say that having been forced to work with Sass for my day job, there are things I appreciate about it, and it's generated some good ideas. Obvs still prefer Less, but Sass can get the job done.