I am trying to draw a diagonal shadow on a block, this is what I want :
Draw a regular block with shadow and stick is not a problem, here is what I have done for now :
body {
background: #EDF0F4;
}
.content-block {
position: relative;
background: white;
padding: 16px;
margin: 32px;
box-shadow: -7px 8px 16px 0 rgba(55,70,95,0.07);
border-radius: 8px;
height: 200px;
}
.content-block:before {
content: '';
height: 70px;
width: 12px;
background: linear-gradient(332.97deg, #54EFAD 0%, #23FCCA 100%, #1AFFD8 100%);
position: absolute;
right: 0;
top: 0;
border-top-right-radius: 8px;
border-bottom-left-radius: 8px;
}
<div class="content-block">
</div>
I have tried to search how to draw the right border in diagonal, but without success, most of answer does not include shadow.
