Skip to content

Commit

Permalink
feat: dynamic card radius
Browse files Browse the repository at this point in the history
Signed-off-by: hxtree <[email protected]>
  • Loading branch information
hxtree committed Apr 4, 2024
1 parent c84dcf7 commit 4640bf2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions clients/design-system/src/components/Card/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ $card-color-primary: $color-primary;
$card-color-secondary: $color-secondary;
$card-color-tertiary: $color-tertiary;
$card-call-out-offset: 16px;
$card-radius: 2.25rem;

@keyframes shimmer {
0% {
Expand All @@ -17,7 +18,7 @@ $card-call-out-offset: 16px;
}

.card {
border-radius: 1rem !important;
border-radius: $card-radius !important;
transition: box-shadow 0.5s ease;

.card-thumbnail {
Expand All @@ -27,8 +28,8 @@ $card-call-out-offset: 16px;
.card-img-top-wrapper {
overflow: hidden;
height: 180px;
border-top-left-radius: 1rem;
border-top-right-radius: 1rem;
border-top-left-radius: $card-radius;
border-top-right-radius: $card-radius;

.card-img-top {
height: 180px;
Expand Down

0 comments on commit 4640bf2

Please sign in to comment.