aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2020-04-29 20:32:35 +0200
committerGitHub <[email protected]>2020-04-29 20:32:35 +0200
commited2caa5117c43bb967a14827729f89a4203bb47c (patch)
treeb889ce20819aac7341c6a6afe8c2dc1631091141
parent8bee11300812bbfe46b232a7dfc2c8e6e6f5eee7 (diff)
downloadbootstrap-ed2caa5117c43bb967a14827729f89a4203bb47c.tar.xz
bootstrap-ed2caa5117c43bb967a14827729f89a4203bb47c.zip
Remove borders from iframes by default (#30620)
-rw-r--r--scss/_reboot.scss5
-rw-r--r--scss/helpers/_embed.scss1
-rw-r--r--site/content/docs/4.3/helpers/embed.md2
3 files changed, 6 insertions, 2 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss
index 2563405a3..2b4eb37b4 100644
--- a/scss/_reboot.scss
+++ b/scss/_reboot.scss
@@ -575,6 +575,11 @@ output {
display: inline-block;
}
+// Remove border from iframe
+
+iframe {
+ border: 0;
+}
// Summary
//
diff --git a/scss/helpers/_embed.scss b/scss/helpers/_embed.scss
index 1df7b4338..924fc0e6d 100644
--- a/scss/helpers/_embed.scss
+++ b/scss/helpers/_embed.scss
@@ -19,7 +19,6 @@
left: 0;
width: 100%;
height: 100%;
- border: 0;
}
}
diff --git a/site/content/docs/4.3/helpers/embed.md b/site/content/docs/4.3/helpers/embed.md
index 30914b2d6..78d3f265d 100644
--- a/site/content/docs/4.3/helpers/embed.md
+++ b/site/content/docs/4.3/helpers/embed.md
@@ -10,7 +10,7 @@ toc: true
Rules are directly applied to `<iframe>`, `<embed>`, `<video>`, and `<object>` elements; optionally use an explicit descendant class `.embed-responsive-item` when you want to match the styling for other attributes.
-**Pro-Tip!** You don't need to include `frameborder="0"` in your `<iframe>`s as we override that for you.
+**Pro-Tip!** You don't need to include `frameborder="0"` in your `<iframe>`s as we override that for you in [reboot]({{< docsref "/content/reboot" >}}).
## Example