aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-06-18 16:03:48 -0700
committerMark Otto <[email protected]>2015-06-18 16:03:48 -0700
commitdf2ca92d7704d54a15be54e5da8086712bd18680 (patch)
tree97a2fd63f5931ab0bcdbabd8d0c6c0c8f8576544
parent331b8d2250f4b1ba29c0833e2be770c3f743ffe5 (diff)
downloadbootstrap-df2ca92d7704d54a15be54e5da8086712bd18680.tar.xz
bootstrap-df2ca92d7704d54a15be54e5da8086712bd18680.zip
Use percentages in responsive embed modifiers
- Credit: @adammacias - Originally proposed in #16499 with previous commit
-rw-r--r--scss/_responsive-embed.scss6
1 files changed, 3 insertions, 3 deletions
diff --git a/scss/_responsive-embed.scss b/scss/_responsive-embed.scss
index bedab270a..772b853c7 100644
--- a/scss/_responsive-embed.scss
+++ b/scss/_responsive-embed.scss
@@ -28,15 +28,15 @@
// Modifier class for 21:9 aspect ratio
.embed-responsive-21by9 {
- padding-bottom: 42.85%;
+ 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);
}