ruby - Is there a way to optimise the processed CSS with SASS -
i have files normalise.scss , base.scss. adding styles h tags in both files. in compiled css file, beingness added in 2 separate places this:
/* set in base of operations */ h1, h2, h3, h4, h5, h6 { font-family: times; } /* set in normalise */ h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; } is there ruby gem or utility combines of these 1 declaration? i.e
h1, h2, h3, h4, h5, h6 { font-family: times; margin: 0; padding: 0; }
maybe helps you. loop of sass.
%heading{ /*your css*/ } @for $i 1 through 6 { .h#{$i} { @extend heading; } } css ruby sass
No comments:
Post a Comment