-
Notifications
You must be signed in to change notification settings - Fork 4
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
Aspect ratio padding for iframe videos #60
Comments
I like the idea of creating a mixin to accomplish this. There is already a ratio percent function in Sparkle, but I think a mixin that accomplishes this would be versatile to fit a custom class. What would be best for this is if we can pass in ratio percentage, but default to the widescreen 56.25% value. Then the For usage this is what I think this is what this should look like:
I’m open to discussing the name of this function. The |
We copy/paste this code from project to project, it would be nice to have here! The 56.25% creates the 16:9 aspect ratio.
The text was updated successfully, but these errors were encountered: