These are chat archives for less/less.js

5th
Jun 2015
Shobha K
@smkand
Jun 05 2015 00:39
New to Less!!! finding it little difficult
Basarat Ali Syed
@basarat
Jun 05 2015 09:26
Its just css with sugar on top
Denys Dovhan
@denysdovhan
Jun 05 2015 10:16
Will normal conditional operators be in the less? Or native loops?
Something like this:
@if (iscolor(@foo)) {
    border: 1px solid @foo;
}

@list: dotted, dashed, solid;
@for (@style) in (@list) {
     border-style: @style;
}
Ahmed Fahad
@ahmed-fahad
Jun 05 2015 11:30
This message was deleted
This message was deleted
This message was deleted
Lauri Kotilainen
@rytmis
Jun 05 2015 16:14
@denysdovhan no, you would use various Mixin-related features for that: http://lesscss.org/features/#loops-feature
Denys Dovhan
@denysdovhan
Jun 05 2015 16:16
@rytmis I know about this, but maybe sometimes native statements will be implemented?
Lauri Kotilainen
@rytmis
Jun 05 2015 16:17
I can't speak for the less.js team, but I expect it won't be, since it's already possible with a syntax that doesn't make the result look imperative instead of declarative. :)
Denys Dovhan
@denysdovhan
Jun 05 2015 16:19
okay, thanks. Maybe I'll write my own less plugin for this.