yugen.work/assets/css/_functions.scss
codepupper c6b1937e6c a
2019-11-15 17:51:24 +01:00

19 lines
No EOL
388 B
SCSS

@mixin centerer($horizontal: true, $vertical: true) {
position: absolute;
@if ($horizontal and $vertical) {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
@else if ($horizontal) {
left: 50%;
transform: translate(-50%, 0);
}
@else if ($vertical) {
top: 50%;
transform: translate(0, -50%);
}
}