JSFiddle - React, Tailwind, and code Playground
by jessikwa
HTML
<div class="squiggles">
<span class="squiggle"></span>
<span class="squiggle"></span>
<span class="squiggle"></span>
<span class="squiggle"></span>
<span class="squiggle"></span>
<span class="squiggle"></span>
</div>
<div class="outerFace">
<div class="face">
<div class="eye lefteye"></div>
<div class="eye righteye"></div>
<div class="mouth"></div>
<div class="tongue"></div>
</div>
</div>
SCSS
.squiggles {
width: 300px;
padding: 0 15px;
text-align: center; }
.squiggle {
display:inline-block;
padding: 0 8px;
color: #f1a043;
font-weight: 900;
font-size: 51px;
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
transform: rotate(90deg); }
.squiggle:after {
content: "~"; }
.outerFace {
display: inline-block;
border: 5px solid #f1a043;
padding: 15px 15px 45px 15px;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
border-radius: 8px; }
.face {
width: 300px;
height: 200px;
display: block;
position: relative;
-moz-border-radius: 1px;
-webkit-border-radius: 1px;
border-radius: 1px;
background-color: #f09b3a;
background-image: -moz-linear-gradient(top, #f1a043 0%, #f09b3a 100%);
/* FF3.6+ */
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f1a043), color-stop(100%, #f09b3a));
/* Chrome,Safari4+ */
background-image: -webkit-linear-gradient(top, #f1a043 0%, #f09b3a 100%);
/* Chrome10+,Safari5.1+ */
background-image: -o-linear-gradient(top, #f1a043 0%, #f09b3a 100%);
/* Opera 11.10+ */
background-image: -ms-linear-gradient(top, #f1a043 0%, #f09b3a 100%);
/* IE10+ */
background-image: linear-gradient(to bottom, #f1a043 0%, #f09b3a 100%);
/* W3C */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#f1a043, endColorstr=#f09b3a, GradientType=0);
/* IE6-9 */
-webkit-box-shadow: 0px -14px -14px #ed8814 inset;
-moz-box-shadow: 0px -14px -14px #ed8814 inset;
-ms-box-shadow: 0px -14px -14px #ed8814 inset;
-o-box-shadow: 0px -14px -14px #ed8814 inset;
box-shadow: 0px -14px -14px #ed8814 inset; }
.lefteye {
left: 70px; }
.righteye {
right: 70px; }
.eye {
width: 70px;
height: 70px;
position: absolute; }
.eye:before, .eye:after {
content: '';
position: absolute;
width: 60px;
height: 10px;
background-color: white;
...