diff options
| author | Mark Otto <[email protected]> | 2014-03-06 23:18:13 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-03-06 23:18:13 -0800 |
| commit | 705ff7f2275ca823f71ca8dfba27a3b68119a2a4 (patch) | |
| tree | 5e9cafa73cafc08cfcd4f0dba987620fe21ccd21 /less/responsive-embed.less | |
| parent | 12c619f5b9149a4d3f4d24efe106504b6a8a5004 (diff) | |
| download | bootstrap-705ff7f2275ca823f71ca8dfba27a3b68119a2a4.tar.xz bootstrap-705ff7f2275ca823f71ca8dfba27a3b68119a2a4.zip | |
Moving the embed to it's own CSS file, moving the docs to the Components page with an example, fixing a Glyhpicons list problem in the docs
Diffstat (limited to 'less/responsive-embed.less')
| -rw-r--r-- | less/responsive-embed.less | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/less/responsive-embed.less b/less/responsive-embed.less new file mode 100644 index 000000000..a884d49fe --- /dev/null +++ b/less/responsive-embed.less @@ -0,0 +1,34 @@ +// Embeds responsive +// +// Credit: Nicolas Gallagher and SUIT CSS. + +.embed-responsive { + position: relative; + display: block; + height: 0; + padding: 0; + overflow: hidden; + + .embed-responsive-item, + iframe, + embed, + object { + position: absolute; + top: 0; + left: 0; + bottom: 0; + height: 100%; + width: 100%; + border: 0; + } + + // Modifier class for 16:9 aspect ratio + &.embed-responsive-16by9 { + padding-bottom: 56.25%; + } + + // Modifier class for 4:3 aspect ratio + &.embed-responsive-4by3 { + padding-bottom: 75%; + } +} |
