Created
July 19, 2012 13:11
-
-
Save tkafka/3143805 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body { | |
background: navy; | |
} | |
.btn, .btnOld { | |
display: inline-block; | |
margin: 1em; | |
} | |
.btn { | |
width: 190px; | |
height: 45px; | |
opacity: .91; | |
-moz-border-radius: 2px /*from vector shape*/; | |
-webkit-border-radius: 2px /*from vector shape*/; | |
border-radius: 2px /*from vector shape*/; | |
-moz-background-clip: padding; | |
-webkit-background-clip: padding-box; | |
background-clip: padding-box /*prevents bg color from leaking outside the border*/; | |
-moz-box-shadow: | |
0 2px 2px 0 rgba(0,0,0,.36) /*drop shadow*/, | |
0 0 73px 0 rgba(0,0,0,.75) /*outer glow*/, | |
inset 0 1px 1px 0 rgba(255,255,255,.91) /*inner shadow*/, | |
0 0 0 1px rgba(33,116,151,.81) /*outer stroke*/; | |
-webkit-box-shadow: | |
0 2px 2px 0 rgba(0,0,0,.36) /*drop shadow*/, | |
0 0 73px 0 rgba(0,0,0,.75) /*outer glow*/, | |
inset 0 1px 1px 0 rgba(255,255,255,.91) /*inner shadow*/, | |
0 0 0 1px rgba(33,116,151,.81) /*outer stroke*/; | |
box-shadow: | |
0 2px 2px 0 rgba(0,0,0,.36) /*drop shadow*/, | |
0 0 73px 0 rgba(0,0,0,.75) /*outer glow*/, | |
inset 0 1px 1px 0 rgba(255,255,255,.91) /*inner shadow*/, | |
0 0 0 1px rgba(33,116,151,.81) /*outer stroke*/; | |
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDE5MCA0NSIgcHJlc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00 100%) /*gradient overlay*/, | |
-moz-linear-gradient(287.35deg, #c7d7db -23%, #c7d7db 123%) /*layer fill content*/; | |
background: | |
-o-linear-gradient(82deg, rgba(255,0,0,.23) 0%, #f00 100%) /*gradient overlay*/, | |
-o-linear-gradient(287.35deg, #c7d7db -23%, #c7d7db 123%) /*layer fill content*/; | |
background: | |
-webkit-linear-gradient(82deg, rgba(255,0,0,.23) 0%, #f00 100%) /*gradient overlay*/, | |
-webkit-linear-gradient(287.35deg, #c7d7db -23%, #c7d7db 123%) /*layer fill content*/; | |
background: | |
linear-gradient(82deg, rgba(255,0,0,.23) 0%, #f00 100%) /*gradient overlay*/, | |
linear-gradient(287.35deg, #c7d7db -23%, #c7d7db 123%) /*layer fill content*/; | |
} | |
.btnOld { | |
width: 190px; | |
height: 45px; | |
opacity: .91; /* layer alpha */ | |
-moz-border-radius: 2px; /* from vector shape */ | |
-webkit-border-radius: 2px; /* from vector shape */ | |
border-radius: 2px; /* from vector shape */ | |
-moz-background-clip: padding; | |
-webkit-background-clip: padding-box; | |
background-clip: padding-box; /* prevents bg color from leaking outside the border */ | |
-moz-box-shadow: | |
0 2px 2px rgba(0,0,0,.36) /* drop shadow */, | |
inset 0 1px 1px rgba(255,255,255,.91) /* inner shadow */, | |
0 0 67.89px 5.11px rgba(0,0,0,.75) /* outer glow */, | |
0 0 0 1px rgba(33,116,151,.81) /* outer stroke */; | |
-webkit-box-shadow: | |
0 2px 2px rgba(0,0,0,.36) /* drop shadow */, | |
inset 0 1px 1px rgba(255,255,255,.91) /* inner shadow */, | |
0 0 67.89px 5.11px rgba(0,0,0,.75) /* outer glow */, | |
0 0 0 1px rgba(33,116,151,.81) /* outer stroke */; | |
box-shadow: | |
0 2px 2px rgba(0,0,0,.36) /* drop shadow */, | |
inset 0 1px 1px rgba(255,255,255,.91) /* inner shadow */, | |
0 0 67.89px 5.11px rgba(0,0,0,.75) /* outer glow */, | |
0 0 0 1px rgba(33,116,151,.81) /* outer stroke */; | |
background-image: url(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ybCgjaGF0MCkiIC8+CjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxOTAiIGhlaWdodD0iNDUiIGZpbGw9InVybCgjaGF0MSkiIC8+Cjwvc3ZnPg==); /* layer fill content */ | |
background-image: | |
-moz-linear-gradient(82deg, rgba(255,0,0,.23) 0%, #f00 100%) /* gradient overlay */, | |
-moz-linear-gradient(287.35deg, #c7d7db -23%, #c7d7db 123%) /* layer fill content */; | |
background-image: | |
-o-linear-gradient(82deg, rgba(255,0,0,.23) 0%, #f00 100%) /* gradient overlay */, | |
-o-linear-gradient(287.35deg, #c7d7db -23%, #c7d7db 123%) /* layer fill content */; | |
background-image: | |
-webkit-linear-gradient(82deg, rgba(255,0,0,.23) 0%, #f00 100%) /* gradient overlay */, | |
-webkit-linear-gradient(287.35deg, #c7d7db -23%, #c7d7db 123%) /* layer fill content */; | |
background-image: | |
linear-gradient(82deg, rgba(255,0,0,.23) 0%, #f00 100%) /* gradient overlay */, | |
linear-gradient(287.35deg, #c7d7db -23%, #c7d7db 123%) /* layer fill content */; | |
} |
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="btn">Hi there!</div><div class="btnOld">Hi there!</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
{"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