Blame view
assets/plugins/pricing-tables/partials/_mixins.scss
444 Bytes
cf76164e6 20190709 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
// center vertically and/or horizontally an absolute positioned element @mixin center($xy:xy) { @if $xy == xy { left: 50%; top: 50%; bottom: auto; right: auto; @include transform(translateX(-50%) translateY(-50%)); } @else if $xy == x { left: 50%; right: auto; @include transform(translateX(-50%)); } @else if $xy == y { top: 50%; bottom: auto; @include transform(translateY(-50%)); } } |