]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use percentages in responsive embed modifiers
authorMark Otto <markdotto@gmail.com>
Thu, 18 Jun 2015 23:03:48 +0000 (16:03 -0700)
committerMark Otto <markdotto@gmail.com>
Thu, 18 Jun 2015 23:03:48 +0000 (16:03 -0700)
- Credit: @adammacias
- Originally proposed in #16499 with previous commit

scss/_responsive-embed.scss

index bedab270a1055b18e453e7923d9fd48a55e1f135..772b853c79cd06c855b79027c3d30a55fe9c4e67 100644 (file)
 
 // 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);
 }