Commit 292c1fa5 authored by shadMod's avatar shadMod 💬

refactoring with ciclo for

parent b5d21084
...@@ -235,11 +235,20 @@ ul.item-list li { ...@@ -235,11 +235,20 @@ ul.item-list li {
line-height: 20px; line-height: 20px;
} }
.m-25 { @each $value in (10, 20, 25) {
margin: 25px; $margin_sizes: ("": "#{$value}px", "y": "#{$value}px 0", "x": "0 #{$value}px");
} @each $name, $margin in $margin_sizes {
.mx-25 { .m#{$name}-#{$value} {
margin: 25px 0; margin: #{$margin} !important;
}
}
$margin_sizes: ("t": "top", "e": "right", "b": "bottom", "s": "left");
@each $name, $position in $margin_sizes {
.m#{$name}-#{$value} {
margin-#{$position}: #{$value}px !important;
}
}
} }
.my-25 { .my-25 {
margin: 0 25px; margin: 0 25px;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment