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

Is there a way to config the host to allow css and fonts to be access from ext? #19

Open
Sandilly opened this issue Sep 6, 2018 · 1 comment

Comments

@Sandilly
Copy link

Sandilly commented Sep 6, 2018

In the docs (under the PosConfig section), one of the fields is css Style-sheet text or a URI to a CSS file that defines additional CSS to be used inside the SafeFrame iframe. Default value is "". How do I implement this for the host to pass down font styles and css so that the ext can use it? And how do I access this from $sf.ext if the host were able to pass down these files?

@seansd-zz
Copy link
Collaborator

So the "css" prop would be like any other CSS if you want to create a style sheet inline via a stile tag:

   {
         dest:   'tgtLREC',
         css:     ' div { font-family: arial; } `
 }

Or you could give it a URL and it will create a link tag to your style sheet. . .
As far as accessing it via $sf.ext there is no official way to do that, nor am I sure why'd you'd need too. . .you are just setting up the position config on the publisher side.

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

2 participants