Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Embedded diagram marble offset and font size #10

Open
cvuorinen opened this issue May 1, 2015 · 3 comments
Open

Embedded diagram marble offset and font size #10

cvuorinen opened this issue May 1, 2015 · 3 comments

Comments

@cvuorinen
Copy link

When using the embedded diagram in a reveal.js html slides the styles etc. somehow make the marbles appear offset to the right and also the font size off the text values inside the marbles is too big (or actually it's not set at all so the styles from outside "leak" in and make it too big).

Here is a screenshot:
rxmarbles-bug

@cvuorinen
Copy link
Author

In a blank html page without any styles or other markup the embedded diagram works fine, so I was able to get around this issue by using them through an iframe from the slides.

@staltz
Copy link
Owner

staltz commented May 1, 2015

This is probably some global styles affecting the diagram. It looks like typical CSS namespacing problem. Could also be fixed by using the Shadow DOM with the <rx-marbles> element.

@nadavwr
Copy link

nadavwr commented Oct 15, 2017

rx-marbles {
    font-size: 16px;
    text-align: left;
}

should fix it

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

No branches or pull requests

3 participants