diff options
Diffstat (limited to 'assets/stylesheets/bootstrap/_responsive-embed.scss')
-rw-r--r-- | assets/stylesheets/bootstrap/_responsive-embed.scss | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/assets/stylesheets/bootstrap/_responsive-embed.scss b/assets/stylesheets/bootstrap/_responsive-embed.scss index 080a511..ac4dc74 100644 --- a/assets/stylesheets/bootstrap/_responsive-embed.scss +++ b/assets/stylesheets/bootstrap/_responsive-embed.scss @@ -1,5 +1,3 @@ -// Embeds responsive -// // Credit: Nicolas Gallagher and SUIT CSS. .embed-responsive { @@ -16,20 +14,25 @@ video { position: absolute; top: 0; - left: 0; bottom: 0; - height: 100%; + left: 0; width: 100%; + height: 100%; border: 0; } } +// Modifier class for 21:9 aspect ratio +.embed-responsive-21by9 { + padding-bottom: percentage(9 / 21); +} + // Modifier class for 16:9 aspect ratio .embed-responsive-16by9 { - padding-bottom: 56.25%; + padding-bottom: percentage(9 / 16); } // Modifier class for 4:3 aspect ratio .embed-responsive-4by3 { - padding-bottom: 75%; + padding-bottom: percentage(3 / 4); } |