Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
CSS3 radial dropshadow (requires compass)
// drop-shadow for bottom of element
.bottom-drop-shadow {
position:relative;
background: #fff;
&:after {
content:"";
position:absolute;
z-index:-1;
bottom: 0;
width: 90%;
height: 50%;
left: 5%;
right: 5%;
@include border-radius(100%);
@include box-shadow(rgba(0,0,0,0.4) 0 0 4.8rem);
}
}
// drop-shadow for top of element
.top-drop-shadow {
position:relative;
background: #fff;
&:before {
content:"";
position:absolute;
z-index:-1;
top: 0;
width: 90%;
height: 50%;
left: 5%;
right: 5%;
@include border-radius(100%);
@include box-shadow(rgba(0,0,0,0.4) 0 0 4.8rem);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment