@superflycss/utilities-layout
Version:
65 lines (61 loc) • 1.63 kB
CSS
/** @define border utilities */
@for $factor from 0 to 20 {
.u-border-width-$(factor)px {
border-width: $(factor)px ;
}
.u-bw$(factor)px {
border-width: $(factor)px ;
}
.u-border-radius-$(factor)px {
border-radius: $(factor)px ;
}
.u-br$(factor)px {
border-radius: $(factor)px ;
}
.u-btw$(factor)px {
border-top-width: $(factor)px ;
}
.u-bbw$(factor)px {
border-bottom-width: $(factor)px ;
}
.u-blw$(factor)px {
border-left-width: $(factor)px ;
}
.u-brw$(factor)px {
border-right-width: $(factor)px ;
}
}
@each $dimension in top, bottom, left, right {
@for $factor from 0 to 20 {
.u-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-border-style-$(style) {
border-style: $(style) ;
}
.u-bs-$(style) {
border-style: $(style) ;
}
.u-bts-$(style) {
border-top-style: $(style) ;
}
.u-bbs-$(style) {
border-bottom-style: $(style) ;
}
.u-bls-$(style) {
border-left-style: $(style) ;
}
.u-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-border-$(dimension)-style-$(style) {
border-$(dimension)-style: $(style) ;
}
}
}