diff options
| author | Martijn Cuppens <[email protected]> | 2019-02-09 13:21:41 +0100 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-02-09 14:21:41 +0200 |
| commit | 545f3fa9219bc52dd8c22b582e40d66f135b9044 (patch) | |
| tree | 05d5f0b104148b3d134bbf8d436bd7ffb27c012d | |
| parent | 94acdee69105cee320f8def204763a9140c84652 (diff) | |
| download | bootstrap-545f3fa9219bc52dd8c22b582e40d66f135b9044.tar.xz bootstrap-545f3fa9219bc52dd8c22b582e40d66f135b9044.zip | |
Prevent text selection in placeholder images (#28218)
| -rw-r--r-- | site/_layouts/examples.html | 4 | ||||
| -rw-r--r-- | site/docs/4.2/assets/scss/_placeholder-img.scss | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/site/_layouts/examples.html b/site/_layouts/examples.html index c37dd923d..cecd1145d 100644 --- a/site/_layouts/examples.html +++ b/site/_layouts/examples.html @@ -16,6 +16,10 @@ .bd-placeholder-img { font-size: 1.125rem; text-anchor: middle; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } @media (min-width: 768px) { diff --git a/site/docs/4.2/assets/scss/_placeholder-img.scss b/site/docs/4.2/assets/scss/_placeholder-img.scss index 3fe6a8bba..90a29544e 100644 --- a/site/docs/4.2/assets/scss/_placeholder-img.scss +++ b/site/docs/4.2/assets/scss/_placeholder-img.scss @@ -7,6 +7,7 @@ .bd-placeholder-img { @include font-size(1.125rem); text-anchor: middle; + user-select: none; } .bd-placeholder-img-lg { |
