-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code refactor for spacing classes! #10625
Conversation
scss/prototype/_spacing.scss
Outdated
@each $prop in (margin, padding) { | ||
// All Sides | ||
.#{$prop}-#{$spacer} { | ||
@if ($prop == margin) { @include margin($spacer, $spacer, $spacer, $spacer); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the loops, but lets have the @include
on its own line, so more like
@if ($prop == margin) {
@include margin($spacer, $spacer, $spacer, $spacer);
} @else if ($prop == padding) {
@include padding($spacer, $spacer, $spacer, $spacer);
}
done @kball Indentation and also some more cool refactor Also, This removes the dirt of
|
Keeping migration for another PR and 6.5
@kball As discussed, I have removed the map for now, as we would have to then migrate it! I am closing that above linked PR and will push a new for same (6.5) after this PR merges! |
This excludes #10568
Just implemented DRY coding a little bit!