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 954063f
Show file tree
Hide file tree
Showing 2 changed files with 6 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
6 changes: 5 additions & 1 deletion src/Card/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ a.pgn__card {

.pgn__card {
outline: none;
overflow: hidden;

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

Expand Down Expand Up @@ -295,6 +294,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 +314,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

0 comments on commit 954063f

Please sign in to comment.