A Pen by Carolyn Cochran on CodePen.
Created
March 16, 2017 20:19
-
-
Save cochrancj/025fad6b35dd50e4d9646ecd11a7483c to your computer and use it in GitHub Desktop.
#dailycssimages 44 - Mascot Robot
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
<div class="container"> | |
<div class="robot"> | |
<div class="head"> | |
<div class="antenna"> | |
<div class="stick"></div> | |
<div class="ball"></div> | |
<div class="connector"></div> | |
</div> | |
<div class="face"> | |
<div class="left-eye"></div> | |
<div class="right-eye"></div> | |
</div> | |
<div class="left-ear"></div> | |
<div class="right-ear"></div> | |
</div> | |
<div class="body"> | |
<div class="logoplate"></div> | |
<div class="butt"></div> | |
<div class="bumper"></div> | |
</div> | |
<div class="left-arm"> | |
<div class="shoulder"></div> | |
<div class="arm"></div> | |
</div> | |
<div class="right-arm"> | |
<div class="shoulder"></div> | |
<div class="arm"></div> | |
</div> | |
<div class="left-leg"></div> | |
<div class="right-leg"></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
// Source: https://static.turbosquid.com/Preview/2014/07/05__09_05_30/top%20pic.png0bf18264-201c-4576-a5ed-b78df2b1b2ceOriginal.jpg |
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
* { | |
box-sizing: border-box; | |
} | |
body { | |
background-color: gainsboro; | |
} | |
.container { | |
width: 40em; | |
height: 40em; | |
margin: 0 auto; | |
} | |
.robot { | |
width: 25em; | |
height: 35em; | |
margin: 2em auto; | |
position: relative; | |
} | |
.head { | |
position: absolute; | |
width: 12em; | |
height: 10em; | |
background-color: snow; | |
border-radius: 50%; | |
margin: 2em 6em; | |
} | |
.face { | |
position: relative; | |
width: 8em; | |
height: 6em; | |
background-color: snow; | |
border-radius: 100%; | |
border: 0.3em solid blue; | |
left: 2em; | |
top: 2em; | |
} | |
.left-eye { | |
position: absolute; | |
width: 2em; | |
height: 2.5em; | |
background-color: black; | |
border-radius: 50%; | |
border: 0.2em solid blue; | |
left: 1em; | |
top: 1.5em; | |
} | |
.right-eye { | |
position: absolute; | |
width: 2em; | |
height: 2.5em; | |
background-color: black; | |
border-radius: 50%; | |
border: 0.2em solid blue; | |
left: 4.5em; | |
top: 1.5em; | |
} | |
.left-ear { | |
width: 3em; | |
height: 4em; | |
border-radius: 50%; | |
background-color: snow; | |
border: 0.3em solid blue; | |
z-index: -1; | |
position: absolute; | |
left: -0.7em; | |
top: 3em; | |
} | |
.right-ear { | |
width: 3em; | |
height: 4em; | |
border-radius: 50%; | |
background-color: snow; | |
border: 0.3em solid blue; | |
z-index: -1; | |
position: absolute; | |
left: 9.7em; | |
top: 3em; | |
} | |
.antenna { | |
position: absolute; | |
left: 1em; | |
top: -1em; | |
z-index: -1; | |
} | |
.stick { | |
position: relative; | |
width: 0.5em; | |
height: 3em; | |
background-color: snow; | |
border: 0.2em solid blue; | |
} | |
.ball { | |
width: 1em; | |
height: 1em; | |
background-color: snow; | |
border: 0.2em solid blue; | |
border-radius: 50%; | |
position: relative; | |
top: -3.2em; | |
left: -0.2em; | |
} | |
.connector { | |
width: 0; | |
height: 0; | |
border-top: 2em solid blue; | |
border-right: 2em solid transparent; | |
position: relative; | |
top: -1.8em; | |
left: -0.2em; | |
} | |
.body { | |
position: absolute; | |
width: 11em; | |
height: 12em; | |
background-color: blue; | |
border-radius: 50%; | |
top: 11.5em; | |
left: 6.5em; | |
z-index: -1; | |
} | |
.logoplate { | |
position: relative; | |
width: 7em; | |
height: 7em; | |
background-color: snow; | |
border-radius: 50%; | |
left: 2em; | |
top: 2em; | |
} | |
.butt { | |
position: relative; | |
width: 10.5em; | |
height: 10.5em; | |
border-radius: 50%; | |
box-shadow: 2.5em 2.5em 0 0 snow; | |
transform: rotate(40deg); | |
top: -5.5em; | |
left: 0.3em; | |
} | |
.bumper { | |
position: relative; | |
width: 5em; | |
height: 5em; | |
border-radius: 50%; | |
box-shadow: 2.5em 2.5em 0 0 blue; | |
transform: rotate(40deg); | |
top: -10em; | |
left: 3em; | |
z-index: -1; | |
} | |
.shoulder { | |
width: 2em; | |
height: 3em; | |
background-color: blue; | |
border-radius: 50%; | |
position: relative; | |
} | |
.arm { | |
width: 1em; | |
height: 5em; | |
border-radius: 40%; | |
background-color: snow; | |
position: relative; | |
z-index: -1; | |
} | |
.left-arm { | |
position: absolute; | |
top: 13em; | |
left: 5.5em; | |
} | |
.left-arm .shoulder { | |
transform: rotate(20deg); | |
} | |
.left-arm .arm { | |
left: -0em; | |
top: -0.3em; | |
} | |
.right-arm { | |
position: absolute; | |
top: 13em; | |
left: 16.5em; | |
} | |
.right-arm .shoulder { | |
transform: rotate(-20deg); | |
} | |
.right-arm .arm { | |
left: 1em; | |
top: -0.3em; | |
} | |
.left-leg { | |
width: 4em; | |
height: 3em; | |
-webkit-transform: skew(-30deg); | |
-moz-transform: skew(-30deg); | |
-o-transform: skew(-30deg); | |
background: blue; | |
top: 25em; | |
left: 5em; | |
position: absolute; | |
} | |
.right-leg { | |
width: 4em; | |
height: 3em; | |
-webkit-transform: skew(30deg); | |
-moz-transform: skew(30deg); | |
-o-transform: skew(30deg); | |
background: blue; | |
top: 25em; | |
left: 15em; | |
position: absolute; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment