Skip to content

Commit

Permalink
centering-mixin: substitute "vert" and "horiz"
Browse files Browse the repository at this point in the history
  • Loading branch information
rastersysteme committed Aug 24, 2015
1 parent 911263c commit 5ce2a8c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
# 0.11

* centering-mixin: substitute "vert" and "horiz"

# 0.10.1

* added _ib.scss description
Expand Down
16 changes: 8 additions & 8 deletions mixins/_centering.scss
Expand Up @@ -20,14 +20,14 @@
// Sample output:
// .element-1 {
// position: absolute;
// top: 50%;
// transform: translateY(-50%);
// left: 50%;
// transform: translateX(-50%);
// }
//
// .element-2 {
// position: absolute;
// left: 50%;
// transform: translateX(-50%);
// top: 50%;
// transform: translateY(-50%);
// }
//
// .element-3 {
Expand All @@ -45,15 +45,15 @@

@if $scope == "horiz" {
& {
top: 50%;
transform: translateY(-50%);
left: 50%;
transform: translateX(-50%);
}
}

@if $scope == "vert" {
& {
left: 50%;
transform: translateX(-50%);
top: 50%;
transform: translateY(-50%);
}
}

Expand Down

0 comments on commit 5ce2a8c

Please sign in to comment.