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
/* ========================================================= | |
* Comments | |
* ========================================================= */ | |
ol.comment-list{ | |
margin: 0 0 1em; | |
padding: 0; | |
list-style-type: none; | |
text-indent: 0; | |
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
<?php | |
/* | |
* Add a 'minor edit' checkbox to Wordpress posts, pages and custom posts | |
* to save without updating the 'modified' date of the post. | |
* Saved as postmeta for each post | |
*/ | |
/* add checkbox to Publish box | |
--------------------------------------------------------------------------*/ |
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 | |
/* | |
* After finding the Facebook API docs to be inaccurate, | |
* and being forced to use the API to get a single latest post dynamically. | |
* API v5 | |
*/ | |
// Using Composer for Facebook PHP SDK | |
require_once( ABSPATH . '/vendor/autoload.php' ); |
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 simple way to extend Compass sprite classes within media queries. | |
* Based on the knowledge gained here: http://www.sitepoint.com/cross-media-query-extend-sass/ | |
* I admit it's nowhere near as clever, but it does work :) | |
*/ | |
/* | |
* Set-up sprites for each media size | |
*/ |
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
// convert px value to em | |
// second variable $current is optional | |
// set $base-font-size to the base font-size of your doc | |
$base-font-size: 16 | |
// mixin | |
@mixin px-to-em( $target, $current: $base-font-size ) | |
font-size: $target/$current + em |