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

diagrams.css should be scoped #1128

Open
AccessViolator opened this issue Feb 24, 2020 · 1 comment
Open

diagrams.css should be scoped #1128

AccessViolator opened this issue Feb 24, 2020 · 1 comment

Comments

@AccessViolator
Copy link

Everything in diagrams.css should be scoped to some wrapping css class, because as is it cannot be bundled with the rest of an app's css because of styles like this:

div {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

svg {
    width: 100%;
}

Currently the only way to bundle it is a partial copy-paste.

@bd82
Copy link
Member

bd82 commented Feb 24, 2020

Thanks for reporting this @AccessViolator .

I believe this may be simple to fix. I will mark it as "Help Wanted"

Although am not sure where the relevant Div is created when generating the diagrams html source...

Relevant "places" to start:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants