.centered_element
@mixin centered() {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
}
body {
background-color: #111;
}
.centered_element {
background-color: #333;
border: 2px dashed #999;
width: 100px;
height: 100px;
@include centered();
}
Also see: Tab Triggers