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

at-breakpoint #13519

Closed
wants to merge 1 commit into from
Closed

at-breakpoint #13519

wants to merge 1 commit into from

Conversation

Dakuan
Copy link

@Dakuan Dakuan commented May 6, 2014

This feature allows you to apply different styles to elements based on the screen width.

Usage:

// arbitrary width
.thing {
  .at-breakpoint(100px, {
    background-color: red;
  });
  .at-breakpoint(200px, {
    background-color: green;
  });
}

// bootstrap cols
.thing {
  background-color: blue;
  .at-md({
    background-color: yellow;
  });
}

@cvrebert
Copy link
Collaborator

cvrebert commented May 6, 2014

Overlaps with #13014.

@cvrebert
Copy link
Collaborator

cvrebert commented May 6, 2014

I don't know if at-XX is the best name, since the styles apply at size XX and larger, as opposed to exclusively at size XX.

@Dakuan
Copy link
Author

Dakuan commented May 6, 2014

Fair enough, this was inspired by http://susydocs.oddbird.net/en/latest/susyone/#responsive-mixins which I missed when using LESS generally.

@cvrebert
Copy link
Collaborator

cvrebert commented May 6, 2014

Yeah, I wish there was a more first-class notion of breakpoints...

@mdo
Copy link
Member

mdo commented May 13, 2014

Closing in favor of #13014.

@mdo mdo closed this May 13, 2014
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.

3 participants