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 DOCUMENT */ | |
@import "base"; | |
// @import "compass/css3/"; | |
// SPRITES | |
// $my-icons-spacing: 5px; | |
// @import "../images/my-icons/*.png"; | |
// $icons: sprite-map("my-icons/*.png"); | |
/* ------------------ REDEFINE STYLES ----------------------- */ |
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
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
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 Name / Description | |
* | |
* @access public | |
* @param | |
* @return | |
*/ |
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
<?php if ( has_post_thumbnail()) { | |
$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large'); | |
echo $thumbnail[0]; | |
} ?> |
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
// REGISTER HOMEPAGE CUSTOM TYPE | |
add_action('init', 'work_register'); | |
function work_register() { | |
$labels = array( | |
'name' => _x('Work', 'post type general name'), | |
'singular_name' => _x('Work', 'post type singular name'), | |
'add_new' => _x('Add New', 'feature'), | |
'add_new_item' => __('Add New Work'), | |
'edit_item' => __('Edit Work'), |
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
$('nav a').click(function(e){ | |
e.preventDefault(); | |
var goto = $(this).parent().attr('class'); | |
var contentPosTop = $('section#' + goto).position().top - 50; | |
$('html, body').stop().animate({ | |
scrollTop: contentPosTop | |
}, 1500); | |
}); |
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
.animate({ height: 'toggle', opacity: 'toggle'}, 'medium'); |
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
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen and (min-width : 321px) { | |
/* Styles */ | |
} |
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
/* iPhone 4 ----------- */ | |
@media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) { | |
/* Styles */ | |
} |
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
/* Large screens ----------- */ | |
@media only screen and (min-width : 1824px) { | |
/* Styles */ | |
} |