Created
October 8, 2014 18:04
-
-
Save jeremyfuksa/9d8be05ef711db29c05f to your computer and use it in GitHub Desktop.
SASS import for embedding videos the embedresponsively.com way.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.embed-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
height: 0; | |
overflow: hidden; | |
max-width: 100%; | |
height: auto; | |
iframe, | |
object, | |
embed { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment