4 ms·
I'm not exactly sure what you mean by "loops". Can you clarify? Maybe it's because I'm not very familiar with SASS or SCSS. If what you mean is how do you go ab
by billpatrianakos 15y ago
I'm not exactly sure what you mean by "loops". Can you clarify? Maybe it's because I'm not very familiar with SASS or SCSS. If what you mean is how do you go about not having to repeat certain properties I'm thinking of just simple mixins. Something like:
.circle-outlines-star (@radius: 15px) {
-o-border-radius: @arguments;
...other prefixes, shortened for brevity...
}
Then you'd just add that in wherever you want some radius like so:
.star-container {
.circle-outlines-star(optional radius override here);
...and more styles...
}
Yeah, super simple and just off the top of my head but hopefully I addressed the question about loops. I don't know if you mean loops in code or literally like spinning animated loops. It's like 3am, got insomnia, and I'm effing commenting all night. Shoot me.
- alexchamberlain 15y agoMy question was... The code on which this example is based uses SASS loops. Given that LESS hasn't got support for loops, how would you generate the required classes etc? I think you answered that question...