From 8c403dc1dcccc38057aba85c49a314a36a93c0af Mon Sep 17 00:00:00 2001 From: Ross Allen Date: Wed, 18 Jun 2014 14:40:50 -0700 Subject: Darken @gray-light to meet accessibility guidelines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `@gray-light` darkens from #999 to #777, which puts `.text-muted` at the threshold for the 4.5:1 WCAG minimum contrast[1]. #777:#fff is 4.48:1. The “Example” headers in docs become #959595, which is contrast ratio 3:1, the minimum for larger text. Since the headers are less important than the surrounding text, 3:1 is fine and an improvement on the previous #bbb:#fff (1.92:1). Fixes issue #13847. [1] http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html --- less/variables.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less/variables.less') diff --git a/less/variables.less b/less/variables.less index a2e464b6e..c6edad147 100644 --- a/less/variables.less +++ b/less/variables.less @@ -10,7 +10,7 @@ @gray-darker: lighten(#000, 13.5%); // #222 @gray-dark: lighten(#000, 20%); // #333 @gray: lighten(#000, 33.5%); // #555 -@gray-light: lighten(#000, 60%); // #999 +@gray-light: lighten(#000, 46.7%); // #777 @gray-lighter: lighten(#000, 93.5%); // #eee @brand-primary: #428bca; -- cgit v1.2.3 From c7cd63107b551ddb8fe201340f1fa9cbe97f8af0 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 18 Jun 2014 21:52:34 -0700 Subject: fixes #13346: add a variable for .dl-horizontal's offset --- less/variables.less | 2 ++ 1 file changed, 2 insertions(+) (limited to 'less/variables.less') diff --git a/less/variables.less b/less/variables.less index c6edad147..2f339fb41 100644 --- a/less/variables.less +++ b/less/variables.less @@ -836,6 +836,8 @@ @blockquote-border-color: @gray-lighter; //** Page header border color @page-header-border-color: @gray-lighter; +//** Width of horizontal description list titles +@dl-horizontal-offset: @component-offset-horizontal; //== Miscellaneous -- cgit v1.2.3 From 8ad583063bd11e1b8841e1f27207660e0181df19 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Tue, 24 Jun 2014 18:30:24 +0200 Subject: Move variable declaration before its use for Sass In Sass, variable must be declared before it is used. This also removes Miscellaneous section, because horizontal line color and form / list paddings are Typography. --- less/variables.less | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'less/variables.less') diff --git a/less/variables.less b/less/variables.less index 2f339fb41..582f0f8d3 100644 --- a/less/variables.less +++ b/less/variables.less @@ -822,6 +822,8 @@ // //## +//** Horizontal offset for forms and lists. +@component-offset-horizontal: 180px; //** Text muted color @text-muted: @gray-light; //** Abbreviations and acronyms border color @@ -838,14 +840,7 @@ @page-header-border-color: @gray-lighter; //** Width of horizontal description list titles @dl-horizontal-offset: @component-offset-horizontal; - - -//== Miscellaneous -// -//## - //** Horizontal line color. @hr-border: @gray-lighter; -//** Horizontal offset for forms and lists. -@component-offset-horizontal: 180px; + -- cgit v1.2.3 From 41f27fd81367f1f4bda48f02de6f3ed9999ad421 Mon Sep 17 00:00:00 2001 From: Thomas Coleman Date: Wed, 25 Jun 2014 15:00:41 +0100 Subject: 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(-) (limited to 'less/variables.less') diff --git a/less/variables.less b/less/variables.less index 582f0f8d3..91cf3d5c8 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; -- cgit v1.2.3 From fdacff229752e413f2705c8378e5023301db92de Mon Sep 17 00:00:00 2001 From: Thomas Coleman Date: Wed, 25 Jun 2014 16:09:57 +0100 Subject: Fixed @gray-base value being once space short --- less/variables.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less/variables.less') diff --git a/less/variables.less b/less/variables.less index 91cf3d5c8..aa94ab8e2 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 -- cgit v1.2.3 From 0378a6be2a5a42f408aeed24e20933039352ba74 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 5 Jul 2014 19:59:50 -0700 Subject: Fixes #13943: Lighten the navbar inverse link color more since our text contrast change in v3.2.0 --- less/variables.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less/variables.less') diff --git a/less/variables.less b/less/variables.less index 582f0f8d3..085c49ba0 100644 --- a/less/variables.less +++ b/less/variables.less @@ -368,7 +368,7 @@ // Inverted navbar // Reset inverted navbar basics -@navbar-inverse-color: @gray-light; +@navbar-inverse-color: lighten(@gray-light, 12%); @navbar-inverse-bg: #222; @navbar-inverse-border: darken(@navbar-inverse-bg, 10%); -- cgit v1.2.3 From bd292ca3b89da982abf34473318c77ace3417fb5 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 12 Jul 2014 15:13:18 -0700 Subject: Fixes #14107: Lighten placeholder text --- less/variables.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less/variables.less') diff --git a/less/variables.less b/less/variables.less index c797ae08a..b7f6e80d3 100644 --- a/less/variables.less +++ b/less/variables.less @@ -188,7 +188,7 @@ @input-border-focus: #66afe9; //** Placeholder text color -@input-color-placeholder: @gray-light; +@input-color-placeholder: #999; //** Default `.form-control` height @input-height-base: (@line-height-computed + (@padding-base-vertical * 2) + 2); -- cgit v1.2.3 From 45acf4e0403d866f99cdd52d0bfd267f0665a707 Mon Sep 17 00:00:00 2001 From: wangsai Date: Thu, 17 Jul 2014 20:13:16 +0800 Subject: Tabs to spaces --- less/variables.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less/variables.less') diff --git a/less/variables.less b/less/variables.less index b7f6e80d3..9670a902f 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 -- cgit v1.2.3 From f265137c0517266206055d306ed41e9456878652 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 23 Aug 2014 12:20:09 -0700 Subject: Fixes #14440: Remove unused nav variable --- less/variables.less | 2 -- 1 file changed, 2 deletions(-) (limited to 'less/variables.less') diff --git a/less/variables.less b/less/variables.less index 9670a902f..0d354d16a 100644 --- a/less/variables.less +++ b/less/variables.less @@ -404,8 +404,6 @@ @nav-disabled-link-color: @gray-light; @nav-disabled-link-hover-color: @gray-light; -@nav-open-link-hover-color: #fff; - //== Tabs @nav-tabs-border-color: #ddd; -- cgit v1.2.3 From 9a39ee90b4fd4d5b9b6f9a6f2c9d5a29ffeafe92 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 23 Aug 2014 13:26:37 -0700 Subject: Fixes #13943 again: lighten links, and text, in navbar. Still not 100% compliant, but it's better. --- less/variables.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'less/variables.less') diff --git a/less/variables.less b/less/variables.less index 0d354d16a..d6a972ff6 100644 --- a/less/variables.less +++ b/less/variables.less @@ -369,12 +369,12 @@ // Inverted navbar // Reset inverted navbar basics -@navbar-inverse-color: lighten(@gray-light, 12%); +@navbar-inverse-color: lighten(@gray-light, 15%); @navbar-inverse-bg: #222; @navbar-inverse-border: darken(@navbar-inverse-bg, 10%); // Inverted navbar links -@navbar-inverse-link-color: @gray-light; +@navbar-inverse-link-color: lighten(@gray-light, 15%); @navbar-inverse-link-hover-color: #fff; @navbar-inverse-link-hover-bg: transparent; @navbar-inverse-link-active-color: @navbar-inverse-link-hover-color; -- cgit v1.2.3 From a03d269287f39c22fb7d4f5a5edd94293aa0c1ae Mon Sep 17 00:00:00 2001 From: vsn4ik Date: Tue, 26 Aug 2014 02:24:09 +0400 Subject: Less: Remove empty lines and blanks. --- less/variables.less | 2 -- 1 file changed, 2 deletions(-) (limited to 'less/variables.less') diff --git a/less/variables.less b/less/variables.less index d6a972ff6..5be258be7 100644 --- a/less/variables.less +++ b/less/variables.less @@ -841,5 +841,3 @@ @dl-horizontal-offset: @component-offset-horizontal; //** Horizontal line color. @hr-border: @gray-lighter; - - -- cgit v1.2.3