Skip to content
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

Add responsive spacing utility classes #20570

Closed
wants to merge 1 commit into from

Conversation

jamby
Copy link

@jamby jamby commented Aug 23, 2016

Had this come up with my team. Designer wanted to have some spacing for mobile be different from other devices (desktop/tablet), so I added this onto the spacing utility and seems to work well!

More than happy to make any changes that people think are necessary. (For instance, wasn't sure if since I made this into a mixin if I should move it to the mixin folder now)

}

@include spacing-utility('');
@include spacing-utility('-xs');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings

@razh
Copy link
Contributor

razh commented Aug 24, 2016

This was brought up previously and turned-down (for good reason): #18490

In any case, this should follow the convention used for defining the other responsive utilities:

@each $breakpoint in map-keys($grid-breakpoints) {
  @include media-breakpoint-up($breakpoint) {
    // ...
  }
}

Example:
https://github.com/twbs/bootstrap/blob/v4.0.0-alpha.3/scss/utilities/_pulls.scss

@jamby jamby closed this Aug 24, 2016
@cvrebert cvrebert changed the title Added device specificity for spacing utility. Add responsive spacing utility classes Aug 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants