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

use css for custom model box from local file #318

Merged
merged 1 commit into from
Mar 21, 2023
Merged

Conversation

karussell
Copy link
Member

@karussell karussell commented Mar 21, 2023

This change makes it possible to change/overwrite the editor css from here.

Comment on lines -60 to +62
modules: true,
modules: {
auto: (resourcePath) => resourcePath.endsWith(".module.css")
},
Copy link
Member

Choose a reason for hiding this comment

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

This means we apply this rule to all css files (see the test property) (except node_modules), but use the modules only for those files ending with .module.css. There are probably other ways to achieve the same, but at least we can use plain css where 'needed' now. We 'need' this now, because we need to control the class names for the codemirror css rules and our current solution is to not use css modules for these css files.

Copy link
Member Author

@karussell karussell Mar 21, 2023

Choose a reason for hiding this comment

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

There are probably other ways to achieve the same

Yeah, I tried changing the "test" regex but without success. Better understanding this would be nice but for now this is clean enough IMO :)

@karussell karussell merged commit b6d985e into master Mar 21, 2023
@karussell karussell deleted the cmeditor_css branch March 21, 2023 13:33
@karussell karussell added this to the 0.5 milestone Mar 21, 2023
@karussell karussell mentioned this pull request Mar 21, 2023
karussell added a commit that referenced this pull request Mar 29, 2023
ZeroGxMax pushed a commit to minhhpkp/graphhopper-maps that referenced this pull request Nov 12, 2024
ZeroGxMax pushed a commit to minhhpkp/graphhopper-maps that referenced this pull request Nov 12, 2024
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