Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify card group css #27901

Merged
merged 2 commits into from Dec 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 2 additions & 26 deletions scss/_card.scss
Expand Up @@ -195,7 +195,7 @@

// Handle rounded corners
@if $enable-rounded {
&:first-child {
&:not(:last-child) {
@include border-right-radius(0);

.card-img-top,
Expand All @@ -210,7 +210,7 @@
}
}

&:last-child {
&:not(:first-child) {
@include border-left-radius(0);

.card-img-top,
Expand All @@ -224,30 +224,6 @@
border-bottom-left-radius: 0;
}
}

&:only-child {
@include border-radius($card-border-radius);

.card-img-top,
.card-header {
@include border-top-radius($card-border-radius);
}
.card-img-bottom,
.card-footer {
@include border-bottom-radius($card-border-radius);
}
}

&:not(:first-child):not(:last-child):not(:only-child) {
@include border-radius(0);

.card-img-top,
.card-img-bottom,
.card-header,
.card-footer {
@include border-radius(0);
}
}
}
}
}
Expand Down