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

Update .multimedia to aspect-ratio with @supports fallback #10

Open
nerdpruitt opened this issue Aug 23, 2021 · 0 comments
Open

Update .multimedia to aspect-ratio with @supports fallback #10

nerdpruitt opened this issue Aug 23, 2021 · 0 comments

Comments

@nerdpruitt
Copy link
Contributor

Something to this effect:

.multimedia {
    aspect-ratio: 16 / 9;
}

@supports not (aspect-ratio: 16 / 9) {
    .multimedia {
        position: relative;
        width: 100%;
    }

    .multimedia::before {
        content: '';
        display: block;
        height: 0;
        padding-bottom: 56.25%;
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant