-
Notifications
You must be signed in to change notification settings - Fork 0
Styles and dynamic iframe sizing #1
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
base: main
Are you sure you want to change the base?
Conversation
|
Oh, I did not see this come in. Will review tomorrow. |
|
Would it not be possible to use a media query and set the iframe to a percentage width on small screens? |
|
It wouldn't do anything. The |
|
What if we don’t set width (or height) on the frame then? |
|
I’m on my phone right now so I haven’t checked what the code looks like, but what does this guy do? Would it work for us? |
|
It does almost exactly what my code does (same technique), but statically and not scalably. |
We could control the size of the iframe with CSS then, but we would still need some kind of signal that we can use to determine what the aspect ratio should be. For instance, we could add |
|
Ugh! Why can we not have nice things? I'll try this out, but I'd also like to get some time with you today, maybe around lunch, to see if there's not some way we can do this without JavaScript that works well enough, and maybe some optional JavaScript for flair. |
|
This would almost certainly solve the problem, but it is not widely supported. We could use JS as a fallback though. |
| margin: 0; | ||
| padding: 0; | ||
| padding-top: 0.5em; | ||
| .beyond-nav > .nav-items { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix for long navigation
|
I was still getting prettier conflicts, but I think that I properly squashed this. Want to double check? |
|
I've got the latest version of this up on alpha.gchomebrew.com and there are issues both with the navbar (no spacing between items) and with the tables (I can't zoom out to see it at-a-glance). I'm going to check the other PR now. |

No description provided.