Skip to content

Instantly share code, notes, and snippets.

@gcyrillus
Forked from anonymous/dabblet.css
Created June 10, 2013 13:12
Show Gist options
  • Save gcyrillus/5748608 to your computer and use it in GitHub Desktop.
Save gcyrillus/5748608 to your computer and use it in GitHub Desktop.
radiant avec box-shadow et background
/* radiant avec box-shadow et background*/
div {margin:1em;text-align:center;line-height:100px;}
.button {
width: 100px; height: 100px;
padding: 8px;
border-radius: 100px;
box-shadow: 0 0.8px 8px rgba(0,0,0,.3);
background-image: radial-gradient(center, #8CE2FB 0, #52D2F8 50px, white 52px , white );/* safari ? */
background-image: radial-gradient(circle at center, #8CE2FB 0, #52D2F8 52px, white 52px , white ); /* newest */
}
.bshad {
width: 100px; height: 100px;
padding: 8px;
border-radius: 100px;
box-shadow: 0 0.8px 8px rgba(0,0,0,.3), inset 0 0 1px 8px white, inset 0 0 50px 40px #52D2F8 ;
}
<div class="button">radial-gradient</div>
<div class="bshad">box-shadow</div>
// alert('Hello world!');
{"view":"split","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