-
-
Save glorialangreo/2689831 to your computer and use it in GitHub Desktop.
Carmencita
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Carmencita | |
*/ | |
body { | |
text-align:center; | |
background:url('http://f.cl.ly/items/3l0k2J2B3N3F1H2v3L04/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: 100px 100px 50px 50px; | |
} | |
.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:10px solid; | |
border-color: transparent red; | |
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: 70px; | |
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:12px; | |
height:9px; | |
background-color:#669900; | |
border: solid #fff; | |
border-width: 7px 7px 0 7px; | |
border-radius: 20px 20px 0 0; | |
box-shadow:0 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: 0 0 40px 40px; | |
} | |
.carmen | |
.neck { | |
position: absolute; | |
z-index: 1; | |
top: 135px; | |
left: 64px; | |
width: 30px; | |
height: 25px; | |
background-color:#FEE1C5; | |
border-radius: 0 0 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: 0 solid red; | |
background-color: red; | |
border:#990000; | |
border-style: solid dotted; | |
border-width:36px 14px 0 13px; | |
border-radius: 30px 30px 0 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: solid; | |
border-width:0 40px 80px 40px; | |
border-color: #3D85B6 transparent; | |
} | |
.carmen | |
.skirt:after { | |
position:absolute; | |
z-index:6; | |
left:0; | |
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%); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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