From 545f3fa9219bc52dd8c22b582e40d66f135b9044 Mon Sep 17 00:00:00 2001 From: Martijn Cuppens Date: Sat, 9 Feb 2019 13:21:41 +0100 Subject: [PATCH] Prevent text selection in placeholder images (#28218) --- site/_layouts/examples.html | 4 ++++ site/docs/4.2/assets/scss/_placeholder-img.scss | 1 + 2 files changed, 5 insertions(+) diff --git a/site/_layouts/examples.html b/site/_layouts/examples.html index c37dd923d1..cecd1145d9 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 3fe6a8bbac..90a29544e7 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 {