JSFiddle - React, Tailwind, and code Playground
by Newton Anbarasu
HTML
<!-- A -->
<div class="Z"></div>
<!-- B -->
<div class="B"></div>
<!-- C -->
<div class="C"></div>
CSS
.A {
position: relative;
left: 30px;
width: 60px;
height: 91px;
border-bottom: solid 14px #000000;
}
.A:before {
-webkit-transform: skew(-19deg, 0);
-moz-transform: skew(-19deg, 0);
-ms-transform: skew(-19deg, 0);
-o-transform: skew(-19deg, 0);
transform: skew(-19deg, 0);
position: absolute;
content: '';
top: 12.5px;
left: 0;
width: 16px;
height: 125px;
background-color: #000000;
}
.A:after {
-webkit-transform: skew(19deg, 0);
-moz-transform: skew(19deg, 0);
-ms-transform: skew(19deg, 0);
-o-transform: skew(19deg, 0);
transform: skew(19deg, 0);
position: absolute;
content: '';
top: 12.5px;
left: 45px;
width: 16px;
height: 125px;
background-color: #000000;
}
.B {
position: relative;
top: 12.5px;
left: 10px;
width: 60px;
height: 125px;
border-left: solid 16px #000000;
}
.B:before {
position: absolute;
content: '';
width: 52px;
height: 39px;
border-width: 15px 15px 10px 0;
border-color: #000000;
border-style: solid;
-webkit-border-radius: 0 240% 180% 0 / 0 180% 180% 0;
-moz-border-radius: 0 240% 180% 0 / 0 180% 180% 0;
-ms-border-radius: 0 240% 180% 0 / 0 180% 180% 0;
-o-border-radius: 0 240% 180% 0 / 0 180% 180% 0;
border-radius: 0 240% 180% 0 / 0 180% 180% 0;
}
.B:after {
position: absolute;
content: '';
bottom: 0;
width: 58px;
height: 43px;
border-width: 10px 15px 15px 0;
border-color: #000000;
border-style: solid;
-webkit-border-radius: 0 180% 220% 0 / 0 180% 180% 0;
-moz-border-radius: 0 180% 220% 0 / 0 180% 180% 0;
-ms-border-radius: 0 180% 220% 0 / 0 180% 180% 0;
-o-border-radius: 0 180% 220% 0 / 0 180% 180% 0;
border-radius: 0 180% 220% 0 / 0 180% 180% 0;
}
.C {
position: relative;
top: 12.5px;
left: 10px;
width: 84px;
height: 95px;
border-width: 15px 12px 15px 16px;
border-color: #000000;
border-style: solid;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
...