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
<ol class="wp-paginate"> | |
<li><span class="title"></span></li> | |
<li><span class="prev">Previous</span></li> | |
<li><a href="#page" title="1" class="page">1</a></li> | |
<li><span class="page current">2</span></li> | |
<li><a href="#page/3" title="3" class="page">3</a></li> | |
<li><a href="#page/4" title="4" class="page">4</a></li> | |
<li><a href="#page/5" title="5" class="page">5</a></li> | |
<li><span class="gap">...</span></li> | |
<li><a href="#page/8" title="8" class="page">8</a></li> |
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 Dice: An Experiment by Jonathan Sampson - @jonathansampson */ | |
.die.one:after { | |
box-shadow: 0 .2em 0 #FFF | |
} | |
.die.two:after { | |
background: transparent; | |
box-shadow: -2.3em -2.3em 0 #345, | |
2.3em 2.3em 0 #345, | |
-2.3em -2.3em 0 #FFF, | |
2.3em 2.4em 0 #FFF |
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 Dice: An Experiment by Jonathan Sampson - @jonathansampson */ | |
.die.one:after { | |
box-shadow: 0 .2em 0 #FFF | |
} | |
.die.two:after { | |
background: transparent; | |
box-shadow: -2.3em -2.3em 0 #345, | |
2.3em 2.3em 0 #345, | |
-2.3em -2.3em 0 #FFF, | |
2.3em 2.4em 0 #FFF |
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
// Add this code snippet after including jQuery | |
// The if statement protects you in case you forget to remove this | |
// once you upgrade to 1.7, or if you try to use it with jQuery 1.3 | |
if (jQuery.event.props[17] === "layerX" ) { | |
jQuery.event.props.splice(17,2); | |
} |
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
Consolidated lists of CSS properties that are inherited by default. | |
Taken from http://www.w3.org/TR/CSS21/propidx.html | |
-------------------------------------------------------------------- | |
One item not in the list was "text-decoration" which affects child elements. A few new properties (text-shadow) also affect child elements | |
List | |
azimuth | |
border-collapse |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>jQuery Mobile Original Source Bookmarklet for Chrome</title> | |
<style type="text/css" media="screen"> | |
body, html, h1 { margin: 0; padding: 0; } | |
html { padding: 20px; background: #ddd; } | |
body { max-width: 600px; margin: 0 auto; padding: 20px; box-sizing: border-box; background: #fff; font-family: Helvetica, arial; box-shadow: rgba(0,0,0,0.2) 0 0 5px } |
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 | |
// Place in index.php, at the top | |
function clean_hnp() { | |
$reset_query = false; | |
$keys = array( | |
'action', 'hnp_post' | |
); | |
foreach ($keys as $key) { |
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
/*! | |
* jQuery TextChange Plugin | |
* http://www.zurb.com/playground/jquery-text-change-custom-event | |
* | |
* Copyright 2010, ZURB | |
* Released under the MIT License | |
*/ | |
(function ($) { | |
$.event.special.textchange = { |
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
a:after { | |
... | |
content: attr(title); /* Default to title */ | |
... | |
}; | |
html.js a:after { | |
... |