From 0c2055ef381d55388540496996788861fa04b7d8 Mon Sep 17 00:00:00 2001 From: Aaron Borden Date: Wed, 16 Oct 2013 19:02:04 -0700 Subject: Adding contextual styles to list-items --- dist/css/bootstrap.css | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'dist/css/bootstrap.css') diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index aa2951658..bf422cf29 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -5511,6 +5511,36 @@ a.thumbnail.active { margin-right: 5px; } +.list-group > .list-group-item.success { + background-color: #dff0d8; + border-color: #d6e9c6; +} + +.list-group > .list-group-item.success:hover { + background-color: #d0e9c6; + border-color: #c9e2b3; +} + +.list-group > .list-group-item.danger { + background-color: #f2dede; + border-color: #ebccd1; +} + +.list-group > .list-group-item.danger:hover { + background-color: #ebcccc; + border-color: #e4b9c0; +} + +.list-group > .list-group-item.warning { + background-color: #fcf8e3; + border-color: #faebcc; +} + +.list-group > .list-group-item.warning:hover { + background-color: #faf2cc; + border-color: #f7e1b5; +} + a.list-group-item { color: #555555; } -- cgit v1.2.3 From 693915d1277d465844c6757fc107110342229d76 Mon Sep 17 00:00:00 2001 From: Max Edmands Date: Wed, 16 Oct 2013 22:55:40 -0700 Subject: Active state overrides contextual list-item styles --- dist/css/bootstrap.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'dist/css/bootstrap.css') diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index bf422cf29..a6fa11dbb 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -5511,32 +5511,32 @@ a.thumbnail.active { margin-right: 5px; } -.list-group > .list-group-item.success { +.list-group-item.success { background-color: #dff0d8; border-color: #d6e9c6; } -.list-group > .list-group-item.success:hover { +.list-group-item.success:hover { background-color: #d0e9c6; border-color: #c9e2b3; } -.list-group > .list-group-item.danger { +.list-group-item.danger { background-color: #f2dede; border-color: #ebccd1; } -.list-group > .list-group-item.danger:hover { +.list-group-item.danger:hover { background-color: #ebcccc; border-color: #e4b9c0; } -.list-group > .list-group-item.warning { +.list-group-item.warning { background-color: #fcf8e3; border-color: #faebcc; } -.list-group > .list-group-item.warning:hover { +.list-group-item.warning:hover { background-color: #faf2cc; border-color: #f7e1b5; } -- cgit v1.2.3 From 07de53c644b315852c5f315ab91bfd6d65660d50 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 7 Dec 2013 14:09:03 -0800 Subject: Contextual list group cleanup * Adds nav link to sidebar for contextual classes * Refactors to use prefixed classes, like .list-group-item-info, instead of chained classes * Adds default and linked variations to example in docs --- dist/css/bootstrap.css | 138 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 108 insertions(+), 30 deletions(-) (limited to 'dist/css/bootstrap.css') diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index a6fa11dbb..b875515aa 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -5511,36 +5511,6 @@ a.thumbnail.active { margin-right: 5px; } -.list-group-item.success { - background-color: #dff0d8; - border-color: #d6e9c6; -} - -.list-group-item.success:hover { - background-color: #d0e9c6; - border-color: #c9e2b3; -} - -.list-group-item.danger { - background-color: #f2dede; - border-color: #ebccd1; -} - -.list-group-item.danger:hover { - background-color: #ebcccc; - border-color: #e4b9c0; -} - -.list-group-item.warning { - background-color: #fcf8e3; - border-color: #faebcc; -} - -.list-group-item.warning:hover { - background-color: #faf2cc; - border-color: #f7e1b5; -} - a.list-group-item { color: #555555; } @@ -5576,6 +5546,114 @@ a.list-group-item.active:focus .list-group-item-text { color: #e1edf7; } +.list-group-item-success { + color: #468847; + background-color: #dff0d8; +} + +a.list-group-item-success { + color: #468847; +} + +a.list-group-item-success .list-group-item-heading { + color: inherit; +} + +a.list-group-item-success:hover, +a.list-group-item-success:focus { + color: #468847; + background-color: #d0e9c6; +} + +a.list-group-item-success.active, +a.list-group-item-success.active:hover, +a.list-group-item-success.active:focus { + color: #fff; + background-color: #468847; + border-color: #468847; +} + +.list-group-item-warning { + color: #c09853; + background-color: #fcf8e3; +} + +a.list-group-item-warning { + color: #c09853; +} + +a.list-group-item-warning .list-group-item-heading { + color: inherit; +} + +a.list-group-item-warning:hover, +a.list-group-item-warning:focus { + color: #c09853; + background-color: #faf2cc; +} + +a.list-group-item-warning.active, +a.list-group-item-warning.active:hover, +a.list-group-item-warning.active:focus { + color: #fff; + background-color: #c09853; + border-color: #c09853; +} + +.list-group-item-danger { + color: #b94a48; + background-color: #f2dede; +} + +a.list-group-item-danger { + color: #b94a48; +} + +a.list-group-item-danger .list-group-item-heading { + color: inherit; +} + +a.list-group-item-danger:hover, +a.list-group-item-danger:focus { + color: #b94a48; + background-color: #ebcccc; +} + +a.list-group-item-danger.active, +a.list-group-item-danger.active:hover, +a.list-group-item-danger.active:focus { + color: #fff; + background-color: #b94a48; + border-color: #b94a48; +} + +.list-group-item-info { + color: #3a87ad; + background-color: #d9edf7; +} + +a.list-group-item-info { + color: #3a87ad; +} + +a.list-group-item-info .list-group-item-heading { + color: inherit; +} + +a.list-group-item-info:hover, +a.list-group-item-info:focus { + color: #3a87ad; + background-color: #c4e3f3; +} + +a.list-group-item-info.active, +a.list-group-item-info.active:hover, +a.list-group-item-info.active:focus { + color: #fff; + background-color: #3a87ad; + border-color: #3a87ad; +} + .list-group-item-heading { margin-top: 0; margin-bottom: 5px; -- cgit v1.2.3