-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Updates responsive embeds with new class names and CSS variables #31717
Conversation
- Renames .embed-responsive-XbyY classes to .embed-responsive-XxY - Simplifies the Sass map to just be key and value, ratio and percentage - Builds .embed-responsive-* modifiers with CSS variables - Updates docs to show power of CSS variables - Add notes to the Migration guide
Thoughts about renaming |
Think that'd be fine @MartijnCuppens. We'd change the |
Done, and done, and done! Latest commits rename it to |
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.
LGTM!
One last thought: We could simplify this to just bootstrap/scss/helpers/_ratio.scss Lines 13 to 17 in f407d32
It feels a bit inconsistent that we would require .ratio-item on a <div> or an <img /> , but not on an <iframe> or a <video>
|
- Remove group selector for ratio items - Drop the .ratio-item entirely - Update docs to explain updated approach - Update Migration guide to reflect the latest
Yup, good idea—just pushed some changes. Done! |
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.
Fixes #31531.