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
//colors | |
$turquoise: #1abc9c; | |
$amethyst: #9b59b6; | |
$silver: #bdc3c7; | |
$emerland: #2ecc71; | |
$white: white; | |
$black: black; | |
//dimensions | |
$size: 100px; |
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
&:nth-child(4n + 1):nth-last-child(2), | |
&:nth-child(4n + 2):nth-last-child(1) { | |
width: 49% | |
} | |
&:nth-child(4n + 1):nth-last-child(3), | |
&:nth-child(4n + 2):nth-last-child(2), | |
&:nth-child(4n + 3):nth-last-child(1) { | |
width: 33.24%; | |
} |
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
$(window).scroll(function(){ | |
var pageHeight = $(document).height(), | |
windowHeight = $(window).height(), | |
topDistance = $(document).scrollTop(); | |
if( pageHeight - topDistance == windowHeight) { | |
//load more content now | |
console.log('reached the bottom'); |
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
//source: http://www.dangayle.com/import-feeds-wordpress-fetch-feed/ | |
function custom_rss($feedUrl = 'http://wordpress.org/news/feed/'){ | |
include_once(ABSPATH . WPINC . '/rss.php'); | |
$feed = $feedUrl; | |
$rss = fetch_feed($feed); | |
if (!is_wp_error( $rss ) ) : | |
$maxitems = $rss->get_item_quantity(3); | |
$rss_items = $rss->get_items(0, $maxitems); |
NewerOlder