Lorraine Bernard
Lorraine Bernard

Reputation: 13400

CSS variables using lesscss

I was reading lesscss.org and I am wondering why:

@nice-blue: #5B83AD;
@light-blue: @nice-blue + #111;
#header { color: @light-blue; }

compiles the following output

#header { color: #6c94be; }

and not

#header { color: #6c93ad; }

Upvotes: 1

Views: 150

Answers (1)

Treemonkey
Treemonkey

Reputation: 2163

this is because #111 is short for #111111 and explains exactly what you see here

Upvotes: 2

Related Questions