Created
February 1, 2013 18:02
-
-
Save iign/4692953 to your computer and use it in GitHub Desktop.
Z
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
/** | |
* Z | |
*/ | |
body{ | |
margin: 50px | |
} | |
.cover { | |
position: relative; | |
background: transparent; | |
height: 300px; | |
width: 300px; | |
border: 1px solid #f3f3f3; | |
overflow:hidden; | |
/* Gradient */ | |
background: #fcdb35; /* Old browsers */ | |
background: -moz-linear-gradient(top, #ffe500 1%, #ff2828 39%, #ab7be5 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#ffe500), color-stop(39%,#ff2828), color-stop(100%,#ab7be5)); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(top, #ffe5001%,#ff2828 39%,#ab7be5 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(top, #ffe500 1%,#ff2828 39%,#ab7be5 100%); /* Opera 11.10+ */ | |
background: -ms-linear-gradient(top, #ffe500 1%,#ff2828 39%,#ab7be5 100%); /* IE10+ */ | |
background: linear-gradient(to bottom, #ffe500 1%,#ff2828 39%,#ab7be5 100%); /* W3C */ | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcdb35', endColorstr='#ab7be5',GradientType=0 ); /* IE6-9 */ | |
} | |
.cover:after { | |
-webkit-transform: matrix(1, 0, 0, 2, 0, 0); | |
-o-transform: matrix(1, 0, 0, 2, 0, 0); | |
transform: matrix(1, 0, 0, 2, 0, 0); | |
border-color: rgba(23, 80, 213, 0); | |
border: solid transparent; | |
content: " "; | |
height: 0; | |
width: 0; | |
position: absolute; | |
pointer-events: none; | |
border-bottom-color: #1750d5; | |
border-width: 299px; | |
left: 50%; | |
margin-left: -299px; | |
bottom: 0 | |
} | |
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
<body> | |
<div class="cover"></div> | |
</body> |
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":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment