Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adding SCSS Margin and Padding Helpers, #211

dinesh-here started this conversation in Ideas
Discussion options

Add Margin and Padding utility helper scss class's using for loop

By using for loop on scss we can generate the class for margin and padding for top , bottom, left and right

.mt-5 {
margin-top: 5px;
}
.mx-5 {
margin: 0 5px;
}
....
..
.pb-30{
padding-bottom:30;
}
.py-30 {
padding: 30px 0;
}

Hope this util class generation will help to implement spacing in scss.

You must be logged in to vote

Replies: 1 comment

Comment options

Hey, there. Thanks for the idea. Sorry for not replying quickly xD. Of course, feel free to add useful scss snippets

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /