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

fix: load CSS and fix up UI appearance #33

Merged
merged 2 commits into from
Apr 22, 2024
Merged

fix: load CSS and fix up UI appearance #33

merged 2 commits into from
Apr 22, 2024

Conversation

gonfunko
Copy link
Owner

This PR loads Scratch's CSS and matches Scratch's scrollbar dimensions. It also exports colors as CSS variables, and updates the CSS to reference these rather than find-and-replacing in an overridden inject().

Copy link
Collaborator

@BeksOmega BeksOmega left a comment

Choose a reason for hiding this comment

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

This is much cleaner thank you! I think we still need to pull at this string a bit more to figure out where we should be using CSS and where we should be using themes. But this fixes the monkey patching which is great.

I didn't look super closely at the CSS, but a skim looked good to me.

src/index.js Show resolved Hide resolved
core/css.js Show resolved Hide resolved
core/css.js Show resolved Hide resolved
core/css.js Show resolved Hide resolved
core/css.js Show resolved Hide resolved
@gonfunko gonfunko merged commit 1645129 into modern-blockly Apr 22, 2024
1 check passed
@gonfunko gonfunko deleted the uifixits branch April 22, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants