Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

How to get the breakpoint variable value from _settings.scss #1077

Closed
anthonyabraira opened this issue Sep 15, 2017 · 2 comments
Closed

How to get the breakpoint variable value from _settings.scss #1077

anthonyabraira opened this issue Sep 15, 2017 · 2 comments

Comments

@anthonyabraira
Copy link

Pardon but this is not an issue as much as a technical question.

I am trying to incorporate the values of the set breakpoints in the _settings.scss file. Meaning, I would like to get the pixels I have set here:

$breakpoints: (
  small: 0,
  small-medium: 600px,
  medium: 960px,
  large: 1024px,
  xlarge: 1200px,
  xxlarge: 1440px,
);

Is there a way to use something like @include breakpoint(small-medium) but only nab the 600px value?

Again sorry for using this forum for what might be a newbie question. I couldn't find anything in the documentation. If there is a better place for this question, please advise.

@colin-marshall
Copy link
Collaborator

map-get($breakpoints, small)

@anthonyabraira
Copy link
Author

Thank you so much. That did it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants