0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

simplify padding in list groups and margins on badges within

This commit is contained in:
Mark Otto 2013-08-11 21:17:49 -07:00
parent a0f301995c
commit 95affa32e6
3 changed files with 5 additions and 7 deletions

View File

@ -2334,7 +2334,7 @@ input[type="button"].btn-block {
.list-group-item {
position: relative;
display: block;
padding: 10px 30px 10px 15px;
padding: 10px 15px;
margin-bottom: -1px;
background-color: #ffffff;
border: 1px solid #dddddd;
@ -2353,11 +2353,10 @@ input[type="button"].btn-block {
.list-group-item > .badge {
float: right;
margin-right: -15px;
}
.list-group-item > .badge + .badge {
margin-right: 0;
margin-right: 5px;
}
.list-group-item-heading {

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,7 @@
.list-group-item {
position: relative;
display: block;
padding: 10px 30px 10px 15px;
padding: 10px 15px;
// Place the border on the list items and negative margin up for better styling
margin-bottom: -1px;
background-color: @list-group-bg;
@ -35,10 +35,9 @@
// Align badges within list items
> .badge {
float: right;
margin-right: -15px;
}
> .badge + .badge {
margin-right: 0;
margin-right: 5px;
}
}