Skip to content

Instantly share code, notes, and snippets.

View isarmstrong's full-sized avatar

Ian Armstrong isarmstrong

View GitHub Profile
@isarmstrong
isarmstrong / SCSS mixin: vertically align
Created February 27, 2015 20:15
A quick & simple mixin that takes one arguement (relative vs absolute) and vertically aligns an element within its parent.
@mixin vertical-align($position) {
position: $position;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
@isarmstrong
isarmstrong / class.social-share.php
Last active August 29, 2015 14:16
A class file that outputs social sharing buttons for WordPress, instantiated by array
<?php
/**
* Class social_share
* @author : Ian Armstrong (@imperativeideas)
* A class file that outputs social sharing buttons for WordPress, instantiated by array
*/
/* Sample Usage: