mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 18:40:03 +00:00
Fixes #12625: Only remove first list group item's top and last list group item's bottom borders when the list group is first or last
This commit is contained in:
parent
13b4e7a1a8
commit
44bb7b20c7
8
dist/css/bootstrap.css
vendored
8
dist/css/bootstrap.css
vendored
@ -4796,17 +4796,13 @@ a.list-group-item-danger.active:focus {
|
|||||||
border-width: 1px 0;
|
border-width: 1px 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
.panel > .list-group .list-group-item:first-child {
|
|
||||||
border-top: 0;
|
|
||||||
}
|
|
||||||
.panel > .list-group .list-group-item:last-child {
|
|
||||||
border-bottom: 0;
|
|
||||||
}
|
|
||||||
.panel > .list-group:first-child .list-group-item:first-child {
|
.panel > .list-group:first-child .list-group-item:first-child {
|
||||||
|
border-top: 0;
|
||||||
border-top-left-radius: 3px;
|
border-top-left-radius: 3px;
|
||||||
border-top-right-radius: 3px;
|
border-top-right-radius: 3px;
|
||||||
}
|
}
|
||||||
.panel > .list-group:last-child .list-group-item:last-child {
|
.panel > .list-group:last-child .list-group-item:last-child {
|
||||||
|
border-bottom: 0;
|
||||||
border-bottom-right-radius: 3px;
|
border-bottom-right-radius: 3px;
|
||||||
border-bottom-left-radius: 3px;
|
border-bottom-left-radius: 3px;
|
||||||
}
|
}
|
||||||
|
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
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
2
docs/dist/css/bootstrap.css.map
vendored
2
docs/dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap.min.css
vendored
2
docs/dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@ -58,25 +58,23 @@
|
|||||||
.panel {
|
.panel {
|
||||||
> .list-group {
|
> .list-group {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
||||||
.list-group-item {
|
.list-group-item {
|
||||||
border-width: 1px 0;
|
border-width: 1px 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
&:first-child {
|
|
||||||
border-top: 0;
|
|
||||||
}
|
|
||||||
&:last-child {
|
|
||||||
border-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add border top radius for first one
|
// Add border top radius for first one
|
||||||
&:first-child {
|
&:first-child {
|
||||||
.list-group-item:first-child {
|
.list-group-item:first-child {
|
||||||
|
border-top: 0;
|
||||||
.border-top-radius((@panel-border-radius - 1));
|
.border-top-radius((@panel-border-radius - 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Add border bottom radius for last one
|
// Add border bottom radius for last one
|
||||||
&:last-child {
|
&:last-child {
|
||||||
.list-group-item:last-child {
|
.list-group-item:last-child {
|
||||||
|
border-bottom: 0;
|
||||||
.border-bottom-radius((@panel-border-radius - 1));
|
.border-bottom-radius((@panel-border-radius - 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -104,7 +102,7 @@
|
|||||||
> .table:first-child,
|
> .table:first-child,
|
||||||
> .table-responsive:first-child > .table:first-child {
|
> .table-responsive:first-child > .table:first-child {
|
||||||
.border-top-radius((@panel-border-radius - 1));
|
.border-top-radius((@panel-border-radius - 1));
|
||||||
|
|
||||||
> thead:first-child,
|
> thead:first-child,
|
||||||
> tbody:first-child {
|
> tbody:first-child {
|
||||||
> tr:first-child {
|
> tr:first-child {
|
||||||
@ -123,7 +121,7 @@
|
|||||||
> .table:last-child,
|
> .table:last-child,
|
||||||
> .table-responsive:last-child > .table:last-child {
|
> .table-responsive:last-child > .table:last-child {
|
||||||
.border-bottom-radius((@panel-border-radius - 1));
|
.border-bottom-radius((@panel-border-radius - 1));
|
||||||
|
|
||||||
> tbody:last-child,
|
> tbody:last-child,
|
||||||
> tfoot:last-child {
|
> tfoot:last-child {
|
||||||
> tr:last-child {
|
> tr:last-child {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user