Skip to content

Instantly share code, notes, and snippets.

@silicakes
Created April 9, 2015 23:46
Show Gist options
  • Save silicakes/5b10cc8b2792c27c9257 to your computer and use it in GitHub Desktop.
Save silicakes/5b10cc8b2792c27c9257 to your computer and use it in GitHub Desktop.
A CSS Penis!
%div{:class => "pintainer"}
%div{:class => "ball"}
%div{:class => "ball"}
@import "compass/css3";
.pintainer {
@include transition(.5s ease-in);
border: 5px solid #369;
height: 280px;
width: 100px;
position: relative;
margin: 150px auto 0;
border-bottom: 0;
border-top: 0;
&:before,
&:after {
content: "";
display: block;
position: absolute;
}
&:after {
@include border-radius(50% 50% 25% 25%);
@include transform(skew(deg, 0deg));
border: 5px solid #369;
border-bottom: 0;
width: 120px;
height: 100px;
top: -88px;
left: -15px;
}
&:before {
@include border-radius(10px);
width: 5px;
height: 15px;
top: -86px;
border: 4px solid #369;
left: 47px;
border-right: 0;
border-top: 0;
border-bottom: transparent;
}
&:hover {
@include transform(rotate(2deg) scale(1.15));
}
.ball {
@include border-radius(50%);
@include transform(skew(-10deg, 0));
width: 130px;
height: 130px;
border: 5px solid #369;
position: absolute;
bottom: -111px;
left: -75px;
background: #fff;
border-right-width: 0;
&:last-child {
@include transform(skew(10deg, 0));
left: auto;
right: -75px;
border-right-width: 5px;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment