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

Split variables stylesheet into multiple #3804

Merged
merged 2 commits into from
Dec 5, 2017

Conversation

jasmussen
Copy link
Contributor

This PR splits out breakpoints and colors from the _variables.scss stylesheet, in a hope to fix #964.

It also uses // for comments that should be eaten in compilation.

Further improvements can probably be made if we find either the need for more variables in either of the current sections in _variables.scss, or if we can move some of those variables to live in context of the components that use them. As of now, though, the remaining variables don't feel like enough to split further, and the are used across many components.

This PR splits out breakpoints and colors from the _variables.scss stylesheet, in a hope to fix #964.

It also uses `//` for comments that should be eaten in compilation.

Further improvements can probably be made if we find either the need for more variables in either of the current sections in _variables.scss, or if we can move some of those variables to live in context of the components that use them. As of now, though, the remaining variables don't feel like enough to split further, and the are used across many components.
@jasmussen jasmussen added the General Interface Parts of the UI which don't fall neatly under other labels. label Dec 4, 2017
@jasmussen jasmussen self-assigned this Dec 4, 2017
@jorgefilipecosta
Copy link
Member

jorgefilipecosta commented Dec 4, 2017

Hi @jasmussen, I added a new commit that updates our constants.js to import the breakpoint scss variables from the newly created file. Feel free change anything. I tested the changes and things look fine, and the variables are now better organized 👍

@jasmussen
Copy link
Contributor Author

Thanks Jorge! Appreciate it.

@jasmussen jasmussen merged commit 69f99fc into master Dec 5, 2017
@jasmussen jasmussen deleted the update/variable-stylesheets branch December 5, 2017 07:23
@MichaelArestad
Copy link
Contributor

Nice work! Dig the changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General Interface Parts of the UI which don't fall neatly under other labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Break variables stylesheet up
3 participants