elemental
Version:
React UI Framework
36 lines (30 loc) • 683 B
text/less
/**
* Pins to all corners by default. But when a width and/or height are
* provided, the element will be centered in its nearest relatively-positioned
* ancestor.
*/
.u-pos-absolute-center {
bottom: 0 ;
left: 0 ;
margin: auto ;
position: absolute ;
right: 0 ;
top: 0 ;
}
/**
* 1. Make sure fixed elements are promoted into a new layer, for performance
* reasons.
*/
.u-pos-fixed {
position: fixed ;
backface-visibility: hidden; /* 1 */
}
.u-pos-absolute {
position: absolute ;
}
.u-pos-relative {
position: relative ;
}
.u-pos-static {
position: static ;
}