Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Refactor styling #214

Merged
merged 7 commits into from
Apr 30, 2019
Merged

Refactor styling #214

merged 7 commits into from
Apr 30, 2019

Conversation

smacker
Copy link
Collaborator

@smacker smacker commented Apr 26, 2019

We need it to be able to easily override styles.
Less instead of any other preprocessor was chosen to match superset one.

Similar to styled-components new css classes don't use css cascade and
have bblfsh prefix to be unique in a larger application.

Components themselves don't import styles to make it easier to integrate
to another codebase.

Standalone UI looks absolutely the same as before. Superset UI with very little overriding:
Screenshot 2019-04-26 at 19 16 45

smacker added 6 commits April 26, 2019 15:54
Signed-off-by: Maxim Sukharev <max@smacker.ru>
Signed-off-by: Maxim Sukharev <max@smacker.ru>
Signed-off-by: Maxim Sukharev <max@smacker.ru>
We need it to be able to easily override styles.
Less instead of any other preprocessor was chosen to match superset one.

Similar to styled-components new css classes don't use css cascade and
have bblfsh prefix to be unique in a larger application.

Components themselves don't import styles to make it easier to integrate
to another codebase.

Signed-off-by: Maxim Sukharev <max@smacker.ru>
Signed-off-by: Maxim Sukharev <max@smacker.ru>
Signed-off-by: Maxim Sukharev <max@smacker.ru>
Copy link
Collaborator

@carlosms carlosms left a comment

Choose a reason for hiding this comment

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

👍 much cleaner in my opinion

this commit doesn't change UI
it duplicates resets from normalize.css to the components itself to make
it easier to integrate bblfsh-web into other places

Signed-off-by: Maxim Sukharev <max@smacker.ru>
Copy link
Member

@se7entyse7en se7entyse7en left a comment

Choose a reason for hiding this comment

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

I'm not very competent in reviewing this, but it seems much cleaner. Compared to the previous code the separation between dom and style is more defined IMHO. 👍

@smacker smacker merged commit 9ac15b7 into bblfsh:master Apr 30, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants