From edc4fe95f6f04d1e01c1f3bc6740a3f1cbb84823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 12 Feb 2019 19:32:57 +0100 Subject: [PATCH] Allow page title heading to be selected while editor is active People enjoy copy-pasting it, or something. Bug: T214790 Change-Id: I0d133f601d178f1d1f0175a411a9bcd433ba9419 --- .../styles/ve.init.mw.DesktopArticleTarget.init.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/ve-mw/init/styles/ve.init.mw.DesktopArticleTarget.init.css b/modules/ve-mw/init/styles/ve.init.mw.DesktopArticleTarget.init.css index 2b38c45db2..a64be4eefa 100644 --- a/modules/ve-mw/init/styles/ve.init.mw.DesktopArticleTarget.init.css +++ b/modules/ve-mw/init/styles/ve.init.mw.DesktopArticleTarget.init.css @@ -54,6 +54,17 @@ opacity: 0.5; } +.ve-activated #firstHeading { + /* Override the styles above to allow the heading to be selected, because people enjoy + copy-pasting it. Overriding pointer-events is surprisingly not required, and not desirable, + because of section 0 edit links and other stuff inserted inside this element by gadgets, + which should remain inactive. */ + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; +} + .ve-activated #catlinks { cursor: pointer; }