Skip to content

Commit

Permalink
Card with bottom tabs has incorrect border radius
Browse files Browse the repository at this point in the history
fix: #1010
  • Loading branch information
codecalm committed Feb 3, 2022
1 parent 01b1c48 commit 946077a
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions src/scss/ui/_cards.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.card {
--#{$variable-prefix}card-border-radius: #{$card-border-radius};
box-shadow: $card-shadow;
border: $card-border-width solid $card-border-color;
background: var(--#{$variable-prefix}card-bg, #{$card-bg});
border-radius: var(--#{$variable-prefix}card-border-radius);
@include transition(transform $transition-time ease-out, opacity $transition-time ease-out, box-shadow $transition-time ease-out);

@media print {
Expand Down Expand Up @@ -154,7 +156,7 @@
content: "";
background: $card-bg;
border: 1px solid $card-border-color;
border-radius: $card-border-radius $card-border-radius 0 0;
border-radius: var(--#{$variable-prefix}card-border-radius) var(--#{$variable-prefix}card-border-radius) 0 0;
}
}

Expand Down Expand Up @@ -200,6 +202,10 @@
display: flex;
align-items: center;
background: transparent;

&:first-child {
border-radius: var(--#{$variable-prefix}card-border-radius) var(--#{$variable-prefix}card-border-radius) 0 0;
}
}

.card-header-light {
Expand Down Expand Up @@ -251,6 +257,10 @@
// Card footer
.card-footer {
margin-top: auto;

&:last-child {
border-radius: 0 0 var(--#{$variable-prefix}card-border-radius) var(--#{$variable-prefix}card-border-radius);
}
}

.card-footer-transparent {
Expand Down Expand Up @@ -374,7 +384,7 @@ Card status
right: 0;
left: 0;
height: $card-status-size;
border-radius: $card-border-radius $card-border-radius 0 0;
border-radius: var(--#{$variable-prefix}card-border-radius) var(--#{$variable-prefix}card-border-radius) 0 0;
}

.card-status-start {
Expand All @@ -383,7 +393,7 @@ Card status
bottom: 0;
width: $card-status-size;
height: 100%;
border-radius: $card-border-radius 0 0 $card-border-radius;
border-radius: var(--#{$variable-prefix}card-border-radius) 0 0 var(--#{$variable-prefix}card-border-radius);
}

.card-status-bottom {
Expand All @@ -392,7 +402,7 @@ Card status
bottom: 0;
width: 100%;
height: $card-status-size;
border-radius: 0 0 $card-border-radius $card-border-radius;
border-radius: 0 0 var(--#{$variable-prefix}card-border-radius) var(--#{$variable-prefix}card-border-radius);
}

/**
Expand Down Expand Up @@ -511,7 +521,6 @@ Card list group

// Card tabs
.card-tabs {

.nav-tabs {
position: relative;
z-index: $zindex-dropdown;
Expand Down Expand Up @@ -580,7 +589,11 @@ Card list group
}

.card {
margin: 0;
border-bottom-left-radius: 0;
}

.nav-tabs + .tab-content .card {
border-bottom-left-radius: var(--#{$variable-prefix}card-border-radius);
border-top-left-radius: 0;
}
}

0 comments on commit 946077a

Please sign in to comment.