Skip to content

Instantly share code, notes, and snippets.

Ian Armstrong isarmstrong

Block or report user

Report or block isarmstrong

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@isarmstrong
isarmstrong / SCSS mixin: vertically align
Created Feb 27, 2015
A quick & simple mixin that takes one arguement (relative vs absolute) and vertically aligns an element within its parent.
View SCSS mixin: vertically align
@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 Aug 29, 2015
A class file that outputs social sharing buttons for WordPress, instantiated by array
View class.social-share.php
<?php
/**
* Class social_share
* @author : Ian Armstrong (@imperativeideas)
* A class file that outputs social sharing buttons for WordPress, instantiated by array
*/
/* Sample Usage:
You can’t perform that action at this time.