luda
luda copied to clipboard
Add padding-top value automatically if responsive medias have width and height attributes.
Why This Feature Should be Added to Luda
If a responsive media has width and height attribute, the padding-top value of its container should be calculated and set automatically to ensure the scale ratio.
How Should This Feature Work
- Detect if a responsive media has width and height attribute.
- Calculate padding-top value in percentage according to the width value and height value.
- Set media wrapper padding-top value.
Additional context
Plan to release feature in version 0.3.3.