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
jQuery(document).ready(function($){ | |
//Max Mobile Size | |
var mobileMaxWidth = 570; | |
//DO ON CLICK (Any mobile specific links go to the URL in their data-mobile-href -- on 'click' allows it to detect the current screensize) | |
$('*[data-mobile-href]').click(function(){ | |
if ( $(document).width() < mobileMaxWidth ) { | |
var mobileURL = $(this).data("mobile-href"); | |
$(this).attr('href', mobileURL ); //swap default href with new mobile href |
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
/*Centered List Items*/ | |
.centered-list { float: left; width: 100%; overflow: hidden; position: relative; } | |
.centered-list ul { clear: left; float: left; position: relative; left: 50%; text-align: center; } | |
.centered-list ul li { float: left; position: relative; right: 50%; list-style: none; } |
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
var isTouch = Modernizr.touch != false; | |
var isiPad = navigator.userAgent.match(/iPad/i) != null; | |
if (isTouch) | |
alert('Touch'); | |
if (isiPad) | |
alert('iPad'); |
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
.amp { | |
font-family: Baskerville, Palatino, 'Book Antiqua', serif; | |
font-style: italic; | |
font-weight: normal; | |
} |
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
/* Grid Columns -- 12 columns based off of 960px with 20px gutters*/ | |
.row { clear: both; } | |
.row:before, .row:after {content: " "; display: table; } .row:after { clear: both; } /*clearfix*/ | |
.row .column { padding-left: 1.041666666%; padding-right: 1.041666666%; /*gutter*/ float: left; } | |
.row .column.right { float: right; /*good if you have a sidebar and need to skip a column & float it right*/ } | |
.row .one { width: 6.25%; } | |
.row .two { width: 14.583333333%; } | |
.row .three { width: 22.916666666%; } | |
.row .four { width: 31.25%; } |
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
*Opens Chrome from OSX terminal allowing it to store and access local cookies.* | |
open /Applications/Google\ Chrome.app --args --enable-file-cookies | |
*Opens Chrome from OSX terminal allowing it to access local files and ajax calls.* | |
open /Applications/Google\ Chrome.app --args --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
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { | |
} |
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
add_action('media_buttons','add_sc_select',11); | |
function add_sc_select(){ | |
echo ' <select id="sc_select"> | |
<option>Shortcode</option> | |
<option value="[html][/html]">[html]</option> | |
<option value="[css][/css]">[css]</option> | |
<option value="[javascript][/javascript]">[javascript]</option> | |
</select>'; | |
} | |
add_action('admin_head', 'button_js'); |
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
add_action('media_buttons','add_sc_select',11); | |
function add_sc_select(){ | |
global $shortcode_tags; | |
/* ------------------------------------- */ | |
/* enter names of shortcode to exclude bellow */ | |
/* ------------------------------------- */ | |
$exclude = array("wp_caption", "embed"); |
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
<!--In the HTML you would just need something like:--> | |
<section data-backstretch-url="images/featured-about.jpg"> | |
... | |
</section> |
OlderNewer