superfly-css-utilities-layout
Version:
62 lines (54 loc) • 1.47 kB
CSS
@for $factor from 0 to 20 {
:root {
--u-border-width-$(factor)x {
border-width: $(factor)px;
}
}
.u-border-width-$(factor)x {
border-width: $(factor)px ;
}
}
@for $factor from 0 to 20 {
:root {
--u-border-radius-$(factor)x {
border-radius: $(factor)px;
}
}
.u-border-radius-$(factor)x {
border-radius: $(factor)px ;
}
}
@each $dimension in top, bottom, left, right {
@for $factor from 0 to 20 {
:root {
--u-border-$(dimension)-width-$(factor)x {
border-$(dimension)-width: $(factor)px;
}
}
.u-border-$(dimension)-width-$(factor)x {
border-$(dimension)-width: $(factor)px ;
}
}
}
@each $style in none, hidden, dotted, dashed, solid, double, groove, ridge, inset, outset, initial, inherit {
:root {
--u-border-style-$(style) {
border-style: $(style);
}
}
.u-border-style-$(style) {
border-style: $(style) ;
}
}
@each $dimension in top, bottom, left, right {
@each $style in none, hidden, dotted, dashed, solid, double, groove, ridge, inset, outset, initial, inherit {
:root {
--u-border-$(dimension)-style-$(style) {
border-$(dimension)-style: $(style);
}
}
.u-border-$(dimension)-style-$(style) {
border-$(dimension)-style: $(style) ;
}
}
}