twindy
Version:
CSS Framework written in Stylus inspired by Tailwind and NIB
49 lines (38 loc) • 643 B
text/stylus
@require "../mixins/base.styl";
tw-layout() {
if __tw_once("layout") {
.stack-x {
use: stack-x;
}
.stack-y {
use: stack-y;
}
.space-x {
use: space-x;
}
.space-y {
use: space-y;
}
.center, .centered {
use: stack-item-center;
}
.scroll, .scollable {
use: stack-item-scroll;
contain: content;
}
.space, .grow {
flex: auto ;
overflow: hidden ;
}
.fixed-space {
width: 24;
}
.gap {
// use: space-x();
// use: space-y();
}
.divider {
// use: divider;
}
}
}