From 5d7979646504d03855aaacef376ccbb28fe443ee Mon Sep 17 00:00:00 2001 From: Allen Rabinovich Date: Tue, 3 Dec 2013 10:30:02 -0700 Subject: [PATCH] Disallow user selection on body, but allow on individual elements (imported from commit b3f8f8f79952c34cdf4087683210bab6e4e46a27) --- static/styles/zulip.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/static/styles/zulip.css b/static/styles/zulip.css index 59f1db7491..a3b11feaad 100644 --- a/static/styles/zulip.css +++ b/static/styles/zulip.css @@ -7,6 +7,12 @@ html { body { font-family: 'Humbug', 'Helvetica Neue', Helvetica, Arial, sans-serif; overflow-y: auto; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } /* Common background color */ @@ -113,6 +119,12 @@ a { margin-top: 50px; width: 200px; z-index:3; + -webkit-touch-callout: text; + -webkit-user-select: text; + -khtml-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; } .app-main .column-right .right-sidebar { @@ -124,6 +136,12 @@ a { width: 100%; margin-right: -200px; margin-left: -200px; + -webkit-touch-callout: text; + -webkit-user-select: text; + -khtml-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; } .column-middle-inner {