From d3aad7e35505d0f06843921439f8d9f0a2f36b34 Mon Sep 17 00:00:00 2001 From: Frederick Marcoux Date: Fri, 31 Jan 2014 15:17:49 -0500 Subject: Added .list-group-item.disabled Added support for disabled List group item. --- less/list-group.less | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'less') diff --git a/less/list-group.less b/less/list-group.less index 3343f8e5e..4990002c4 100644 --- a/less/list-group.less +++ b/less/list-group.less @@ -64,6 +64,23 @@ a.list-group-item { text-decoration: none; background-color: @list-group-hover-bg; } + + // Disabled state + &.disabled, + &.disabled:hover, + &.disabled:focus { + background-color: @list-group-disabled-bg; + color: @list-group-disabled-color; + border-color: @list-group-disabled-border; + + // Force color to inherit for custom content + .list-group-item-heading { + color: inherit; + } + .list-group-item-text { + color: @list-group-disabled-text-color; + } + } // Active class on item itself, not parent &.active, -- cgit v1.2.3 From d1a7271ea1272e0f9775d49e6a84ee49819e0094 Mon Sep 17 00:00:00 2001 From: Frederick Marcoux Date: Fri, 31 Jan 2014 15:25:09 -0500 Subject: Update variables.less --- less/variables.less | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'less') diff --git a/less/variables.less b/less/variables.less index ebc72c00e..814f45351 100644 --- a/less/variables.less +++ b/less/variables.less @@ -633,6 +633,14 @@ @list-group-active-border: @list-group-active-bg; @list-group-active-text-color: lighten(@list-group-active-bg, 40%); +//** Text color of disabled list elements +@list-group-disabled-color: @grey-light; // Or something else you want +//** Background color of disabled list elements +@list-group-disabled-bg: @grey-ligher; // Or something else you want +//** Border color of disabled list elements +@list-group-disabled-border: #eee; // Or something else you want +@list-group-disabled-text-color: lighten(@list-group-disabled-bg, 40%); // Or something else you want + @list-group-link-color: #555; @list-group-link-heading-color: #333; -- cgit v1.2.3 From 9dc796155cdc23040bb018f145634ad8deea5326 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 6 Mar 2014 21:25:34 -0800 Subject: Fixes #12722: Fixes up responsive tables in print Safari renders this fine for one reason or another, but Chrome still renders the media query styles to make tables responsive. This change scopes them to screen devices only, so printing looks boss everywhere. --- less/tables.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less') diff --git a/less/tables.less b/less/tables.less index d5c0afd01..555d7924c 100644 --- a/less/tables.less +++ b/less/tables.less @@ -169,7 +169,7 @@ table { // will display normally. .table-responsive { - @media (max-width: @screen-xs-max) { + @media screen and (max-width: @screen-xs-max) { width: 100%; margin-bottom: (@line-height-computed * 0.75); overflow-y: hidden; -- cgit v1.2.3 From 0c9308a3b29be6d56c582dce33092164be7997b4 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 6 Mar 2014 21:40:22 -0800 Subject: Rewrite the disabled list group items to simplify styles --- less/list-group.less | 1 - less/variables.less | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'less') diff --git a/less/list-group.less b/less/list-group.less index b2f252488..9e3b1ef8e 100644 --- a/less/list-group.less +++ b/less/list-group.less @@ -73,7 +73,6 @@ a.list-group-item { &.disabled:focus { background-color: @list-group-disabled-bg; color: @list-group-disabled-color; - border-color: @list-group-disabled-border; // Force color to inherit for custom content .list-group-item-heading { diff --git a/less/variables.less b/less/variables.less index 823ef859c..bdc719cb3 100644 --- a/less/variables.less +++ b/less/variables.less @@ -643,23 +643,23 @@ //** List group border radius @list-group-border-radius: @border-radius-base; -//** Background color of single list elements on hover +//** Background color of single list items on hover @list-group-hover-bg: #f5f5f5; -//** Text color of active list elements +//** Text color of active list items @list-group-active-color: @component-active-color; -//** Background color of active list elements +//** Background color of active list items @list-group-active-bg: @component-active-bg; //** Border color of active list elements @list-group-active-border: @list-group-active-bg; +//** Text color for content within active list items @list-group-active-text-color: lighten(@list-group-active-bg, 40%); -//** Text color of disabled list elements -@list-group-disabled-color: @gray-light; -//** Background color of disabled list elements -@list-group-disabled-bg: @gray-lighter; -//** Border color of disabled list elements -@list-group-disabled-border: #eee; // Or something else you want -@list-group-disabled-text-color: lighten(@list-group-disabled-bg, 40%); // Or something else you want +//** Text color of disabled list items +@list-group-disabled-color: @gray-light; +//** Background color of disabled list items +@list-group-disabled-bg: @gray-lighter; +//** Text color for content within disabled list items +@list-group-disabled-text-color: @list-group-disabled-color; @list-group-link-color: #555; @list-group-link-heading-color: #333; -- cgit v1.2.3