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

Making the iframe responsive? #260

Open
bryan-snyder opened this issue Dec 25, 2016 · 2 comments
Open

Making the iframe responsive? #260

bryan-snyder opened this issue Dec 25, 2016 · 2 comments

Comments

@bryan-snyder
Copy link

Hey -
so tried using this in a sidebar widget in the 2016 WP Theme, no custom CSS, no other login plug-ins and no captcha plug-ins. The width of .panel-content is set to 400px causing the wave graphic to become hidden overflow and therefore unreadable by phones.

We tried overwriting the CSS via child theme style.css. Then we realized this has some react going and there's css coming into the iframe from clef.io which we can't edit, obviously.

after reviewing the iframe src and unminifiying the iframe's page source we could locate .panel-content.

in Dev-Tools, we are able to achieve the desired responsiveness by adjusting .panel-content from this:
.panel-content { position: relative; z-index: 100; overflow: hidden; width: 400px; margin-top: -50px; padding-top: 50px; }

to this:
.panel-content { position: relative; z-index: 100; overflow: hidden; width: 400px; margin-top: -50px; padding-top: 50px; margin-left: -50px; }

So maybe in the next release we can see the ability to set parameters in the shortcode, such as width, height or the ability to add a custom class.

Also, if the width were set as a % and not a static px amount it would help in the iframe's responsiveness.

Thank you or... correct us where I'm mistaken.

Otherwise, love this plug-in and hopefully more sites adopt.
Bryan and Ben

@bryan-snyder
Copy link
Author

would like to point out, however... using the button on the sidebar and allowing the full screen modal to go up is a great experience.

@jessepollak
Copy link
Member

Thanks for opening this issue, we'll take a look!

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