Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Миксины для вертикальных отступов.
- * Используются для отступов между div.row
- */
- @amount: 40;
- @step: 5;
- .marginTopLoop (@index) when (@index =< @amount) {
- &.top@{index}{
- margin-top: @index/10em;
- }
- /* Выполняем следующую итерацию рекурсивно */
- .marginTopLoop(@index + @step);
- }
- /**
- * Применяем
- */
- .row {
- .marginTopLoop (5);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement