just like using a framework, after the global introduction of scss, you can directly call it in other scss folders.
/ / locate full screen
@ mixin allcover {
position:absolute;
top:0;
right:0;
}
/ / position up, down, left, right, center
@ mixin center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/ / Center up and down
@ mixin ct {
position: absolute;
top: 50%;
transform: translateY(-50%);
}
/ / Center up and down
@ mixin cl {
position: absolute;
left: 50%;
transform: translateX(-50%);
}