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

Add responsive option #126

Open
bradgarropy opened this issue Jun 5, 2020 · 0 comments
Open

Add responsive option #126

bradgarropy opened this issue Jun 5, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@bradgarropy
Copy link

Video services like YouTube should allow for a responsive option to be passed in, which would wrap the iframe in a div using the padding hack.

    /* facebook and youtube videos */
    .video {
        overflow: hidden;
        position: relative;
        width: 100%;
        margin: 2rem auto;
        ::after {
            padding-top: 56.25%;
            display: block;
            content: "";
        }
        iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
    }
@MichaelDeBoey MichaelDeBoey added the enhancement New feature or request label Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants