From 41f27fd81367f1f4bda48f02de6f3ed9999ad421 Mon Sep 17 00:00:00 2001 From: Thomas Coleman Date: Wed, 25 Jun 2014 15:00:41 +0100 Subject: [PATCH 1/2] Added @gray-base variable to make @gray-{shade} reference, also allows @gray-base to be modified with less#modifyVars and the vars to cascade --- less/variables.less | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/less/variables.less b/less/variables.less index 582f0f8d30a1..91cf3d5c8bad 100644 --- a/less/variables.less +++ b/less/variables.less @@ -7,11 +7,12 @@ // //## Gray and brand colors for use across Bootstrap. -@gray-darker: lighten(#000, 13.5%); // #222 -@gray-dark: lighten(#000, 20%); // #333 -@gray: lighten(#000, 33.5%); // #555 -@gray-light: lighten(#000, 46.7%); // #777 -@gray-lighter: lighten(#000, 93.5%); // #eee +@gray-base: #000; +@gray-darker: lighten(@gray-base, 13.5%); // #222 +@gray-dark: lighten(@gray-base, 20%); // #333 +@gray: lighten(@gray-base, 33.5%); // #555 +@gray-light: lighten(@gray-base, 46.7%); // #777 +@gray-lighter: lighten(@gray-base, 93.5%); // #eee @brand-primary: #428bca; @brand-success: #5cb85c; From fdacff229752e413f2705c8378e5023301db92de Mon Sep 17 00:00:00 2001 From: Thomas Coleman Date: Wed, 25 Jun 2014 16:09:57 +0100 Subject: [PATCH 2/2] Fixed @gray-base value being once space short --- less/variables.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/less/variables.less b/less/variables.less index 91cf3d5c8bad..aa94ab8e2c9c 100644 --- a/less/variables.less +++ b/less/variables.less @@ -7,7 +7,7 @@ // //## Gray and brand colors for use across Bootstrap. -@gray-base: #000; +@gray-base: #000; @gray-darker: lighten(@gray-base, 13.5%); // #222 @gray-dark: lighten(@gray-base, 20%); // #333 @gray: lighten(@gray-base, 33.5%); // #555