From 29e495f03cda05fd7fc362420ae86619c27b582e Mon Sep 17 00:00:00 2001 From: Fabien Date: Mon, 30 Dec 2013 05:52:00 +0100 Subject: Add Embed responsive utility --- dist/css/bootstrap.css | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'dist/css/bootstrap.css') diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index e096091ca..7d63cc139 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -5615,6 +5615,30 @@ button.close { .affix { position: fixed; } +.embed-responsive { + position: relative; + display: block; + height: 0; + padding: 0; + overflow: hidden; +} +.embed-responsive .embed-responsive-item, +.embed-responsive iframe, +.embed-responsive embed, +.embed-responsive object { + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 100%; + height: 100%; +} +.embed-responsive.embed-responsive-16by9 { + padding-bottom: 56.25%; +} +.embed-responsive.embed-responsive-4by3 { + padding-bottom: 75%; +} @-ms-viewport { width: device-width; } -- cgit v1.2.3