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

css conflicts with boostrap's css #308

Closed
filomat opened this issue Feb 25, 2016 · 3 comments
Closed

css conflicts with boostrap's css #308

filomat opened this issue Feb 25, 2016 · 3 comments

Comments

@filomat
Copy link

filomat commented Feb 25, 2016

I am trying to draw a flowchart and using mermaid.forest.css stylesheet. Flowcharts look beautiful without bootstrap.css:
screenshot_6

But if I include stylesheet /bootstrap/css/bootstrap.css text looks small and ugly, lables and edges don't show html tags:
screenshot_7

Can I use mermaid along with bootstrap 3?

@knsv
Copy link
Collaborator

knsv commented Mar 12, 2016

The only styling applied by mermaid for lables are the color. SO other styles applied by bootstrap would then kick in.

If you want other styling for the labels you can apply more specific styles for the label via css:

.mermaid .label {
   color:#333
  /* Other styling here */
}

I hope this helps.

@utdrmac
Copy link

utdrmac commented Jul 8, 2016

bootstrap overrides/sets A LOT of defaults!

@tylerlong
Copy link
Collaborator

Latest version of mermaid scope all of its own CSS in chart ID. If you can still reproduce it, create a new issue. Thanks.

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

No branches or pull requests

4 participants