superfly-css-utilities-layout
Version:
68 lines (58 loc) • 946 B
CSS
@each $position in static, relative, absolute, fixed {
:root {
--u-position-$(position) {
position: $(position);
}
}
.u-position-$(position) {
position: $(position) ;
}
}
.u-top-right {
position: absolute ;
top: 0 ;
right: 0 ;
}
:root {
--u-top-right {
position: absolute;
top: 0;
right: 0;
}
}
:root {
--u-top-left {
position: absolute;
top: 0;
left: 0;
}
}
.u-top-left {
position: absolute ;
top: 0 ;
left: 0 ;
}
:root {
--u-bottom-right {
position: absolute;
bottom: 0;
right: 0;
}
}
.u-bottom-right {
position: absolute ;
bottom: 0 ;
right: 0 ;
}
:root {
--u-bottom-left {
position: absolute;
bottom: 0;
left: 0;
}
}
.u-bottom-left {
position: absolute ;
bottom: 0 ;
left: 0 ;
}