A Pen by Derick Montague on CodePen.
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
/* Some tweaks needed to accommodate different background and foreground colors colors */ | |
text-shadow-dark { | |
text-shadow: 0 1px 1px rgba(255, 255, 255, .5), 0 -1px 1px rgba(0, 0, 0, .5) | |
} | |
text-shadow-light { | |
text-shadow: 0 1px 1px rgba(255, 255, 255, .9), 0 -1px 1px rgba(0, 0, 0, .1); | |
} |
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
<script> | |
/**************************************************************************************************** | |
Checking for old IE and Firefox versions and defaulting to flash with html 5 fallback | |
Not serving .ogg file so Firefox requires Flash | |
Flash does not like dimensions set to auto, so set these to 100% when using flash for playback | |
****************************************************************************************************/ | |
$(document).ready(function(){ | |
var ua = $.browser; | |
var uaVersion = ua.version.slice(0,3); |
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 function to check if column is middle column | |
// of a three column layout based on the index | |
function is_middle_column($index) | |
{ | |
$isMiddleColumn = false; | |
$postIndex = $index; | |
if (($postIndex - 1) % 3 == 0) | |
{ | |
$isMiddleColumn = true; |
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
// http://www.robertmullaney.com/2010/11/12/safe-email-mailto-links-using-jquery/ | |
generateMail : (function() { | |
$('a[href*="[at]"][href*="[dot]"]').each(function() { | |
var email = $(this).attr('href').split('[at]').join('@').split('[dot]').join('.'); | |
$(this).attr('href', 'mailto:' + email.toLowerCase()); | |
$(this).text(email); | |
}); | |
}), |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<!--[if lt IE 9]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
</head> | |
<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
/** | |
* (C)Leanest CSS spinner ever | |
*/ | |
@keyframes spin { | |
to { transform: rotate(1turn); } | |
} | |
.progress { | |
position: relative; |
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
/** | |
* For modern browsers | |
* 1. The space content is one way to avoid an Opera bug when the | |
* contenteditable attribute is included anywhere else in the document. | |
* Otherwise it causes space to appear at the top and bottom of elements | |
* that are clearfixed. | |
* 2. The use of `table` rather than `block` is only necessary if using | |
* `:before` to contain the top-margins of child elements. | |
*/ | |
.cf:before, |
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
<?php | |
// Adding custom posts | |
add_action('init', 'team_register'); | |
function team_register() { | |
$labels = array( | |
'name' => _x('Team Members', 'post type general name'), | |
'singular_name' => _x('Team Member', 'post type singular name'), |
OlderNewer