mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-08 06:36:33 +02:00
simplify padding in list groups and margins on badges within
This commit is contained in:
5
dist/css/bootstrap.css
vendored
5
dist/css/bootstrap.css
vendored
@@ -2334,7 +2334,7 @@ input[type="button"].btn-block {
|
|||||||
.list-group-item {
|
.list-group-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 10px 30px 10px 15px;
|
padding: 10px 15px;
|
||||||
margin-bottom: -1px;
|
margin-bottom: -1px;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
border: 1px solid #dddddd;
|
border: 1px solid #dddddd;
|
||||||
@@ -2353,11 +2353,10 @@ input[type="button"].btn-block {
|
|||||||
|
|
||||||
.list-group-item > .badge {
|
.list-group-item > .badge {
|
||||||
float: right;
|
float: right;
|
||||||
margin-right: -15px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-group-item > .badge + .badge {
|
.list-group-item > .badge + .badge {
|
||||||
margin-right: 0;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-group-item-heading {
|
.list-group-item-heading {
|
||||||
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -17,7 +17,7 @@
|
|||||||
.list-group-item {
|
.list-group-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 10px 30px 10px 15px;
|
padding: 10px 15px;
|
||||||
// Place the border on the list items and negative margin up for better styling
|
// Place the border on the list items and negative margin up for better styling
|
||||||
margin-bottom: -1px;
|
margin-bottom: -1px;
|
||||||
background-color: @list-group-bg;
|
background-color: @list-group-bg;
|
||||||
@@ -35,10 +35,9 @@
|
|||||||
// Align badges within list items
|
// Align badges within list items
|
||||||
> .badge {
|
> .badge {
|
||||||
float: right;
|
float: right;
|
||||||
margin-right: -15px;
|
|
||||||
}
|
}
|
||||||
> .badge + .badge {
|
> .badge + .badge {
|
||||||
margin-right: 0;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user