Skip to content

Commit

Permalink
fix: fixed border-radius of the card img
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Aug 9, 2023
1 parent 0902f62 commit 28ec098
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Card/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $card-logo-bottom-offset-horizontal: .4375rem !default;
$card-logo-width: 7.25rem !default;
$card-logo-height: 4.125rem !default;

$card-image-border-radius: .3125rem !default;
$card-image-border-radius: $card-border-radius !default;
$card-logo-border-radius: .25rem !default;

$card-footer-text-font-size: $x-small-font-size;
Expand Down
9 changes: 8 additions & 1 deletion src/Card/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ a.pgn__card {

.pgn__card {
outline: none;
overflow: hidden;
//overflow: hidden;

@include pgn-box-shadow(1, "down");

Expand Down Expand Up @@ -295,6 +295,8 @@ a.pgn__card {
object-fit: cover;
max-height: inherit;
width: 100%;
border-top-left-radius: $card-image-border-radius;
border-top-right-radius: $card-image-border-radius;
display: none;

&.show {
Expand All @@ -313,6 +315,9 @@ a.pgn__card {
.pgn__card-image-cap {
height: 100%;
max-width: inherit;
border-top-left-radius: $card-image-border-radius;
border-top-right-radius: 0;
border-bottom-left-radius: $card-image-border-radius;
width: auto;
object-fit: cover;
}
Expand Down Expand Up @@ -342,6 +347,8 @@ a.pgn__card {
height: 100%;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
}

Expand Down

0 comments on commit 28ec098

Please sign in to comment.