Skip to content

SCSS Cleanup and centralization of hard coded values - #4780

Merged
shiftkey merged 15 commits into
masterfrom
css-variable-refactors
May 28, 2018
Merged

shiftkey merged 15 commits into
masterfrom
css-variable-refactors

Conversation

@niik

@niik niik commented May 24, 2018 •

Copy link
Copy Markdown
Member

This PR extracts a few hard-coded values into CSS variables and removes one unused variable and deprecates another seldom used one.

We still have a bunch of hard coded values scattered about but we'll incrementally work towards centralizing where it makes sense.

Our text boxes (textboxish mixin) didn't have a set background color so I've settled on --box-background-color (which is the same thing as --background-color) for now but I think we might want to split them out and remove the overlap in the future. For now it works well enough though.

I had to introduce one scss variable for the dialog backdrop due to the ::backdrop pseudo element not inheriting from any element (including :root). This lets us encode the opacity of the backdrop for both the foldouts and the dialogs in a single spot.

@niik niik added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label May 24, 2018
@shiftkey shiftkey self-assigned this May 26, 2018

@shiftkey shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@shiftkey
shiftkey merged commit d911f6d into master May 28, 2018
@shiftkey
shiftkey deleted the css-variable-refactors branch May 28, 2018 00:27
@lock lock Bot locked as resolved and limited conversation to collaborators Jul 27, 2018
@desktop desktop unlocked this conversation Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants