fix: tune card badge position to 25% of bevel-md for responsive corner clipping
This commit is contained in:
@@ -580,13 +580,12 @@
|
|||||||
|
|
||||||
/* Card-level badge slot — positioned so the card's bevel clip-path
|
/* Card-level badge slot — positioned so the card's bevel clip-path
|
||||||
clips the badge's bottom-right corner at 45 degrees.
|
clips the badge's bottom-right corner at 45 degrees.
|
||||||
bottom/right: 3px aligns with the inner frame border edge.
|
Values tuned so the badge is mostly visible with just the corner clipped. */
|
||||||
The badge extends into the bevel zone and gets clipped. */
|
|
||||||
.card > .dt-card-badge,
|
.card > .dt-card-badge,
|
||||||
.dt-bevel-card > .dt-card-badge {
|
.dt-bevel-card > .dt-card-badge {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 3px;
|
bottom: calc(var(--bevel-md) * 0.25);
|
||||||
right: 3px;
|
right: calc(var(--bevel-md) * 0.25);
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user