This file contains hidden or 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
function cc_mime_types( $mimes ){ | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} | |
add_filter( 'upload_mimes', 'cc_mime_types' ); |
This file contains hidden or 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
@mixin filter($value) { | |
-webkit-filter: $value; | |
-moz-filter: $value; | |
-o-filter: $value; | |
filter: $value; | |
} |
This file contains hidden or 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
/* HTML | |
<button onclick="rerun();">Again!</button> | |
<div id="myobj" width="100%" height="100%"> | |
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | |
viewBox="0 0 152.5 63.5" enable-background="new 0 0 152.5 63.5" xml:space="preserve"> | |
<path id="i0" fill="none" stroke="#000000" d="M22.057,5.69c2.4,0,4.596,0.354,6.588,1.062s3.696,1.71,5.112,3.006 | |
c1.416,1.296,2.52,2.856,3.312,4.68c0.792,1.824,1.188,3.852,1.188,6.084c0,1.92-0.282,3.696-0.846,5.328 | |
c-0.564,1.632-1.32,3.192-2.268,4.68c-0.948,1.488-2.058,2.928-3.33,4.32c-1.272,1.393-2.604,2.808-3.996,4.248L16.081,51.086 |
This file contains hidden or 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
<svg width="96" height="96"> | |
<image xlink:href="svg.svg" src="svg.png" width="96" height="96"/> | |
</svg> |
This file contains hidden or 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
/* HTML | |
<div class="animation"></div> | |
*/ | |
/*-- Keyframes & Animation Mixins --*/ | |
@mixin keyframes($name) { | |
@-webkit-keyframes #{$name} { |
This file contains hidden or 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
@mixin animation($content) { | |
-webkit-animation: $content; | |
-moz-animation: $content; | |
-ms-animation: $content; | |
-o-animation: $content; | |
animation: $content; | |
} |
This file contains hidden or 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
RewriteCond %{HTTP_HOST} ^www\.domainname\.com$ [NC] | |
RewriteRule ^(.*)$ http://domainname.com/$1 [R=301,L] |
This file contains hidden or 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
.transparent-border { | |
-moz-background-clip: padding; /* Firefox 3.6 */ | |
-webkit-background-clip: padding; /* Safari 4? Chrome 6? */ | |
background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */ | |
border: 20px solid rgba(0,0,0,0.3); | |
-webkit-border-radius: 40px; | |
-moz-border-radius: 40px; | |
border-radius: 40px; |
This file contains hidden or 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
/* CSS | |
.disable-hover, .disable-hover * { | |
pointer-events: none !important; | |
} | |
*/ | |
var body = document.body, | |
timer; | |
window.addEventListener('scroll', function() { |
This file contains hidden or 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
.center-container { | |
position: relative; | |
} | |
.absolute-center { | |
width: 50%; | |
height: 50%; | |
overflow: auto; | |
margin: auto; | |
position: absolute; |