How can I create a triangle with rounded vertices? Previously, I've created a square with the ::after pseudo element and rotated it, which looked like romb and then clipped it because I didn't get the expected result.
* {
box-sizing: border-box
}
.price{
width: 150px;
height: 50px;
background: #2d2d2d;
color:#fff;
align-items: center;
display: flex;
}
.icon{
font-size: 50px;
}
.items{
margin-left: 10px;
display: flex;
flex-direction: column;
height: 100%;
padding: 6px 0;
justify-content:space-between
}
<div class="price">
<span class="icon">P</span>
<div class="items">
<span class="title">Total</span>
<span class="value">6 250</span>
</div>
</div>