<body>
<div class="box-canvas">
<div class="tshirt"></div>
<div class="dungarees">
<div class="arm left"></div>
</div>
<div class="hair-back"></div>
<div class="neck"></div>
<div class="head">
<div class="eye left"></div>
<div class="eye right"></div>
<div class="nose"></div>
<div class="mouth"></div>
</div>
<div class="hair top-left"></div>
<div class="hair top-right"></div>
</div>
</body>
:root {
--skin-color: #FFD2BA;
--hair-color: #564440;
--glasses-color-light: #8D6A60;
--glasses-color-dark: #28231E;
--eye-color: #69726C;
--lip-color: #C97480;
--lip-color-dark: #8E4B54;
}
body{
background: #C39EC3;
}
.box-canvas{
position: relative;
margin: auto;
display: block;
margin-top: 8%;
margin-bottom: 8%;
}
.box-canvas::before {
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 20px;
width: 200px;
height: 200px;
border: 10px solid #8947AA;
border-radius: 50%;
background: linear-gradient(to top,
transparent,
transparent 80px,
#C39EC3 80px,
#C39EC3
), linear-gradient(to right,
transparent,
transparent 40px,
var(--skin-color) 40px,
var(--skin-color) 60px,
transparent 60px,
transparent 140px,
var(--skin-color) 140px,
var(--skin-color) 160px,
transparent 160px,
transparent
)
;
}
.box-canvas::after {
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 20px;
width: 200px;
height:200px;
border: 10px solid #8947AA;
border-radius: 50%;
border-top-color: transparent;
}
.head {
position: absolute;
top: 20px;
left: 50%;
transform: translateX(-50%);
background: var(--skin-color);
width: 75px;
height: 100px;
border-radius: 30% 30% 50% 50%;
border-bottom: 2px solid #EAC1AD;
}
.neck {
position: absolute;
left: 50%;
transform: translateX(-50%);
background: var(--skin-color);
top: 100px;
width: 40px;
height: 40px;
border-radius: 0 0 50% 50%;
clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}
.nose {
position: absolute;
left: 52%;
top: 47%;
transform: translate(-50%, -50%) skew(-10deg, -10deg);
height: 30px;
width: 15px;
border-radius: 50% 50% 40% 30%;
box-shadow: -2px 2px 0 var(--hair-color);
}
.mouth {
position: absolute;
left: 50%;
transform: translateX(-45%) rotate(-10deg);
bottom: 18px;
width: 30px;
height: 15px;
box-shadow: 0 3px 0 var(--lip-color);
border-radius: 50%;
}
.eye {
position: absolute;
width: 20px;
height: 15px;
background: white;
border-radius: 50%;
top: 25px;
border-top: 1px solid black;
}
.eye.left {
left: 10px;
}
.eye.right {
right: 10px;
}
.eye::before {
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 8px;
height: 8px;
background: black;
border-radius: 50%;
border: 3px solid var(--eye-color);
}
.eye::after {
content: '';
right: 7px;
bottom: 5px;
position: absolute;
width: 3px;
height: 3px;
background: white;
border-radius: 50%;
}
.hair {
position: absolute;
background: var(--hair-color);
}
.hair.top-left {
top: 8px;
width: 25px;
height: 85px;
border-radius: 50%;
left: calc(50% - 30px);
transform: rotate(40deg) translateX(-50%);
}
.hair.top-right {
top: 8px;
width: 15px;
height: 65px;
border-radius: 50%;
right: calc(50% - 30px);
transform: rotate(-40deg) translateX(50%);
}
.top-left::before {
content: '';
position: absolute;
background: var(--hair-color);
width: 27px;
height: 50px;
border-radius: 50%;
left: 10px;
top: 50px;
}
.top-left::after {
content: '';
position: absolute;
background: var(--hair-color);
width: 27px;
height: 50px;
border-radius: 50%;
top: 70px;
left: 20px;
}
.hair-back {
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 100px;
height: 115px;
background: var(--hair-color);
border-radius: 50% 50% 10% 10%;
}
.hair-back::before {
content: '';
position: absolute;
right: -3px;
top: 40px;
width: 20px;
height: 40px;
background: var(--hair-color);
border-radius: 50%;
}
.hair-back::after {
content: '';
position: absolute;
right: -3px;
top: 60px;
width: 20px;
height: 40px;
background: var(--hair-color);
border-radius: 50%;
}
.tshirt {
position: absolute;
top: 130px;
width: 76px;
left: 50%;
transform: translateX(-100%) skew(-10deg, -10deg);
height: 65px;
background: white;
background: linear-gradient(to top, #C39EC3, white);
background: white;
border-radius: 30% 0 0 0;
}
.tshirt::before {
content: '';
position: absolute;
width: 76px;
left: 75px;
top: 12px;
transform: skew(20deg, 20deg);
height: 65px;
background: linear-gradient(to top, #C39EC3, white);
background: white;
border-radius: 0 30% 0 0;
}
.dungarees {
position: absolute;
width: 85px;
height: 80px;
background: linear-gradient(to top, #C39EC3, #333642);
background: #333642;
left: 50%;
transform: translateX(-50%);
top: 150px;
}
.dungarees::before {
content: '';
position: absolute;
width: 15px;
height: 35px;
background: #333642;
top: -22px;
border-radius: 10% 10% 0 0;
}
.dungarees::after {
content: '';
position: absolute;
right: 0;
width: 15px;
height: 35px;
background: #333642;
top: -22px;
border-radius: 10% 10% 0 0;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.