从无法访问的项目Fork
体验新版 GitCode,发现更多精彩内容 >>
.img-responsive { background: no-repeat center/cover;
padding-top: percentage(.75);
}
@each $key, $ratio in $aspect-ratios {
.img-responsive-#{$key} {
padding-top: $ratio;
} }