Skip to content

at-breakpoint#13519

Closed
Dakuan wants to merge 1 commit intotwbs:masterfrom
Dakuan:at-breakpoint
Closed

at-breakpoint#13519
Dakuan wants to merge 1 commit intotwbs:masterfrom
Dakuan:at-breakpoint

Conversation

@Dakuan
Copy link
Copy Markdown

@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
Copy Markdown
Collaborator

cvrebert commented May 6, 2014

Overlaps with #13014.

@cvrebert
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

cvrebert commented May 6, 2014

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

@mdo
Copy link
Copy Markdown
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