Skip to content

Instantly share code, notes, and snippets.

@glorialangreo
Created May 14, 2012 23:30
Show Gist options
  • Save glorialangreo/2698070 to your computer and use it in GitHub Desktop.
Save glorialangreo/2698070 to your computer and use it in GitHub Desktop.
Carmencita
/**
* Carmencita
*/
body {
text-align:center;
background:url('http://subtlepatterns.com/patterns/classy_fabric.png');
}
.container {
margin:100px auto 20px auto;
height: 600px;
width:300px;
}
.carmen {position: relative;}
.carmen
.hair {
position: absolute;
z-index: 0;
left: -26px;
top: -16px;
width: 200px;
height: 141px;
background-color: black;
border-radius: 50px;
border-top-left-radius: 100px;
border-top-right-radius: 100px;
}
.carmen
.frinch {
position:absolute;
z-index: 3;
top: -5px;
width: 100px;
height: 50px;
margin-left: 20px;
background: #000;
border-radius: 40px 0;
}
.carmen
.frinch:after {
position: absolute;
z-index: 3;
top: 0px;
left: 90px;
width: 0px;
height: 0px;
border-bottom: 10px solid transparent;
border-left: 10px solid red;
border-right: 10px solid red;
border-top: 10px solid transparent;
content:"";
}
.carmen
.head {
position:absolute;
z-index:2;
width: 150px;
height:150px;
background-color:#FFEACE;
border-radius: 200px;
box-shadow:1px 2px 10px rgba(0,0,0,0.3) inset;
}
.carmen .head:before, .carmen .head:after {
position:absolute;
z-index:3;
top: 80px;
width: 30px;
height: 30px;
border-radius: 20px;
background: radial-gradient(center, ellipse cover, rgba(201,0,0,1) 0%,rgba(201,0,0,0) 40%); /* W3C */ content:"";
}
.carmen .head:before {left:30px;}
.carmen .head:after {left:95px;}
.carmen .rleg, .carmen .lleg {
position:absolute;
z-index:1;
top:305px;
width: 24px;
height:80px;
background-color:#FFEACE;
border-bottom:15px solid red;
border-radius: 50px;
box-shadow:5px 0 10px rgba(0,0,0,0.3) inset;
}
.carmen .lleg { left:55px;}
.carmen .rleg {left:85px;}
.carmen .leye, .carmen .reye {
position:absolute;
z-index:3;
top:55px;
width:14px;
height:14px;
background-color:#669900;
border: 6px solid #FFF;
border-radius: 20px;
box-shadow:0px 0 1px rgba(0,0,0,0.3);
}
.carmen .leye { left:35px;}
.carmen .reye { left:90px;}
.carmen
.mouth {
position: absolute;
z-index: 4;
top: 90px;
left: 64px;
width: 30px;
height: 20px;
background-color:red;
border-radius: 0px 0px 40px 40px;
}
.carmen
.neck {
position: absolute;
z-index: 1;
top: 135px;
left: 64px;
width: 30px;
height: 25px;
background-color:#FEE1C5;
border-radius: 0px 0px 40px 40px;
box-shadow:5px 20px 13px rgba(0,0,0,0.2) inset;
}
.carmen
.dress {
position: absolute;
z-index: 0;
top: 140px;
left: 29px;
height: 100px;
width: 75px;
border-bottom: 0px solid red;
background-color: red;
border-top: 36px solid #990000;
border-radius: 30px;
border-left: 13px dotted #990000;
border-right: 14px dotted #990000;
border-radius: 30px;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
box-shadow:5px 2px 13px rgba(0,0,0,0.2) inset;
}
.carmen
.skirt {
position: absolute;
z-index: 2;
top: 240px;
left: 3px;
height: 0px;
width: 73px;
border-bottom: 80px solid #3D85B6;
border-left: 40px solid transparent;
border-right: 40px solid transparent;
}
.carmen
.skirt:after {
position:absolute;
z-index:6;
left:0px;
height:3px;
width: 73px;
box-shadow:2px 2px 2px rgba(0,0,0,0.2) inset;
content:"";
}
.carmen
.skirt:before {
position:absolute;
z-index:6;
left:-39px;
top:78px;
width: 152px;
height:3px;
box-shadow:2px 2px 2px rgba(0,0,0,0.2) inset;
content:"";
}
.carmen
.shadow {
position:absolute;
left:-32px;
top: 383px;
width: 240px;
height: 30px;
border-radius: 20px;
background: radial-gradient(center, ellipse cover, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 65%,rgba(0,0,0,0) 100%);
}
<!-- content to be placed inside <body>…</body> -->
<div class="container">
<div class="carmen">
<div class="leye"></div>
<div class="reye"></div>
<div class="mouth"></div>
<div class="hair"></div>
<div class="frinch"></div>
<div class="head"></div>
<div class="dress"></div>
<div class="neck"></div>
<div class="skirt"></div>
<div class="lleg"></div>
<div class="rleg"></div>
<div class="shadow"></div>
</div>
</div>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment