Skip to content

Instantly share code, notes, and snippets.

@jpgninja
Last active June 5, 2017 05:21
Show Gist options
  • Save jpgninja/1c9617fe01285f3aa13c5569504e0207 to your computer and use it in GitHub Desktop.
Save jpgninja/1c9617fe01285f3aa13c5569504e0207 to your computer and use it in GitHub Desktop.
/**
* Vertical Align (Mixins)
*
*/
.vertical-align(@position: relative, @offset: 50%) {
top: @offset;
position: @position;
-webkit-transform: translateY(-@offset);
-ms-transform: translateY(-@offset);
transform: translateY(-@offset);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment