@superflycss/utilities-layout
Version:
70 lines (64 loc) • 1.87 kB
CSS
/** @define utilities */
@import "@superflycss/variables-dimension";
@media (--sm-viewport) {
@for $factor from 0 to 20 {
.u-sm-border-width-$(factor)px {
border-width: $(factor)px ;
}
.u-sm-bw$(factor)px {
border-width: $(factor)px ;
}
.u-sm-border-radius-$(factor)px {
border-radius: $(factor)px ;
}
.u-sm-br$(factor)px {
border-radius: $(factor)px ;
}
.u-sm-btw$(factor)px {
border-top-width: $(factor)px ;
}
.u-sm-bbw$(factor)px {
border-bottom-width: $(factor)px ;
}
.u-sm-blw$(factor)px {
border-left-width: $(factor)px ;
}
.u-sm-brw$(factor)px {
border-right-width: $(factor)px ;
}
}
@each $dimension in top, bottom, left, right {
@for $factor from 0 to 20 {
.u-sm-border-$(dimension)-width-$(factor)px {
border-$(dimension)-width: $(factor)px ;
}
}
}
@each $style in none, hidden, dotted, dashed, solid, double, groove, ridge, inset, outset, initial, inherit {
.u-sm-border-style-$(style) {
border-style: $(style) ;
}
.u-sm-bs-$(style) {
border-style: $(style) ;
}
.u-sm-bts-$(style) {
border-top-style: $(style) ;
}
.u-sm-bbs-$(style) {
border-bottom-style: $(style) ;
}
.u-sm-bls-$(style) {
border-left-style: $(style) ;
}
.u-sm-brs-$(style) {
border-right-style: $(style) ;
}
}
@each $dimension in top, bottom, left, right {
@each $style in none, hidden, dotted, dashed, solid, double, groove, ridge, inset, outset, initial, inherit {
.u-sm-border-$(dimension)-style-$(style) {
border-$(dimension)-style: $(style) ;
}
}
}
}