diff options
| author | Mark Otto <[email protected]> | 2020-05-14 10:48:46 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-14 19:48:46 +0200 |
| commit | 12a6576f48bca3ac563e3690fabcfe180cfc2da2 (patch) | |
| tree | db9615425c2f7259663684348033ba905adf0c15 /scss | |
| parent | 46d876314b37e1ada096f259f74cf0c54dcd8618 (diff) | |
| download | bootstrap-12a6576f48bca3ac563e3690fabcfe180cfc2da2.tar.xz bootstrap-12a6576f48bca3ac563e3690fabcfe180cfc2da2.zip | |
Simplify list-group borders in cards (#30808)
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/_card.scss | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/scss/_card.scss b/scss/_card.scss index 230ab113a..a2407c8b0 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -33,6 +33,13 @@ @include border-bottom-radius($card-inner-border-radius); } } + + // Due to specificity of the above selector (`.card > .list-group`), we must + // use a child selector here to prevent double borders. + > .card-header + .list-group, + > .list-group + .card-footer { + border-top: 0; + } } .card-body { @@ -80,12 +87,6 @@ &:first-child { @include border-radius($card-inner-border-radius $card-inner-border-radius 0 0); } - - + .list-group { - .list-group-item:first-child { - border-top: 0; - } - } } .card-footer { |
