@for $i from 0 through 80 {
@if $i % 2 == 0 or $i % 5 =0 {
.m#{i} {
margin: $i + px;
}
.p#{i} {
padding: $i + px;
}
@each $short,$long in t top,r right, b bottom, l left {
.m#{$short}#{$i}{
margin-#{$long}: $i + px;
}
.p#{$short}#{$i} {
padding-#{$long}: $i + px;
}
}
}
}
sass动态
于 2023-06-15 13:07:55 首次发布