Align
Предназначен для абсолютного position: absolute;
выравнивания элементов.
Вызов
@include center
- по центру;@include top_center
- вверху по центру;@include top_left
- вверху слево;@include top_right
- вверху с право;@include bottom_center
- снизу по центру;@include bottom_left
- снизу слево;@include bottom_right
- снизу справа;@include center-l
- слева по центру;@include right_center
- справа по центру.
SCSS
.block {
@include center;
}
CSS
.block {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}