Skip to content

Commit

Permalink
Remove Compass dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
scottkellum committed Jan 27, 2014
1 parent b18fe8e commit 6c6fd5e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions compass/stylesheets/toolkit/_vertical-center.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

position: relative;
top: $midpoint;
// Transform back up (IE9+ only)
@include transform(translateY($midpoint * -1));
-moz-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}

1 comment on commit 6c6fd5e

@Snugug
Copy link
Member

@Snugug Snugug commented on 6c6fd5e Jan 28, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add in a check to see if a transform mixin exists, and if it does, add that. Otherwise, use Can I Use based information for current browsers for prefixing (as of right now, only -webkit needed)

Please sign in to comment.