Created
December 14, 2012 17:17
-
-
Save ideefixe/4287084 to your computer and use it in GitHub Desktop.
Inset Button Style
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
/** | |
* Inset Button Style | |
* | |
*/ | |
.box h3{ | |
text-align:center; | |
position:relative; | |
top:80px; | |
} | |
.box { | |
width:70%; | |
height:200px; | |
background:#adaeae; | |
margin:40px auto; | |
} | |
/*================================================== | |
* Effect 6 | |
* ===============================================*/ | |
.effect6 | |
{ | |
position:relative; | |
border:1px solid rgba(0, 0, 0, .2); | |
box-shadow:-3px -3px 30px rgba(0,0,0,0.3) inset; | |
} | |
.effect6:before, .effect6:after | |
{ | |
content:""; | |
position:absolute; | |
z-index:-1; | |
top:50%; | |
bottom:0; | |
left:20px; | |
right:20px; | |
-moz-border-radius:100px / 30px; | |
border-radius:100px / 30px; | |
} | |
.effect6:after | |
{ | |
right:10px; | |
left:auto; | |
-webkit-transform:skew(8deg) rotate(3deg); | |
-moz-transform:skew(8deg) rotate(3deg); | |
-ms-transform:skew(8deg) rotate(3deg); | |
-o-transform:skew(8deg) rotate(3deg); | |
transform:skew(8deg) rotate(3deg); | |
} |
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="box effect6"> | |
<h3>Add to Cart</h3> | |
</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
// alert('Hello world!'); |
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","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment