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
@mixin opacity($value) | |
opacity: #{"." + $value} | |
filter: alpha(opacity=$value) | |
-ms-filter: "alpha(opacity=$value)" | |
-khtml-opacity: #{"." + $value} | |
-webkit-opacity: #{"." + $value} | |
-moz-opacity: #{"." + $value} | |
.opacity | |
@include opacity(80) |
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
$('#toggleReiseziele').click(function(){ | |
if($(this).hasClass('toggleUp')){ | |
$('#footer').animate({height:'500'},'slow'); | |
}else{ | |
$('#footer').animate({height:'200'},'slow'); | |
} | |
$('#toggleReiseziele').toggleClass('toggleUp'); | |
}); |
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
$('html, body').animate({ | |
scrollTop: $(‘#element’).offset().top | |
}, 2000); |
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
<snippet> | |
<content><![CDATA[ | |
<img src="http://placehold.it/${1:100}x${2:100}" alt="${3:Alt text}"/> | |
]]></content> | |
<tabTrigger>dummy</tabTrigger> | |
</snippet> |
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
.label{ | |
display: inline-block; | |
position: relative; | |
text-transform: uppercase; | |
text-decoration: none; | |
color: white; | |
&:visited{color: @white;} | |
} |
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
"C:\path\to\chrome.exe" --allow-file-access-from-files |
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
<!-- Live Reload für Less --> | |
<script type="text/javascript" charset="utf-8"> | |
less.env = "development"; | |
less.watch(); | |
</script> |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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
//custom imagesize | |
add_action( 'after_setup_theme', 'setup' ); | |
function setup() { | |
// ... | |
add_theme_support( 'post-thumbnails' ); | |
// This feature enables post-thumbnail support for a theme | |
// To enable only for posts: | |
// add_theme_support( 'post-thumbnails', array( 'post' ) ); | |
// To enable only for posts and custom post types: |
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="arrow-up"></div> | |
<div class="arrow-down"></div> | |
<div class="arrow-left"></div> | |
<div class="arrow-right"></div>*/ | |
/*Source: http://css-tricks.com/snippets/css/css-triangle/*/ | |
.arrow-up { | |
width: 0; | |
height: 0; |
OlderNewer