Commit df2ca92d authored by Mark Otto's avatar Mark Otto
Browse files

Use percentages in responsive embed modifiers

- Credit: @adammacias
- Originally proposed in #16499 with previous commit
parent 331b8d22
Showing with 3 additions and 3 deletions
+3 -3
......@@ -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);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment