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